maint.mk: forbid exit(-1)
[gnulib.git] / ChangeLog
1 2012-07-20  Eric Blake  <eblake@redhat.com>
2
3         maint.mk: forbid exit(-1)
4         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
5
6 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
7
8         fsusage: port back to Solaris
9         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
10         error (fsd not declared) on Solaris 10.  Reported privately by
11         Andrew Borodin.
12
13 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
14
15         gnu-web-doc-update: fix error messages
16         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
17
18         gnu-web-doc-update: check the requirements.
19         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
20         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
21         * build-aux/bootstrap (find_tool): Comment change.
22
23 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
24
25         maint.mk: minor simplication.
26         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
27         for default values.
28
29 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
30
31         gitlog-to-changelog: VPATH build issues
32         If builddir is not a subdirectory of srcdir, running git from it will
33         fail.
34         * build-aux/gitlog-to-changelog (--srcdir): New option.
35
36 2012-07-15  Bruno Haible  <bruno@clisp.org>
37
38         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
39         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
40         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
41         Remove exemption for fpending.h.
42         Suggested by Eric Blake.
43
44 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
45
46         pthread_sigmask: fix bug on FreeBSD 9
47         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
48         Include string.h.
49         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
50         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
51         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
52         but pthread_sigmask (1729, NULL, NULL) returns zero.
53         See <http://bugs.gnu.org/11884>.
54         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
55         by inspecting whether the main call changed the old mask.
56
57 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
58
59         README-release: make it more legible
60         * top/README-release: Improve typography slightly.
61
62 2012-07-15  Jim Meyering  <meyering@redhat.com>
63
64         maint: require that each sc_... command start with "@"
65         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
66         "make sc_maint" helps us avoid this nit.
67
68 2012-07-15  Jim Meyering  <meyering@redhat.com>
69
70         maint.mk: add leading "@" to quiet new "make syntax-check" rule
71         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
72
73 2012-07-13  Eric Blake  <eblake@redhat.com>
74
75         maint.mk: new syntax check for HAVE_DECL checks
76         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
77         * cfg.mk
78         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
79         Exempt some false positives.
80         Based on a report by Karel Zak.
81
82         argp: make HAVE_DECL usage consistent
83         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
84         macros, not whether they are defined.
85         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
86         convention with other declaration checks.
87         Reported by Karel Zak, with suggestions from Paul Eggert.
88
89         stat-time: relax license to LGPLv2+
90         * modules/stat-time (License): Relax, with consent of all authors.
91
92         strndup: fix m4 usage error
93         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
94         defined, to either 0 or 1.
95         Reported by Karel Zak.
96
97 2012-07-11  Jim Meyering  <meyering@redhat.com>
98
99         maint: enable the sc_avoid_if_before_free syntax-check rule
100         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
101         (if_before_free_offenders_): Define.
102         (if_before_free_basename_re_): Define.
103         Exempt current files with useless if-before-free.
104
105 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
106
107         gettext: do not assume '#define ... defined ...' behavior
108         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
109         Do not use '#define FOO ... defined BAR ...', as the C standard says
110         it's not portable to expect that this works after macro expansion.
111         Problem reported for gzip by Steven M. Schweda in
112         <http://lists.gnu.org/archive/html/bug-gzip/2012-07/msg00000.html>.
113
114 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
115
116         getloadavg: clean out old Emacs and Autoconf cruft
117         See Glenn Morris in <http://bugs.gnu.org/11905>.
118         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
119         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
120         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
121         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
122
123 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
124
125         bootstrap: let warn be like tests/init.sh's warn_
126         Reported by Jim Meyering.
127         * build-aux/bootstrap (warn): Remove, replaced by...
128         (warnf_, warn_): these.
129         Adjust callers.
130         Shorten messages that no longer fit in 80 columns.
131
132 2012-07-09  Bruno Haible  <bruno@clisp.org>
133
134         getopt: Simplify after Emacs changed.
135         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
136         (gl_GETOPT_IFELSE): Remove macro.
137
138 2012-07-09  Jim Meyering  <meyering@redhat.com>
139
140         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
141         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
142
143         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
144         Bugs in both of those conspired to make the
145         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
146         _sc_search_regexp's handling of non-empty $in_files would filter
147         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
148         choice of in_files value meant there would be no match in most
149         projects, due to the presence of two or more Makefile.in files.
150         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
151         Fix a bug in how a non-empty $$in_files was processed:
152         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
153         in spite of the name, it's a regexp, not a list of file names.
154
155 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
156
157         getloadavg, getopt: fix commentary re configure.in
158         Autoconf is deprecating the name 'configure.in', so change it to
159         to the new name 'configure.ac' in a couple of places.
160         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
161         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
162         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
163         Emacs has renamed it to configure.ac, and it no longer refers
164         to these macros anyway.
165
166         timespec: mark functions with const attributes
167         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
168         Mark with _GL_ATTRIBUTE_CONST.
169
170 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
171
172         canonicalize[-lgpl]: handle "guessing" values when cross-building
173         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
174         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
175         matches "*yes" instead of just "yes".  Regression introduced in commit
176         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
177
178 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
179             Bruno Haible  <bruno@clisp.org>
180
181         canonicalize: make the right guess when cross-compiling to GNU
182         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
183         determine whether cross-compiling to glibc systems, so as to
184         include GNU/Hurd.
185
186 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
187
188         timespec-sub: avoid duplicate include
189         * lib/timespec-sub.c: Do not include <config.h> twice.
190         Reported by Juanma Barranquero.
191
192 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
193
194         bootstrap: use a more consistent error reporting scheme
195         * build-aux/bootstrap (warn, die): New.
196         Use them.
197
198 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
199
200         sys_time: allow too-wide tv_sec
201         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
202         timeval even if tv_sec is wider than time_t.  This allows
203         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
204         as without this patch gnulib replaces struct timeval
205         and OpenBSD futimes therefore has a type mismatch.
206         * doc/posix-headers/sys_time.texi: Mention this.
207
208         pthread: check for both pthread_create and pthread_join
209         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
210         alter the check so that it tests for both pthread_create and
211         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
212         Suggested by Bruno Haible and Richard Yao in
213         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00048.html>.
214
215         parse-datetime: doc tuneup
216         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
217         spacing issues.
218
219 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
220
221         do-release-commit-and-tag: fix the previous commit
222         * build-aux/do-release-commit-and-tag: Actually the test was right,
223         but the comment and the error message were misleading.
224         Fix comment, and improve error message.
225         Perform check first, so that NEWS is not modified uselessly.
226
227         do-release-commit-and-tag: fix typo
228         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
229         _not_ start with a stub.
230
231 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
232
233         pthread: check for pthread_create, not pthread_join
234         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
235         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
236         pthread_join in libc.  I hope this removes the need for all the
237         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
238         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00042.html>.
239
240 2012-07-04  Jim Meyering  <meyering@redhat.com>
241
242         parse-datetime: fix failure to diagnose invalid input
243         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
244         rather than diagnosing the invalid input.  Now it reports this:
245         date: invalid date '\260'
246         * lib/parse-datetime.y (to_uchar): Define.
247         (yylex): Don't sign-extend "other" bytes.
248         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
249         Thanks to Bruno Haible for the patch to this file.
250         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
251         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
252
253 2012-07-03  Jim Meyering  <meyering@redhat.com>
254
255         bootstrap: do not require now-removed build-aux/missing
256         Now that build-aux/missing is, er, missing, bootstrap would
257         silently fail.
258         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
259         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
260         no longer part of gnulib.
261         Diagnose the failure.
262
263 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
264
265         alloca: add support for HP NonStop TNS/E native
266         * lib/alloca.in.h (alloca): Support the new host.
267         From a suggestion by Joachim Schmitz in
268         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00355.html>.
269
270 2012-07-02  Pádraig Brady  <P@draigBrady.com>
271
272         fsusage: remove code not needed on non GNU/Linux systems.
273
274         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
275         Don't include headers no longer needed in this case.
276         * lib/fsusage.c [STAT_STATVFS &&
277         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
278         STAT_STATFS2_FRSIZE to exclude code not used in this case.
279
280 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
281
282         fsusage: include files needed for glibc 2.6 fallback
283         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
284         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
285         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
286         Problem reported by Ludovic Courtès in
287         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00005.html>.
288
289         fsusage: avoid needless check on GNU/Linux
290         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
291         on GNU/Linux systems, since it can't possibly work.
292
293 2012-07-01  Bruno Haible  <bruno@clisp.org>
294
295         log: Fix an autoconf >= 2.64 warning.
296         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
297         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
298
299 2012-06-28  Bruno Haible  <bruno@clisp.org>
300
301         log10f: Fix possible configuration problem.
302         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
303         $LOGF_LIBM.
304         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
305
306 2012-06-28  Bruno Haible  <bruno@clisp.org>
307
308         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
309         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
310         not gl_cv_func_unlink_works.
311         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
312
313 2012-06-27  Eric Blake  <eblake@redhat.com>
314
315         config: drop scripts that automake says are not independent
316         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
317         * build-aux/elisp-comp: Delete.
318         * build-aux/missing: Likewise.
319         * build-aux/ylwrap: Likewise.
320         * modules/elisp-comp: Likewise.
321         * MODULES.html.sh: Drop mention of elisp-comp.
322         * NEWS: Mention this.
323
324 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
325
326         root-uid: new module
327         This is for portability to Tandem's NonStop Kernel.
328         * lib/root-uid.h, modules/root-uid: New files.
329         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
330         * lib/write-any-file.c, tests/test-sethostname2.c:
331         Include "root-uid.h".
332         * lib/euidaccess.c (euidaccess):
333         * lib/pt_chown.c (main):
334         * lib/unlinkdir.c (cannot_unlink_dir):
335         * lib/write-any-file.c (can_write_any_file):
336         * m4/mknod.m4 (gl_FUNC_MKNOD):
337         * tests/test-sethostname2.c (geteuid, main):
338         Don't assume ROOT_UID == 0.
339         * modules/euidaccess (Depends-on):
340         * modules/pt_chown (Depends-on):
341         * modules/sethostname-tests (Depends-on):
342         * modules/unlinkdir (Depends-on):
343         * modules/write-any-file (Depends-on):
344         Add root-uid.
345
346         regex: use locale-independent comparison for codeset name
347         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
348         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
349         for codeset name.
350         * lib/regex_internal.h: Do not include <strings.h>, since we
351         no longer use strcasecmp.
352         * modules/regex (Depends-on): Remove strcase.
353
354 2012-06-23  Bruno Haible  <bruno@clisp.org>
355
356         getopt-posix: No longer guarantee that option processing is resettable.
357         * doc/posix-functions/getopt.texi: Drop description of problem with
358         internal state. Fix info about mingw and msvc9.
359         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
360         option processing by getopt(). Run three test programs instead of one.
361         Simplify cross-compilation guess.
362         * NEWS: Mention the change.
363         Reported by Rich Felker <dalias@aerifal.cx>.
364
365 2012-06-26  Bruno Haible  <bruno@clisp.org>
366
367         argp, regex: Ensure strcasecmp gets declared.
368         * lib/argp-help.c: Include <strings.h>.
369         * lib/regex_internal.h: Likewise.
370         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
371
372 2012-06-24  Bruno Haible  <bruno@clisp.org>
373
374         ptsname_r: Make it consistent with ptsname on AIX.
375         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
376         implementation as for OSF/1.
377         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
378         a pty master.
379
380         ptsname_r: Make it consistent with ptsname on OSF/1.
381         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
382         OSF/1.
383
384 2012-06-24  Bruno Haible  <bruno@clisp.org>
385
386         ttyname_r: Fix result on OSF/1, Solaris.
387         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
388
389 2012-06-24  Bruno Haible  <bruno@clisp.org>
390
391         ptsname_r: Add support for Solaris.
392         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
393         Solaris.
394
395         ptsname_r: Fix test failure on native Windows.
396         * modules/ptsname_r (Depends-on): Add isatty.
397
398         ptsname_r: Fix test failures on IRIX, Solaris.
399         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
400         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
401         accordingly.
402         * lib/ptsname_r.c: Include <fcntl.h>.
403         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
404         set errno if fd is invalid.
405         * tests/test-isatty.c (main): Update comments.
406
407 2012-06-24  Bruno Haible  <bruno@clisp.org>
408
409         ptsname test: Extend test.
410         * tests/test-ptsname.c: Include <errno.h>.
411         (main): Test behaviour with invalid file descriptor.
412
413 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
414
415         time: fix obsolete comment
416         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
417         reference to HAVE_STRUCT_TIMESPEC in comment.
418
419 2012-06-23  Bruno Haible  <bruno@clisp.org>
420
421         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
422         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
423         does not handle abbreviated long options with equivalent
424         disambiguations, set gl_replace_getopt to yes.
425         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
426
427 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
428
429         time_r: fix typo that always overrode localtime_r decl
430         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
431         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
432         not in a standard include.
433
434 2012-06-22  Bruno Haible  <bruno@clisp.org>
435
436         Write "Mac OS X" instead of "MacOS X".
437         * README: Write "Mac OS X" instead of "MacOS X".
438         * build-aux/bootstrap: Likewise.
439         * build-aux/install-reloc: Likewise.
440         * lib/acl-internal.h: Likewise.
441         * lib/acl_entries.c: Likewise.
442         * lib/argp-ba.c: Likewise.
443         * lib/argp-pv.c: Likewise.
444         * lib/config.charset: Likewise.
445         * lib/copy-acl.c: Likewise.
446         * lib/csharpexec.c: Likewise.
447         * lib/euidaccess.c: Likewise.
448         * lib/fbufmode.c: Likewise.
449         * lib/fflush.c: Likewise.
450         * lib/file-has-acl.c: Likewise.
451         * lib/filemode.h: Likewise.
452         * lib/fpurge.c: Likewise.
453         * lib/freadable.c: Likewise.
454         * lib/freadahead.c: Likewise.
455         * lib/freading.c: Likewise.
456         * lib/freadptr.c: Likewise.
457         * lib/freadseek.c: Likewise.
458         * lib/fseeko.c: Likewise.
459         * lib/fseterr.c: Likewise.
460         * lib/fsusage.c: Likewise.
461         * lib/fwritable.c: Likewise.
462         * lib/fwriting.c: Likewise.
463         * lib/get-rusage-as.c: Likewise.
464         * lib/get-rusage-data.c: Likewise.
465         * lib/getdomainname.c: Likewise.
466         * lib/idpriv-drop.c: Likewise.
467         * lib/idpriv-droptemp.c: Likewise.
468         * lib/localcharset.c: Likewise.
469         * lib/locale.in.h: Likewise.
470         * lib/localename.c: Likewise.
471         * lib/mbsrtowcs-state.c: Likewise.
472         * lib/nproc.c: Likewise.
473         * lib/passfd.c: Likewise.
474         * lib/posix_openpt.c: Likewise.
475         * lib/printf-parse.c: Likewise.
476         * lib/progreloc.c: Likewise.
477         * lib/safe-read.h: Likewise.
478         * lib/safe-write.h: Likewise.
479         * lib/sched.in.h: Likewise.
480         * lib/set-mode-acl.c: Likewise.
481         * lib/signal.in.h: Likewise.
482         * lib/stdint.in.h: Likewise.
483         * lib/stdio-impl.h: Likewise.
484         * lib/stdlib.in.h: Likewise.
485         * lib/strtod.c: Likewise.
486         * lib/sys_select.in.h: Likewise.
487         * lib/tcgetsid.c: Likewise.
488         * lib/unistd.in.h: Likewise.
489         * lib/unlockpt.c: Likewise.
490         * lib/vasnprintf.c: Likewise.
491         * lib/vma-iter.c: Likewise.
492         * lib/wcsrtombs-state.c: Likewise.
493         * m4/acl.m4: Likewise.
494         * m4/acosl.m4: Likewise.
495         * m4/asinl.m4: Likewise.
496         * m4/atanl.m4: Likewise.
497         * m4/c-stack.m4: Likewise.
498         * m4/cosl.m4: Likewise.
499         * m4/expl.m4: Likewise.
500         * m4/extensions.m4: Likewise.
501         * m4/fdatasync.m4: Likewise.
502         * m4/fmal.m4: Likewise.
503         * m4/frexp.m4: Likewise.
504         * m4/frexpf.m4: Likewise.
505         * m4/frexpl.m4: Likewise.
506         * m4/fsusage.m4: Likewise.
507         * m4/getdomainname.m4: Likewise.
508         * m4/getloadavg.m4: Likewise.
509         * m4/getopt.m4: Likewise.
510         * m4/gettext.m4: Likewise.
511         * m4/gnulib-common.m4: Likewise.
512         * m4/intdiv0.m4: Likewise.
513         * m4/intlmacosx.m4: Likewise.
514         * m4/largefile.m4: Likewise.
515         * m4/ldexpl.m4: Likewise.
516         * m4/link-follow.m4: Likewise.
517         * m4/locale-ar.m4: Likewise.
518         * m4/locale-fr.m4: Likewise.
519         * m4/locale-ja.m4: Likewise.
520         * m4/locale-tr.m4: Likewise.
521         * m4/locale-zh.m4: Likewise.
522         * m4/locale_h.m4: Likewise.
523         * m4/lock.m4: Likewise.
524         * m4/logl.m4: Likewise.
525         * m4/mathfunc.m4: Likewise.
526         * m4/minus-zero.m4: Likewise.
527         * m4/mktime.m4: Likewise.
528         * m4/mmap-anon.m4: Likewise.
529         * m4/multiarch.m4: Likewise.
530         * m4/nanosleep.m4: Likewise.
531         * m4/nocrash.m4: Likewise.
532         * m4/poll.m4: Likewise.
533         * m4/printf-frexpl.m4: Likewise.
534         * m4/printf.m4: Likewise.
535         * m4/signbit.m4: Likewise.
536         * m4/sinl.m4: Likewise.
537         * m4/sqrtl.m4: Likewise.
538         * m4/strerror_r.m4: Likewise.
539         * m4/tanl.m4: Likewise.
540         * m4/threadlib.m4: Likewise.
541         * m4/ttyname_r.m4: Likewise.
542         * m4/unlink.m4: Likewise.
543         * m4/visibility.m4: Likewise.
544         * m4/wcwidth.m4: Likewise.
545         * tests/minus-zero.h: Likewise.
546         * tests/test-alloca-opt.c: Likewise.
547         * tests/test-copy-acl.sh: Likewise.
548         * tests/test-copy-file.sh: Likewise.
549         * tests/test-fdatasync.c: Likewise.
550         * tests/test-file-has-acl.sh: Likewise.
551         * tests/test-flock.c: Likewise.
552         * tests/test-fsync.c: Likewise.
553         * tests/test-localename.c: Likewise.
554         * tests/test-malloca.c: Likewise.
555         * tests/test-nonblocking-pipe.h: Likewise.
556         * tests/test-nonblocking-socket.h: Likewise.
557         * tests/test-openpty.c: Likewise.
558         * tests/test-posix_openpt.c: Likewise.
559         * tests/test-ptsname.c: Likewise.
560         * tests/test-ptsname_r.c: Likewise.
561         * tests/test-sameacls.c: Likewise.
562         * tests/test-select.h: Likewise.
563         * tests/test-set-mode-acl.sh: Likewise.
564         * tests/test-snprintf-posix.h: Likewise.
565         * tests/test-sprintf-posix.h: Likewise.
566         * tests/test-strtod.c: Likewise.
567         * tests/test-time.c: Likewise.
568         * tests/test-vasnprintf-posix.c: Likewise.
569         * tests/test-vasprintf-posix.c: Likewise.
570         * doc/acl-resources.txt: Likewise.
571         * doc/**/*.texi: Likewise.
572         Reported by Max Horn <max@quendi.de>.
573
574 2012-06-22  Bruno Haible  <bruno@clisp.org>
575
576         grantpt: Relax requirement regarding invalid file descriptors.
577         * lib/grantpt.c: Don't include <fcntl.h>.
578         (grantpt): Don't verify the validity of the file descriptor.
579         * modules/grantpt (Depends-on): Remove fcntl-h.
580         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
581         file descriptors.
582         * doc/posix-functions/grantpt.texi: Document more platforms on which
583         grantpt succeeds for invalid file descriptors.
584         Reported by Rich Felker <dalias@aerifal.cx>.
585
586 2012-06-22  Bruno Haible  <bruno@clisp.org>
587
588         fbufmode test: Don't test unportable behaviour.
589         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
590         (main): Invoke it three times.
591         Reported by Szabolcs Nagy <nsz@port70.net>
592         and Rich Felker <dalias@aerifal.cx>.
593
594 2012-06-21  Bruno Haible  <bruno@clisp.org>
595
596         gnulib-tool: Refactor inctests variable.
597         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
598         (func_modules_transitive_closure,
599         func_modules_transitive_closure_separately,
600         func_import, func_create_testdir): Update.
601
602         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
603         * gnulib-tool: Accept option --without-tests.
604         (func_usage): Document --without-tests option. Rearrange.
605         (inctests): Normalize according to the mode.
606         * NEWS: Mention the change.
607         Suggested by Simon Josefsson.
608
609 2012-06-21  Bruce Korb  <bkorb@gnu.org>
610
611         parse-duration test: Avoid spurious output.
612         * tests/test-parse-duration.sh: Reindent with leading tabs.
613
614 2012-06-21  Jim Meyering  <meyering@redhat.com>
615
616         maint: disable the strncpy prohibition
617         * cfg.mk: Do not prohibit strncpy here.
618
619 2012-06-21  Bruno Haible  <bruno@clisp.org>
620
621         nonblocking: Avoid compilation error on mingw64.
622         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
623         fscanf.
624         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
625         * modules/vfscanf (configure.ac): Likewise.
626         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
627         definition only if stdio.h has prepared it.
628         Reported by Daniel P. Berrange <berrange@redhat.com>.
629
630 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
631
632         gnulib-tool: Use readlink if it is available.
633         * gnulib-tool (func_readlink): Choose function more appropriately.
634
635 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
636
637         posixtm-tests: port to buggy compiler
638         Problem reported by Simon Josefsson in
639         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00246.html>.
640         * modules/posixtm-tests (Depends-on): Add stdint.
641         * tests/test-posixtm.c (struct posixtm_test.t_expected):
642         Now of type int_least64_t, not int64_t, both because that's
643         what INT64_C returns and because int_least64_t works even
644         on 72-bit hosts.
645         (T): Use INT64_C on constants outside the traditional int range,
646         to work around compiler bug noted by Simon.
647
648         mktime: fix integer overflow in 'configure'-time test
649         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
650         after integer overflow.  Problem reported by Rich Felker in
651         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00257.html>.
652         Also, don't look for further instances of a bug if we've already
653         found one instance; this helps 'configure' run faster.
654
655 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
656
657         tmpfile, clean-temp: Fix invocation of GetVersionEx.
658         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
659         GetVersionEx correctly.
660         * lib/clean-temp.c (supports_delete_on_close): Likewise.
661
662 2012-06-20  Bruno Haible  <bruno@clisp.org>
663
664         fdopen: Allow implementations that don't reject invalid fd arguments.
665         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
666         succeeds.
667         Reported by Rich Felker <dalias@aerifal.cx>.
668
669 2012-06-20  Simon Josefsson  <simon@josefsson.org>
670
671         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
672         bring in LIBINTL.
673
674 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
675
676         init.sh: do not rely on autoupated PWD
677         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
678         <http://lists.gnu.org/archive/html/bug-gzip/2012-06/msg00008.html>.
679         Although Nelson's bug was not necessarily fixed by this patch,
680         it seems wise to make the change for safety.
681         * tests/init.sh (path_prepend_): Do not rely on PWD updating
682         automagically after 'cd'; this is not reliable on older shells.
683         (setup_): Fail if we cannot cd to temporary directory.
684
685 2012-06-19  Bruno Haible  <bruno@clisp.org>
686
687         stat, fstat: Avoid warnings on mingw64.
688         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
689         redefining.
690         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
691         Reported by Daniel P. Berrange <berrange@redhat.com>.
692
693 2012-06-19  Bruno Haible  <bruno@clisp.org>
694
695         stdioext: Add support for musl libc.
696
697         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
698         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
699
700         * m4/fseterr.m4: New file.
701         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
702         function exists.
703         * modules/fseterr (Files): Add m4/fseterr.m4.
704         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
705         __fseterr does not exist.
706         (Makefile.am): Remove fseterr.c from lib_SOURCES.
707
708         * lib/freadable.h: Update comment.
709
710         * lib/fwritable.h: Update comment.
711
712         * lib/freading.h: Update comment.
713
714         * lib/fwriting.h: Update comment.
715
716         * m4/freadahead.m4: New file.
717         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
718         that function exists.
719         * modules/freadahead (Files): Add m4/freadahead.m4.
720         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
721         __freadahead does not exist.
722         (Makefile.am): Remove freadahead.c from lib_SOURCES.
723
724         * m4/freadptr.m4: New file.
725         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
726         function exists.
727         * modules/freadptr (Files): Add m4/freadptr.m4.
728         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
729         __freadptr does not exist.
730         (Makefile.am): Remove freadptr.c from lib_SOURCES.
731
732         * m4/freadseek.m4: New file.
733         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
734         exists.
735         * modules/freadseek (Files): Add m4/freadseek.m4.
736         (configure.ac): Invoke gl_FUNC_FREADSEEK.
737
738         * lib/fpurge.c (fpurge): Update comment.
739
740         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
741
742 2012-06-19  Bruno Haible  <bruno@clisp.org>
743
744         *printf-posix: Put more info into config.log.
745         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
746         exit code into config.log.
747
748 2012-06-19  Bruno Haible  <bruno@clisp.org>
749
750         getopt-gnu: Fix exit code overflow in autoconf test.
751         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
752         to keep them below < 128.
753
754 2012-06-17  Jim Meyering  <meyering@redhat.com>
755
756         maint.mk: fix typo in code to derive GPG key at release time
757         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
758
759 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
760
761         regex: avoid warning when pointers are not long
762         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
763         and uintptr_t, not long, for portability to hosts where pointers and
764         long have different sizes.  Issue noted by Daniel P. Berrange in
765         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00122.html>
766         and fix suggested by Bruno Haible in
767         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00128.html>.
768
769 2012-06-17  Bruno Haible  <bruno@clisp.org>
770
771         dummy: Relicense into the public domain.
772         * modules/dummy (License): Set to "public domain".
773         Suggested by Reuben Thomas.
774
775 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
776
777         announce-gen: VPATH issues
778         * build-aux/announce-gen (--srcdir): New option, used to trim the
779         $srcdir part of the path from $builddir to NEWS.
780         * top/maint.mk (announcement): Adjust.
781
782 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
783
784         gnu-web-doc-update: VPATH builds
785         * build-aux/gnu-web-doc-update (--builddir): New option.
786         Revamp the handling of options.
787         Prefer $(...) to `...`.
788         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
789         the template, and it is GNU mktemp specific.
790         Prefer set -e to long series of &&.
791         Restore the initial git branch, not "master".
792         Properly initialize submodules (don't rely only on bootstrap).
793         Do not reconfigure blindly, use config.status.
794         * top/README-release: Update instructions for gnu-web-doc-update.
795
796 2012-06-11  Jim Meyering  <meyering@redhat.com>
797
798         maint.mk: revert most of the previous change re "all these"
799         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
800         For rationale, see the discussion at
801         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
802
803 2012-06-10  Karl Berry  <karl@gnu.org>
804
805         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
806
807         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
808
809 2012-06-10  Bruce Korb  <bkorb@gnu.org>
810
811         parse-duration: Relicense under LGPLv2+.
812         * modules/parse-duration (License): Change to LGPLv2+.
813
814 2012-06-10  Jim Meyering  <meyering@redhat.com>
815
816         maint.mk: prohibit common grammar error: "all these"
817         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
818         the list of prohibited word sequences.  It should be "all of these".
819         * lib/tempname.c (__gen_tempname): Fix one of them.
820
821 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
822
823         do-release-commit-and-tag: support VPATH builds
824         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
825         (noteworthy): Defined earlier to factor its value.
826         (noteworthy_stub): New.
827         Use it to factor.
828         (help_version): Split into...
829         (help, version): these.
830         Adjust the option processing part.
831         Support "--option=value" in addition to "--option value".
832         (builddir): New.
833         (--builddir): New option.
834         * top/README-release: Document this.
835         Reword slightly so that the reader cannot understand that he
836         has to do these steps before calling do-release-commit-and-tag.
837
838 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
839
840         readme-release: also require announce-gen and maintainer-makefile
841         * modules/readme-release (Depends-on): here.
842         * modules/announce-gen, modules/do-release-commit-and-tag,
843         modules/gnu-web-doc-update, modules/maintainer-makefile
844         (Description): Point to readme-release.
845
846 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
847
848         maint.mk: fix VPATH issues.
849         * top/maint.mk (news-check): GNU Make understand $< very well.
850         (release-prep): NEWS is in $(srcdir).
851
852 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
853
854         readme-release: require the promoted modules.
855         * modules/readme-release (Depends-on): Add
856         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
857         in this text.
858
859 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
860             Bruno Haible  <bruno@clisp.org>
861
862         error, strerror-override: Support mingw64 from Fedora 17.
863         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
864         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
865         EINPROGRESS.
866         * lib/strerror-override.h (strerror_override): Test it.
867         * lib/strerror-override.c (strerror_override): Likewise.
868         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
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_ENOTRECOVERABLE): Use a different
875         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
876         * lib/strerror-override.h (strerror_override): Test it.
877         * lib/strerror-override.c (strerror_override): Likewise.
878
879 2012-06-03  Bruno Haible  <bruno@clisp.org>
880
881         error, strerror-override: Support new errno values from POSIX:2008.
882         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
883         ENOTRECOVERABLE.
884         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
885         platforms.
886         * lib/strerror-override.c (strerror_override): Conditionalize the
887         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
888         * lib/strerror-override.h (strerror_override): Declare also if
889         GNULIB_defined_EOWNERDEAD is defined.
890         * tests/test-errno.c (e130, e131): New variables.
891         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
892         ENOTRECOVERABLE.
893         Reported by Paolo Bonzini.
894
895 2012-05-31  Jim Meyering  <meyering@redhat.com>
896
897         savewd: add missing dependency on sys_wait module
898         * modules/savewd (Depends-on): Add sys_wait, needed at least
899         for MSVC.  Report and suggested change by Michael Goffioul.
900
901 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
902
903         system-quote-tests: port to CentOS 5
904         Problem reported by Tom G. Christensen in
905         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00255.html>.
906         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
907
908 2012-05-29  Jim Meyering  <meyering@redhat.com>
909
910         maint: fix typos in comments and ChangeLog
911         Culprits identified and fixed mostly automatically using these commands:
912         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
913         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
914         using http://github.com/lyda/misspell-check
915         * ChangeLog: Fix typos.
916         * doc/solaris-versions: Likewise.
917         * lib/regexec.c (re_search_stub): Likewise.
918         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
919
920 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
921
922         manywarnings: remove duplicate -Wmultichar entry
923         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
924         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
925         so keep the entry marked as documented.
926
927 2012-05-27  Karl Berry  <karl@gnu.org>
928
929         * config/srclist.txt (mktime.c): remove last libc sync,
930         perhaps just temporarily.
931
932 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
933
934         regex: don't assume uint64_t or uint32_t
935         * lib/regcomp.c (init_word_char): Don't assume that the types
936         uint64_t and uint32_t exist.  The C standard doesn't guarantee
937         them, and on some 32-bit compilers there is no uint64_t.
938         Problem reported by Gianluigi Tiesi in
939         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html>.
940
941 2012-05-25  Jim Meyering  <meyering@redhat.com>
942
943         maint.mk: add strncpy-prohibiting syntax-check rule
944         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
945
946 2012-05-24  Jim Meyering  <meyering@redhat.com>
947
948         maint.mk: compute $(gpg_key_ID) more portably
949         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
950         That use of sed is not portable to some fringe systems.
951         Reported by Paul Eggert in
952         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
953
954 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
955
956         mktime: sync from glibc
957         * config/srclist.txt: Uncomment mktime.c.
958         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
959         First, indent with tabs, since glibc uses tabs and doesn't want to
960         change and we'd rather be identical to glibc.  Also, two small
961         coding changes:
962         (isdst_differ): Use &&, not &, as && is the usual style.
963         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
964         for clarity.
965
966 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
967
968         announce-gen: du -h is more portable than du --human
969         * build-aux/announce-gen (sizes): Invoke du with -h instead
970         of --human.  Accept leading white space in its output.
971
972 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
973
974         announce-gen: Improve diagnostics.
975         * build-aux/announce-gen: When parsing command line options,
976         prefer "announce-gen: option --release-type requires an argument"
977         to "Option release-type requires an argument".
978
979 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
980
981         maint.mk: gpg_key_ID: use sed more portably
982         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
983         the closing brace.
984         (refresh-po): Fuse two sed invocations into one.
985
986 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
987
988         gitlog-to-changelog: support the log message format used in Bison.
989         * build-aux/gitlog-to-changelog: Support --strip-tab and
990         --strip-cherry-picked.
991
992 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
993
994         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
995         the rest of the current time slice to another thread in the current
996         process. So if the thread that feeds the file decscriptor we're
997         polling is not in the current process, we get busy-waiting.
998         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
999         Patch from Theodore Leblond.
1000         * lib/select.c: Split polling out of the loop that sets the output
1001         fd_sets.  Check for zero result and loop if the wait timeout is
1002         infinite.
1003
1004 2012-05-21  Simon Josefsson  <simon@josefsson.org>
1005
1006         select: Fix build error on IRIX 6.5.
1007         * lib/select.c: Include stddef.h for NULL.
1008
1009 2012-05-21  Simon Josefsson  <simon@josefsson.org>
1010
1011         gc: fix libgcrypt detection on older machines.
1012         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
1013         copyright years because the file has been distributed every year
1014         since it was created.
1015
1016 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
1017
1018         crypto: fix bug in large buffer handling
1019         Problem reported by Serge Belyshev for glibc in
1020         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
1021         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00226.html>.
1022         * lib/md4.c (md4_process_block):
1023         * lib/md5.c (md5_process_block):
1024         * lib/sha1.c (sha1_process_block):
1025         * lib/sha256.c (sha256_process_block):
1026         Don't assume the buffer length is less than 2**32.
1027         * lib/sha512.c (sha512_process_block): Likewise.
1028         Here, the bug is present only in the rare case where the host does
1029         not support uint64_t or where size_t is wider than 64 bits.
1030         Use u64size to work around the problems.
1031         * lib/u64.h (u64size): New macro.
1032
1033 2012-05-15  Pádraig Brady  <P@draigBrady.com>
1034
1035         fsusage: fix block size returned on older Linux 2.6
1036
1037         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
1038         which is available since Linux 2.6.
1039         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
1040         when the member is available so it can be used as a fallback.
1041         * doc/posix-functions/statvfs.texi: Mention the hang issue
1042         on Linux < 2.6.36.
1043
1044 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
1045
1046         bootstrap: suppress stderr chatter
1047         * build-aux/bootstrap (insert_sorted_if_absent, main program):
1048         Omit unnecessary chatter to stderr.  The main program chatter
1049         was there only inadvertantly.
1050
1051         bootstrap: .gitignore files created by autopoint, libtool
1052         I ran into this problem when bootstrapping the latest diffutils.
1053         After './bootstrap', 'git status' reported lots of untracked files
1054         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
1055         autopoint and do not need to be version-controlled.
1056         * build-aux/bootstrap: Put into .gitignore the files that
1057         autopoint and libtool create, by keeping track of files that exist
1058         after but not before these programs are run.
1059         (version_controlled_file): Move up.  2nd arg is now full file
1060         name, not base name; this is more convenient.  Put CVS at the end,
1061         as it's now somewhat deprecated.
1062
1063 2012-05-14  Jim Meyering  <meyering@redhat.com>
1064
1065         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
1066         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
1067         definition.  Reported by Bruno Haible.
1068
1069 2012-05-13  Bruno Haible  <bruno@clisp.org>
1070             Paul Eggert  <eggert@cs.ucla.edu>
1071
1072         binary-io: Define set_binary_mode function.
1073         * lib/binary-io.h (set_binary_mode): New function.
1074         (SET_BINARY): Define in terms of set_binary_mode.
1075         * modules/binary-io (configure.ac): Require AC_C_INLINE.
1076         * tests/test-binary-io.c (main): Accept an argument, and test either
1077         set_binary_mode or SET_BINARY depending on the argument.
1078         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
1079         argument. Clean up also t-bin-out0.tmp.
1080
1081 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
1082
1083         bootstrap: take advantage of POSIX shell features
1084
1085         The 'bootstrap' script offered by Gnulib script already uses POSIX
1086         shell features (like $((...)) arithmetic expansions) that are not
1087         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
1088         means that bootstrap must already be run using a proper POSIX shell,
1089         which will thus provide more features, like ${var#pattern} parameter
1090         expansion or inversion of a command exit status with '!'.  We can
1091         thus use these features to improve the clarity and the performances
1092         of the bootstrap script.
1093
1094         Suggested by Eric Blake.
1095
1096         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
1097         of sed/expr plus command substitutions, to save some forks.  While
1098         we are at it, prefer the POSIX $(...) form of command substitution,
1099         rather than the legacy form `...` (since the former is visually
1100         clearer and interacts better with quoting), and prefer the idiom:
1101           "if ! CMD; then ACTION ..."
1102         over the idiom:
1103           "if CMD; then :; else ACTION ..."
1104         which was required by legacy Bourne shells not supporting '!'.
1105
1106 2012-05-12  Bruno Haible  <bruno@clisp.org>
1107
1108         system-quote: Add more comments.
1109         * lib/system-quote.h: Add more comments about wilcards and limitations.
1110         Suggested by Eli Zaretskii <eliz@gnu.org>.
1111
1112         sh-quote, system-quote: Add comments about wildcards.
1113         * lib/sh-quote.h: Clarify what happens with wildcard characters.
1114         * lib/system-quote.h: Likewise.
1115         Reported by Eli Zaretskii <eliz@gnu.org>.
1116
1117 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
1118
1119         fsusage: check for GNU/Linux statvfs problem dynamically
1120         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
1121         Define STAT_STATFS2_BSIZE too, since in this case the code now
1122         checks dynamically whether statvfs is reliable, falling back on
1123         Linux-style statfs otherwise.
1124         (statvfs_works): New function, for dynamically testing statvfs.
1125         (get_fs_usage) [STAT_STATVFS]: Use it.
1126         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
1127         statvfs on GNU/Linux hosts, since it's now done dynamically.
1128
1129 2012-05-10  Bruno Haible  <bruno@clisp.org>
1130
1131         system-quote, execute, spawn-pipe: Escape '?' on Windows.
1132         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
1133         '?' character.
1134         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
1135         * tests/test-system-quote-main.c (check_all): Check also strings like
1136         "??????????".
1137         Reported by Eli Zaretskii <eliz@gnu.org>.
1138
1139 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
1140
1141         _Noreturn: port config.h to gcc -Wundef
1142         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
1143         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
1144         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00147.html>.
1145
1146 2012-05-10  Bruno Haible  <bruno@clisp.org>
1147
1148         system-quote: Refactor.
1149         * lib/system-quote.h (system_quote_copy): Fix comment.
1150         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
1151         New functions, extracted from system_quote_copy.
1152         (system_quote_length, system_quote_copy): Use these functions.
1153         Reported by Paul Eggert.
1154
1155 2012-05-08  Bruno Haible  <bruno@clisp.org>
1156
1157         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
1158         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
1159
1160 2012-05-08  Bruno Haible  <bruno@clisp.org>
1161
1162         Tests for module 'system-quote'.
1163         * modules/system-quote-tests: New file.
1164         * tests/test-system-quote.sh: New file.
1165         * tests/test-system-quote-main.c: New file.
1166         * tests/test-system-quote-child.c: New file.
1167
1168         New module 'system-quote'.
1169         * lib/system-quote.h: New file.
1170         * lib/system-quote.c: New file.
1171         * modules/system-quote: New file.
1172
1173 2012-05-08  Bruno Haible  <bruno@clisp.org>
1174
1175         sh-quote: Make C++ safe and allow multiple inclusion.
1176         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
1177         declarations in extern "C".
1178
1179 2012-05-08  Bruno Haible  <bruno@clisp.org>
1180
1181         sh-quote tests: Make tests stricter.
1182         * tests/test-sh-quote.c (check_one): Check the return value of
1183         shell_quote_copy.
1184         (main): Check a string with a CR character. Check a string that
1185         contains UCHAR_MAX.
1186
1187 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
1188
1189         warnings.m4: provide a means to specify the program to compile.
1190         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
1191         (gl_WARN_ADD): here.
1192         Use gl_AS_VAR_APPEND.
1193         Support an argument to specify the program to compile.
1194         (gl_WARN_ADD): Accept an argument to specify the program to compile.
1195         AC_SUBST the WARN_CFLAGS when they are used.
1196         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
1197         leave this to gl_WARN_ADD.
1198
1199 2012-05-08  Eric Blake  <eblake@redhat.com>
1200
1201         doc: recommendations on gettext version
1202         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
1203         choice between versions.
1204         * DEPENDENCIES (gettext): Cover both approaches.
1205
1206 2012-05-08  Jim Meyering  <meyering@redhat.com>
1207
1208         init.sh: explain why EXEEXT support uses aliases rather than functions
1209         * tests/init.sh: Add a comment.
1210
1211         init.sh: don't let bash aliases interfere with tests
1212         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
1213         is bash.  This avoids problems for those who alias standard commands to
1214         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
1215         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
1216
1217 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
1218
1219         stdint: be more consistent with glibc, SunOS libc
1220         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
1221         (gl_int_fast16_t, gl_uint_fast16_t)
1222         (gl_int_fast32_t, gl_uint_fast32_t)
1223         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
1224         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
1225         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
1226         Be consistent with glibc by default, and with SunOS 5.10 and later
1227         if __sun is defined.  This lessens the likelihood of clashes if
1228         code compiled for older hosts is combined with code compiled for
1229         newer ones.  Problem reported by Niels Möller in
1230         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00074.html>.
1231
1232 2012-05-07  Eric Blake  <eblake@redhat.com>
1233
1234         isatty: relax license to LGPLv2+
1235         * modules/isatty (License): Relax license.
1236
1237 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
1238
1239         stat-size: comment fix
1240         * lib/stat-size.h: Remove obsolete comment about indenting.
1241
1242 2012-05-06  Bruno Haible  <bruno@clisp.org>
1243
1244         Tests for module 'sh-quote'.
1245         * modules/sh-quote-tests: New file.
1246         * tests/test-sh-quote.c: New file.
1247
1248 2012-05-06  Bruno Haible  <bruno@clisp.org>
1249
1250         sh-quote: Improve shell_quote_argv's signature.
1251         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
1252         * lib/sh-quote.c (shell_quote_argv): Likewise.
1253
1254 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
1255
1256         stdint: document issues with int_fast8_t etc.
1257         * doc/posix-headers/stdint.texi (stdint.h): Say that other
1258         stdint.h substitutes may define these types differently.  See
1259         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00071.html>.
1260
1261 2012-05-05  Bruno Haible  <bruno@clisp.org>
1262
1263         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
1264         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
1265         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
1266         or 'guessing no (mishandles large arguments)'.
1267
1268 2012-05-05  Bruno Haible  <bruno@clisp.org>
1269
1270         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
1271         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
1272         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
1273         set gl_cv_func_link_follows_symlink to "guessing no".
1274
1275 2012-05-05  Bruno Haible  <bruno@clisp.org>
1276
1277         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
1278         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
1279         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
1280         "guessing no".
1281         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
1282
1283 2012-05-05  Bruno Haible  <bruno@clisp.org>
1284
1285         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
1286         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
1287         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
1288         set gl_cv_struct_dirent_d_ino to "guessing yes".
1289
1290 2012-05-05  Bruno Haible  <bruno@clisp.org>
1291
1292         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
1293         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
1294         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
1295         "guessing yes".
1296
1297 2012-05-05  Bruno Haible  <bruno@clisp.org>
1298
1299         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
1300         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
1301         compiling to a glibc system, set gl_cv_func_signbit and
1302         gl_cv_func_signbit_gcc to "guessing yes".
1303
1304 2012-05-05  Bruno Haible  <bruno@clisp.org>
1305
1306         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
1307         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
1308         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
1309         to "guessing yes".
1310         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
1311         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
1312
1313 2012-05-05  Bruno Haible  <bruno@clisp.org>
1314
1315         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
1316         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
1317         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
1318         gl_cv_func_realpath_works to "guessing yes".
1319
1320 2012-05-05  Bruno Haible  <bruno@clisp.org>
1321
1322         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
1323         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
1324         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
1325
1326 2012-05-04  Bruno Haible  <bruno@clisp.org>
1327
1328         Tweak last commit.
1329         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
1330         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
1331
1332 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
1333
1334         unistd_h: make it easier to avoid sys_types_h
1335         This is useful for Emacs, which has its own method of porting to
1336         Windows, and which therefore does not need the sys_types_h module.
1337         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
1338         code moved here from gl_SYS_TYPES_H.
1339         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
1340         using the code directly.
1341         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
1342         gl_SYS_TYPES_H.
1343         * modules/sys_types (Files):
1344         * modules/unistd (Files): Add m4/off_t.m4.
1345
1346 2012-05-03  Bruno Haible  <bruno@clisp.org>
1347
1348         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
1349         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
1350         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
1351         "guessing yes" or "guessing no".
1352         (gl_FUNC_LSTAT): Update.
1353         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
1354         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
1355         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
1356
1357 2012-05-03  Bruno Haible  <bruno@clisp.org>
1358
1359         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
1360         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
1361         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
1362         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
1363         cross-compiling, choose the first alternative on glibc systems.
1364         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
1365
1366 2012-05-03  Bruno Haible  <bruno@clisp.org>
1367
1368         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
1369         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
1370         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
1371
1372 2012-05-03  Bruno Haible  <bruno@clisp.org>
1373
1374         chown: Avoid "guessing no" when cross-compiling to glibc systems.
1375         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
1376
1377 2012-05-03  Bruno Haible  <bruno@clisp.org>
1378
1379         Avoid "guessing no" guesses when cross-compiling to glibc systems.
1380         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
1381         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
1382         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
1383         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
1384         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
1385         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
1386         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
1387         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
1388         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
1389         compiling to glibc systems, set gl_cv_func_chown_slash_works,
1390         gl_cv_func_chown_ctime_works to "guessing yes".
1391         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
1392         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
1393         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
1394         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
1395         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
1396         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
1397         compiling to glibc systems, set gl_cv_func_open_directory_works to
1398         "guessing yes".
1399         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
1400         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
1401         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
1402         "guessing yes".
1403         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
1404         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
1405         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
1406         compiling to glibc systems, set gl_cv_func_floorf_ieee to
1407         "guessing yes".
1408         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
1409         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
1410         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
1411         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
1412         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
1413         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
1414         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
1415         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
1416         "guessing yes".
1417         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
1418         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
1419         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
1420         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
1421         "guessing yes".
1422         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
1423         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
1424         "guessing yes".
1425         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
1426         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
1427         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
1428         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
1429         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
1430         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
1431         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
1432         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
1433         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
1434         compiling to glibc systems, set gl_cv_func_log10f_ieee to
1435         "guessing yes".
1436         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
1437         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
1438         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
1439         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
1440         "guessing yes".
1441         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
1442         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
1443         "guessing yes".
1444         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
1445         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
1446         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
1447         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
1448         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
1449         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
1450         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
1451         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
1452         compiling to glibc systems, set gl_cv_func_mkfifo_works to
1453         "guessing yes".
1454         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
1455         compiling to glibc systems, set gl_cv_func_mknod_works to
1456         "guessing yes".
1457         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
1458         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
1459         "guessing yes".
1460         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
1461         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
1462         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
1463         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
1464         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
1465         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
1466         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
1467         compiling to glibc systems, set gl_cv_func_svid_putenv to
1468         "guessing yes".
1469         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
1470         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
1471         "guessing yes".
1472         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
1473         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
1474         "guessing yes".
1475         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
1476         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
1477         to "guessing yes".
1478         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
1479         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
1480         to "guessing yes".
1481         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
1482         compiling to glibc systems, set gl_cv_func_rmdir_works to
1483         "guessing yes".
1484         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
1485         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
1486         gl_cv_func_unlink_parent_fails to "guessing yes".
1487         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
1488         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
1489         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
1490         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
1491         gl_cv_func_rename_dest_works to "guessing yes".
1492         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
1493         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
1494         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
1495         compiling to glibc systems, set gl_cv_func_roundf_ieee to
1496         "guessing yes".
1497         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
1498         compiling to glibc systems, set gl_cv_func_roundl_ieee to
1499         "guessing yes".
1500         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
1501         compiling to glibc systems, set gl_cv_func_setenv_works to
1502         "guessing yes".
1503         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
1504         compiling to glibc systems, set gl_cv_func_unsetenv_works to
1505         "guessing yes".
1506         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
1507         compiling to glibc systems, set gl_cv_func_sleep_works to
1508         "guessing yes".
1509         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
1510         compiling to glibc systems, set gl_cv_func_stat_file_slash to
1511         "guessing yes".
1512         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
1513         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
1514         "guessing yes".
1515         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
1516         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
1517         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
1518         compiling to glibc systems, set gl_cv_func_truncf_ieee to
1519         "guessing yes".
1520         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
1521         compiling to glibc systems, set gl_cv_func_truncl_ieee to
1522         "guessing yes".
1523         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
1524         compiling to glibc systems, set gl_cv_func_usleep_works to
1525         "guessing yes".
1526         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
1527         compiling to glibc systems, set gl_cv_func_futimesat_works to
1528         "guessing yes".
1529
1530 2012-05-03  Bruno Haible  <bruno@clisp.org>
1531
1532         Say "guessing yes" or "guessing no" when cross-compiling.
1533         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
1534         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
1535         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
1536         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
1537         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
1538         am_cv_func_working_getline to "guessing yes" or "guessing no".
1539         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
1540         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
1541         (gl_FUNC_MEMMEM): When cross-compiling, set
1542         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
1543         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
1544         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
1545         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
1546         set gl_cv_func_strcasestr_works_always to "guessing yes" or
1547         "guessing no".
1548         (gl_FUNC_STRCASESTR): When cross-compiling, set
1549         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
1550         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
1551         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
1552         (gl_FUNC_STRSTR): When cross-compiling, set
1553         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
1554         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
1555         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
1556         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
1557         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
1558
1559 2012-05-01  Bruno Haible  <bruno@clisp.org>
1560
1561         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
1562         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
1563         * build-aux/reloc-ldflags: Likewise.
1564         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
1565
1566 2012-05-01  Bruno Haible  <bruno@clisp.org>
1567
1568         gnulib-tool: Remove transitional code.
1569         * gnulib-tool: Don't warn about --import with 0 arguments any more.
1570         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
1571
1572 2012-05-01  Bruno Haible  <bruno@clisp.org>
1573
1574         getcwd: Fix misindentation.
1575         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
1576
1577 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
1578
1579         exclude: process exclude and include directives in order
1580         This restores the pre-2009 behavior, and is part of a fix of a
1581         grep bug reported by Quentin Arce in
1582         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
1583         * lib/exclude.c (struct exclude): Remove 'tail' member.
1584         (new_exclude_segment): Prepend the new segment instead of appending.
1585         Return void, since that's now more convenient.
1586         (file_pattern_matches): Renamed from excluded_file_pattern_p.
1587         (file_name_matches): Renamed from excluded_file_name_p.
1588         (file_pattern_matches, file_name_matches):
1589         Return true if the pattern matches, not if it excludes.
1590         All callers changed.
1591         (excluded_file_name): Process the list in reverse order;
1592         since the list is now reversed this restores the pre-2009 behavior.
1593         (add_exclude): Adjust to new reversed-order list.  Use local var
1594         rather than macro, for clarity.
1595         * tests/test-exclude7.sh: Adjust to corrected behavior.
1596
1597         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
1598         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
1599         it's not possible here.  Handle the case of \ at end of pattern
1600         without dumping core.
1601         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
1602
1603         _Noreturn: future-proof non-GNU and non-MSVC compilers
1604         * build-aux/snippet/_Noreturn.h (_Noreturn):
1605         * m4/gnulib-common.m4 (gl_COMMON_BODY):
1606         Do not define _Noreturn if __STDC_VERSION__ indicates this is
1607         C11 or later.  This is more likely to work with random future C
1608         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
1609         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
1610
1611         exclude: handle wildcards with FNM_EXTMATCH
1612         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
1613         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
1614         comment that "has wildcards" really means "has or may have
1615         wildcards".  Simplify by avoiding the need to call strcspn.
1616
1617 2012-04-29  Bruno Haible  <bruno@clisp.org>
1618
1619         gnulib-tool: Fix list of authors.
1620         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
1621
1622 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
1623
1624         bootstrap: support Automake-NG in $buildreq
1625         * bootstrap (check_versions): Handle automake and aclocal from
1626         Automake-NG specially.  They can be specified as respectively
1627         the "automake-ng" and "aclocal-ng" requirements.
1628
1629 2012-04-25  Eric Blake  <eblake@redhat.com>
1630
1631         bootstrap: only force latest Makefile.in.in for gettext module
1632         * build-aux/bootstrap (with_gettext): Only install latest
1633         Makefile.in.in for projects requesting bleeding edge gettext.
1634
1635 2012-04-22  Bruno Haible  <bruno@clisp.org>
1636
1637         doc: Mention reason for replacement on glibc/Linux systems.
1638         * doc/posix-functions/dprintf.texi: Mention the problem with special
1639         'long double' values.
1640         * doc/posix-functions/fprintf.texi: Likewise.
1641         * doc/posix-functions/printf.texi: Likewise.
1642         * doc/posix-functions/snprintf.texi: Likewise.
1643         * doc/posix-functions/sprintf.texi: Likewise.
1644         * doc/posix-functions/vdprintf.texi: Likewise.
1645         * doc/posix-functions/vfprintf.texi: Likewise.
1646         * doc/posix-functions/vprintf.texi: Likewise.
1647         * doc/posix-functions/vsnprintf.texi: Likewise.
1648         * doc/posix-functions/vsprintf.texi: Likewise.
1649         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
1650         platforms with F_DUPFD_CLOEXEC problems.
1651         * doc/posix-functions/glob.texi: Mention which platforms are affected
1652         by the problem with symbolic links.
1653         * doc/posix-functions/linkat.texi: Mention the problem with
1654         AT_SYMLINK_FOLLOW on Linux.
1655
1656 2012-04-22  Bruno Haible  <bruno@clisp.org>
1657
1658         pwrite: Don't replace on all platforms.
1659         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
1660
1661 2012-04-22  Bruno Haible  <bruno@clisp.org>
1662
1663         rint* tests: Avoid gcc warnings.
1664         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
1665         * tests/test-rintf.c (INFINITY, NAN): Likewise.
1666         * tests/test-rintl.c (INFINITY, NAN): Likewise.
1667
1668 2012-04-21  Bruno Haible  <bruno@clisp.org>
1669
1670         users.txt: Update.
1671         * users.txt: Add freedink, wdiff. Update URLs for projects that have
1672         switched from CVS to git, bzr, or svn.
1673
1674 2012-04-21  Bruno Haible  <bruno@clisp.org>
1675
1676         Large File Support for native Windows platforms.
1677
1678         * m4/largefile.m4 (gl_LARGEFILE): New macro.
1679         * modules/largefile (configure.ac): Require gl_LARGEFILE.
1680
1681         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
1682         type.
1683         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
1684         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
1685         * doc/posix-headers/sys_types.texi: Mention the effect of the
1686         'largefile' module.
1687
1688         * lib/fcntl.in.h: Add comments about off_t.
1689         * modules/fcntl-h (Depends-on): Add sys_types.
1690
1691         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
1692         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
1693         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
1694         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
1695         * modules/unistd (Depends-on): Add sys_types.
1696         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
1697
1698         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
1699         instead of lseek.
1700         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
1701         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
1702         * modules/lseek (Depends-on): Add sys_types.
1703
1704         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
1705         msvc-nothrow.h.
1706         (SetFileSize): New function.
1707         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
1708         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
1709         if Large File Support is requested.
1710         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
1711         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
1712
1713         * lib/stdio.in.h: Add comments about off_t.
1714         * modules/stdio (Depends-on): Add sys_types.
1715
1716         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
1717         instead of ftello.
1718         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
1719         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
1720         (gl_PREREQ_FTELLO): New macro.
1721         * modules/ftello (Depends-on): Add sys_types.
1722         (configure.ac): Incoke gl_PREREQ_FTELLO.
1723
1724         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
1725         instead of fseeko.
1726         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
1727         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
1728         (gl_PREREQ_FSEEKO): New macro.
1729         * modules/fseeko (Depends-on): Add sys_types.
1730         (configure.ac): Invoke gl_PREREQ_FSEEKO.
1731
1732         * lib/sys_stat.in.h: Add comments about off_t.
1733         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
1734         64-bit integer for st_size in 'struct stat'.
1735         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
1736         Define _GL_WINDOWS_64_BIT_ST_SIZE.
1737         * modules/sys_stat (Depends-on): Add sys_types.
1738         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
1739
1740         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
1741         instead of stat or _stat.
1742
1743         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
1744         'struct _stati64' instead of fstat and 'struct stat'.
1745         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
1746         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
1747
1748         Reported by Ray Satiro <raysatiro@yahoo.com>.
1749
1750 2012-04-19  Eric Blake  <eblake@redhat.com>
1751
1752         bootstrap: accommodate older libtool
1753         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
1754         Reported by Daniel P. Berrange.
1755
1756 2012-04-19  Jim Meyering  <meyering@redhat.com>
1757
1758         announce-gen: avoid failure due to lack of Digest::SHA1
1759         Even with the preferred Digest::SHA available, this script
1760         would fail when the backup module, Digest::SHA1, was not installed.
1761         * build-aux/announce-gen: Quote the conditional use of "use".
1762         Reported by Reuben Thomas in:
1763         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
1764
1765         bootstrap: don't let a user's CDPATH setting affect this script
1766         When CDPATH is set, cd will sometimes generate output.
1767         When "cd" is run in a subshell whose output matters, that
1768         surprising-to-some output can cause malfunction.
1769         Unsetting CDPATH turns off this shell "feature."
1770         * build-aux/bootstrap (CDPATH): Unset.
1771         Reported by Reuben Thomas in:
1772         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
1773         and inspired by his patch here:
1774         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
1775
1776 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
1777         and Jim Meyering  <meyering@redhat.com>
1778
1779         maint.mk: catch "see @xref{}" and similar
1780         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
1781         prohibit "See also @xref{", "Also see @pxref{", and similar.
1782
1783 2012-04-16  Jim Meyering  <meyering@redhat.com>
1784
1785         bootstrap: really use gnulib's po/Makefile.in.in
1786         * build-aux/bootstrap: Correct the source file name in previous change.
1787         Reported by Akim Demaille.
1788
1789         configmake: correct minor inconsistency in Makefile rule
1790         * modules/configmake (Makefile.am): All other rules like this one
1791         run the final "mv -f ..." in the same backslash-continued command
1792         as the one that does everything else.  This one put the mv -f ...
1793         command on a separate, non-backslash-continued line.
1794         Make it like the others.
1795
1796         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
1797         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
1798         the one from gettext.  Reported by Akim Demaille.
1799
1800 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
1801
1802         Fix recursion of install-* into po directories.
1803         Bison's install-pdf bug reported by Hans Aberg at
1804         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
1805         * build-aux/po/Makefile.in.in (install-dvi, install-html)
1806         (install-info, install-pdf, install-ps): New targets.
1807
1808 2012-04-16  Jim Meyering  <meyering@redhat.com>
1809
1810         maint: avoid spurious "make sc_maint" failure
1811         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
1812         exempt all *.class file names, for lib/javaversion.class.
1813
1814 2012-04-15  Bruno Haible  <bruno@clisp.org>
1815
1816         lseek: Make configure test independent of environment.
1817         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
1818         Windows, we know that lseek() on pipes is broken; skip the runtime
1819         test.
1820
1821 2012-04-14  Bruno Haible  <bruno@clisp.org>
1822
1823         stat: Bypass buggy override in mingw64.
1824         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
1825         * lib/stat.c (stat) [mingw64]: Define to _stat.
1826         * doc/posix-functions/stat.texi: Mention mingw64 bug.
1827
1828 2012-04-14  Bruno Haible  <bruno@clisp.org>
1829
1830         pathmax: Fix compilation error on MSVC 9.
1831         * modules/pathmax (Depends-on): Add unistd.
1832
1833 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
1834
1835         README: document pointer comparison assumption
1836         * README (Portability guidelines): Document assumption about
1837         pointer comparisons, in response to a recent bug-gnulib comment by
1838         Jeffrey Kegler.
1839
1840 2012-04-12  Bruno Haible  <bruno@clisp.org>
1841
1842         Tests for module 'getrusage'.
1843         * modules/getrusage-tests: New file.
1844         * tests/test-getrusage.c: New file.
1845
1846         New module 'getrusage'.
1847         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
1848         warn-on-use.h.
1849         (getrusage): New declaration.
1850         * lib/getrusage.c: New file.
1851         * m4/getrusage.m4: New file.
1852         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
1853         is declared.
1854         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
1855         HAVE_GETRUSAGE.
1856         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
1857         snippet/c++defs, snippet/warn-on-use.
1858         (Makefile.am): Update generation of sys/resource.h. Substitute
1859         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
1860         * modules/getrusage: New file.
1861         * doc/posix-functions/getrusage.texi: Mention the new module.
1862
1863 2012-04-12  Bruno Haible  <bruno@clisp.org>
1864
1865         Tests for module 'sys_resource'.
1866         * modules/sys_resource-tests: New file.
1867         * tests/test-sys_resource.c: New file.
1868
1869         New module 'sys_resource'.
1870         * lib/sys_resource.in.h: New file.
1871         * m4/sys_resource_h.m4: New file.
1872         * modules/sys_resource: New file.
1873         * doc/posix-headers/sys_resource.texi: Mention the new module.
1874
1875 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
1876
1877         ioctl: Fix compilation error on mingw.
1878         * lib/ioctl.c: Include <windows.h>.
1879         Also reported by Ray Satiro <raysatiro@yahoo.com>.
1880
1881 2012-04-04  Jim Meyering  <meyering@redhat.com>
1882
1883         regex: correct #pragma guard expression
1884         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
1885         not 4.3.  Correct its cpp guard expression.
1886
1887 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
1888
1889         regex: remove unnecessary type punning
1890         Problem reported by Vladimir Serbinenko in
1891         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
1892         * lib/regex.h (struct re_pattern_buffer): Change the type of
1893         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
1894         Fix comment to match code.
1895         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
1896         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
1897         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
1898         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
1899         (set_regs):
1900         Omit no-longer-necessary casts.
1901
1902 2012-04-03  Bruno Haible  <bruno@clisp.org>
1903
1904         Tests for module 'ilogbl'.
1905         * modules/ilogbl-tests: New file.
1906         * tests/test-ilogbl.c: New file.
1907
1908         New module 'ilogbl'.
1909         * lib/math.in.h (ilogbl): New declaration.
1910         * lib/ilogbl.c: New file.
1911         * m4/ilogbl.m4: New file.
1912         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
1913         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
1914         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
1915         Split sed invocation, to avoid the limit of 100 substitutions of
1916         HP-UX 'sed'.
1917         * modules/ilogbl: New file.
1918         * tests/test-math-c++.cc: Check the declaration of ilogbl.
1919         * doc/posix-functions/ilogbl.texi: Mention the new module.
1920
1921 2012-04-03  Bruno Haible  <bruno@clisp.org>
1922
1923         Tests for module 'ilogbf'.
1924         * modules/ilogbf-tests: New file.
1925         * tests/test-ilogbf.c: New file.
1926
1927         New module 'ilogbf'.
1928         * lib/math.in.h (ilogbf): New declaration.
1929         * lib/ilogbf.c: New file.
1930         * m4/ilogbf.m4: New file.
1931         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
1932         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
1933         REPLACE_ILOGBF.
1934         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
1935         REPLACE_ILOGBF.
1936         * modules/ilogbf: New file.
1937         * tests/test-math-c++.cc: Check the declaration of ilogbf.
1938         * doc/posix-functions/ilogbf.texi: Mention the new module.
1939
1940 2012-04-03  Bruno Haible  <bruno@clisp.org>
1941
1942         Tests for module 'ilogb'.
1943         * modules/ilogb-tests: New file.
1944         * tests/test-ilogb.c: New file.
1945         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
1946         tests/test-logb-ieee.h.
1947
1948         New module 'ilogb'.
1949         * lib/math.in.h (ilogb): New declaration.
1950         * lib/ilogb.c: New file.
1951         * m4/ilogb.m4: New file.
1952         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
1953         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
1954         REPLACE_ILOGB.
1955         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
1956         REPLACE_ILOGB.
1957         * modules/ilogb: New file.
1958         * tests/test-math-c++.cc: Check the declaration of ilogb.
1959         * doc/posix-functions/ilogb.texi: Mention the new module.
1960
1961 2012-04-03  Bruno Haible  <bruno@clisp.org>
1962
1963         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
1964         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
1965         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
1966         (main): Check their values.
1967         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
1968         problem.
1969
1970 2012-04-03  Bruno Haible  <bruno@clisp.org>
1971
1972         Tests for module 'logbl-ieee'.
1973         * modules/logbl-ieee-tests: New file.
1974         * tests/test-logbl-ieee.c: New file.
1975
1976         New module 'logbl-ieee'.
1977         * modules/logbl-ieee: New file.
1978
1979         Tests for module 'logb-ieee'.
1980         * modules/logb-ieee-tests: New file.
1981         * tests/test-logb-ieee.c: New file.
1982
1983         New module 'logb-ieee'.
1984         * modules/logb-ieee: New file.
1985
1986         Tests for module 'logbf-ieee'.
1987         * modules/logbf-ieee-tests: New file.
1988         * tests/test-logbf-ieee.c: New file.
1989         * tests/test-logb-ieee.h: New file.
1990
1991         New module 'logbf-ieee'.
1992         * modules/logbf-ieee: New file.
1993
1994 2012-04-03  Bruno Haible  <bruno@clisp.org>
1995
1996         Tests for module 'logbl'.
1997         * modules/logbl-tests: New file.
1998         * tests/test-logbl.c: New file.
1999
2000         New module 'logbl'.
2001         * lib/math.in.h (logbl): New declaration.
2002         * lib/logbl.c: New file.
2003         * m4/logbl.m4: New file.
2004         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
2005         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
2006         REPLACE_LOGBL.
2007         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
2008         REPLACE_LOGBL.
2009         * modules/logbl: New file.
2010         * tests/test-math-c++.cc: Check the declaration of logbl.
2011         * doc/posix-functions/logbl.texi: Mention the new module.
2012
2013 2012-04-02  Bruno Haible  <bruno@clisp.org>
2014
2015         Tests for module 'logbf'.
2016         * modules/logbf-tests: New file.
2017         * tests/test-logbf.c: New file.
2018
2019         New module 'logbf'.
2020         * lib/math.in.h (logbf): New declaration.
2021         * lib/logbf.c: New file.
2022         * m4/logbf.m4: New file.
2023         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
2024         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
2025         REPLACE_LOGBF.
2026         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
2027         REPLACE_LOGBF.
2028         * modules/logbf: New file.
2029         * tests/test-math-c++.cc: Check the declaration of logbf.
2030         * doc/posix-functions/logbf.texi: Mention the new module.
2031
2032 2012-04-02  Bruno Haible  <bruno@clisp.org>
2033
2034         logb tests: More tests.
2035         * tests/test-logb.h: New file, based on tests/test-logb.c and
2036         tests/test-frexp.h.
2037         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
2038         (main): Just invoke test_function.
2039         * modules/logb-tests (Files): Add tests/test-logb.h,
2040         tests/minus-zero.h, tests/randomd.c.
2041         (Makefile.am): Add randomd.c to test_logb_SOURCES.
2042
2043         logb: Provide replacement and workarounds.
2044         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
2045         is 1.
2046         * lib/logb.c: New file.
2047         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
2048         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
2049         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
2050         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
2051         * modules/logb (Files): Add lib/logb.c.
2052         (Depends-on): Add isfinite, frexp, isnand.
2053         (configure.ac): Compile the replacement code logb.c if needed.
2054         * tests/test-math-c++.cc: Check the declaration of logb.
2055         * doc/posix-functions/logb.texi: Mention the replacement and the bug
2056         with subnormal numbers.
2057
2058 2012-04-02  Bruno Haible  <bruno@clisp.org>
2059
2060         log10* tests: Speed up.
2061         * tests/test-log10.h (test_function): Reduce amount of random numbers
2062         to test.
2063
2064 2012-04-01  Bruno Haible  <bruno@clisp.org>
2065
2066         logf-ieee: Fix test whether logf works.
2067         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
2068
2069 2012-04-01  Bruno Haible  <bruno@clisp.org>
2070
2071         log10l: Work around log10l-ieee test failure on IRIX 6.5.
2072         * lib/log10l.c: Include <float.h>
2073         (log10l): On IRIX, normalize the +Infinity value.
2074         * modules/log10l (Depends-on): Add 'float'.
2075         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
2076         +Infinity.
2077
2078         log10f-ieee: Work around test failure on NetBSD 5.1.
2079         * m4/log10f-ieee.m4: New file.
2080         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
2081         test whether log10f works with a negative argument. Replace it if not.
2082         * lib/log10f.c (log10f): For negative arguments, return NaN.
2083         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
2084         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
2085         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
2086
2087         log10f-ieee: Work around test failure on Solaris 9.
2088         * modules/log10f-ieee (Depends-on): Add log10-ieee.
2089         (configure.ac): Require gl_FUNC_LOG10F.
2090
2091         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
2092         * m4/log10-ieee.m4: New file.
2093         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
2094         whether log10 works with a negative argument. Replace it if not.
2095         * lib/log10.c (log10): For negative arguments, return NaN.
2096         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
2097         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
2098         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
2099
2100         Tests for module 'log10l-ieee'.
2101         * modules/log10l-ieee-tests: New file.
2102         * tests/test-log10l-ieee.c: New file.
2103
2104         New module 'log10l-ieee'.
2105         * modules/log10l-ieee: New file.
2106
2107         Tests for module 'log10-ieee'.
2108         * modules/log10-ieee-tests: New file.
2109         * tests/test-log10-ieee.c: New file.
2110
2111         New module 'log10-ieee'.
2112         * modules/log10-ieee: New file.
2113
2114         Tests for module 'log10f-ieee'.
2115         * modules/log10f-ieee-tests: New file.
2116         * tests/test-log10f-ieee.c: New file.
2117         * tests/test-log10-ieee.h: New file.
2118
2119         New module 'log10f-ieee'.
2120         * modules/log10f-ieee: New file.
2121
2122 2012-04-01  Bruno Haible  <bruno@clisp.org>
2123
2124         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
2125         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
2126         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
2127         workaround.
2128         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
2129         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
2130         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
2131         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
2132         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
2133         (Depends-on): Update conditions.
2134         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
2135         IRIX 6.5, OSF/1 5.1 problems.
2136
2137 2012-04-01  Bruno Haible  <bruno@clisp.org>
2138
2139         log10f: Work around OSF/1 5.1 bug.
2140         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
2141         * lib/log10f.c (log10f): If logf exists, use it and provide just the
2142         workaround.
2143         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
2144         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
2145         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
2146         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
2147         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
2148         (Depends-on): Update conditions.
2149         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
2150
2151 2012-04-01  Bruno Haible  <bruno@clisp.org>
2152
2153         log10: Work around OSF/1 5.1 bug.
2154         * lib/math.in.h (log10): New declaration.
2155         * lib/log10.c: New file.
2156         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
2157         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
2158         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
2159         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
2160         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
2161         * modules/log10 (Files): Add lib/log10.c.
2162         (Depends-on): Add math.
2163         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
2164         * tests/test-math-c++.cc: Check the declaration of log10.
2165         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
2166
2167 2012-03-31  Bruno Haible  <bruno@clisp.org>
2168
2169         log10l tests: More tests.
2170         * modules/log10l-tests (Files): Add tests/test-log10l.h,
2171         tests/minus-zero.h, tests/randoml.c.
2172         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
2173         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
2174         (main): Invoke test_function.
2175
2176         log10f tests: More tests.
2177         * modules/log10f-tests (Files): Add tests/test-log10.h,
2178         tests/minus-zero.h, tests/randomf.c.
2179         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
2180         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
2181         (main): Invoke test_function.
2182
2183         log10 tests: More tests.
2184         * tests/test-log10.h: New file.
2185         * modules/log10-tests (Files): Add tests/test-log10.h,
2186         tests/minus-zero.h, tests/randomd.c.
2187         (Makefile.am): Add randomd.c to test_log10_SOURCES.
2188         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
2189         (main): Invoke test_function.
2190
2191 2012-03-31  Simon Josefsson  <simon@josefsson.org>
2192
2193         fflush: Fix syntax error.
2194         * lib/fflush.c: Include unused-parameter.h, needed for
2195         _GL_UNUSED_PARAMETER.
2196         * modules/fflush (Depends-on): Add snippet/unused-parameter.
2197
2198 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
2199
2200         regex: pacify GCC when compiling GRUB
2201         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
2202         a diagnostic.  Reported by Vladimir Serbinenko in
2203         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
2204
2205 2012-03-29  Eric Blake  <eblake@redhat.com>
2206
2207         stdio: don't assume gets any more
2208         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
2209         support.
2210         * modules/stdio (Makefile.am): Likewise.
2211         * lib/stdio-read.c (gets): Likewise.
2212         * tests/test-stdio-c++.cc: Likewise.
2213         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
2214         * lib/stdio.in.h (gets): Make warning occur in more places.
2215         * doc/posix-functions/gets.texi (gets): Update documentation.
2216         Reported by Christer Solskogen.
2217
2218         maint.mk: fix syntax checks without exclusions
2219         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
2220         Reported by Daniel P. Berrange.
2221
2222         strerror_r: avoid compiler warning
2223         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
2224         level.
2225
2226         fflush: avoid compiler warning
2227         * lib/fflush.c (update_fpos_cache): Mark variables that are
2228         potentially unused.
2229
2230 2012-03-25  Bruno Haible  <bruno@clisp.org>
2231
2232         Tests for module 'localeconv'.
2233         * modules/localeconv-tests: New file.
2234         * tests/test-localeconv.c: New file.
2235
2236         New module 'localeconv'.
2237         * lib/locale.in.h (localeconv): New declaration.
2238         * lib/localeconv.c: New file.
2239         * m4/localeconv.m4: New file.
2240         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
2241         REPLACE_LOCALECONV.
2242         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
2243         REPLACE_LOCALECONV.
2244         * modules/localeconv: New file.
2245         * modules/nl_langinfo (Depends-on): Add localeconv.
2246         * modules/human (Depends-on): Likewise.
2247         * doc/posix-functions/localeconv.texi: Mention the new module.
2248
2249 2012-03-25  Bruno Haible  <bruno@clisp.org>
2250
2251         locale: Provide a complete 'struct lconv'.
2252         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
2253         'struct lconv' does not contain int_p_cs_precedes.
2254         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
2255         * doc/posix-headers/locale.texi: Update.
2256
2257         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
2258         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
2259         * doc/posix-headers/locale.texi: Update.
2260
2261         locale: Provide a working 'struct lconv'.
2262         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
2263         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
2264         'struct lconv' does not even contain decimal_point.
2265         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
2266         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
2267         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
2268         * doc/posix-headers/locale.texi: Mention the problems with
2269         'struct lconv'.
2270         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
2271
2272 2012-03-24  Bruno Haible  <bruno@clisp.org>
2273
2274         Enable common subexpression optimization in GCC.
2275         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
2276         macros.
2277         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
2278         GCC attribute 'const'.
2279         (uc_locale_language): Declare with GCC attribute 'pure'.
2280         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
2281         with GCC attribute 'const'.
2282         * lib/unictype.in.h (uc_is_general_category_withtable,
2283         uc_combining_class, uc_combining_class_name,
2284         uc_combining_class_long_name, uc_bidi_class_name,
2285         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
2286         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
2287         uc_decimal_value, uc_digit_value, uc_numeric_value,
2288         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
2289         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
2290         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
2291         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
2292         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
2293         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
2294         Declare with GCC attribute 'const'.
2295         (uc_general_category_name, uc_general_category_long_name,
2296         uc_general_category_byname, uc_general_category,
2297         uc_is_general_category, uc_combining_class_byname,
2298         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
2299         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
2300         Declare with GCC attribute 'pure'.
2301         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
2302         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
2303         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
2304         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
2305         with GCC attribute 'pure'.
2306         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
2307         'const'.
2308         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
2309         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
2310         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
2311         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
2312         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
2313         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
2314         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
2315         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
2316         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
2317         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
2318         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
2319         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
2320         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
2321         GCC attribute 'pure'.
2322         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
2323         'const'.
2324         * lib/uniwidth.in.h (uc_width): Simplify declaration.
2325         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
2326         u32_strwidth): Declare with GCC attribute 'pure'.
2327
2328         Enable common subexpression optimization in GCC.
2329         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
2330         (alphasort): Declare with GCC attribute 'pure'.
2331         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
2332         (atoll): Declare with GCC attribute 'pure'.
2333         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
2334         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
2335         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
2336         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
2337         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
2338         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
2339         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
2340
2341 2012-03-24  Bruno Haible  <bruno@clisp.org>
2342
2343         gnulib-tool: Avoid unintended error output from 'cmp'.
2344         * gnulib-tool (func_add_file, func_update_file, func_import): Use
2345         "cmp -s", not "cmp > /dev/null".
2346
2347 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
2348
2349         gnulib-tool: fix imprecise comments w.r.t. an automake bug
2350
2351         It's not just Automake versions < 1.9b that creates an empty
2352         pkgdatadir at installation time if pkgdata_DATA is specified
2353         to empty; modern automake versions do this as well, at least
2354         until automake 1.11.4 (not yet released at the moment of writing,
2355         but soon to appear).  That behaviour was generally considered a
2356         feature rather than a bug, at least until this discussion:
2357         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
2358
2359         See also automake bugs #10997 and #11030.
2360
2361         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
2362         reference to relevant automake bug numbers.
2363         (func_emit_tests_Makefile_am): Likewise.
2364
2365 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
2366
2367         announce-gen: use Digest::SHA when possible
2368         * build-aux/announce-gen: Use Digest::SHA when possible, falling
2369         back to Digest::SHA1 if necessary.
2370
2371 2012-03-20  Jim Meyering  <meyering@redhat.com>
2372
2373         tests: avoid gcc warnings about argv vs. const initializers
2374         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
2375         warnings about discarding 'const' qualifier from pointer target type.
2376         * tests/test-posix_spawn2.c (main): Likewise.
2377
2378 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
2379
2380         README-release: simplify slightly
2381         * top/README-release: Run "git checkout master" only once.
2382
2383 2012-03-15  Mark Wielaard  <mark@klomp.org>
2384
2385         git-merge-changelog: add specific example on how to use with hg.
2386         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
2387
2388 2012-03-18  Mark Wielaard  <mark@klomp.org>
2389
2390         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
2391
2392 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
2393
2394         git-version-gen: don't let "prefix" envvar cause trouble
2395         * build-aux/git-version-gen (prefix): Initialize properly,
2396         so as not to use a value specified via the environment.
2397         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
2398
2399 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
2400
2401         regex: diagnose too-large repeat counts in EREs
2402         Previously, the code did not diagnose the too-large repeat count
2403         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
2404         as if it were 'b\{1000000000}', which is unexpected.
2405         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
2406         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
2407         is a reasonable one for this problem.  Another option would be to
2408         create a new REG_OVERFLOW error for repeat counts that are too large.
2409         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
2410         count is too large, so that the caller can distinguish the two cases.
2411         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
2412         "Too large" return code, and that repeat counts are one example of this.
2413
2414 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
2415
2416         doc: some glibc x32 integer width issues
2417         * doc/posix-headers/sys_types.texi (sys/types.h):
2418         * doc/posix-headers/time.texi (time.h):
2419         Mention that glibc x32 does not conform to POSIX in a couple of
2420         areas related to integer widths.
2421
2422 2012-03-15  Bruno Haible  <bruno@clisp.org>
2423
2424         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
2425         * lib/fma.c (VOLATILE): New macro.
2426         (FUNC): Use it to work around a GCC compiler bug.
2427
2428 2012-03-13  Bruno Haible  <bruno@clisp.org>
2429
2430         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
2431         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
2432         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
2433         REPLACE_HYPOTL to 1.
2434         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
2435
2436 2012-03-13  Bruno Haible  <bruno@clisp.org>
2437
2438         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
2439         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
2440         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
2441         REPLACE_REMAINDERL to 1.
2442         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
2443         bug.
2444
2445 2012-03-13  Bruno Haible  <bruno@clisp.org>
2446
2447         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
2448         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
2449         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
2450         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
2451         too big rounding errors.
2452         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
2453         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
2454         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
2455         (Depends-on): Update conditions.
2456         * tests/test-sqrtl.c (my_ldexpl): New function.
2457         (main): Add test of a particular value.
2458         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
2459
2460 2012-03-13  Pádraig Brady  <P@draigBrady.com>
2461
2462         doc: Update timer_* platform portability notes.
2463         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
2464         that always return ENOSYS.
2465         * doc/posix-functions/timer_delete.texi: Likewise.
2466         * doc/posix-functions/timer_gettime.texi: Likewise.
2467         * doc/posix-functions/timer_settime.texi: Likewise.
2468
2469 2012-03-13  Bruno Haible  <bruno@clisp.org>
2470
2471         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
2472         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
2473         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
2474         REPLACE_CBRTL to 1.
2475         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
2476
2477 2012-03-13  Bruno Haible  <bruno@clisp.org>
2478
2479         remainderl: Avoid compilation error on AIX >= 5.2.
2480         * lib/math.in.h (remainderl): Undefine macro from the system header.
2481
2482 2012-03-13  Bruno Haible  <bruno@clisp.org>
2483
2484         Avoid compilation errors with MSVC option -fp:strict.
2485         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
2486         * lib/cbrtf.c: Likewise.
2487         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
2488
2489 2012-03-12  Bruno Haible  <bruno@clisp.org>
2490
2491         uninorm: Don't crash in out-of-memory conditions.
2492         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
2493         gracefully.
2494         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
2495         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
2496
2497 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
2498
2499         quote: fix syntax-check
2500         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
2501         also exports quote_quoting_options.
2502
2503 2012-03-12  Simon Josefsson  <simon@josefsson.org>
2504
2505         Collapse list of copyright years to ranges.  See
2506         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
2507         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
2508         build-aux/csharpexec.sh.in, build-aux/gnupload,
2509         build-aux/install-reloc, build-aux/javacomp.sh.in,
2510         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
2511         build-aux/move-if-change, build-aux/reloc-ldflags,
2512         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
2513
2514 2012-03-11  Bruno Haible  <bruno@clisp.org>
2515
2516         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
2517         * m4/log2f-ieee.m4: New file.
2518         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
2519         whether log2f works with a minus zero argument. Replace it if not.
2520         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
2521         (Depends-on): Add log2-ieee.
2522         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
2523         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
2524
2525         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
2526         * m4/log2-ieee.m4: New file.
2527         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
2528         whether log2 works with a minus zero argument. Replace it if not.
2529         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
2530         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
2531         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
2532
2533         Tests for module 'log2l-ieee'.
2534         * modules/log2l-ieee-tests: New file.
2535         * tests/test-log2l-ieee.c: New file.
2536
2537         New module 'log2l-ieee'.
2538         * modules/log2l-ieee: New file.
2539
2540         Tests for module 'log2-ieee'.
2541         * modules/log2-ieee-tests: New file.
2542         * tests/test-log2-ieee.c: New file.
2543
2544         New module 'log2-ieee'.
2545         * modules/log2-ieee: New file.
2546
2547         Tests for module 'log2f-ieee'.
2548         * modules/log2f-ieee-tests: New file.
2549         * tests/test-log2f-ieee.c: New file.
2550         * tests/test-log2-ieee.h: New file.
2551
2552         New module 'log2f-ieee'.
2553         * modules/log2f-ieee: New file.
2554
2555 2012-03-11  Bruno Haible  <bruno@clisp.org>
2556
2557         Tests for module 'log2l'.
2558         * modules/log2l-tests: New file.
2559         * tests/test-log2l.c: New file.
2560
2561         New module 'log2l'.
2562         * lib/math.in.h (log2l): New declaration.
2563         * lib/log2l.c: New file.
2564         * m4/log2l.m4: New file.
2565         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
2566         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
2567         REPLACE_LOG2L.
2568         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
2569         REPLACE_LOG2L.
2570         * modules/log2l: New file.
2571         * tests/test-math-c++.cc: Check the declaration of log2l.
2572         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
2573         and OSF/1 problems.
2574
2575 2012-03-11  Bruno Haible  <bruno@clisp.org>
2576
2577         Tests for module 'log2f'.
2578         * modules/log2f-tests: New file.
2579         * tests/test-log2f.c: New file.
2580
2581         New module 'log2f'.
2582         * lib/math.in.h (log2f): New declaration.
2583         * lib/log2f.c: New file.
2584         * m4/log2f.m4: New file.
2585         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
2586         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
2587         REPLACE_LOG2F.
2588         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
2589         REPLACE_LOG2F.
2590         * modules/log2f: New file.
2591         * tests/test-math-c++.cc: Check the declaration of log2f.
2592         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
2593         and OSF/1 and Cygwin problems.
2594
2595 2012-03-11  Bruno Haible  <bruno@clisp.org>
2596
2597         Tests for module 'log2'.
2598         * modules/log2-tests: New file.
2599         * tests/test-log2.c: New file.
2600         * tests/test-log2.h: New file.
2601
2602         New module 'log2'.
2603         * lib/math.in.h (log2): New declaration.
2604         * lib/log2.c: New file.
2605         * m4/log2.m4: New file.
2606         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
2607         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
2608         REPLACE_LOG2.
2609         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
2610         REPLACE_LOG2.
2611         * modules/log2: New file.
2612         * tests/test-math-c++.cc: Check the declaration of log2.
2613         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
2614         and OSF/1 and Cygwin problems.
2615
2616 2012-03-11  Bruno Haible  <bruno@clisp.org>
2617
2618         exp2* tests: More tests.
2619         * tests/test-exp2.h (test_function): Test all integral arguments that
2620         don't need to overflow or denormalized numbers.
2621         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
2622         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
2623         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
2624
2625 2012-03-10  Bruno Haible  <bruno@clisp.org>
2626
2627         log1pl-ieee: Work around test failure on AIX 7.1.
2628         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
2629
2630         log1pl-ieee: Work around test failure on IRIX 6.5.
2631         * m4/log1pl-ieee.m4: New file.
2632         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
2633         test whether log1pl works with a minus zero argument. Replace it if
2634         not.
2635         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
2636         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
2637         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
2638         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
2639         (Depends-on): Update conditions.
2640         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
2641         m4/signbit.m4.
2642         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
2643         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
2644
2645         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
2646         * m4/log1pf-ieee.m4: New file.
2647         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
2648         test whether log1pf works with a minus zero argument. Replace it if
2649         not.
2650         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
2651         m4/signbit.m4.
2652         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
2653         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
2654
2655         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
2656         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
2657         (configure.ac): Require gl_FUNC_LOG1PF.
2658
2659         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
2660         * m4/log1p-ieee.m4: New file.
2661         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
2662         whether log1p works with a minus zero argument. Replace it if not.
2663         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
2664         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
2665         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
2666         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
2667         (Depends-on): Update conditions.
2668         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
2669         m4/signbit.m4.
2670         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
2671         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
2672
2673         Tests for module 'log1pl-ieee'.
2674         * modules/log1pl-ieee-tests: New file.
2675         * tests/test-log1pl-ieee.c: New file.
2676
2677         New module 'log1pl-ieee'.
2678         * modules/log1pl-ieee: New file.
2679
2680         Tests for module 'log1p-ieee'.
2681         * modules/log1p-ieee-tests: New file.
2682         * tests/test-log1p-ieee.c: New file.
2683
2684         New module 'log1p-ieee'.
2685         * modules/log1p-ieee: New file.
2686
2687         Tests for module 'log1pf-ieee'.
2688         * modules/log1pf-ieee-tests: New file.
2689         * tests/test-log1pf-ieee.c: New file.
2690         * tests/test-log1p-ieee.h: New file.
2691
2692         New module 'log1pf-ieee'.
2693         * modules/log1pf-ieee: New file.
2694
2695 2012-03-10  Bruno Haible  <bruno@clisp.org>
2696
2697         Tests for module 'log1pl'.
2698         * modules/log1pl-tests: New file.
2699         * tests/test-log1pl.c: New file.
2700
2701         New module 'log1pl'.
2702         * lib/math.in.h (log1pl): New declaration.
2703         * lib/log1pl.c: New file.
2704         * m4/log1pl.m4: New file.
2705         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
2706         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
2707         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
2708         * modules/log1pl: New file.
2709         * tests/test-math-c++.cc: Check the declaration of log1pl.
2710         * doc/posix-functions/log1pl.texi: Mention the new module.
2711
2712 2012-03-10  Bruno Haible  <bruno@clisp.org>
2713
2714         Tests for module 'log1pf'.
2715         * modules/log1pf-tests: New file.
2716         * tests/test-log1pf.c: New file.
2717
2718         New module 'log1pf'.
2719         * lib/math.in.h (log1pf): New declaration.
2720         * lib/log1pf.c: New file.
2721         * m4/log1pf.m4: New file.
2722         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
2723         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
2724         REPLACE_LOG1PF.
2725         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
2726         REPLACE_LOG1PF.
2727         * modules/log1pf: New file.
2728         * tests/test-math-c++.cc: Check the declaration of log1pf.
2729         * doc/posix-functions/log1pf.texi: Mention the new module.
2730
2731 2012-03-10  Bruno Haible  <bruno@clisp.org>
2732
2733         log1p tests: More tests.
2734         * tests/test-log1p.h: New file.
2735         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
2736         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
2737         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
2738         (main): Invoke test_function.
2739
2740         log1p: Provide replacement for Minix and MSVC.
2741         * lib/math.in.h (log1p): New declaration.
2742         * lib/log1p.c: New file.
2743         * m4/log1p.m4: New file.
2744         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
2745         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
2746         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
2747         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
2748         (Depends-on): Add math, isnand, log, round.
2749         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
2750         HAVE_LOG1P is 0.
2751         * tests/test-math-c++.cc: Check the declaration of log1p.
2752         * doc/posix-functions/log1p.texi: Mention the replacement.
2753
2754 2012-03-10  Bruno Haible  <bruno@clisp.org>
2755
2756         math tests: Small simplification.
2757         * tests/test-exp.h (test_function): Use the same err_bound for
2758         'double' on platforms with sizeof (long double) == sizeof (double)
2759         than on platforms with sizeof (long double) > sizeof (double).
2760         * tests/test-exp2.h (test_function): Likewise.
2761         * tests/test-expm1.h (test_function): Likewise.
2762         * tests/test-log.h (test_function): Likewise.
2763
2764 2012-03-10  Bruno Haible  <bruno@clisp.org>
2765
2766         Fix some comments.
2767         * lib/expl.c: Fix an ambiguous comment.
2768         * lib/expm1.c: Likewise.
2769         * lib/expm1l.c: Likewise.
2770         * lib/exp2.c: Likewise.
2771         * lib/exp2l.c: Likewise.
2772
2773 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
2774
2775         regex: allow inclusion of <regex.h> before <limits.h>
2776         Without this patch, portable programs had to include <limits.h> before
2777         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
2778         I ran into this problem with a test version of GNU grep on Solaris 8.
2779         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
2780         This is done conditionally so that this change can be merged
2781         back to glibc.
2782         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
2783         using the included regex.
2784
2785         fts: depend on fdopendir
2786         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
2787         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
2788         problem was introduced when fdopendir was split out.
2789
2790 2012-03-10  Bruno Haible  <bruno@clisp.org>
2791
2792         Remove unused variables.
2793         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
2794         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
2795
2796 2012-03-10  Bruno Haible  <bruno@clisp.org>
2797
2798         isnanf-nolibm: Fix last commit.
2799         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
2800
2801         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
2802         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
2803
2804 2012-03-10  Bruno Haible  <bruno@clisp.org>
2805
2806         logf-ieee: Work around test failure on NetBSD 5.1.
2807         * m4/logf-ieee.m4: New file.
2808         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
2809         whether logf works with a negative argument. Replace it if not.
2810         * lib/logf.c (logf): For negative arguments, return NaN.
2811         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
2812         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
2813         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
2814
2815         logf-ieee: Work around test failure on Solaris 9.
2816         * modules/logf-ieee (Depends-on): Add log-ieee.
2817         (configure.ac): Require gl_FUNC_LOGF.
2818
2819         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
2820         * m4/log-ieee.m4: New file.
2821         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
2822         log works with a negative argument. Replace it if not.
2823         * lib/log.c (log): For negative arguments, return NaN.
2824         * modules/log-ieee (Files): Add m4/log-ieee.m4.
2825         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
2826         * doc/posix-functions/log.texi: Mention the log-ieee module.
2827
2828         Tests for module 'logl-ieee'.
2829         * modules/logl-ieee-tests: New file.
2830         * tests/test-logl-ieee.c: New file.
2831
2832         New module 'logl-ieee'.
2833         * modules/logl-ieee: New file.
2834
2835         Tests for module 'log-ieee'.
2836         * modules/log-ieee-tests: New file.
2837         * tests/test-log-ieee.c: New file.
2838
2839         New module 'log-ieee'.
2840         * modules/log-ieee: New file.
2841
2842         Tests for module 'logf-ieee'.
2843         * modules/logf-ieee-tests: New file.
2844         * tests/test-logf-ieee.c: New file.
2845         * tests/test-log-ieee.h: New file.
2846
2847         New module 'logf-ieee'.
2848         * modules/logf-ieee: New file.
2849
2850 2012-03-10  Bruno Haible  <bruno@clisp.org>
2851
2852         log: Fix bug introduced on 2012-03-09.
2853         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
2854
2855 2012-03-10  Pádraig Brady  <P@draigBrady.com>
2856
2857         timer-time: link explicitly with pthreads on glibc
2858         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
2859         to support static linking, when newer glibc is
2860         detected, as that contains pthread emulation of
2861         POSIX timer functions where required.
2862         * modules/timer-time: Depend on threadlib to
2863         pull in the appropriate library to link.
2864
2865 2012-03-10  Bruno Haible  <bruno@clisp.org>
2866
2867         log* tests: More tests.
2868         * tests/test-log.h: New file.
2869         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
2870         (main): Invoke test_function.
2871         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
2872         (main): Invoke test_function.
2873         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
2874         (main): Invoke test_function.
2875         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
2876         tests/randomd.c.
2877         (Makefile.am): Add randomd.c to test_log_SOURCES.
2878         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
2879         tests/randomf.c.
2880         (Makefile.am): Add randomf.c to test_logf_SOURCES.
2881         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
2882         tests/randoml.c.
2883         (Depends-on): Add 'float'.
2884         (Makefile.am): Add randoml.c to test_logl_SOURCES.
2885
2886 2012-03-09  Bruno Haible  <bruno@clisp.org>
2887
2888         logl: Work around OSF/1 5.1 bug.
2889         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
2890         * lib/logl.c (logl): If logl exists, use it and provide just the
2891         workaround.
2892         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
2893         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
2894         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
2895         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
2896         * modules/logl (configure.ac): Consider REPLACE_LOGL.
2897         (Depends-on): Update conditions.
2898         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
2899
2900 2012-03-09  Bruno Haible  <bruno@clisp.org>
2901
2902         logf: Work around OSF/1 5.1 bug.
2903         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
2904         * lib/logf.c (logf): If logf exists, use it and provide just the
2905         workaround.
2906         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
2907         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
2908         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
2909         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
2910         * modules/logf (configure.ac): Consider REPLACE_LOGF.
2911         (Depends-on): Update conditions.
2912         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
2913
2914 2012-03-09  Bruno Haible  <bruno@clisp.org>
2915
2916         log: Work around OSF/1 5.1 bug.
2917         * lib/math.in.h (log): New declaration.
2918         * lib/log.c: New file.
2919         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
2920         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
2921         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
2922         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
2923         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
2924         * modules/log (Files): Add lib/log.c.
2925         (Depends-on): Add math.
2926         (configure.ac): If REPLACE_LOG is 1, compile an override.
2927         * tests/test-math-c++.cc: Check the declaration of log.
2928         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
2929
2930 2012-03-09  Jim Meyering  <meyering@redhat.com>
2931
2932         readtokens.c: adjust wording in a comment
2933         * lib/readtokens.c: Insert omitted "that" in a comment.
2934
2935 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
2936
2937         modechange: add notations +40, 00440, etc.
2938         * lib/modechange.c (mode_compile): Support new notations
2939         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
2940
2941 2012-03-08  Bruno Haible  <bruno@clisp.org>
2942
2943         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
2944         * m4/exp2l-ieee.m4: New file.
2945         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
2946         test whether exp2l works with a NaN argument and with a negative
2947         infinity argument. Replace it if not.
2948         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
2949         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
2950         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
2951         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
2952         (Depends-on): Update conditions.
2953         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
2954         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
2955         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
2956
2957         Tests for module 'exp2l-ieee'.
2958         * modules/exp2l-ieee-tests: New file.
2959         * tests/test-exp2l-ieee.c: New file.
2960
2961         New module 'exp2l-ieee'.
2962         * modules/exp2l-ieee: New file.
2963
2964         Tests for module 'exp2-ieee'.
2965         * modules/exp2-ieee-tests: New file.
2966         * tests/test-exp2-ieee.c: New file.
2967
2968         New module 'exp2-ieee'.
2969         * modules/exp2-ieee: New file.
2970
2971         Tests for module 'exp2f-ieee'.
2972         * modules/exp2f-ieee-tests: New file.
2973         * tests/test-exp2f-ieee.c: New file.
2974         * tests/test-exp2-ieee.h: New file.
2975
2976         New module 'exp2f-ieee'.
2977         * modules/exp2f-ieee: New file.
2978
2979 2012-03-08  Bruno Haible  <bruno@clisp.org>
2980
2981         Tests for module 'exp2l'.
2982         * modules/exp2l-tests: New file.
2983         * tests/test-exp2l.c: New file.
2984
2985         New module 'exp2l'.
2986         * lib/math.in.h (exp2l): New declaration.
2987         * lib/exp2l.c: New file.
2988         * lib/expl-table.c: New file, extracted from lib/expl.c.
2989         * lib/expl.c (gl_expl_table): New declaration.
2990         (expl): Remove expl_table. Update reference.
2991         * m4/exp2l.m4: New file.
2992         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
2993         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
2994         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
2995         * modules/exp2l: New file.
2996         * modules/expl (Files): Add lib/expl-table.c.
2997         (configure.ac): Compile also expl-table.c.
2998         * tests/test-math-c++.cc: Check the declaration of exp2l.
2999         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
3000         problem.
3001
3002 2012-03-08  Bruno Haible  <bruno@clisp.org>
3003
3004         Tests for module 'exp2f'.
3005         * modules/exp2f-tests: New file.
3006         * tests/test-exp2f.c: New file.
3007
3008         New module 'exp2f'.
3009         * lib/math.in.h (exp2f): New declaration.
3010         * lib/exp2f.c: New file.
3011         * m4/exp2f.m4: New file.
3012         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
3013         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
3014         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
3015         * modules/exp2f: New file.
3016         * tests/test-math-c++.cc: Check the declaration of exp2f.
3017         * doc/posix-functions/exp2f.texi: Mention the new module and the
3018         IRIX problem.
3019
3020 2012-03-08  Bruno Haible  <bruno@clisp.org>
3021
3022         Tests for module 'exp2'.
3023         * modules/exp2-tests: New file.
3024         * tests/test-exp2.c: New file.
3025         * tests/test-exp2.h: New file.
3026
3027         New module 'exp2'.
3028         * lib/math.in.h (exp2): New declaration.
3029         * lib/exp2.c: New file.
3030         * m4/exp2.m4: New file.
3031         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
3032         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
3033         REPLACE_EXP2.
3034         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
3035         REPLACE_EXP2.
3036         * modules/exp2: New file.
3037         * tests/test-math-c++.cc: Check the declaration of exp2.
3038         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
3039         and OpenBSD problems.
3040
3041 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
3042
3043         savedir: fix comment typo
3044         * lib/savedir.c (savedirstream): Fix typo in comment.
3045
3046 2012-03-08  Bruno Haible  <bruno@clisp.org>
3047
3048         test-readtokens.c: use const; remove unwarranted cast
3049         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
3050
3051 2012-03-08  Bruno Haible  <bruno@clisp.org>
3052
3053         fmal: Avoid compilation error on AIX.
3054         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
3055         AIX 5.2..7.1.
3056
3057 2012-03-08  Bruno Haible  <bruno@clisp.org>
3058
3059         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
3060         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
3061         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
3062         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
3063         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
3064         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
3065         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
3066
3067 2012-03-08  Bruno Haible  <bruno@clisp.org>
3068
3069         remainderf: Override buggy system function on IRIX 6.5.
3070         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
3071         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
3072         when it exists.
3073         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
3074
3075 2012-03-08  Jim Meyering  <meyering@redhat.com>
3076
3077         test-readtokens.c: avoid const-related compilation warnings
3078         * tests/test-readtokens.c: Avoid const-related compilation warnings.
3079
3080 2012-03-07  Jim Meyering  <meyering@redhat.com>
3081             Bruno Haible  <bruno@clisp.org>
3082
3083         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
3084         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
3085         tests/randomd.c.
3086         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
3087         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
3088         tests/randoml.c.
3089         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
3090
3091 2012-03-07  Bruno Haible  <bruno@clisp.org>
3092
3093         expm1l: Avoid compilation error on AIX.
3094         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
3095         AIX 5.2..7.1.
3096
3097 2012-03-07  Bruno Haible  <bruno@clisp.org>
3098
3099         expm1l: Don't override undeclared system function on IRIX 6.5.
3100         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
3101         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
3102         it exists. Set HAVE_DECL_EXPM1L.
3103         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
3104         HAVE_EXPM1L.
3105         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
3106         HAVE_EXPM1L.
3107         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
3108
3109 2012-03-07  Bruno Haible  <bruno@clisp.org>
3110
3111         remainderl: Don't override undeclared system function on IRIX 6.5.
3112         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
3113         HAVE_REMAINDERL.
3114         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
3115         declared when it exists. Set HAVE_DECL_REMAINDERL.
3116         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
3117         not HAVE_REMAINDERL.
3118         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
3119         HAVE_REMAINDERL.
3120         * doc/posix-functions/remainderl.texi: Mention missing declaration
3121         problem.
3122
3123 2012-03-07  Bruno Haible  <bruno@clisp.org>
3124
3125         rintf: Don't override undeclared system function on IRIX 6.5.
3126         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
3127         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
3128         exists. Set HAVE_DECL_RINTF.
3129         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
3130         HAVE_RINTF.
3131         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
3132         HAVE_RINTF.
3133         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
3134
3135 2012-03-07  Bruno Haible  <bruno@clisp.org>
3136
3137         roundl: Avoid compilation error on AIX.
3138         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
3139         AIX 5.2..7.1.
3140
3141 2012-03-07  Bruno Haible  <bruno@clisp.org>
3142
3143         roundl: Don't override undeclared system function on IRIX 6.5.
3144         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
3145         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
3146         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
3147         * modules/roundl (configure.ac): For replacement code, test
3148         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
3149         (Depends-on): Update conditions.
3150         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
3151
3152 2012-03-07  Bruno Haible  <bruno@clisp.org>
3153
3154         roundf: Don't override undeclared system function on IRIX 6.5.
3155         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
3156         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
3157         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
3158         * modules/roundf (configure.ac): For replacement code, test
3159         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
3160         (Depends-on): Update conditions.
3161         * modules/roundf-ieee (Depends-on): Update conditions.
3162         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
3163
3164 2012-03-07  Bruno Haible  <bruno@clisp.org>
3165
3166         round: Don't override undeclared system function on IRIX 6.5.
3167         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
3168         argument.
3169         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
3170         also when it is not declared. Set HAVE_ROUND. For replacement code,
3171         test HAVE_ROUND, not HAVE_DECL_ROUND.
3172         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
3173         not HAVE_DECL_ROUND.
3174         (Depends-on): Update conditions.
3175         * modules/round-ieee (Depends-on): Update conditions.
3176         * doc/posix-functions/round.texi: Mention the IRIX problem.
3177
3178 2012-03-07  Bruno Haible  <bruno@clisp.org>
3179
3180         copysignf: Don't override undeclared system function on IRIX 6.5.
3181         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
3182         HAVE_COPYSIGNF.
3183         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
3184         declared when it exists. Set HAVE_DECL_COPYSIGNF.
3185         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
3186         not HAVE_COPYSIGNF.
3187         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
3188         HAVE_COPYSIGNF.
3189         * doc/posix-functions/copysignf.texi: Mention missing declaration
3190         problem.
3191
3192 2012-03-07  Jim Meyering  <meyering@redhat.com>
3193
3194         readtokens: add tests
3195         * modules/readtokens-tests: New file.
3196         * tests/test-readtokens.c: New file.
3197
3198 2012-03-07  Jim Meyering  <meyering@redhat.com>
3199
3200         quotearg: the module must now include quote.h
3201         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
3202         So must the module.
3203         * modules/quotearg (Files): Add quote.h.
3204
3205 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
3206
3207         readtokens: avoid core dumps with unusual calling patterns
3208         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
3209         * lib/readtokens.c: Include limits.h.
3210         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
3211         (readtoken): Don't cache the delimiters; the cache code was buggy
3212         if !delim && saved_delim, or if the new n_delim differs from the old.
3213         Also, it wasn't thread-safe.
3214
3215 2012-03-07  Bruno Haible  <bruno@clisp.org>
3216
3217         quote: Adhere to common module description layout.
3218         * modules/quote (Makefile.am): Add back empty section.
3219
3220 2012-03-06  Akim Demaille  <demaille@gostai.com>
3221
3222         quote: fuse into quotearg
3223         This patch is made for the benefit of Bison.
3224         quote does not leave the choice of the quoting style to the user.
3225         quoting_style provides poor customizability, yet quoting_options,
3226         which is very rich, is hidden inside quotearg.c.  So in order to
3227         allow quote customization, move its implementation to quotearg.c.
3228         * lib/quote.c: Remove.
3229         * modules/quote: Adjust.
3230         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
3231         warning: provide all the members of literal structs.
3232         (quote_quoting_options): New.
3233         (quote, quote_n): Import implementation from quote.c.
3234         * lib/quote.h: Import the comments from quote.c.
3235         (quote_quoting_options): New.
3236
3237 2012-03-06  Bruno Haible  <bruno@clisp.org>
3238
3239         Tests for module 'expm1l-ieee'.
3240         * modules/expm1l-ieee-tests: New file.
3241         * tests/test-expm1l-ieee.c: New file.
3242
3243         New module 'expm1l-ieee'.
3244         * modules/expm1l-ieee: New file.
3245
3246         Tests for module 'expm1f-ieee'.
3247         * modules/expm1f-ieee-tests: New file.
3248         * tests/test-expm1f-ieee.c: New file.
3249
3250         New module 'expm1f-ieee'.
3251         * modules/expm1f-ieee: New file.
3252
3253         Tests for module 'expm1-ieee'.
3254         * modules/expm1-ieee-tests: New file.
3255         * tests/test-expm1-ieee.c: New file.
3256         * tests/test-expm1-ieee.h: New file.
3257
3258         New module 'expm1-ieee'.
3259         * modules/expm1-ieee: New file.
3260         * m4/expm1-ieee.m4: New file.
3261         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
3262         whether expm1 works with a minus zero argument. Replace it if not.
3263         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
3264         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
3265         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
3266         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
3267         (Depends-on): Update conditions.
3268         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
3269         AIX problem.
3270
3271 2012-03-06  Bruno Haible  <bruno@clisp.org>
3272
3273         Work around expm1f bug on IRIX 6.5.
3274         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
3275         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
3276         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
3277         not work.
3278         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
3279         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
3280         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
3281         (Depends-on): Update conditions.
3282         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
3283
3284 2012-03-06  Bruno Haible  <bruno@clisp.org>
3285
3286         Tests for module 'expm1l'.
3287         * modules/expm1l-tests: New file.
3288         * tests/test-expm1l.c: New file.
3289
3290         New module 'expm1l'.
3291         * lib/math.in.h (expm1l): New declaration.
3292         * lib/expm1l.c: New file.
3293         * m4/expm1l.m4: New file.
3294         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
3295         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
3296         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
3297         * modules/expm1l: New file.
3298         * tests/test-math-c++.cc: Check the declaration of expm1l.
3299         * doc/posix-functions/expm1l.texi: Mention the new module.
3300
3301 2012-03-06  Bruno Haible  <bruno@clisp.org>
3302
3303         Tests for module 'expm1f'.
3304         * modules/expm1f-tests: New file.
3305         * tests/test-expm1f.c: New file.
3306
3307         New module 'expm1f'.
3308         * lib/math.in.h (expm1f): New declaration.
3309         * lib/expm1f.c: New file.
3310         * m4/expm1f.m4: New file.
3311         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
3312         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
3313         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
3314         * modules/expm1f: New file.
3315         * tests/test-math-c++.cc: Check the declaration of expm1f.
3316         * doc/posix-functions/expm1f.texi: Mention the new module.
3317
3318 2012-03-06  Bruno Haible  <bruno@clisp.org>
3319
3320         Tests for module 'expm1'.
3321         * modules/expm1-tests: New file.
3322         * tests/test-expm1.c: New file.
3323         * tests/test-expm1.h: New file.
3324
3325         New module 'expm1'.
3326         * lib/math.in.h (expm1): New declaration.
3327         * lib/expm1.c: New file.
3328         * m4/expm1.m4: New file.
3329         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
3330         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
3331         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
3332         * modules/expm1: New file.
3333         * tests/test-math-c++.cc: Check the declaration of expm1.
3334         * doc/posix-functions/expm1.texi: Mention the new module.
3335
3336 2012-03-06  Bruno Haible  <bruno@clisp.org>
3337
3338         math: Ensure declarations of math functions.
3339         * modules/acosf (Depends-on): Add 'extensions'.
3340         * modules/asinf (Depends-on): Likewise.
3341         * modules/atan2f (Depends-on): Likewise.
3342         * modules/atanf (Depends-on): Likewise.
3343         * modules/cbrt (Depends-on): Likewise.
3344         * modules/cbrtf (Depends-on): Likewise.
3345         * modules/cbrtl (Depends-on): Likewise.
3346         * modules/copysignf (Depends-on): Likewise.
3347         * modules/copysignl (Depends-on): Likewise.
3348         * modules/cosf (Depends-on): Likewise.
3349         * modules/coshf (Depends-on): Likewise.
3350         * modules/expf (Depends-on): Likewise.
3351         * modules/fabsf (Depends-on): Likewise.
3352         * modules/fabsl (Depends-on): Likewise.
3353         * modules/fmaf (Depends-on): Likewise.
3354         * modules/fmal (Depends-on): Likewise.
3355         * modules/fmodf (Depends-on): Likewise.
3356         * modules/fmodl (Depends-on): Likewise.
3357         * modules/frexpf (Depends-on): Likewise.
3358         * modules/frexpl (Depends-on): Likewise.
3359         * modules/hypot (Depends-on): Likewise.
3360         * modules/hypotf (Depends-on): Likewise.
3361         * modules/hypotl (Depends-on): Likewise.
3362         * modules/ldexpf (Depends-on): Likewise.
3363         * modules/ldexpl (Depends-on): Likewise.
3364         * modules/log10f (Depends-on): Likewise.
3365         * modules/log10l (Depends-on): Likewise.
3366         * modules/log1p (Depends-on): Likewise.
3367         * modules/logb (Depends-on): Likewise.
3368         * modules/logf (Depends-on): Likewise.
3369         * modules/modff (Depends-on): Likewise.
3370         * modules/modfl (Depends-on): Likewise.
3371         * modules/powf (Depends-on): Likewise.
3372         * modules/remainderf (Depends-on): Likewise.
3373         * modules/remainderl (Depends-on): Likewise.
3374         * modules/rintf (Depends-on): Likewise.
3375         * modules/rintl (Depends-on): Likewise.
3376         * modules/sinf (Depends-on): Likewise.
3377         * modules/sinhf (Depends-on): Likewise.
3378         * modules/sqrtf (Depends-on): Likewise.
3379         * modules/tanf (Depends-on): Likewise.
3380         * modules/tanhf (Depends-on): Likewise.
3381         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
3382         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
3383         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
3384         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
3385         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
3386         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
3387         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
3388         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
3389         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
3390         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
3391         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
3392         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
3393         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
3394         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
3395         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
3396         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
3397         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
3398         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
3399         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
3400         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
3401         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
3402         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
3403         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
3404         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
3405         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
3406         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
3407         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
3408         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
3409         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
3410         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
3411         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
3412         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
3413         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
3414         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
3415         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
3416         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
3417         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
3418         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
3419         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
3420         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
3421         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
3422
3423 2012-03-06  Bruno Haible  <bruno@clisp.org>
3424
3425         math: Update module names in warnings.
3426         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
3427         tanl): Use specific module name in warn-on-use warning.
3428
3429 2012-03-06  Bruno Haible  <bruno@clisp.org>
3430
3431         expl: Simplify computation.
3432         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
3433
3434 2012-03-05  Bruno Haible  <bruno@clisp.org>
3435
3436         exp* tests: More tests.
3437         * tests/test-exp.h: New file.
3438         * tests/test-exp.c: Include <float.h> and test-exp.h.
3439         (main): Invoke test_function.
3440         * tests/test-expf.c: Include <float.h> and test-exp.h.
3441         (main): Invoke test_function.
3442         * tests/test-expl.c: Include <float.h> and test-exp.h.
3443         (main): Invoke test_function.
3444         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
3445         (Makefile.am): Add randomd.c to test_exp_SOURCES.
3446         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
3447         (Makefile.am): Add randomf.c to test_expf_SOURCES.
3448         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
3449         (Depends-on): Add 'float'.
3450         (Makefile.am): Add randoml.c to test_expl_SOURCES.
3451
3452         expl: Fix precision of computed result.
3453         * lib/expl.c: Completely rewritten.
3454         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
3455         (Maintainer): Add me.
3456         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
3457
3458 2012-03-05  Bruno Haible  <bruno@clisp.org>
3459
3460         cbrt* tests: More tests.
3461         * tests/test-cbrt.h: New file.
3462         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
3463         (main): Invoke test_function.
3464         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
3465         (main): Invoke test_function.
3466         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
3467         (main): Invoke test_function.
3468         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
3469         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
3470         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
3471         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
3472         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
3473         (Depends-on): Add 'float'.
3474         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
3475
3476 2012-03-05  Bruno Haible  <bruno@clisp.org>
3477
3478         hypot* tests: More tests.
3479         * tests/test-hypot.h: New file, partially extracted from
3480         tests/test-hypotl.c.
3481         * tests/test-hypot.c: Include test-hypot.h.
3482         (main): Invoke test_function.
3483         * tests/test-hypotf.c: Include test-hypot.h.
3484         (main): Invoke test_function.
3485         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
3486         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
3487         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
3488         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
3489         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
3490         tests/randomf.c.
3491         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
3492         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
3493         tests/randoml.c.
3494         (Depends-on): Add 'fpucw', 'float'.
3495         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
3496
3497 2012-03-05  Bruno Haible  <bruno@clisp.org>
3498
3499         fpucw: Doc about FreeBSD.
3500         * lib/fpucw.h: Mention FreeBSD in comments.
3501
3502 2012-03-04  Bruno Haible  <bruno@clisp.org>
3503
3504         sqrt* tests: More tests.
3505         * tests/test-sqrt.h: New file.
3506         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
3507         (main): Invoke test_function.
3508         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
3509         (main): Invoke test_function.
3510         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
3511         (main): Invoke test_function.
3512         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
3513         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
3514         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
3515         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
3516         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
3517         (Depends-on): Add 'float'.
3518         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
3519
3520 2012-03-04  Bruno Haible  <bruno@clisp.org>
3521
3522         remainder* tests: More tests.
3523         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
3524         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
3525         (main): Invoke test_function.
3526         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
3527         (main): Invoke test_function.
3528         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
3529         (main): Invoke test_function.
3530         * modules/remainder-tests (Files): Add tests/test-remainder.h,
3531         tests/randomd.c.
3532         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
3533         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
3534         tests/randomf.c.
3535         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
3536         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
3537         tests/randoml.c.
3538         (Depends-on): Add 'float'.
3539         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
3540
3541 2012-03-04  Bruno Haible  <bruno@clisp.org>
3542
3543         remainder, remainderf, remainderl: Fix computation for large quotients.
3544         * lib/remainder.c: Completely rewritten.
3545         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
3546         USE_FLOAT.
3547         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
3548         USE_LONG_DOUBLE.
3549         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
3550         isnand, isinf. Remove round, fma.
3551         * modules/remainderf (Files): Add lib/remainder.c.
3552         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
3553         Remove roundf, fmaf.
3554         * modules/remainderl (Files): Add lib/remainder.c.
3555         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
3556         isinf. Remove roundl, fmal.
3557         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
3558         REMAINDER_LIBM.
3559         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
3560         REMAINDERF_LIBM.
3561         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
3562         REMAINDERL_LIBM.
3563
3564 2012-03-04  Bruno Haible  <bruno@clisp.org>
3565
3566         fmod* tests: More tests.
3567         * tests/test-fmod.h (my_ldexp): New function.
3568         (test_function): Reduce amount of random numbers to test. Add tests
3569         of very large quotients x / y.
3570         * tests/test-fmod.c (MAX_EXP): New macro.
3571         * tests/test-fmodf.c (MAX_EXP): Likewise.
3572         * tests/test-fmodl.c (MAX_EXP): Likewise.
3573
3574 2012-03-04  Bruno Haible  <bruno@clisp.org>
3575
3576         fmod, fmodl: Fix computation for large quotients x / y.
3577         * lib/fmod.c: Completely rewritten.
3578         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
3579         USE_LONG_DOUBLE.
3580         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
3581         isnand. Remove fma.
3582         * modules/fmodl (Files): Add lib/fmod.c.
3583         (Depends-on): Add float, isfinite, signbit, fabsl,
3584         frexpl, ldexpl, isnanl. Remove fma.
3585         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
3586         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
3587
3588 2012-03-03  Bruno Haible  <bruno@clisp.org>
3589
3590         fmod* tests: More tests.
3591         * tests/test-fmod.h: New file.
3592         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
3593         (main): Invoke test_function.
3594         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
3595         (main): Invoke test_function.
3596         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
3597         (main): Invoke test_function.
3598         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
3599         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
3600         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
3601         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
3602         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
3603         (Depends-on): Add 'float'.
3604         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
3605
3606 2012-03-03  Bruno Haible  <bruno@clisp.org>
3607
3608         rint* tests: More tests.
3609         * tests/test-rint.h: New file, partially extracted from
3610         tests/test-rintl.c.
3611         * tests/test-rint.c: Include test-rint.h.
3612         (main): Invoke test_function.
3613         * tests/test-rintf.c: Include test-rint.h.
3614         (main): Invoke test_function.
3615         * tests/test-rintl.c: Include test-rint.h.
3616         (main): Invoke test_function.
3617         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
3618         (Makefile.am): Add randomd.c to test_rint_SOURCES.
3619         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
3620         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
3621         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
3622         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
3623
3624 2012-03-03  Bruno Haible  <bruno@clisp.org>
3625
3626         modf* tests: More tests.
3627         * tests/test-modf.h: New file.
3628         * tests/test-modf.c: Include <float.h> and test-modf.h.
3629         (main): Invoke test_function.
3630         * tests/test-modff.c: Include <float.h> and test-modf.h.
3631         (main): Invoke test_function.
3632         * tests/test-modfl.c: Include <float.h> and test-modf.h.
3633         (main): Invoke test_function.
3634         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
3635         (Makefile.am): Add randomd.c to test_modf_SOURCES.
3636         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
3637         (Makefile.am): Add randomf.c to test_modff_SOURCES.
3638         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
3639         (Depends-on): Add 'float'.
3640         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
3641
3642 2012-03-03  Bruno Haible  <bruno@clisp.org>
3643
3644         fabs* tests: More tests.
3645         * tests/test-fabs.h: New file, partially extracted from
3646         tests/test-fabsl.c.
3647         * tests/test-fabs.c (RANDOM): New macro.
3648         * tests/test-fabsf.c (RANDOM): New macro.
3649         * tests/test-fabsl.c (RANDOM): New macro.
3650         * modules/fabs-tests (Files): Add tests/randomd.c.
3651         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
3652         * modules/fabsf-tests (Files): Add tests/randomf.c.
3653         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
3654         * modules/fabsl-tests (Files): Add tests/randoml.c.
3655         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
3656
3657 2012-03-03  Bruno Haible  <bruno@clisp.org>
3658
3659         ldexp* tests: More tests.
3660         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
3661         * tests/test-ldexp.c (RANDOM): New macro.
3662         * tests/test-ldexpf.c (RANDOM): New macro.
3663         * tests/test-ldexpl.c (RANDOM): New macro.
3664         * modules/ldexp-tests (Files): Add tests/randomd.c.
3665         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
3666         * modules/ldexpf-tests (Files): Add tests/randomf.c.
3667         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
3668         * modules/ldexpl-tests (Files): Add tests/randoml.c.
3669         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
3670
3671 2012-03-03  Bruno Haible  <bruno@clisp.org>
3672
3673         frexp* tests: More tests.
3674         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
3675         * tests/test-frexp.c (RANDOM): New macro.
3676         * tests/test-frexpf.c (RANDOM): New macro.
3677         * tests/test-frexpl.c (RANDOM): New macro.
3678         * modules/frexp-tests (Files): Add tests/randomd.c.
3679         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
3680         * modules/frexpf-tests (Files): Add tests/randomf.c.
3681         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
3682         * modules/frexpl-tests (Files): Add tests/randoml.c.
3683         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
3684
3685 2012-03-03  Bruno Haible  <bruno@clisp.org>
3686
3687         Support for pseudo-random numbers in tests.
3688         * tests/randomf.c: New file.
3689         * tests/randomd.c: New file.
3690         * tests/randoml.c: New file.
3691         * tests/macros.h (randomf, randomd, randoml): New declarations.
3692
3693 2012-03-03  Bruno Haible  <bruno@clisp.org>
3694
3695         frexp* tests: Refactor.
3696         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
3697         * tests/test-frexp.c: Include and use it.
3698         * tests/test-frexpf.c: Likewise.
3699         * tests/test-frexpl.c: Likewise.
3700         * modules/frexp-tests (Files): Add tests/test-frexp.h.
3701         * modules/frexpf-tests (Files): Likewise.
3702         * modules/frexpl-tests (Files): Likewise.
3703
3704 2012-03-02  Jim Meyering  <meyering@redhat.com>
3705
3706         maint: don't specify XZ_OPT=-9ev in dist-related rule
3707         Using xz's -9 option is warranted only if you have a very large
3708         tarball (see xz's documentation for the sizes vs. presets), and
3709         requires 64MiB of memory at decompression time.
3710         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
3711         Automake's default of just "-e" is fine.  Override on a
3712         per-package basis by setting XZ_OPT e.g., in cfg.mk.
3713
3714 2012-03-01  Eric Blake  <eblake@redhat.com>
3715
3716         maint.mk: allow announcement for non-gnulib project
3717         * maint.mk (announcement): Skip gnulib version if not used.
3718
3719 2012-03-01  Jim Meyering  <meyering@redhat.com>
3720
3721         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
3722         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
3723         envvar settings cannot interfere.  Otherwise, setting envvars like
3724         prohibit=foo require=bar, etc. would cause spurious test failures.
3725
3726 2012-03-01  Eric Blake  <eblake@redhat.com>
3727
3728         maint.mk: add per-line exclusions to prohibitions
3729         * maint.mk (_sc_search_regexp): Add $exclude parameter.
3730         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
3731         (sc_const_long_option): Use it.
3732
3733 2012-03-01  Bruno Haible  <bruno@clisp.org>
3734
3735         Tests for module 'expl-ieee'.
3736         * modules/expl-ieee-tests: New file.
3737         * tests/test-expl-ieee.c: New file.
3738
3739         New module 'expl-ieee'.
3740         * modules/expl-ieee: New file.
3741
3742         Tests for module 'exp-ieee'.
3743         * modules/exp-ieee-tests: New file.
3744         * tests/test-exp-ieee.c: New file.
3745
3746         New module 'exp-ieee'.
3747         * modules/exp-ieee: New file.
3748
3749         Tests for module 'expf-ieee'.
3750         * modules/expf-ieee-tests: New file.
3751         * tests/test-expf-ieee.c: New file.
3752         * tests/test-exp-ieee.h: New file.
3753
3754         New module 'expf-ieee'.
3755         * modules/expf-ieee: New file.
3756
3757 2012-02-29  Bruno Haible  <bruno@clisp.org>
3758
3759         cbrtl-ieee: Work around test failure on IRIX 6.5.
3760         * m4/cbrtl-ieee.m4: New file.
3761         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
3762         test whether cbrtl works with a minus zero argument. Replace it if not.
3763         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
3764         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
3765         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
3766         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
3767         (Depends-on): Update conditions.
3768         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
3769         m4/signbit.m4.
3770         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
3771         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
3772         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
3773
3774         Tests for module 'cbrtl-ieee'.
3775         * modules/cbrtl-ieee-tests: New file.
3776         * tests/test-cbrtl-ieee.c: New file.
3777
3778         New module 'cbrtl-ieee'.
3779         * modules/cbrtl-ieee: New file.
3780
3781         Tests for module 'cbrt-ieee'.
3782         * modules/cbrt-ieee-tests: New file.
3783         * tests/test-cbrt-ieee.c: New file.
3784
3785         New module 'cbrt-ieee'.
3786         * modules/cbrt-ieee: New file.
3787
3788         Tests for module 'cbrtf-ieee'.
3789         * modules/cbrtf-ieee-tests: New file.
3790         * tests/test-cbrtf-ieee.c: New file.
3791         * tests/test-cbrt-ieee.h: New file.
3792
3793         New module 'cbrtf-ieee'.
3794         * modules/cbrtf-ieee: New file.
3795
3796 2012-02-29  Bruno Haible  <bruno@clisp.org>
3797
3798         cbrtf: Work around bug in IRIX 6.5 system function.
3799         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
3800         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
3801         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
3802         work.
3803         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
3804         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
3805         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
3806         (Depends-on): Update conditions.
3807         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
3808
3809 2012-02-29  Bruno Haible  <bruno@clisp.org>
3810
3811         Tests for module 'cbrtl'.
3812         * modules/cbrtl-tests: New file.
3813         * tests/test-cbrtl.c: New file.
3814
3815         New module 'cbrtl'.
3816         * lib/math.in.h (cbrtl): New declaration.
3817         * lib/cbrtl.c: New file.
3818         * m4/cbrtl.m4: New file.
3819         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
3820         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
3821         HAVE_DECL_CBRTL.
3822         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
3823         HAVE_DECL_CBRTL.
3824         * modules/cbrtl: New file.
3825         * tests/test-math-c++.cc: Check the declaration of cbrtl.
3826         * doc/posix-functions/cbrtl.texi: Mention the new module.
3827
3828 2012-02-29  Bruno Haible  <bruno@clisp.org>
3829
3830         Tests for module 'cbrtf'.
3831         * modules/cbrtf-tests: New file.
3832         * tests/test-cbrtf.c: New file.
3833
3834         New module 'cbrtf'.
3835         * lib/math.in.h (cbrtf): New declaration.
3836         * lib/cbrtf.c: New file.
3837         * m4/cbrtf.m4: New file.
3838         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
3839         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
3840         HAVE_DECL_CBRTF.
3841         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
3842         HAVE_DECL_CBRTF.
3843         * modules/cbrtf: New file.
3844         * tests/test-math-c++.cc: Check the declaration of cbrtf.
3845         * doc/posix-functions/cbrtf.texi: Mention the new module.
3846
3847 2012-02-29  Bruno Haible  <bruno@clisp.org>
3848
3849         cbrt: Provide replacement on MSVC and Minix.
3850         * lib/math.in.h (cbrt): New declaration.
3851         * lib/cbrt.c: New file.
3852         * m4/cbrt.m4: New file.
3853         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
3854         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
3855         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
3856         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
3857         (Depends-on): Add dependencies.
3858         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
3859         * tests/test-math-c++.cc: Check the declaration of cbrt.
3860         * doc/posix-functions/cbrt.texi: Mention that the module provides a
3861         replacement.
3862
3863 2012-02-29  Bruno Haible  <bruno@clisp.org>
3864
3865         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
3866         * m4/hypotl-ieee.m4: New file.
3867         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
3868         test whether hypotl works with mixed NaN and Infinity arguments.
3869         Replace it if not.
3870         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
3871         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
3872         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
3873         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
3874         (Depends-on): Update conditions.
3875         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
3876         (Depends-on): Add hypot-ieee.
3877         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
3878         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
3879
3880         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
3881         * m4/hypotf-ieee.m4: New file.
3882         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
3883         test whether hypotf works with mixed NaN and Infinity arguments.
3884         Replace it if not.
3885         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
3886         (Depends-on): Add hypot-ieee.
3887         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
3888         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
3889
3890         hypot-ieee: Work around test failure on OSF/1 and native Windows.
3891         * lib/math.in.h (hypot): New declaration.
3892         * lib/hypot.c: New file.
3893         * m4/hypot-ieee.m4: New file.
3894         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
3895         whether hypot works with mixed NaN and Infinity arguments. Replace it
3896         if not.
3897         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
3898         REPLACE_HYPOT.
3899         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
3900         * modules/hypot (Files): Add lib/hypot.c.
3901         (Depends-on): Add dependencies.
3902         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
3903         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
3904         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
3905         * tests/test-math-c++.cc: Check the declaration of hypot.
3906         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
3907
3908         Tests for module 'hypotl-ieee'.
3909         * modules/hypotl-ieee-tests: New file.
3910         * tests/test-hypotl-ieee.c: New file.
3911
3912         New module 'hypotl-ieee'.
3913         * modules/hypotl-ieee: New file.
3914
3915         Tests for module 'hypot-ieee'.
3916         * modules/hypot-ieee-tests: New file.
3917         * tests/test-hypot-ieee.c: New file.
3918
3919         New module 'hypot-ieee'.
3920         * modules/hypot-ieee: New file.
3921
3922         Tests for module 'hypotf-ieee'.
3923         * modules/hypotf-ieee-tests: New file.
3924         * tests/test-hypotf-ieee.c: New file.
3925         * tests/test-hypot-ieee.h: New file.
3926
3927         New module 'hypotf-ieee'.
3928         * modules/hypotf-ieee: New file.
3929
3930 2012-02-29  Bruno Haible  <bruno@clisp.org>
3931
3932         Remove unused variables.
3933         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
3934         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
3935         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
3936         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
3937
3938 2012-02-29  Eric Blake  <eblake@redhat.com>
3939
3940         termios: fix pid_t always, not just for tcgetsid
3941         * doc/posix-headers/termios.texi (termios.h): Mention problem.
3942         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
3943         just when building tcgetsid.
3944
3945 2012-02-29  Bruno Haible  <bruno@clisp.org>
3946
3947         Tests for module 'hypotl'.
3948         * modules/hypotl-tests: New file.
3949         * tests/test-hypotl.c: New file.
3950
3951         New module 'hypotl'.
3952         * lib/math.in.h (hypotl): New declaration.
3953         * lib/hypotl.c: New file.
3954         * m4/hypotl.m4: New file.
3955         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
3956         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
3957         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
3958         * modules/hypotl: New file.
3959         * tests/test-math-c++.cc: Check the hypotl declaration.
3960         * doc/posix-functions/hypotl.texi: Mention the new module.
3961
3962 2012-02-29  Eric Blake  <eblake@redhat.com>
3963
3964         tcgetsid: fix cygwin header bug
3965         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
3966
3967         docs: update cygwin progress
3968         * doc/posix-functions/llround.texi (llround): Added in cygwin
3969         1.7.8.
3970         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
3971         * doc/glibc-functions/program_invocation_name.texi
3972         (program_invocation_name): Likewise.
3973         * doc/glibc-functions/program_invocation_short_name.texi
3974         (program_invocation_short_name): Likewise.
3975         * doc/glibc-functions/madvise.texi (madvise): Likewise.
3976         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
3977         Likewise.
3978         * doc/posix-functions/pthread_spin_destroy.texi
3979         (pthread_spin_destroy): Added in cygwin 1.7.10.
3980         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
3981         Likewise.
3982         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
3983         Likewise.
3984         * doc/posix-functions/pthread_spin_trylock.texi
3985         (pthread_spin_trylock): Likewise.
3986         * doc/posix-functions/pthread_spin_unlock.texi
3987         (pthread_spin_unlock): Likewise.
3988         * doc/posix-functions/pthread_setschedprio.texi
3989         (pthread_setschedprio): Likewise.
3990         * doc/posix-functions/pthread_attr_getstack.texi
3991         (pthread_attr_getstack): Likewise.
3992         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
3993         (pthread_attr_getstackaddr): Likewise.
3994         * doc/glibc-functions/pthread_getattr_np.texi
3995         (pthread_getattr_np): Likewise.
3996         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
3997         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
3998         * doc/posix-functions/clock_settime.texi (clock_settime):
3999         Likewise.
4000         * doc/posix-functions/pthread_attr_getguardsize.texi
4001         (pthread_attr_getguardsize): Likewise.
4002         * doc/posix-functions/pthread_attr_setguardsize.texi
4003         (pthread_attr_setguardsize): Likewise.
4004         * doc/posix-functions/pthread_attr_setstack.texi
4005         (pthread_attr_setstack): Likewise.
4006         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
4007         (pthread_attr_setstackaddr): Likewise.
4008         * doc/posix-functions/clock_getcpuclockid.texi
4009         (clock_getcpuclockid): Likewise.
4010         * doc/posix-functions/pthread_getcpuclockid.texi
4011         (pthread_getcpuclockid): Likewise.
4012         * doc/glibc-functions/error.texi (error): Likewise.
4013         * doc/glibc-functions/error_at_line.texi (error_at_line):
4014         Likewise.
4015         * doc/glibc-functions/error_message_count.texi
4016         (error_message_count): Likewise.
4017         * doc/glibc-functions/error_one_per_line.texi
4018         (error_one_per_line): Likewise.
4019         * doc/glibc-functions/error_print_progname.texi
4020         (error_print_progname): Likewise.
4021         * doc/posix-functions/pthread_condattr_getclock.texi
4022         (pthread_condattr_getclock): Likewise.
4023         * doc/posix-functions/pthread_condattr_setclock.texi
4024         (pthread_condattr_setclock): Likewise.
4025         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
4026         Likewise.
4027         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
4028         * doc/glibc-functions/getpt.texi (getpt): Likewise.
4029         * doc/glibc-functions/get_current_dir_name.texi
4030         (get_current_dir_name): Likewise.
4031         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
4032         Likewise.
4033         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
4034         wrong return type.
4035         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
4036         1.7.11.
4037
4038 2012-02-29  Bruno Haible  <bruno@clisp.org>
4039
4040         Tests for module 'hypotf'.
4041         * modules/hypotf-tests: New file.
4042         * tests/test-hypotf.c: New file.
4043
4044         New module 'hypotf'.
4045         * lib/math.in.h (hypotf): New declaration.
4046         * lib/hypotf.c: New file.
4047         * m4/hypotf.m4: New file.
4048         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
4049         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
4050         REPLACE_HYPOTF.
4051         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
4052         REPLACE_HYPOTF.
4053         * modules/hypotf: New file.
4054         * tests/test-math-c++.cc: Check the hypotf declaration.
4055         * doc/posix-functions/hypotf.texi: Mention the new module.
4056
4057         hypot: Prepare for hypotf module.
4058         * m4/hypot.m4: New file.
4059         * modules/hypot (Files): Add m4/hypot.m4.
4060         (configure.ac): Invoke gl_FUNC_HYPOT.
4061
4062 2012-02-29  Bruno Haible  <bruno@clisp.org>
4063
4064         hypot tests: More tests.
4065         * tests/test-hypot.c: Include <float.h>.
4066         (main): Add tests about overflow and underflow.
4067
4068 2012-02-29  Bruno Haible  <bruno@clisp.org>
4069
4070         math code: Add comments.
4071         * lib/acosl.c: Add comment about related glibc source files.
4072         * lib/asinl.c: Likewise.
4073         * lib/atanl.c: Likewise.
4074         * lib/expl.c: Likewise.
4075         * lib/logl.c: Likewise.
4076         * lib/sincosl.c: Likewise.
4077         * lib/sinl.c: Likewise.
4078         * lib/tanl.c: Likewise.
4079         * lib/trigl.c: Likewise.
4080         * lib/cosl.c: Likewise. Fix comments.
4081
4082 2012-02-28  Bruno Haible  <bruno@clisp.org>
4083
4084         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
4085         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
4086         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
4087         HUGE_VALL are defined.
4088         (numeric_equald): Renamed from numeric_equal.
4089         (numeric_equalf, numeric_equall): New functions.
4090         (main): Check also HUGE_VALF, HUGE_VALL.
4091         * modules/math-tests (Files): Add tests/macros.h.
4092         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
4093         HUGE_VALL.
4094
4095 2012-02-28  Bruno Haible  <bruno@clisp.org>
4096
4097         doc: Move ISO C11 feature notes into POSIX chapters.
4098         * doc/posix-functions/aligned_alloc.texi: Renamed from
4099         doc/glibc-functions/aligned_alloc.texi.
4100         * doc/posix-functions/quick_exit.texi: Renamed from
4101         doc/glibc-functions/quick_exit.texi.
4102         * doc/posix-headers/uchar.texi: Renamed from
4103         doc/glibc-headers/uchar.texi.
4104         * doc/posix-functions/c16rtomb.texi: Renamed from
4105         doc/glibc-functions/c16rtomb.texi.
4106         * doc/posix-functions/c32rtomb.texi: Renamed from
4107         doc/glibc-functions/c32rtomb.texi.
4108         * doc/posix-functions/mbrtoc16.texi: Renamed from
4109         doc/glibc-functions/mbrtoc16.texi.
4110         * doc/posix-functions/mbrtoc32.texi: Renamed from
4111         doc/glibc-functions/mbrtoc32.texi.
4112         * doc/gnulib.texi: Update.
4113         (Glibc uchar.h): Remove section.
4114         Suggested by Eric Blake.
4115
4116 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
4117
4118         stdnoreturn: port to MSVC better
4119         MSVC standard headers use __declspec(noreturn), so #define noreturn
4120         to empty on that platform.  Reported by Bruno Haible in
4121         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
4122         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
4123         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
4124
4125 2012-02-28  Bruno Haible  <bruno@clisp.org>
4126
4127         doc: Mention new glibc headers and functions.
4128         * doc/glibc-headers/uchar.texi: New file.
4129         * doc/glibc-functions/aligned_alloc.texi: New file.
4130         * doc/glibc-functions/c16rtomb.texi: New file.
4131         * doc/glibc-functions/c32rtomb.texi: New file.
4132         * doc/glibc-functions/clock_adjtime.texi: New file.
4133         * doc/glibc-functions/fanotify_init.texi: New file.
4134         * doc/glibc-functions/fanotify_mark.texi: New file.
4135         * doc/glibc-functions/inet6_opt_append.texi: New file.
4136         * doc/glibc-functions/inet6_opt_find.texi: New file.
4137         * doc/glibc-functions/inet6_opt_finish.texi: New file.
4138         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
4139         * doc/glibc-functions/inet6_opt_init.texi: New file.
4140         * doc/glibc-functions/inet6_opt_next.texi: New file.
4141         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
4142         * doc/glibc-functions/inet6_rth_add.texi: New file.
4143         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
4144         * doc/glibc-functions/inet6_rth_init.texi: New file.
4145         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
4146         * doc/glibc-functions/inet6_rth_segments.texi: New file.
4147         * doc/glibc-functions/inet6_rth_space.texi: New file.
4148         * doc/glibc-functions/login.texi: New file.
4149         * doc/glibc-functions/mbrtoc16.texi: New file.
4150         * doc/glibc-functions/mbrtoc32.texi: New file.
4151         * doc/glibc-functions/name_to_handle_at.texi: New file.
4152         * doc/glibc-functions/ntp_gettimex.texi: New file.
4153         * doc/glibc-functions/open_by_handle_at.texi: New file.
4154         * doc/glibc-functions/prlimit.texi: New file.
4155         * doc/glibc-functions/process_vm_readv.texi: New file.
4156         * doc/glibc-functions/process_vm_writev.texi: New file.
4157         * doc/glibc-functions/recvmmsg.texi: New file.
4158         * doc/glibc-functions/scandirat.texi: New file.
4159         * doc/glibc-functions/sendmmsg.texi: New file.
4160         * doc/glibc-functions/setns.texi: New file.
4161         * doc/glibc-functions/timespec_get.texi: New file.
4162         * doc/gnulib.texi: Include them.
4163         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
4164         sections.
4165         Reported by Eric Blake.
4166
4167 2012-02-28  Bruno Haible  <bruno@clisp.org>
4168
4169         Avoid compilation errors with MSVC option -fp:strict.
4170         * lib/floor.c: Use MSVC specific pragma fenv_access.
4171         * lib/ceil.c: Likewise.
4172         * lib/trunc.c: Likewise.
4173         * lib/round.c: Likewise.
4174         * lib/rint.c: Likewise.
4175         * lib/fma.c: Likewise.
4176         * lib/integer_length.c: Likewise.
4177         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
4178         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
4179         * tests/test-floor2.c: Likewise.
4180         * tests/test-floorf2.c: Likewise.
4181         * tests/test-ceil2.c: Likewise.
4182         * tests/test-ceilf2.c: Likewise.
4183         * tests/test-trunc2.c: Likewise.
4184         * tests/test-truncf2.c: Likewise.
4185         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
4186
4187 2012-02-27  Bruno Haible  <bruno@clisp.org>
4188
4189         Tests for module 'sqrtl-ieee'.
4190         * modules/sqrtl-ieee-tests: New file.
4191         * tests/test-sqrtl-ieee.c: New file.
4192
4193         New module 'sqrtl-ieee'.
4194         * modules/sqrtl-ieee: New file.
4195
4196         Tests for module 'sqrt-ieee'.
4197         * modules/sqrt-ieee-tests: New file.
4198         * tests/test-sqrt-ieee.c: New file.
4199
4200         New module 'sqrt-ieee'.
4201         * modules/sqrt-ieee: New file.
4202
4203         Tests for module 'sqrtf-ieee'.
4204         * modules/sqrtf-ieee-tests: New file.
4205         * tests/test-sqrtf-ieee.c: New file.
4206         * tests/test-sqrt-ieee.h: New file.
4207
4208         New module 'sqrtf-ieee'.
4209         * modules/sqrtf-ieee: New file.
4210
4211 2012-02-27  Bruno Haible  <bruno@clisp.org>
4212
4213         remainderl-ieee: Work around test failure on OSF/1.
4214         * m4/remainderl-ieee.m4: New file.
4215         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
4216         present, test whether remainderl works with a zero second argument.
4217         Replace it if not.
4218         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
4219         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
4220         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
4221         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
4222         (Depends-on): Update conditions.
4223         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
4224         (Depends-on): Add remainder-ieee.
4225         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
4226         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
4227         module.
4228
4229         remainderf-ieee: Work around test failure on OSF/1.
4230         * m4/remainderf-ieee.m4: New file.
4231         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
4232         present, test whether remainderf works with a zero second argument.
4233         Replace it if not.
4234         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
4235         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
4236         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
4237         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
4238         (Depends-on): Update conditions.
4239         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
4240         (Depends-on): Add remainder-ieee.
4241         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
4242         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
4243         module.
4244
4245         remainder-ieee: Work around test failure on OSF/1.
4246         * m4/remainder-ieee.m4: New file.
4247         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
4248         present, test whether remainder works with a zero second argument.
4249         Replace it if not.
4250         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
4251         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
4252         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
4253         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
4254         (Depends-on): Update dependencies.
4255         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
4256         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
4257         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
4258
4259         Tests for module 'remainderl-ieee'.
4260         * modules/remainderl-ieee-tests: New file.
4261         * tests/test-remainderl-ieee.c: New file.
4262
4263         New module 'remainderl-ieee'.
4264         * modules/remainderl-ieee: New file.
4265
4266         Tests for module 'remainder-ieee'.
4267         * modules/remainder-ieee-tests: New file.
4268         * tests/test-remainder-ieee.c: New file.
4269
4270         New module 'remainder-ieee'.
4271         * modules/remainder-ieee: New file.
4272
4273         Tests for module 'remainderf-ieee'.
4274         * modules/remainderf-ieee-tests: New file.
4275         * tests/test-remainderf-ieee.c: New file.
4276         * tests/test-remainder-ieee.h: New file.
4277
4278         New module 'remainderf-ieee'.
4279         * modules/remainderf-ieee: New file.
4280
4281 2012-02-27  Bruno Haible  <bruno@clisp.org>
4282
4283         modff, modfl: Fix configure syntax error.
4284         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
4285         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
4286
4287 2012-02-27  Bruno Haible  <bruno@clisp.org>
4288
4289         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
4290         * m4/fmodl-ieee.m4: New file.
4291         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
4292         whether fmodl works with zero arguments. Replace it if not.
4293         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
4294         (Depends-on): Add fmod-ieee.
4295         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
4296         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
4297
4298         fmodf-ieee: Work around test failure on OSF/1.
4299         * m4/fmodf-ieee.m4: New file.
4300         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
4301         whether fmodf works with zero arguments. Replace it if not.
4302         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
4303         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
4304         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
4305         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
4306         (Depends-on): Update dependencies.
4307         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
4308         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
4309         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
4310
4311         fmodf-ieee: Work around test failure on MSVC 9.
4312         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
4313         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
4314
4315         fmod-ieee: Work around test failures on OSF/1, mingw.
4316         * m4/fmod-ieee.m4: New file.
4317         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
4318         whether fmod works with zero arguments. Replace it if not.
4319         * lib/math.in.h (fmod): New declaration.
4320         * lib/fmod.c: New file.
4321         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
4322         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
4323         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
4324         * modules/fmod (Files): Add lib/fmod.c.
4325         (Depends-on): Add math, isinf, trunc, fma.
4326         (configure.ac): Arrange to compile lib/fmod.c if needed.
4327         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
4328         m4/signbit.m4.
4329         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
4330         * tests/test-math-c++.cc: Check the declaration of fmod.
4331         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
4332
4333         fmodl-ieee: Fix test failures.
4334         * lib/fmodl.c (fmodl): Treat Inf specially.
4335         * modules/fmodl (Depends-on): Add isinf.
4336
4337         Tests for module 'fmodl-ieee'.
4338         * modules/fmodl-ieee-tests: New file.
4339         * tests/test-fmodl-ieee.c: New file.
4340
4341         New module 'fmodl-ieee'.
4342         * modules/fmodl-ieee: New file.
4343
4344         Tests for module 'fmod-ieee'.
4345         * modules/fmod-ieee-tests: New file.
4346         * tests/test-fmod-ieee.c: New file.
4347
4348         New module 'fmod-ieee'.
4349         * modules/fmod-ieee: New file.
4350
4351         Tests for module 'fmodf-ieee'.
4352         * modules/fmodf-ieee-tests: New file.
4353         * tests/test-fmodf-ieee.c: New file.
4354         * tests/test-fmod-ieee.h: New file.
4355
4356         New module 'fmodf-ieee'.
4357         * modules/fmodf-ieee: New file.
4358
4359 2012-02-27  Bruno Haible  <bruno@clisp.org>
4360
4361         Tests for module 'rintl-ieee'.
4362         * modules/rintl-ieee-tests: New file.
4363         * tests/test-rintl-ieee.c: New file.
4364
4365         New module 'rintl-ieee'.
4366         * modules/rintl-ieee: New file.
4367
4368         Tests for module 'rint-ieee'.
4369         * modules/rint-ieee-tests: New file.
4370         * tests/test-rint-ieee.c: New file.
4371
4372         New module 'rint-ieee'.
4373         * modules/rint-ieee: New file.
4374
4375         Tests for module 'rintf-ieee'.
4376         * modules/rintf-ieee-tests: New file.
4377         * tests/test-rintf-ieee.c: New file.
4378         * tests/test-rint-ieee.h: New file.
4379
4380         New module 'rintf-ieee'.
4381         * modules/rintf-ieee: New file.
4382
4383 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
4384
4385         regex: re_search etc. should return -2 when memory exhausted
4386         This bug was uncovered when testing 'grep'.  Without the fix,
4387         re_search and friends return -1 when memory is exhausted, but -1
4388         means no match, and this causes grep to falsely report no-match
4389         instead of memory-exhaustion.  See
4390         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
4391         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
4392         trouble; this can occur if re_search_internal ran out of memory.
4393
4394 2012-02-26  Bruno Haible  <bruno@clisp.org>
4395
4396         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
4397         * m4/modfl-ieee.m4: New file.
4398         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
4399         whether modfl works with Inf. Replace it if not.
4400         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
4401         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
4402         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
4403         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
4404         (Depends-on): Update dependencies.
4405         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
4406         m4/signbit.m4.
4407         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
4408         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
4409
4410         modfl-ieee: Fix dependencies.
4411         * modules/modfl-ieee (Depends-on): Add modf-ieee.
4412
4413         modfl-ieee: Fix test failures.
4414         * lib/modfl.c (modfl): Treat NaN and Inf specially.
4415         * modules/modfl (Depends-on): Add isfinite, isinf.
4416
4417         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
4418         * m4/modff-ieee.m4: New file.
4419         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
4420         whether modff works with NaN and Inf. Replace it if not.
4421         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
4422         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
4423         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
4424         * modules/modff (configure.ac): Consider REPLACE_MODFF.
4425         (Depends-on): Update dependencies.
4426         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
4427         m4/signbit.m4.
4428         (Depends-on): Add modf-ieee.
4429         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
4430         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
4431
4432         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
4433         * m4/modf-ieee.m4: New file.
4434         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
4435         whether modf works with NaN and Inf. Replace it if not.
4436         * lib/math.in.h (modf): New declaration.
4437         * lib/modf.c: New file.
4438         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
4439         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
4440         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
4441         * modules/modf (Files): Add lib/modf.c.
4442         (Depends-on): Add math, isfinite, trunc, isinf.
4443         (configure.ac): Addrange to compile lib/modf.c if needed.
4444         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
4445         m4/signbit.m4.
4446         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
4447         * tests/test-math-c++.cc: Check the declaration of modf.
4448         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
4449
4450         Tests for module 'modfl-ieee'.
4451         * modules/modfl-ieee-tests: New file.
4452         * tests/test-modfl-ieee.c: New file.
4453
4454         New module 'modfl-ieee'.
4455         * modules/modfl-ieee: New file.
4456
4457         Tests for module 'modf-ieee'.
4458         * modules/modf-ieee-tests: New file.
4459         * tests/test-modf-ieee.c: New file.
4460
4461         New module 'modf-ieee'.
4462         * modules/modf-ieee: New file.
4463
4464         Tests for module 'modff-ieee'.
4465         * modules/modff-ieee-tests: New file.
4466         * tests/test-modff-ieee.c: New file.
4467         * tests/test-modf-ieee.h: New file.
4468
4469         New module 'modff-ieee'.
4470         * modules/modff-ieee: New file.
4471
4472 2012-02-26  Bruno Haible  <bruno@clisp.org>
4473
4474         Tests for module 'fabsl-ieee'.
4475         * modules/fabsl-ieee-tests: New file.
4476         * tests/test-fabsl-ieee.c: New file.
4477
4478         New module 'fabsl-ieee'.
4479         * modules/fabsl-ieee: New file.
4480
4481         Tests for module 'fabs-ieee'.
4482         * modules/fabs-ieee-tests: New file.
4483         * tests/test-fabs-ieee.c: New file.
4484
4485         New module 'fabs-ieee'.
4486         * modules/fabs-ieee: New file.
4487
4488         Tests for module 'fabsf-ieee'.
4489         * modules/fabsf-ieee-tests: New file.
4490         * tests/test-fabsf-ieee.c: New file.
4491         * tests/test-fabs-ieee.h: New file.
4492
4493         New module 'fabsf-ieee'.
4494         * modules/fabsf-ieee: New file.
4495
4496 2012-02-26  Bruno Haible  <bruno@clisp.org>
4497
4498         Tests for module 'fmal-ieee'.
4499         * modules/fmal-ieee-tests: New file.
4500         * tests/test-fmal-ieee.c: New file.
4501
4502         New module 'fmal-ieee'.
4503         * modules/fmal-ieee: New file.
4504
4505         Tests for module 'fma-ieee'.
4506         * modules/fma-ieee-tests: New file.
4507         * tests/test-fma-ieee.c: New file.
4508
4509         New module 'fma-ieee'.
4510         * modules/fma-ieee: New file.
4511
4512         Tests for module 'fmaf-ieee'.
4513         * modules/fmaf-ieee-tests: New file.
4514         * tests/test-fmaf-ieee.c: New file.
4515         * tests/test-fma-ieee.h: New file.
4516
4517         New module 'fmaf-ieee'.
4518         * modules/fmaf-ieee: New file.
4519
4520 2012-02-26  Bruno Haible  <bruno@clisp.org>
4521
4522         Tests for module 'ldexpl-ieee'.
4523         * modules/ldexpl-ieee-tests: New file.
4524         * tests/test-ldexpl-ieee.c: New file.
4525
4526         New module 'ldexpl-ieee'.
4527         * modules/ldexpl-ieee: New file.
4528
4529         Tests for module 'ldexp-ieee'.
4530         * modules/ldexp-ieee-tests: New file.
4531         * tests/test-ldexp-ieee.c: New file.
4532
4533         New module 'ldexp-ieee'.
4534         * modules/ldexp-ieee: New file.
4535
4536         Tests for module 'ldexpf-ieee'.
4537         * modules/ldexpf-ieee-tests: New file.
4538         * tests/test-ldexpf-ieee.c: New file.
4539         * tests/test-ldexp-ieee.h: New file.
4540
4541         New module 'ldexpf-ieee'.
4542         * modules/ldexpf-ieee: New file.
4543
4544 2012-02-26  Bruno Haible  <bruno@clisp.org>
4545
4546         Refactor frexp*-ieee tests.
4547         * tests/test-frexp-ieee.h: New file.
4548         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
4549         (main): Just call test_function.
4550         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
4551         (main): Just call test_function.
4552         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
4553         (main): Just call test_function.
4554         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
4555         * modules/frexp-ieee-tests (Files): Likewise.
4556         * modules/frexpl-ieee-tests (Files): Likewise.
4557
4558         Tests for module 'frexpl-ieee'.
4559         * modules/frexpl-ieee-tests: New file.
4560         * tests/test-frexpl-ieee.c: New file.
4561
4562         New module 'frexpl-ieee'.
4563         * modules/frexpl-ieee: New file.
4564
4565         Tests for module 'frexp-ieee'.
4566         * modules/frexp-ieee-tests: New file.
4567         * tests/test-frexp-ieee.c: New file.
4568
4569         New module 'frexp-ieee'.
4570         * modules/frexp-ieee: New file.
4571
4572         Tests for module 'frexpf-ieee'.
4573         * modules/frexpf-ieee-tests: New file.
4574         * tests/test-frexpf-ieee.c: New file.
4575
4576         New module 'frexpf-ieee'.
4577         * modules/frexpf-ieee: New file.
4578
4579 2012-02-26  Bruno Haible  <bruno@clisp.org>
4580
4581         roundl-ieee tests: More tests.
4582         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
4583         (main): Add tests for [MX] shaded specification in POSIX.
4584         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4585         (Depends-on): Add isnanl-nolibm.
4586
4587         round-ieee tests: More tests.
4588         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
4589         (main): Add tests for [MX] shaded specification in POSIX.
4590         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4591         (Depends-on): Add isnand-nolibm.
4592
4593         roundf-ieee tests: More tests.
4594         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
4595         (main): Add tests for [MX] shaded specification in POSIX.
4596         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4597         (Depends-on): Add isnanf-nolibm.
4598
4599         truncl-ieee tests: More tests.
4600         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
4601         (main): Add tests for [MX] shaded specification in POSIX.
4602         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4603         (Depends-on): Add isnanl-nolibm.
4604
4605         trunc-ieee tests: More tests.
4606         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
4607         (main): Add tests for [MX] shaded specification in POSIX.
4608         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4609         (Depends-on): Add isnand-nolibm.
4610
4611         truncf-ieee tests: More tests.
4612         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
4613         (main): Add tests for [MX] shaded specification in POSIX.
4614         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4615         (Depends-on): Add isnanf-nolibm.
4616
4617         ceill-ieee tests: More tests.
4618         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
4619         (main): Add tests for [MX] shaded specification in POSIX.
4620         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4621         (Depends-on): Add isnanl-nolibm.
4622
4623         ceil-ieee tests: More tests.
4624         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
4625         (main): Add tests for [MX] shaded specification in POSIX.
4626         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4627         (Depends-on): Add isnand-nolibm.
4628
4629         ceilf-ieee tests: More tests.
4630         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
4631         (main): Add tests for [MX] shaded specification in POSIX.
4632         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4633         (Depends-on): Add isnanf-nolibm.
4634
4635         floorl-ieee tests: More tests.
4636         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
4637         (main): Add tests for [MX] shaded specification in POSIX.
4638         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4639         (Depends-on): Add isnanl-nolibm.
4640
4641         floor-ieee tests: More tests.
4642         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
4643         (main): Add tests for [MX] shaded specification in POSIX.
4644         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4645         (Depends-on): Add isnand-nolibm.
4646
4647         floorf-ieee tests: More tests.
4648         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
4649         (main): Add tests for [MX] shaded specification in POSIX.
4650         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4651         (Depends-on): Add isnanf-nolibm.
4652
4653 2012-02-26  Bruno Haible  <bruno@clisp.org>
4654
4655         fpieee: More comments.
4656         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
4657
4658 2012-02-25  Bruno Haible  <bruno@clisp.org>
4659
4660         Tests for module 'log10l'.
4661         * modules/log10l-tests: New file.
4662         * tests/test-log10l.c: New file.
4663         * tests/test-math-c++.cc: Check the declaration of log10l.
4664
4665         New module 'log10l'.
4666         * lib/math.in.h (log10l): New declaration.
4667         * lib/log10l.c: New file.
4668         * m4/log10l.m4: New file.
4669         * modules/log10l: New file.
4670         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
4671         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
4672         HAVE_DECL_LOG10L.
4673         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
4674         HAVE_DECL_LOG10L.
4675         * doc/posix-functions/log10l.texi: Mention the new module.
4676
4677 2012-02-25  Bruno Haible  <bruno@clisp.org>
4678
4679         fmodl, remainder*: Avoid wrong results due to rounding errors.
4680         * lib/fmodl.c (fmodl): Correct the result if it is not within the
4681         expected bounds.
4682         * lib/remainderf.c (remainderf): Likewise.
4683         * lib/remainder.c (remainder): Likewise.
4684         * lib/remainderl.c (remainderl): Likewise.
4685
4686 2012-02-25  Bruno Haible  <bruno@clisp.org>
4687
4688         Tests for module 'remainderl'.
4689         * modules/remainderl-tests: New file.
4690         * tests/test-remainderl.c: New file.
4691         * tests/test-math-c++.cc: Check the declaration of remainderl.
4692
4693         New module 'remainderl'.
4694         * lib/math.in.h (remainderl): New declaration.
4695         * lib/remainderl.c: New file.
4696         * m4/remainderl.m4: New file.
4697         * modules/remainderl: New file.
4698         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
4699         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
4700         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
4701         HAVE_REMAINDERL.
4702         * doc/posix-functions/remainderl.texi: Mention the new module.
4703
4704 2012-02-25  Bruno Haible  <bruno@clisp.org>
4705
4706         Tests for module 'remainderf'.
4707         * modules/remainderf-tests: New file.
4708         * tests/test-remainderf.c: New file.
4709         * tests/test-math-c++.cc: Check the declaration of remainderf.
4710
4711         New module 'remainderf'.
4712         * lib/math.in.h (remainderf): New declaration.
4713         * lib/remainderf.c: New file.
4714         * m4/remainderf.m4: New file.
4715         * modules/remainderf: New file.
4716         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
4717         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
4718         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
4719         HAVE_REMAINDERF.
4720         * doc/posix-functions/remainderf.texi: Mention the new module.
4721
4722 2012-02-25  Bruno Haible  <bruno@clisp.org>
4723
4724         remainder: Support for MSVC.
4725         * lib/math.in.h (remainder): New declaration.
4726         * lib/remainder.c: New file.
4727         * m4/remainder.m4: New file.
4728         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
4729         (Depends-on): Add math, round, fma.
4730         (configure.ac): Use results of gl_FUNC_REMAINDER.
4731         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
4732         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
4733         HAVE_DECL_REMAINDER.
4734         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
4735         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
4736         * tests/test-math-c++.cc: Check the declaration of remainder.
4737         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
4738         problems are fixed.
4739
4740 2012-02-25  Bruno Haible  <bruno@clisp.org>
4741
4742         Tests for module 'fmodl'.
4743         * modules/fmodl-tests: New file.
4744         * tests/test-fmodl.c: New file.
4745         * tests/test-math-c++.cc: Check the declaration of fmodl.
4746
4747         New module 'fmodl'.
4748         * lib/math.in.h (fmodl): New declaration.
4749         * lib/fmodl.c: New file.
4750         * m4/fmodl.m4: New file.
4751         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
4752         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
4753         REPLACE_FMODL.
4754         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
4755         REPLACE_FMODL.
4756         * modules/fmodl: New file.
4757         * doc/posix-functions/fmodl.texi: Mention the new module.
4758
4759 2012-02-25  Bruno Haible  <bruno@clisp.org>
4760
4761         Tests for module 'modfl'.
4762         * modules/modfl-tests: New file.
4763         * tests/test-modfl.c: New file.
4764         * tests/test-math-c++.cc: Check the declaration of modfl.
4765
4766         New module 'modfl'.
4767         * lib/math.in.h (modfl): New declaration.
4768         * lib/modfl.c: New file.
4769         * m4/modfl.m4: New file.
4770         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
4771         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
4772         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
4773         * modules/modfl: New file.
4774         * doc/posix-functions/modfl.texi: Mention the new module.
4775
4776 2012-02-25  Bruno Haible  <bruno@clisp.org>
4777
4778         Tests for module 'fabsl'.
4779         * modules/fabsl-tests: New file.
4780         * tests/test-fabsl.c: New file.
4781         * tests/test-math-c++.cc: Check the declaration of fabsl.
4782
4783         New module 'fabsl'.
4784         * lib/math.in.h (fabsl): New declaration.
4785         * lib/fabsl.c: New file.
4786         * m4/fabsl.m4: New file.
4787         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
4788         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
4789         REPLACE_FABSL.
4790         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
4791         REPLACE_FABSL.
4792         * modules/fabsl: New file.
4793         * doc/posix-functions/fabsl.texi: Mention the new module.
4794
4795 2012-02-25  Bruno Haible  <bruno@clisp.org>
4796
4797         fabs tests: More tests.
4798         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
4799         (zero): New variable.
4800         (main): Add tests for signed zero.
4801         * modules/fabs-tests (Files): Add tests/minus-zero.h.
4802
4803         fabsf tests: More tests.
4804         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
4805         (zero): New variable.
4806         (main): Add tests for signed zero.
4807         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
4808
4809 2012-02-24  Bruno Haible  <bruno@clisp.org>
4810
4811         atanl: Provide function definition on MSVC.
4812         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
4813         function pointer.
4814         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
4815
4816 2012-02-24  Bruno Haible  <bruno@clisp.org>
4817
4818         acosl: Provide function definition on MSVC.
4819         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
4820         function pointer.
4821         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
4822
4823 2012-02-24  Bruno Haible  <bruno@clisp.org>
4824
4825         asinl: Provide function definition on MSVC.
4826         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
4827         function pointer.
4828         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
4829
4830 2012-02-24  Bruno Haible  <bruno@clisp.org>
4831
4832         tanl: Provide function definition on MSVC.
4833         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
4834         function pointer.
4835         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
4836
4837 2012-02-24  Bruno Haible  <bruno@clisp.org>
4838
4839         cosl: Provide function definition on MSVC.
4840         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
4841         function pointer.
4842         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
4843
4844 2012-02-24  Bruno Haible  <bruno@clisp.org>
4845
4846         sinl: Provide function definition on MSVC.
4847         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
4848         function pointer.
4849         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
4850
4851 2012-02-24  Bruno Haible  <bruno@clisp.org>
4852
4853         logl: Provide function definition on MSVC.
4854         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
4855         function pointer.
4856         * lib/math.in.h (logl): Undefine if it does not exist as a function.
4857
4858 2012-02-24  Bruno Haible  <bruno@clisp.org>
4859
4860         expl: Provide function definition on MSVC.
4861         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
4862         function pointer.
4863         * lib/math.in.h (expl): Undefine if it does not exist as a function.
4864
4865 2012-02-24  Bruno Haible  <bruno@clisp.org>
4866
4867         sqrtl: Provide function definition on MSVC.
4868         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
4869         a function pointer.
4870         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
4871
4872 2012-02-24  Bruno Haible  <bruno@clisp.org>
4873
4874         ceill: Provide function definition on MSVC.
4875         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
4876         used as a function pointer.
4877         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
4878
4879 2012-02-24  Bruno Haible  <bruno@clisp.org>
4880
4881         floorl: Provide function definition on MSVC.
4882         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
4883         used as a function pointer.
4884         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
4885
4886 2012-02-24  Bruno Haible  <bruno@clisp.org>
4887
4888         ceilf: Provide function definition on MSVC.
4889         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
4890         used as a function pointer.
4891         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
4892
4893 2012-02-24  Bruno Haible  <bruno@clisp.org>
4894
4895         floorf: Provide function definition on MSVC.
4896         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
4897         used as a function pointer.
4898         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
4899
4900 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
4901
4902         stdnoreturn: new module
4903         This implements a replacement for C11's <stdnoreturn.h>.
4904         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
4905         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
4906         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
4907         * tests/test-stdnoreturn.c: New files.
4908
4909 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
4910
4911         regex: fix false multibyte matches in some regular expressions
4912         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
4913         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
4914         * lib/regex_internal.c (re_string_skip_chars):
4915         Fix miscomputation of remain_len that may cause incomplete
4916         multi-byte character and false match.
4917
4918 2012-02-24  Jim Meyering  <meyering@redhat.com>
4919
4920         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
4921         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
4922         uses with "==" *before* the call, e.g., 0 == strcmp (...)
4923         Remove now-unnecessary str''cmp obfuscation.
4924         Suggested by Akim Demaille.
4925
4926 2012-02-24  Bruno Haible  <bruno@clisp.org>
4927
4928         streq: Rename macro.
4929         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
4930         * NEWS: Mention the change.
4931         * lib/mbrtowc.c (mbrtowc): Update.
4932         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
4933         * lib/wcwidth.c (wcwidth): Update.
4934         Suggested by Akim Demaille and Jim Meyering.
4935
4936 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
4937
4938         regex: fix typo in definition of MIN
4939         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
4940         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
4941
4942 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
4943             Bruno Haible  <bruno@clisp.org>
4944
4945         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
4946         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
4947         entries into a stack-allocated buffer directly.
4948         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
4949
4950 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
4951             Bruno Haible  <bruno@clisp.org>
4952
4953         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
4954
4955          - There were several instances of this pattern:
4956
4957              for (;;) {
4958                n = acl (f, GETACLCNT, 0, NULL);
4959                [ allocate an array A of size N ]
4960                if (acl (f, GETACL, n, a) == n)
4961                  break;
4962              }
4963
4964            This loop might never terminate if some other process is constantly
4965            manipulating the file's ACL.  The loop should be rewritten to
4966            terminate.
4967
4968          - The acl (... GETACLNT ...) call is merely an optimization; its value
4969            is merely a hint as to how big to make the array.  A better
4970            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
4971            and just guess a reasonably-big size, growing the size and trying
4972            again if it's not large enough.  This guarantees termination, and
4973            saves a system call.
4974
4975         * lib/acl-internal.h: Include <limits.h>.
4976         (MIN, SIZE_MAX): New macros.
4977         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
4978         a stack-allocated buffer, and use malloc if it does not fit. Don't
4979         use GETACLCNT.
4980         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
4981
4982 2012-02-19  Bruno Haible  <bruno@clisp.org>
4983
4984         acl: Fix endless loop on Solaris with vxfs.
4985         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
4986         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
4987         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
4988         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
4989         * tests/test-sameacls.c (main)[Solaris]: Likewise.
4990         Reported by Bill Jones in
4991         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
4992
4993 2012-02-19  Bruno Haible  <bruno@clisp.org>
4994
4995         acl: Fix copy-acl test failure on Solaris 11 2011-11.
4996         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
4997         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
4998         that this function returns 0 in some more cases.
4999
5000 2012-02-19  Bruno Haible  <bruno@clisp.org>
5001
5002         acl: Update doc references.
5003         * doc/acl-resources.txt: Update links to Solaris documentation.
5004
5005 2012-02-19  Bruno Haible  <bruno@clisp.org>
5006
5007         Fix test failure in many locales on Solaris 11.
5008         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
5009         'tr' arguments.
5010         * tests/test-pipe-filter-ii1.c (main): Likewise.
5011         * build-aux/bootstrap (check_versions): Run 'tr' command with range
5012         expressions in the C locale.
5013         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
5014         * m4/host-os.m4 (gl_HOST_OS): Likewise.
5015
5016 2012-02-19  Bruno Haible  <bruno@clisp.org>
5017
5018         gnulib-tool: Improve usage message.
5019         * gnulib-tool (func_usage): Move doc of --help and --version to the
5020         section "Operation modes".
5021
5022 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
5023
5024         README-release: make it easier to execute commands
5025         * top/README-release: break commands out on to separate lines.
5026
5027 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
5028
5029         GNUmakefile: simplify detection of unconfigured trees
5030         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
5031         whether the tree make is being run from is already configured or
5032         not.  Related simplifications.
5033
5034 2012-02-13  Simon Josefsson  <simon@josefsson.org>
5035
5036         * gnulib-tool (func_usage): Document --help and --version.
5037
5038 2012-02-11  Jim Meyering  <meyering@redhat.com>
5039
5040         bootstrap: don't exit 0 upon gnulib-tool failure
5041         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
5042         its exit status, not 0.
5043
5044 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
5045
5046         README-release: various improvements
5047         * top/README-release: Give a command to push changes for the
5048         release.  Add "distcheck" to list of other pre-release checks.
5049         Fix instance of "make stable" which should be "make TYPE".
5050
5051 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
5052
5053         maint: replace FSF snail-mail addresses with URLs
5054         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
5055         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
5056         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
5057         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
5058         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
5059         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
5060         * lib/check-version.c, lib/check-version.h, lib/config.charset:
5061         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
5062         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
5063         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
5064         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
5065         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
5066         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
5067         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
5068         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
5069         * lib/glthread/thread.c, lib/glthread/thread.h:
5070         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
5071         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
5072         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
5073         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
5074         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
5075         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
5076         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
5077         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
5078         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
5079         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
5080         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
5081         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
5082         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
5083         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
5084         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
5085         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
5086         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
5087         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
5088         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
5089         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
5090         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
5091         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
5092         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
5093         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
5094         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
5095         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
5096         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
5097         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
5098         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
5099         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
5100         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
5101         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
5102         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
5103         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
5104         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
5105         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
5106         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
5107         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
5108         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
5109         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
5110         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
5111         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
5112         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
5113         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
5114         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
5115         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
5116         * tests/test-poll.c, tests/test-quotearg-simple.c:
5117         * tests/test-quotearg.c, tests/test-quotearg.h:
5118         * tests/test-round-ieee.c, tests/test-round1.c:
5119         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
5120         * tests/test-roundl-ieee.c, tests/test-roundl.c:
5121         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
5122         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
5123         * tests/test-strerror.c, tests/test-strerror_r.c:
5124         * tests/test-strsignal.c, tests/test-strverscmp.c:
5125         * tests/test-xmemdup0.c:
5126         Replace FSF snail mail addresses with URLs, as per GNU coding
5127         standards.  See glibc bug
5128         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
5129
5130 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
5131
5132         README-release: capitalize a word and split a line
5133         * top/README-release: Fix punctuation and spacing.
5134
5135 2012-02-08  Akim Demaille  <demaille@gostai.com>
5136
5137         fatal-signal: use C prototypes (with explicit void).
5138         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
5139         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
5140
5141 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
5142
5143         regex: spelling fix
5144         * lib/regexec.c: spelling fix
5145
5146         regex: rely on stdint.h for SIZE_MAX
5147         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
5148
5149 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
5150
5151         regex: merge glibc changes
5152
5153         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
5154         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
5155         (init_word_char): Work even if bitset words are not exactly 32 or
5156         64 bits wide.  Don't assume there are no padding bits.
5157         * lib/regex.c [_LIBC]: Do not include <config.h>.
5158         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
5159         and -Wtype-limits.
5160         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
5161         needless disagreement with glibc.  All uses changed.  Define it to
5162         1 only if _GNU_SOURCE, to match glibc.
5163         (_REG_RM_NAME): Remove; no longer needed, since the names in
5164         question are now all protected by __USE_GNU.
5165         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
5166         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
5167         * lib/regex_internal.h (MIN): New macro.
5168
5169         2012-01-03 Ulrich Drepper <drepper@gmail.com>
5170         * lib/regcomp.c (init_word_char): Optimize regex a bit.
5171
5172         2011-12-30 Jakub Jelinek <jakub@redhat.com>
5173         * lib/regex_internal.c (re_string_fetch_byte_case):
5174         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
5175         is miscompiled, and it turns out it is because of an incorrect
5176         attribute on re_string_fetch_byte_case.  Unlike
5177         re_string_peek_byte_case, this one is really not pure, it modifies
5178         memory (increments pstr->cur_idx), and with the pure attribute GCC
5179         assumed it doesn't and it cached the presumed value of
5180         regexp->cur_idx in a variable across the
5181          for (;; ++i)
5182            {
5183              if (i >= BRACKET_NAME_BUF_SIZE)
5184                return REG_EBRACK;
5185              if (token->type == OP_OPEN_CHAR_CLASS)
5186                ch = re_string_fetch_byte_case (regexp);
5187              else
5188                ch = re_string_fetch_byte (regexp);
5189              if (re_string_eoi(regexp))
5190                return REG_EBRACK;
5191              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
5192                break;
5193              elem->opr.name[i] = ch;
5194            }
5195
5196         2011-11-29 Andreas Schwab <schwab@redhat.com>
5197         * lib/regcomp.c (build_equiv_class):
5198         Fix access after end of search string in regex matcher.
5199
5200         2011-11-12 Ulrich Drepper <drepper@redhat.com>
5201         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
5202
5203         2011-10-12 Ulrich Drepper <drepper@redhat.com>
5204         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
5205
5206         2011-10-11 Ulrich Drepper <drepper@redhat.com>
5207         * lib/regcomp.c (parse_branch, parse_sub_exp):
5208         More regex memory leak fixes and tests.
5209         (parse_sub_exp, parse_bracket_exp):
5210         Fix memory leak for some invalid regular expressions.
5211
5212         2011-05-28 Ulrich Drepper <drepper@gmail.com>
5213         * lib/regex_internal.c, lib/regexec.c:
5214         Fix unnecessary overallocation due to incomplete character.  When
5215         incomplete characters are found at the end of a string the code
5216         ran amok and allocated lots of memory.  Stricter limits are now in
5217         place.
5218
5219         2011-05-20 Reuben Thomas <rrt@sc3d.org>
5220         * lib/regex.h: Update documentation.
5221
5222         2011-05-16 Aharon Robbins <arnold@skeeve.com>
5223         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
5224
5225         2010-05-05 Andreas Schwab <schwab@redhat.com>
5226         * lib/regexec.c (find_collation_sequence_value):
5227         Fix lookup of collation sequence value during regexp matching.
5228
5229         2010-01-22 Ulrich Drepper <drepper@redhat.com>
5230         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
5231
5232         2008-01-16 Ulrich Drepper <drepper@redhat.com>
5233         * lib/regex.h: Cleanup namespace.
5234
5235         2007-11-26 Ulrich Drepper <drepper@redhat.com>
5236         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
5237
5238         2007-08-26 Ulrich Drepper <drepper@redhat.com>
5239         * lib/regex_internal.h: Prevent some declarations and definitions
5240         to be seen when used in tests.
5241
5242         2005-05-06 Ulrich Drepper <drepper@redhat.com>
5243         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
5244         __libc_lock_* macros if not _LIBC.
5245         (struct re_dfa_t): Add lock.
5246
5247 2012-02-07  Eric Blake  <eblake@redhat.com>
5248
5249         maint.mk: also prohibit lower-case @var@
5250         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
5251         lower case, like @top_srcdir@.
5252
5253 2012-02-04  Eric Blake  <eblake@redhat.com>
5254
5255         canonicalize: avoid uninitialized memory use
5256         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
5257         random '/' left in dest.
5258         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
5259
5260 2012-02-04  Bruno Haible  <bruno@clisp.org>
5261
5262         isatty: Fix test failure of ptsname_r on native Windows.
5263         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
5264         and don't set errno.
5265         (isatty): Test first whether fd is valid. Set errno when returning 0.
5266
5267 2012-02-04  Bruno Haible  <bruno@clisp.org>
5268
5269         spawn-pipe tests: Fix a NULL program name in a diagnostic.
5270         * tests/test-spawn-pipe-main.c: Include progname.h.
5271         (main): Invoke set_program_name.
5272         * modules/spawn-pipe-tests (Depends-on): Add progname.
5273
5274         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
5275         * tests/test-nonblocking-socket-main.c: Include progname.h.
5276         (main): Invoke set_program_name.
5277         * modules/nonblocking-socket-tests (Depends-on): Add progname.
5278
5279         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
5280         * tests/test-nonblocking-pipe-main.c: Include progname.h.
5281         (main): Invoke set_program_name.
5282         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
5283
5284 2012-02-04  Eric Blake  <eblake@redhat.com>
5285
5286         canonicalize-lgpl: fix // handling
5287         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
5288
5289         canonicalize: fix // handling
5290         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
5291         /// to //, since only // is special.
5292
5293 2012-02-04  Bruno Haible  <bruno@clisp.org>
5294
5295         ioctl: Fix test failure on native Windows.
5296         * lib/ioctl.c: Include msvc-nothrow.h.
5297         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
5298
5299 2012-02-04  Bruno Haible  <bruno@clisp.org>
5300
5301         fsync: Avoid test failure on native Windows.
5302         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
5303         read-only.
5304
5305 2012-02-04  Bruno Haible  <bruno@clisp.org>
5306
5307         sys_select: Avoid syntax error on OpenBSD 5.0.
5308         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
5309         currently being included, just include the system's <sys/select.h>.
5310
5311 2012-02-04  Bruno Haible  <bruno@clisp.org>
5312
5313         sys_select: Avoid syntax error on OpenBSD 5.0.
5314         * lib/sys_select.in.h: Include <signal.h> only after the include_next
5315         <sys/select.h>, not before.
5316         Reported by Jiri B <jirib@devio.us>.
5317
5318 2012-02-04  Bruno Haible  <bruno@clisp.org>
5319
5320         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
5321         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
5322         global variables.
5323         * tests/test-get-rusage-data.c (main): Likewise.
5324         Reported by Jim Meyering.
5325
5326 2012-02-04  Bruno Haible  <bruno@clisp.org>
5327
5328         stdioext: Fix last commit.
5329         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
5330
5331 2012-02-03  Bruno Haible  <bruno@clisp.org>
5332
5333         stdioext: Add tentative support for Plan9.
5334         * lib/stdio-impl.h: Include <errno.h>.
5335         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
5336         * lib/freadable.c (freadable): Likewise.
5337         * lib/fwritable.c (fwritable): Likewise.
5338         * lib/fbufmode.c (fbufmode): Likewise.
5339         * lib/freading.c (freading): Likewise.
5340         * lib/fwriting.c (fwriting): Likewise.
5341         * lib/freadptr.c (freadptr): Likewise.
5342         * lib/freadseek.c (freadptrinc): Likewise.
5343         * lib/freadahead.c (freadahead): Likewise.
5344         * lib/fpurge.c (fpurge): Likewise.
5345         * lib/fseeko.c (rpl_fseeko): Likewise.
5346         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
5347         Reported by Jens Staal <staal1978@gmail.com>.
5348
5349 2012-02-02  Jim Meyering  <meyering@redhat.com>
5350
5351         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
5352         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
5353         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
5354         not even to try to add the attribute.  Instead, add a pragma to suppress
5355         the suggestion/warning.
5356
5357 2012-01-31  Karl Berry  <karl@gnu.org>
5358
5359         setstate doc: typo.
5360         * doc/posix-functions/setstate.texi (setstate): { not (.
5361
5362 2012-01-31  Bruno Haible  <bruno@clisp.org>
5363
5364         popen: Make more robust on Windows.
5365         * lib/popen.c: On native Windows, use the _popen based code even if
5366         HAVE_POPEN is set.
5367         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
5368         environment variable on native Windows.
5369
5370 2012-01-30  Bruno Haible  <bruno@clisp.org>
5371
5372         pclose: Fix typo.
5373         * lib/stdio.in.h (pclose): Fix typo in warning message.
5374
5375 2012-01-30  Bruno Haible  <bruno@clisp.org>
5376
5377         doc about getlogin_r, setstate.
5378         * doc/posix-functions/getlogin_r.texi: List the incompatible
5379         declaration problem under "not fixed by gnulib".
5380         * doc/posix-functions/setstate.texi: Mention incompatible declaration
5381         problem on Solaris 11 and other platforms.
5382
5383 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
5384             Bruno Haible  <bruno@clisp.org>
5385
5386         poll tests: Make test more robust.
5387         * tests/test-poll.c: Include macros.h.
5388         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
5389         return value of various I/O operations.
5390         * modules/poll-tests (Files): Add tests/macros.h.
5391
5392 2012-01-30  Bruno Haible  <bruno@clisp.org>
5393
5394         sys_stat: Fix support for mingw64 and MSVC.
5395         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
5396         header files already do it.
5397         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
5398         stat itself.
5399         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
5400
5401 2012-01-30  Bruno Haible  <bruno@clisp.org>
5402
5403         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
5404         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
5405         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
5406
5407 2012-01-29  Bruno Haible  <bruno@clisp.org>
5408
5409         quotearg: Fix test failure on MacOS X 10.5.
5410         * tests/test-quotearg-simple.c: Include localcharset.h.
5411         (main): If the locale encoding is not ASCII, bypass the tests of
5412         locale_quoting_style and clocale_quoting_style.
5413         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
5414
5415 2012-01-29  Jim Meyering  <meyering@redhat.com>
5416
5417         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
5418         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
5419         detect uses of canonicalize_file_name.
5420
5421 2012-01-28  Bruno Haible  <bruno@clisp.org>
5422
5423         test-framework-sh: Fix test failure with AIX 7.1 diff.
5424         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
5425         in column 1, like 'diff -c' does.
5426         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
5427         whether 'diff -u' is used. Instead, test whether the output contains
5428         some '@' character.
5429
5430 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
5431
5432         strtoimax: eliminate need for stdint.h, inttypes.h checks
5433         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
5434         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
5435         the prerequisites for a recently-introduced strtoimax test.
5436         I guess this might cause strtoimax to be replaced when not
5437         strictly necessary on older hosts, but this shouldn't introduce
5438         any bugs and it should make Emacs 'configure' faster on typical
5439         modern hosts.  Problem discovered when importing the latest gnulib
5440         to an Emacs test version.
5441         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
5442
5443 2012-01-28  Bruno Haible  <bruno@clisp.org>
5444
5445         sys_time: Override 'struct timeval' on some native Windows platforms.
5446         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
5447         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
5448         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
5449         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
5450         needs to be overridden.
5451         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
5452         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
5453         * tests/test-sys_select.c: Check that the tv_sec member has the same
5454         size as a 'time_t'.
5455         * tests/test-sys_time.c: Likewise.
5456         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
5457         is set, set also REPLACE_GETTIMEOFDAY.
5458         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
5459         convert the resulting 'struct timeval' before returning.
5460         * lib/select.c: Include <sys/time.h>.
5461         (select, timeval): Undefine at the right place.
5462         * modules/select (Depends-on): Add sys_time.
5463         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
5464         some Windows platforms.
5465         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
5466
5467 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
5468
5469         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
5470         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
5471         an integer.
5472         * lib/fcntl.c (dupfd): Likewise.
5473         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
5474
5475 2012-01-28  Bruno Haible  <bruno@clisp.org>
5476
5477         fcntl: Avoid compilation error on native Windows.
5478         * modules/fcntl (Depends-on): Add 'close'.
5479
5480 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
5481
5482         select, poll, isatty: Avoid warnings on x86_64 mingw64.
5483         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
5484         pointer to an integer.
5485         * lib/poll.c (IsConsoleHandle): Likewise.
5486         * lib/isatty.c (IsConsoleHandle): Likewise.
5487
5488 2012-01-28  Jim Meyering  <meyering@redhat.com>
5489
5490         doc: clarify README-release
5491         * top/README-release: Clarify: you should make a point to have
5492         the latest stable versions of build tools in your PATH, and the
5493         reference to buildreq is solely for its list of tool names, not
5494         for its minimal-functional version numbers.
5495         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
5496
5497         maint.mk: use more readable (yet functionally equivalent) quoting
5498         It is common to quote a single quote in a single quoted string like
5499         this:  '...'\''...'.  Unless you know the idiom, that looks like
5500         gibberish, so prefer to double-quote the string when possible.
5501         Then you can use a more readable, lone single quote: "...'..."
5502         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
5503         "don't" is more readable than the equivalent 'don'\''t'.
5504         (sc_cast_of_x_alloc_return_value): Likewise.
5505         (sc_cast_of_alloca_return_value): Likewise.
5506         (sc_makefile_path_separator_check): Similar: use ":" in '...',
5507         rather than '\'':'\''.
5508
5509 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
5510
5511         stdalign: relax _Alignof and tighten _Alignas test
5512         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
5513         as it was too strict: alignof must divide offsetof, but it need
5514         not equal offsetof.  Inspired by Joseph S. Myers's comment
5515         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
5516         Conversely, tighten the _Alignas test a bit, as the resulting
5517         alignment must be exactly 8.
5518
5519 2012-01-27  Bruno Haible  <bruno@clisp.org>
5520
5521         stdalign: Document the last change.
5522         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
5523
5524 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
5525
5526         stdalign: check that alignof and offsetof are consistent
5527         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
5528         Problem reported for gnulib by Richard W.M. Jones in
5529         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
5530
5531 2012-01-27  Jim Meyering  <meyering@redhat.com>
5532
5533         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
5534         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
5535         convert a sequence with gaps to the minimal containing range.
5536         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
5537         * tests/test-update-copyright.sh: Test for this.
5538         The FSF confirmed it is ok to do this, assuming there is at
5539         least one significant change per year in the affected range:
5540         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
5541
5542 2012-01-26  Bruno Haible  <bruno@clisp.org>
5543
5544         pipe2: refine doc about thread-safety
5545         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
5546         multithread-safety problem.
5547         * doc/glibc-functions/accept4.texi: Likewise.
5548
5549 2012-01-26  Bruno Haible  <bruno@clisp.org>
5550
5551         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
5552         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
5553         In the test program, include <fcntl.h>, for O_RDONLY.
5554
5555 2012-01-26  Eric Blake  <eblake@redhat.com>
5556
5557         pipe2: document lack of thread-safety in replacement
5558         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
5559         issue in replacement.
5560         * doc/glibc-functions/accept4.texi (accept4): Likewise.
5561         Based on a report by Eric Wong.
5562
5563 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
5564             Bruno Haible  <bruno@clisp.org>
5565
5566         malloca: Avoid warnings on x86_64 mingw64.
5567         * lib/malloca.c: Include <stdint.h>.
5568         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
5569         * modules/malloca (Depends-on): Add stdint.
5570         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
5571
5572 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
5573
5574         obstack: remove __STDC__ conditionals
5575         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
5576         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
5577         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
5578         m4/include_next.m4 as the only gnulib-maintained places that still
5579         refer to __STDC__.
5580
5581 2012-01-24  Bruno Haible  <bruno@clisp.org>
5582
5583         havelib: Modern quoting.
5584         * build-aux/config.rpath: Quote 'like this', not `like this', as per
5585         the recent change to the GNU coding standards.
5586
5587 2012-01-24  Bruno Haible  <bruno@clisp.org>
5588
5589         stdint: Improve support for Android.
5590         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
5591         Reported by Simon Josefsson <simon@josefsson.org>.
5592
5593 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
5594
5595         doc: omit trailing empty lines from INSTALL etc.
5596         * doc/Makefile (INSTALL): Omit trailing empty lines.
5597         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
5598         omit trailing empty lines.  This simplifies the build procedure.
5599
5600 2012-01-23  Jim Meyering  <meyering@redhat.com>
5601
5602         tests: avoid spurious warnings about gl_sockets_startup
5603         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
5604         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
5605         reporting a "statement with no effect".
5606         * tests/test-accept.c (main): Mark as "(void)".
5607         * tests/test-accept4.c (main): Likewise.
5608         * tests/test-bind.c (main): Likewise.
5609         * tests/test-connect.c (main): Likewise.
5610         * tests/test-getpeername.c (main): Likewise.
5611         * tests/test-getsockname.c (main): Likewise.
5612         * tests/test-getsockopt.c (main): Likewise.
5613         * tests/test-listen.c (main): Likewise.
5614         * tests/test-recv.c (main): Likewise.
5615         * tests/test-recvfrom.c (main): Likewise.
5616         * tests/test-send.c (main): Likewise.
5617         * tests/test-sendto.c (main): Likewise.
5618         * tests/test-setsockopt.c (main): Likewise.
5619         * tests/test-shutdown.c (main): Likewise.
5620
5621 2012-01-21  Bruno Haible  <bruno@clisp.org>
5622
5623         locale-fr.m4: Fix for Android.
5624         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
5625         failure of the test program on Bionic libc.
5626
5627 2012-01-21  Jim Meyering  <meyering@redhat.com>
5628
5629         bootstrap: fail when bootstrap_post_import_hook fails
5630         Otherwise, it's far too easy to miss diagnostics emitted
5631         between gnulib-tool's output and that of running configure.
5632         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
5633
5634 2012-01-17  Jim Meyering  <meyering@redhat.com>
5635
5636         maint: enable sc_trailing_blank
5637         * build-aux/pmccabe.css: Remove trailing blanks.
5638         * doc/acl-cygwin.txt: Likewise.
5639         * doc/gnu-oids.texi: Likewise
5640         * cfg.mk: Enable sc_trailing_blank.
5641         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
5642
5643 2012-01-17  Jim Meyering  <meyering@redhat.com>
5644
5645         maint: enable sc_prohibit_openat_without_use
5646         * cfg.mk: Enable sc_prohibit_openat_without_use.
5647         Exempt lib/selinux-at.c.
5648
5649 2012-01-17  Jim Meyering  <meyering@redhat.com>
5650
5651         maint: enable sc_prohibit_cloexec_without_use
5652         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
5653         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
5654
5655 2012-01-17  Jim Meyering  <meyering@redhat.com>
5656
5657         maint: enable sc_prohibit_intprops_without_use
5658         * cfg.mk: Enable sc_prohibit_intprops_without_use
5659         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
5660
5661 2012-01-17  Jim Meyering  <meyering@redhat.com>
5662
5663         maint: enable sc_prohibit_hash_pjw_without_use
5664         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
5665         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
5666         to match any use of \<hash_pjw\>, i.e., not necessarily with a
5667         following " (".
5668
5669 2012-01-17  Jim Meyering  <meyering@redhat.com>
5670
5671         maint: enable double-word-prohibiting rule
5672         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
5673         Exempt three files.
5674
5675 2012-01-17  Jim Meyering  <meyering@redhat.com>
5676
5677         maint: remove empty lines at EOF, but excluding modules/*
5678         Apply syntax rules at home as well as abroad.  Most changes
5679         were induced by running this:
5680           make srcdir=. _build-aux=build-aux -f top/maint.mk \
5681             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
5682             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
5683         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
5684         Exempt modules/* and two binary files.
5685         Also exempt doc/INSTALL*, per request from Bruno Haible.
5686         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
5687         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
5688         * doc/Copyright/request-assign.future: Likewise.
5689         * doc/Copyright/request-disclaim.changes: Likewise.
5690         * doc/INSTALL: Likewise.
5691         * doc/INSTALL.ISO: Likewise.
5692         * doc/INSTALL.UTF-8: Likewise.
5693         * doc/acl-cygwin.txt: Likewise.
5694         * doc/acl-resources.txt: Likewise.
5695         * doc/fdl-1.2.texi: Likewise.
5696         * doc/fdl-1.3.texi: Likewise.
5697         * doc/fdl.texi: Likewise.
5698         * lib/argp-pin.c: Likewise.
5699         * lib/round.c: Likewise.
5700         * lib/unicase/u16-totitle.c: Likewise.
5701         * lib/unictype/block_test.c: Likewise.
5702         * lib/uninorm/canonical-decomposition.c: Likewise.
5703         * m4/README: Likewise.
5704         * m4/relocatable-lib.m4: Likewise.
5705         * tests/test-isnand-nolibm.c: Likewise.
5706         * tests/test-isnand.c: Likewise.
5707         * tests/uninorm/NormalizationTest.txt: Likewise.
5708
5709 2012-01-17  Jim Meyering  <meyering@redhat.com>
5710
5711         maint: add framework to run syntax-check rules against gnulib sources
5712         * cfg.mk: New file, to disable all currently-failing tests.
5713         We'll enable them one by one, as they are made to pass.
5714         * Makefile (sc_maint): New rule.
5715
5716 2012-01-21  Bruno Haible  <bruno@clisp.org>
5717
5718         stdint: Add support for Android.
5719         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
5720         include the system's <stdint.h>.
5721         Reported by Simon Josefsson <simon@josefsson.org>.
5722
5723 2012-01-19  Jim Meyering  <meyering@redhat.com>
5724
5725         bootstrap: add bootstrap_post_import_hook
5726         Bison does still need something like the gnulib_mk_hook whose
5727         invocation I had to remove along with slurp in commit 767ccd40.
5728         Technically, we could get along without it, but doing so would
5729         have required living with a warning and a mandatory post-bootstrap
5730         automake rerun.
5731         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
5732         (bootstrap_post_import_hook): New function.
5733         Invoke it after gnulib-tool --import and before autoreconf.
5734
5735 2012-01-18  Jim Meyering  <meyering@redhat.com>
5736
5737         gitlog-to-changelog: don't use "no_"-prefixed variable name
5738         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
5739         to enable both --cluster and --no-cluster.  Change variable name,
5740         s/\$no_cluster/$cluster/, and reverse usage to match.
5741
5742         gitlog-to-changelog: use "||", not "or" in expressions
5743         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
5744         expressions.
5745
5746 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
5747
5748         gitlog-to-changelog: new option --no-cluster
5749         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
5750         clustering of adjacent commit messages.
5751
5752 2012-01-17  Jim Meyering  <meyering@redhat.com>
5753
5754         maint: spell file systems with two words, not one
5755         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
5756         two words, not one.
5757
5758 2012-01-16  Jim Meyering  <meyering@redhat.com>
5759
5760         bootstrap: add a FIXME comment to ensure we eventually remove the hack
5761         * build-aux/bootstrap (gnulib_tool_options): Add comment.
5762
5763 2012-01-16  Eric Blake  <eblake@redhat.com>
5764
5765         bootstrap: cater to autoconf 2.59
5766         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
5767         is not available.
5768
5769         bootstrap: properly check for libtool
5770         * build-aux/bootstrap (libtoolize): Also run libtool when older
5771         usage is detected.
5772
5773 2012-01-15  Bruno Haible  <bruno@clisp.org>
5774
5775         Improve support for MSVC 9.
5776         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
5777         clashes on MSVC.
5778         * lib/fcntl.in.h: Likewise.
5779         * lib/stdlib.in.h: Likewise.
5780         * lib/sys_stat.in.h: Likewise.
5781
5782 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
5783
5784         gnupload: we hold the master copy of this script now
5785         For motivation and more information, see:
5786         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
5787         * build-aux/gnupload: Make it clear in the heading comments that the
5788         master copy of this file is maintained by gnulib.  Since we are at
5789         it, bump its copyright year and ...
5790         ($scriptversion): ... the date in its version.
5791         ($usage): Patches and bug reports should be sent to the gnulib list,
5792         not the automake one.
5793         * config/srclist.txt: Don't try to sync 'gnupload' from automake
5794         anymore.
5795
5796 2012-01-15  Bruno Haible  <bruno@clisp.org>
5797
5798         Fix module 'random'.
5799         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
5800         initstate, setstate are declared.
5801
5802 2012-01-14  Bruno Haible  <bruno@clisp.org>
5803
5804         Tests for module 'random'.
5805         * modules/random-tests: New file.
5806         * tests/test-random.c: New file, based on tests/test-random_r.c.
5807
5808         New module 'random'.
5809         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
5810         declarations.
5811         * lib/random.c: New file, based on glibc/stdlib/random.c.
5812         * m4/random.m4: New file.
5813         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
5814         HAVE_RANDOM.
5815         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
5816         * modules/random: New file.
5817         * config/srclist.txt: Add an entry for random.c.
5818         * doc/posix-functions/random.texi: Mention the 'random' module.
5819         * doc/posix-functions/initstate.texi: Likewise.
5820         * doc/posix-functions/setstate.texi: Likewise.
5821         * doc/posix-functions/srandom.texi: Likewise.
5822
5823 2012-01-12  Bruno Haible  <bruno@clisp.org>
5824
5825         random_r: Use common idioms.
5826         * lib/random_r.c: Include <stdlib.h> first.
5827
5828         random_r: Override incompatible API on AIX, OSF/1.
5829         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
5830         Override the system function if REPLACE_RANDOM_R is 1.
5831         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
5832         and OSF/1, set REPLACE_RANDOM_R.
5833         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
5834         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
5835         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
5836         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
5837         * doc/glibc-functions/random_r.texi: Likewise.
5838         * doc/glibc-functions/setstate_r.texi: Likewise.
5839
5840         random_r: Support for MSVC 9.
5841         * lib/random_r.c: Include stdint.h, not inttypes.h.
5842
5843 2012-01-12  Eric Blake  <eblake@redhat.com>
5844
5845         inet_ntop: guard extra work by IF_LINT
5846         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
5847         better code generation when not checking for warnings.
5848         Suggested by Paul Eggert and Jim Meyering.
5849
5850         strptime: fix regression on mingw
5851         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
5852         Fix regression.  Reported by Bruno Haible.
5853
5854 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
5855             Bruno Haible  <bruno@clisp.org>
5856
5857         copy-file: add error-code-returning variant.
5858         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
5859         (qcopy_file_preserving): New declaration.
5860         * lib/copy-file.c (qcopy_file_preserving): Renamed from
5861         copy_file_preserving. Change return type to 'int'. Don't emit an error
5862         message here.
5863         (copy_file_preserving): New function.
5864         * tests/test-copy-file.c: Include <stdlib.h>.
5865         (main): Test qcopy_file_preserving if the environment variable
5866         NO_STDERR_OUTPUT is set.
5867         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
5868         with NO_STDERR_OUTPUT
5869         * tests/test-copy-file-2.sh: Likewise.
5870
5871 2012-01-10  Bruno Haible  <bruno@clisp.org>
5872
5873         copy-file: Use 'quote' module consistently.
5874         * lib/copy-file.c (copy_file_preserving): Use quote().
5875
5876         copy-file: Refactor.
5877         * lib/copy-file.c: Include quote.h.
5878         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
5879         message here.
5880         * modules/copy-file (Depends-on): Add quote.
5881
5882         acl: Export qcopy_acl.
5883         * lib/acl.h (qcopy_acl): New declaration.
5884         * lib/copy-acl.c (qcopy_acl): Make non-static.
5885
5886         acl: Rename a local variable.
5887         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
5888
5889         acl: Align return values of copy_acl and qcopy_acl.
5890         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
5891         maybe < -1.
5892
5893 2012-01-11  Eric Blake  <eblake@redhat.com>
5894
5895         strptime: silence gcc warnings
5896         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
5897         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
5898         Reported by Daniel P. Berrange.
5899
5900         inet_ntop: silence gcc warning
5901         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
5902         Reported by Daniel P. Berrange.
5903
5904 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
5905
5906         getloadavg test: skip the test on GNU/Linux without /proc mounted
5907         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
5908         file.  When /proc is not mounted, it always fails with ENOENT.
5909         * tests/test-getloadavg.c (main): Treat ENOENT return code from
5910         getloadavg(3) the same way as ENOSYS and ENOTSUP.
5911
5912 2012-01-10  Bruno Haible  <bruno@clisp.org>
5913
5914         regex: Avoid link error on MSVC 9.
5915         * modules/regex (Depends-on): Add wctype.
5916
5917 2012-01-10  Bruno Haible  <bruno@clisp.org>
5918
5919         doc: Mention --with-tests option.
5920         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
5921         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
5922         --with-tests.
5923         Reported by Reuben Thomas.
5924
5925 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
5926
5927         users.txt: order package names lexicographically.
5928         * users.txt: Order package names lexicographically.
5929
5930 2012-01-10  Jim Meyering  <meyering@redhat.com>
5931
5932         maint.mk: fix description in comment
5933         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
5934
5935         ignore-value: remove deprecated ignore_ptr function
5936         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
5937         * NEWS: Note this.
5938
5939 2012-01-09  Jim Meyering  <meyering@redhat.com>
5940
5941         test-init.sh: avoid a subshell
5942         * tests/test-init.sh: Remove protective subshell.
5943         Suggested by Bernhard Voelker.  While a subshell is normally
5944         required to protect against older shells (Solaris, FreeBSD) that
5945         warn about a missing program before performing redirection, the
5946         shell-selection tests performed by init.sh probably exclude any
5947         offending shell.
5948
5949 2012-01-08  Bruno Haible  <bruno@clisp.org>
5950
5951         setlocale tests: Avoid test failure on Solaris 11 2011-11.
5952         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
5953         variable.
5954
5955 2012-01-08  Bruno Haible  <bruno@clisp.org>
5956
5957         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
5958         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
5959         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
5960         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
5961         macro.
5962         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
5963         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
5964         * lib/spawn_faction_addopen.c: Add workaround implementation if
5965         HAVE_WORKING_POSIX_SPAWN.
5966         * modules/spawn (Makefile): Substitute
5967         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
5968         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
5969         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
5970         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
5971         (Depends-on): Update conditions.
5972         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
5973         the Solaris 11 bug.
5974
5975 2012-01-08  Bruno Haible  <bruno@clisp.org>
5976
5977         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
5978         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
5979         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
5980         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
5981         macro.
5982         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
5983         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
5984         * lib/spawn_faction_adddup2.c: Add workaround implementation if
5985         HAVE_WORKING_POSIX_SPAWN.
5986         * modules/spawn (Makefile): Substitute
5987         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
5988         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
5989         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
5990         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
5991         (Depends-on): Update conditions.
5992         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
5993         the Solaris 11 bug.
5994
5995 2012-01-08  Bruno Haible  <bruno@clisp.org>
5996
5997         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
5998         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
5999         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
6000         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
6001         HAVE_WORKING_POSIX_SPAWN.
6002         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
6003         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
6004         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
6005         * lib/spawn_faction_addclose.c: Add workaround implementation if
6006         HAVE_WORKING_POSIX_SPAWN.
6007         * modules/spawn (Makefile): Substitute
6008         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
6009         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
6010         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
6011         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
6012         (Depends-on): Update conditions.
6013         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
6014         the Solaris 11 bug.
6015
6016 2012-01-08  Bruno Haible  <bruno@clisp.org>
6017
6018         doc: Update for Solaris 11 2011-11.
6019         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
6020         * m4/printf.m4: Update comments.
6021
6022 2012-01-08  Bruno Haible  <bruno@clisp.org>
6023
6024         mktime: Avoid compilation error on Solaris 11.
6025         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
6026
6027 2012-01-08  Bruno Haible  <bruno@clisp.org>
6028
6029         doc: Small fix.
6030         * doc/posix-headers/nl_types.texi: Correct platforms list.
6031
6032 2012-01-08  Simon Josefsson  <simon@josefsson.org>
6033
6034         Add lgpl-3.0 module.
6035         * MODULES.html.sh (Support for building documentation): Add
6036         lgpl-3.0.
6037         * modules/lgpl-3.0: New file.
6038
6039 2012-01-08  Jim Meyering  <meyering@redhat.com>
6040
6041         select.c: indent with spaces, not TABs
6042         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
6043
6044 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
6045
6046         quotearg: do not use grave accent for left quote
6047         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
6048         locale_quoting_style.
6049         (quotearg_buffer_restyled): Fix example.
6050         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
6051
6052 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
6053
6054         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
6055         Most programs do not have translation catalogs for English and much
6056         less separate catalogs for British and American English.  Drop the
6057         suggestion to translators about these two, and provide it
6058         automatically for Unicode locales.  Like most programs, even those
6059         using American English, we use single quotation marks.  This conflicts
6060         with the American typographic convention, but works better when you
6061         cite the entire error message within double quotes.  It also tries not
6062         to clash with established practice and with what non-gnulib programs
6063         will usually do.
6064         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
6065         using an UTF-8 or GB-18030 locale.  The list of other locales with
6066         quotes was provided by Bruno Haible.
6067         (quotearg_buffer_restyled): Adjust instructions to translators.
6068         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
6069         text, since this would be wrong when using Unicode.
6070         * modules/quotearg: Depend on c-strcaseeq.
6071
6072 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
6073
6074         quotearg: fix Wikipedia link
6075         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
6076
6077 2012-01-07  Simon Josefsson  <simon@josefsson.org>
6078
6079         Fix for mingw with MSVC9.
6080         * m4/ld-version-script.m4: Check that compiler rejects version
6081         scripts with syntax errors.  Reported by Bruno Haible
6082         <bruno@clisp.org>.
6083
6084 2012-01-06  Bruno Haible  <bruno@clisp.org>
6085
6086         Talk about "native Windows API", not "Woe32".
6087         * lib/accept4.c: Update comments to mention native Windows.
6088         * lib/execute.c: Likewise.
6089         * lib/fatal-signal.c: Likewise.
6090         * lib/localcharset.c: Likewise.
6091         * lib/nanosleep.c: Likewise.
6092         * lib/nl_langinfo.c: Likewise.
6093         * lib/pclose.c: Likewise.
6094         * lib/pipe-filter-gi.c: Likewise.
6095         * lib/pipe-filter-ii.c: Likewise.
6096         * lib/pipe.c: Likewise.
6097         * lib/pipe2.c: Likewise.
6098         * lib/popen.c: Likewise.
6099         * lib/progreloc.c: Likewise.
6100         * lib/relocatable.c: Likewise.
6101         * lib/sigaction.c: Likewise.
6102         * lib/sigprocmask.c: Likewise.
6103         * lib/spawn-pipe.h: Likewise.
6104         * lib/spawn-pipe.c: Likewise.
6105         * lib/spawni.c: Likewise.
6106         * lib/stat-time.h: Likewise.
6107         * lib/w32spawn.h: Likewise.
6108         * tests/test-isatty.c: Likewise.
6109         * lib/config.charset: More comments.
6110         * doc/gnulib-intro.texi: Mention native Windows.
6111         * doc/posix-functions/_Exit_C99.texi: Likewise.
6112         * doc/posix-headers/fcntl.texi: Likewise.
6113
6114 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
6115
6116         argp: Avoid crash if translator uses % characters in a translation.
6117         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
6118         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
6119
6120 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
6121
6122         doc: C11 and C++11 are now official
6123         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
6124         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
6125         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
6126         * modules/stdalign:
6127         Replace references to draft C1X to C11, and to draft C++0X to C++11.
6128
6129 2012-01-06  Bruno Haible  <bruno@clisp.org>
6130
6131         uc-is-grapheme-break tests: Tweak.
6132         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
6133         message.
6134
6135 2012-01-06  Bruno Haible  <bruno@clisp.org>
6136
6137         test-init.sh: correct the test for diff -u
6138         * tests/test-init.sh: Also redirect stdout to /dev/null.
6139
6140 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
6141
6142         Use ', not `, for quoting output.
6143         * build-aux/announce-gen (usage, sizes, print_news_deltas)
6144         (print_changelog_deltas, get_tool_versions, main program):
6145         * build-aux/git-version-gen:
6146         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
6147         * build-aux/move-if-change (help):
6148         * build-aux/useless-if-before-free (usage, main program):
6149         * check-module (parse_module_file, usage)
6150         (find_included_lib_files, check_module):
6151         * lib/argmatch.c (main) [TEST]:
6152         * lib/argp-help.c (_help):
6153         * lib/getopt1.c (main) [TEST]:
6154         * lib/git-merge-changelog.c (usage):
6155         * lib/xstrtol-error.c (xstrtol_error):
6156         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
6157         * m4/argz.m4 (gl_FUNC_ARGZ):
6158         * m4/bison.m4 (gl_BISON):
6159         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
6160         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
6161         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
6162         * m4/fpending.m4 (gl_PREREQ_FPENDING):
6163         * m4/gc-random.m4 (gl_GC_RANDOM):
6164         * m4/intl.m4 (gt_CHECK_DECL):
6165         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
6166         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
6167         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
6168         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
6169         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
6170         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
6171         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
6172         * tests/test-dirname.c (main):
6173         * tests/test-getpass.c (main):
6174         * tests/test-iconvme.c (main):
6175         * tests/test-parse-datetime.c (LOG):
6176         * tests/test-xstrtoimax.sh:
6177         * tests/test-xstrtol.sh:
6178         * tests/test-xstrtoll.sh:
6179         * tests/test-xstrtoumax.sh:
6180         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
6181         * top/GNUmakefile (abort-due-to-no-makefile):
6182         Quote 'like this', not `like this', as per the recent change to
6183         the GNU coding standards.
6184
6185 2012-01-05  Bruno Haible  <bruno@clisp.org>
6186
6187         strtoimax: Don't force a replacement on systems where intmax_t is int.
6188         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
6189         'intmax_t' is not larger than 'int'.
6190         Reported by Pádraig Brady <P@draigBrady.com>.
6191
6192 2012-01-05  Bruno Haible  <bruno@clisp.org>
6193
6194         doc: Mention NetBSD bugs.
6195         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
6196         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
6197
6198 2012-01-05  Bruno Haible  <bruno@clisp.org>
6199
6200         strtoumax tests: Enhance tests.
6201         * tests/test-strtoumax.c (main): Add tests for large values.
6202
6203 2012-01-05  Bruno Haible  <bruno@clisp.org>
6204
6205         strtoimax: Work around AIX 5.1 bug.
6206         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
6207         definition.
6208         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
6209         Set HAVE_STRTOIMAX.
6210         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
6211         REPLACE_STRTOIMAX.
6212         * modules/inttypes-incomplete (Makefile.am): Substitute
6213         REPLACE_STRTOIMAX.
6214         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
6215         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
6216         (Depends-on): Update conditions.
6217         * tests/test-strtoimax.c (main): Add tests for large values.
6218         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
6219
6220 2012-01-05  Bruno Haible  <bruno@clisp.org>
6221
6222         inttypes: Modernize.
6223         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
6224         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
6225         (Makefile.am): Update inttypes.h rule.
6226
6227 2012-01-05  Jim Meyering  <meyering@redhat.com>
6228
6229         init.sh: don't waste a subshell just to redirect stderr
6230         * tests/init.sh: In testing for diff -u and diff -c, use a
6231         stderr-redirecting exec inside `...` rather than a subshell.
6232
6233         test-init.sh: avoid failure on HP-UX 11.00
6234         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
6235         resolves to diff -c or cmp.  Reported by Bruno Haible.
6236
6237 2012-01-05  Bruno Haible  <bruno@clisp.org>
6238
6239         Tests for module 'strtoull'.
6240         * modules/strtoull-tests: New file.
6241         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
6242
6243 2012-01-05  Bruno Haible  <bruno@clisp.org>
6244
6245         Tests for module 'strtoll'.
6246         * modules/strtoll-tests: New file.
6247         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
6248
6249 2012-01-05  Bruno Haible  <bruno@clisp.org>
6250
6251         Tests for module 'strtoul'.
6252         * modules/strtoul-tests: New file.
6253         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
6254
6255 2012-01-05  Bruno Haible  <bruno@clisp.org>
6256
6257         Tests for module 'strtol'.
6258         * modules/strtol-tests: New file.
6259         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
6260
6261 2012-01-04  Jim Meyering  <meyering@redhat.com>
6262
6263         test-init.sh: accommodate Solaris 5.10's different diff -u output
6264         * tests/test-init.sh: Also exempt @@ lines from the comparison
6265         of diff output, since Solaris 5.10 and GNU diff formats differ.
6266         Reported by Stefano Lattarini.
6267
6268 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
6269
6270         test-posixtm: don't assume signed integer wraparound
6271         * tests/test-posixtm.c (main): Don't assume wraparound semantics
6272         after signed integer overflow.  Inspired by (though it may not
6273         fix) Bruno Haible's bug report in
6274         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
6275
6276         Spell out "Windows 9x" and "Windows XP".
6277         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
6278         "Windows 9x" and "WinXP" with "Windows XP".
6279
6280 2012-01-04  Jim Meyering  <meyering@redhat.com>
6281
6282         test-vc-list-files-cvs.sh: remove obsolete comment
6283         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
6284         double exit.  Now that's all encapsulated via skip_ and Exit.
6285
6286 2012-01-04  Bruno Haible  <bruno@clisp.org>
6287
6288         Talk about "native Windows API", not "Win32".
6289         * lib/classpath.c: Update comments to mention native Windows.
6290         * lib/csharpexec.c: Likewise.
6291         * lib/dup2.c: Likewise.
6292         * lib/error.c: Likewise.
6293         * lib/fcntl.c: Likewise.
6294         * lib/filename.h: Likewise.
6295         * lib/findprog.c: Likewise.
6296         * lib/get-rusage-as.c: Likewise.
6297         * lib/get-rusage-data.c: Likewise.
6298         * lib/getpagesize.c: Likewise.
6299         * lib/javaexec.c: Likewise.
6300         * lib/msvc-inval.c: Likewise.
6301         * lib/msvc-nothrow.c: Likewise.
6302         * lib/nanosleep.c: Likewise.
6303         * lib/nonblocking.c: Likewise.
6304         * lib/printf-parse.c: Likewise.
6305         * lib/setlocale.c: Likewise.
6306         * lib/sigaction.c: Likewise.
6307         * lib/strerror_r.c: Likewise.
6308         * lib/tmpdir.c: Likewise.
6309         * lib/vasnprintf.c: Likewise.
6310         * lib/w32spawn.h: Likewise.
6311         * lib/waitpid.c: Likewise.
6312         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
6313         * m4/locale-ar.m4: Likewise.
6314         * m4/locale-fr.m4: Likewise.
6315         * m4/locale-ja.m4: Likewise.
6316         * m4/locale-tr.m4: Likewise.
6317         * m4/locale-zh.m4: Likewise.
6318         * m4/printf.m4: Likewise.
6319         * tests/test-cloexec.c: Likewise.
6320         * tests/test-copy-acl.sh: Likewise.
6321         * tests/test-copy-file.sh: Likewise.
6322         * tests/test-file-has-acl.sh: Likewise.
6323         * tests/test-set-mode-acl.sh: Likewise.
6324         * tests/test-dup-safer.c: Likewise.
6325         * tests/test-dup2.c: Likewise.
6326         * tests/test-dup3.c: Likewise.
6327         * tests/test-fcntl.c: Likewise.
6328         * tests/test-nonblocking-pipe.h: Likewise.
6329         * tests/test-nonblocking-socket.h: Likewise.
6330         * tests/test-pipe.c: Likewise.
6331         * tests/test-pipe2.c: Likewise.
6332         * tests/test-spawn-pipe-child.c: Likewise.
6333         * doc/acl-resources.txt: Likewise.
6334         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
6335         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
6336         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
6337         * lib/localcharset.c: Update comments to mention native Windows.
6338         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
6339         * lib/localename.c: Likewise.
6340         * lib/progreloc.c: Likewise.
6341         * lib/relocatable.c: Likewise.
6342         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
6343         (windows_compute_revents): Renamed from win32_compute_revents.
6344         (windows_compute_revents_socket): Renamed from
6345         win32_compute_revents_socket.
6346         * lib/select.c: Update comments to mention native Windows.
6347         (windows_poll_handle): Renamed from win32_poll_handle.
6348         * m4/threadlib.m4: Update comments to mention native Windows.
6349         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
6350         --enable-threads=windows instead of --enable-threads=win32. Set
6351         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
6352         * lib/glthread/lock.h: Update comments to mention native Windows.
6353         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
6354         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
6355         USE_WIN32_THREADS.
6356         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
6357         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
6358         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
6359         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
6360         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
6361         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
6362         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
6363         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
6364         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
6365         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
6366         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
6367         * tests/test-tls.c: Likewise.
6368         Rationale:
6369         Microsoft renamed the "Win32 API" to "Windows API", as it is available
6370         on both 32-bit and 64-bit Windows systems.
6371         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
6372         line of distinction is between "native Windows" on one side and Unix/
6373         POSIX systems on the other side. More details in
6374         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
6375         Suggested by Paul Eggert.
6376
6377 2012-01-03  Bruno Haible  <bruno@clisp.org>
6378
6379         isatty: Support for MSVC 9.
6380         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
6381         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
6382         (_isatty_nothrow): New function.
6383         (isatty): Use it instead of _isatty.
6384         (IsConsoleHandle): Add comment, from Paolo Bonzini.
6385         * lib/poll.c (IsConsoleHandle): Likewise.
6386         * lib/select.c (IsConsoleHandle): Likewise.
6387         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
6388         (gl_PREREQ_ISATTY): New macro.
6389         * modules/isatty (Depends-on): Add msvc-inval.
6390         (configure.ac): Invoke gl_PREREQ_ISATTY.
6391
6392 2012-01-03  Jim Meyering  <meyering@redhat.com>
6393
6394         maint.mk: remove temporary transition aid from over 1.5 years ago
6395         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
6396         purpose was to aid in the transition (avoiding silent malfunction)
6397         from that old name to the new _sc_search_regexp.  This shim was
6398         added by commit 219c504b.
6399
6400         init.sh: do not try to accommodate compare arguments starting with "-"
6401         * tests/init.sh (compare_dev_null_): Do not try to accommodate
6402         compare arguments that start with "-".  Besides, we do not worry
6403         about this when invoking diff or cmp; why start now with sed?
6404         Using "--" to separate options from argument would trigger sed
6405         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
6406         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
6407
6408 2012-01-02  Bruno Haible  <bruno@clisp.org>
6409
6410         Enhance tests for module 'isatty'.
6411         * modules/isatty-tests (Depends-on): Add pipe-posix.
6412         * tests/test-isatty.c: Include <fcntl.h>.
6413         (DEV_NULL): New macro.
6414         (main): Test the resut of isatty() also on regular files, pipes, and
6415         /dev/null.
6416
6417         New module 'isatty'.
6418         * lib/unistd.in.h (isatty): New declaration.
6419         * lib/isatty.c: New file, based on an idea of
6420         Bastien Roucariès <roucaries.bastien@gmail.com>.
6421         * m4/isatty.m4: New file.
6422         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
6423         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
6424         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
6425         REPLACE_ISATTY.
6426         * modules/isatty: New file.
6427         * doc/posix-functions/isatty.texi: Mention the new module.
6428         Suggested by Paolo Bonzini.
6429
6430 2012-01-02  Bruno Haible  <bruno@clisp.org>
6431
6432         canonicalize: Tweak 2011-12-29 commit.
6433         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
6434         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
6435
6436 2012-01-02  Jim Meyering  <meyering@redhat.com>
6437
6438         gitlog-to-changelog: describe input syntax in --help output
6439         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
6440
6441         gitlog-to-changelog: fix typo in --help: show backslash before email @
6442         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
6443         in sources, but not in actual output.
6444
6445 2011-12-30  Jim Meyering  <meyering@redhat.com>
6446
6447         gitlog-to-changelog: don't malfunction when name contains %-directive
6448         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
6449         in a name string cause trouble.  E.g., with a user name of "%s",
6450         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
6451
6452 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
6453
6454         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
6455         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
6456         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
6457         the "  (tiny change)" notation that is appended to the standard
6458         ChangeLog "date  name  email" header line.
6459
6460 2012-01-01  Jim Meyering  <meyering@redhat.com>
6461
6462         test-framework-sh: init.sh: fix "make dist" failure
6463         When using gnulib-tool's --with-tests option and any module that
6464         depends on test-framework-sh, "make dist" would fail due to the
6465         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
6466         in the gltests directory, and not in the gllib/ directory.
6467         One way to work around that is to move the EXTRA_DIST += init.sh
6468         from the primary module to the -tests one:
6469         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
6470         * modules/test-framework-sh (Makefile.am): ...not here.
6471         Reported by Tom G. Christensen in
6472         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
6473
6474         version-etc: update copyright year reported by --version
6475         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
6476
6477 2011-12-31  Pádraig Brady  <P@draigBrady.com>
6478
6479         canonicalize: only stat() if required
6480         * lib/canonicalize.c (canonicalize_filename_mode):
6481         Avoid calling l?stat() when both CAN_MISSING,
6482         and CAN_NOLINKS are set, as we neither need
6483         to resolve symlinks or test component existence.
6484
6485 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
6486
6487         doc: cover st_ino issues once; add OpenVMS etc.
6488         * doc/posix-functions/stat.texi (stat):
6489         * doc/posix-functions/lstat.texi (lstat):
6490         * doc/posix-functions/fstatat.texi (fstatat):
6491         * doc/posix-functions/fstat.texi (fstat):
6492         Move general 'struct stat' stuff to sys_stat.texi,
6493         leaving behind a pointer.
6494         * doc/posix-headers/sys_stat.texi (sys/stat.h):
6495         Merge duplicate info about 'struct stat' problems into here.
6496         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
6497         and suggest partial workarounds.
6498
6499         same-inode: port to OpenVMS
6500         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
6501         three st_ino values.
6502
6503 2011-12-30  Pádraig Brady  <P@draigBrady.com>
6504
6505         canonicalize: fix references to stat() and lstat()
6506         * lib/canonicalize.c (canonicalize_filename_mode):
6507         Ensure references always resolve to a replacement
6508         function if required (even via a macro).
6509
6510 2011-12-30  Jim Meyering  <meyering@redhat.com>
6511
6512         gitlog-to-changelog: remove a little duplication
6513         * build-aux/gitlog-to-changelog (main): Grep @lines once,
6514         rather than twice.
6515
6516 2011-12-29  Pádraig Brady  <P@draigBrady.com>
6517
6518         canonicalize: add support for not resolving symlinks
6519         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
6520         indicate we don't want to follow symlinks.  Also
6521         provide CAN_MODE_MASK to aid setting these existing
6522         mutually exclusive values.
6523         * lib/canonicalize.c (canonicalize_filename_mode):
6524         Extract the flags from can_mode parameter, which
6525         are currently just used to select between stat()
6526         and lstat().  Also ensure that mutually exclusive
6527         values are flagged immediately as invalid.
6528         * tests/test-canonicalize.c: Verify symlinks are
6529         not followed, and that invalid flag combinations
6530         are diagnosed.
6531
6532 2011-12-25  Jim Meyering  <meyering@redhat.com>
6533
6534         gitlog-to-changelog: do not clump multi-paragraph entries
6535         Identical header lines (date,name,email+coauthors) are suppressed,
6536         thus putting all entries with those same characteristics under
6537         a single header.  However, when a log entry consists of two or
6538         more paragraphs, it may not be clear where it starts and ends.
6539         This change makes it so that such an entry is always separated
6540         from others by a header line, even when that header would
6541         otherwise be suppressed.
6542         * build-aux/gitlog-to-changelog: Implement the above.
6543         Inspired by a related request from Stefano Lattarini in
6544         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
6545
6546 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
6547
6548         announce-gen: fix `cmd' typo in diagnostic
6549         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
6550         diagnostic: a missing '$' meant that the command was not output.
6551
6552 2011-12-23  Jim Meyering  <meyering@redhat.com>
6553
6554         test-framework-sh: distribute init.sh
6555         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
6556         Otherwise, "make -C gnulib-tests check" (at least in grep) would
6557         fail due to the lack of init.sh.
6558
6559         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
6560         * modules/atexit-tests: Rather than listing tests/init.sh,
6561         now that there's a module for it, simply depend on that new module.
6562         * modules/closein-tests: Likewise.
6563         * modules/exclude-tests: Likewise.
6564         * modules/getcwd-tests: Likewise.
6565         * modules/perror-tests: Likewise.
6566         * modules/pread-tests: Likewise.
6567         * modules/pwrite-tests: Likewise.
6568         * modules/vc-list-files-tests: Likewise.
6569         * modules/verify-tests: Likewise.
6570         * modules/xalloc-die-tests: Likewise.
6571         * modules/xstrtoimax-tests: Likewise.
6572         * modules/xstrtol-tests: Likewise.
6573         * modules/xstrtoll-tests: Likewise.
6574         * modules/xstrtoumax-tests: Likewise.
6575         * modules/yesno-tests: Likewise.
6576
6577 2011-12-22  Jim Meyering  <meyering@redhat.com>
6578
6579         test-framework-sh: add minimal tests of init.sh's compare function
6580         * modules/test-framework-sh-tests: New file.
6581         * tests/test-init.sh: New file.
6582
6583         test-framework-sh: new module
6584         * modules/test-framework-sh: New file.
6585         * MODULES.html.sh (Support for maintaining and releasing projects):
6586         List it.
6587
6588         init.sh: do not emit simulated diff output to stderr
6589         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
6590
6591 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
6592
6593         .gitignore: ignore gnulib.dvi and regex.info
6594         * doc/.gitignore:add gnulib.dvi and regex.info
6595
6596 2011-12-22  Jim Meyering  <meyering@redhat.com>
6597
6598         init.sh: correct previous change
6599         * tests/init.sh (compare): My previous change was wrong.
6600         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
6601
6602         init.sh: avoid unwarranted test failure when using "set -e"
6603         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
6604         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
6605         a use like "compare exp out" would get evoke an unconditional failure.
6606
6607 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
6608
6609         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
6610         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
6611         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
6612         autoreconf that did not.
6613         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
6614         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
6615
6616 2011-12-17  Jim Meyering  <meyering@redhat.com>
6617
6618         bootstrap: remove some now-unneeded code
6619         This script arose back when gnulib-tool was young.
6620         Since then, it has seen improvements that render much of this
6621         script unnecessary.  In particular, it can now make symlinks
6622         to the files it uses.  Also, I no longer see as much value in
6623         marking files as read-only via comments.
6624         If you relied on the symlink-creation feature of the preceding
6625         version of this script, you can get most of that functionality
6626         by adding the --symlink option to the definition of
6627         gnulib_tool_option_extras in your bootstrap.conf file.
6628         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
6629         Run autopoint and libtoolize *before* gnulib-tool.
6630         After it, run an abbreviated autoreconf, rather than a loop around
6631         all tools.
6632         (slirp, bt_mark_as_generated): Remove functions.
6633
6634 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
6635
6636         ftoastr: fix typo
6637         * lib/ftoastr.h: Fix misspelling in comment.
6638
6639 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
6640
6641         * top/README-release: fix punctuation.
6642
6643 2011-12-17  Jim Meyering  <meyering@redhat.com>
6644
6645         bootstrap: correct the recent buildreq change
6646         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
6647         had no effect.
6648         * build-aux/bootstrap (buildreq): Bracket each search term with
6649         "*...*", so that the shell "case" statement works as intended.
6650         Add comments.
6651
6652 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
6653
6654         build: let bootstrap resort to wget when downloading .po files
6655         * build-aux/bootstrap (download_po_files): Fallback to wget when
6656         downloading the .po files via rsync fails.  This is necessary to
6657         bootstrap from behind a strict firewall.
6658
6659 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
6660
6661         stdint: don't assume C++11 when compiling with g++
6662         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
6663         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
6664         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
6665         work also in C++ before C++11, as that improperly inhibits
6666         generating a substitute stdint.h for that case.
6667
6668 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
6669
6670         alloca: protect comment from gnulib-tool
6671         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
6672         that gnulib-tool doesn't think it's a license, and munge it to
6673         say "GCC version 3".
6674
6675 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
6676
6677         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
6678         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
6679         $(abs_top_builddir) instead of $(top_builddir).
6680
6681 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
6682
6683         strftime-tests: also test nanoseconds
6684         * tests/test-strftime.c (T): Add a test of %N.
6685
6686 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
6687
6688         inttypes, stdint: add C++11 support
6689         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
6690         when including inttypes.h and stdint.h.  Support this change to
6691         the standard.
6692         * doc/posix-headers/inttypes.texi (inttypes.h):
6693         * doc/posix-headers/stdint.texi (stdint.h): Document this.
6694         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
6695         Define if not defined already, for the benefit of pre-C++11 hosts.
6696         Define the standard format macros (e.g., PRId8) always.
6697         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
6698         Likewise, if __cpluspus.  Define the standard constant and limit
6699         macros (e.g., INT8_C, INT8_MAX) always.
6700         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
6701         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
6702         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
6703         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
6704         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
6705         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
6706         Likewise.
6707
6708 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
6709
6710         nonblocking tests: Fix test failure on Linux/PPC.
6711         Suggested by Prerna Saxena in
6712         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
6713         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
6714         Set to 1100000.
6715
6716 2011-12-12  Jim Meyering  <meyering@redhat.com>
6717
6718         argmatch: don't hard-code `' when listing valid option arguments
6719         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
6720         use the quote function to add quotes.  Use fputs rather than
6721         fprintf for the format string with no format directive.
6722
6723 2011-12-07  Eric Blake  <eblake@redhat.com>
6724
6725         bootstrap: detect tools required by gnulib-tool
6726         * build-aux/bootstrap (buildreq): Provide minimum implicit
6727         dependencies.
6728         * DEPENDENCIES: Mention patch as a prereq.
6729
6730 2011-12-04  Bruno Haible  <bruno@clisp.org>
6731
6732         sethostname: Port to Windows platforms.
6733         * lib/sethostname.c: Provide an alternate implementation for Windows
6734         platforms.
6735         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
6736         (main): Skip the test if sethostname() fails with EPERM. On Windows
6737         platforms, don't check the result of gethostname().
6738
6739 2011-12-04  Bruno Haible  <bruno@clisp.org>
6740             Jim Meyering  <meyering@redhat.com>
6741
6742         tests: Avoid spurious error message on platforms without mktemp program.
6743         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
6744
6745 2011-12-04  Bruno Haible  <bruno@clisp.org>
6746
6747         sethostname: Fix documentation.
6748         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
6749         "not fixed" section.
6750
6751 2011-12-03  Bruno Haible  <bruno@clisp.org>
6752
6753         gnulib-tool: Verify that the License field is present and non-empty.
6754         * gnulib-tool (func_get_license_raw): New function, extracted from
6755         func_get_license.
6756         (func_get_license): Use it. Warn if the module is not a test module and
6757         has no license.
6758         Suggested by Jim Meyering.
6759
6760 2011-12-03  Bruno Haible  <bruno@clisp.org>
6761
6762         sethostname tests: Fix link error on mingw.
6763         * tests/test-sethostname1.c: New file, extracted from
6764         tests/test-sethostname.c.
6765         * tests/test-sethostname2.c: New file, extracted from
6766         tests/test-sethostname.c.
6767         * tests/test-sethostname.c: Remove file.
6768         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
6769         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
6770         (Depends-on): Add gethostname.
6771         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
6772         Link the latter with $(GETHOSTNAME_LIB).
6773
6774         sethostname tests: Fix compilation error on mingw.
6775         * tests/test-sethostname.c: Don't include <sys/types.h>.
6776         (geteuid): Use a dummy value without uid_t.
6777         * modules/sethostname-tests (Depends-on): Remove sys_types.
6778
6779         sethostname tests: Avoid a gcc warning.
6780         * tests/test-sethostname.c (main): Remove an unused variable.
6781
6782         Tweak last commit.
6783         * modules/sethostname-tests (Files): Sort by decreasing importance.
6784         (configure.ac): Check for geteuid.
6785         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
6786         the test when there's nothing to test. Drop an unnecessary cast.
6787         Improve an error message. Verify that the final sethostname() call
6788         succeeds.
6789
6790 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
6791
6792         Add a test suite for the sethostname module.
6793         * modules/sethostname-tests: New file.  A test program
6794         for the sethostname module.
6795         * tests/test-sethostname.c: Likewise.
6796
6797 2011-12-03  Bruno Haible  <bruno@clisp.org>
6798
6799         Tweak last commit.
6800         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
6801         Fix preprocessor directives indentation. Fix typos.
6802         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
6803         * modules/unistd (Makefile): Likewise.
6804
6805 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
6806
6807         Integrate the sethostname module into unistd.
6808         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
6809         into the unistd.h header.
6810         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
6811         preprocessor directives.
6812         * modules/unistd: Setup the Makefile substitutions of the
6813         SETHOSTNAME preprocessor directives.
6814
6815 2011-12-03  Bruno Haible  <bruno@clisp.org>
6816
6817         Tweak last commit.
6818         * lib/sethostname.c: Don't include <string.h>.
6819         (sethostname): No need to copy the argument string to the stack. Don't
6820         call clearerr. Preserve errno when fprintf failed.
6821         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
6822         Don't invoke AC_REPLACE_FUNCS.
6823         * modules/sethostname (Link): Remove empty section.
6824         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
6825         failure problem.
6826
6827 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
6828
6829         New module 'sethostname'.
6830         * lib/sethostname.c (sethostname): New file.  Provide sethostname
6831         for systems that lack it.
6832         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
6833         sethostname declaration and function.
6834         * modules/sethostname: New file.  Define the sethostname module.
6835
6836 2011-12-03  Bruno Haible  <bruno@clisp.org>
6837
6838         Tweak last commit.
6839         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
6840
6841 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
6842
6843         Split the HOST_NAME_MAX detection into a separate m4 macro.
6844         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
6845         macro so it can be used by the pending sethostname module.
6846
6847 2011-12-03  Bruno Haible  <bruno@clisp.org>
6848
6849         Fix module descriptions syntax.
6850         * modules/argv-iter (License): Fix syntax.
6851         * modules/di-set (License): Likewise.
6852         * modules/ino-map (License): Likewise.
6853         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
6854
6855 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
6856
6857         stdalign: port to Clang 3.0
6858         Problem reported by Simon Josefsson in
6859         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
6860         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
6861         which has <stdalign.h> but which does not define alignof.
6862         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
6863
6864 2011-12-01  Eric Blake  <eblake@redhat.com>
6865
6866         mktempd: silence dd usage
6867         * build-aux/mktempd (rand_bytes): Silence dd.
6868
6869 2011-11-30  Simon Josefsson  <simon@josefsson.org>
6870
6871         manywarnings: Don't mention gcc version in docstring.
6872         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
6873         Jim Meyering <meyering@redhat.com>.
6874
6875 2011-11-30  Jim Meyering  <meyering@redhat.com>
6876
6877         hash: mark a few floating point constants with "f" suffix
6878         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
6879         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
6880         floating point constants with "f", since they're destined to be
6881         saved/used as "float"s.
6882
6883 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
6884
6885         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
6886         * tests/test-float.c (test_long_double): Correct and re-enable the
6887         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
6888
6889 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
6890
6891         Avoid subtracting two pointers that don't point into the same block.
6892         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
6893         only pointers into the same memory block are subtracted. We cannot
6894         assume that sizeof (ptrdiff_t) == sizeof (void *).
6895
6896 2011-11-29  Eric Blake  <eblake@redhat.com>
6897
6898         maint.mk: add syntax check for use of compare from init.sh
6899         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
6900         moved here from coreutils.
6901
6902         manywarnings: drop -Wunsuffixed-float-constants
6903         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
6904         '1.0D', which is the only way to silence this warning for 'double'.
6905
6906 2011-11-29  Jim Meyering  <meyering@redhat.com>
6907
6908         hash: mark compute_bucket_size with the pure attribute
6909         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
6910
6911         quotearg, propername: correct pragma guard expression
6912         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
6913         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
6914
6915 2011-11-28  Jim Meyering  <meyering@redhat.com>
6916
6917         propername: do not mark proper_name with the const attribute
6918         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
6919         since it examines data pointed to by its parameter.
6920         * lib/propername.c (proper_name): Instead, add a pragma to suppress
6921         the suggestion from -Wsuggest-attribute=const.
6922
6923         propername: mark one more function as const
6924         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
6925
6926 2011-11-27  Jim Meyering  <meyering@redhat.com>
6927
6928         mark functions with const and pure attributes
6929
6930         Mark functions per suggestions from gcc-4.6 when using these options:
6931         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
6932         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
6933         Follow these guidelines: when possible, apply the attribute to
6934         an extern declaration, not to its definition.  Apply it to the
6935         definition only when the definition is static.
6936         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
6937         * lib/argv-iter.h (argv_iter_n_args): Likewise.
6938         * lib/base64.h (isbase64): Likewise.
6939         * lib/basename-lgpl.c (last_component, base_len): Likewise.
6940         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
6941         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
6942         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
6943         (c_tolower, c_toupper): Likewise.
6944         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
6945         * lib/chdir-long.c (find_non_slash): Likewise.
6946         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
6947         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
6948         * lib/file-type.h (file_type): Likewise.
6949         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
6950         * lib/filevercmp.c (verrevcmp): Likewise.
6951         * lib/freadahead.h (freadahead): Likewise.
6952         * lib/fts.c (fts_maxarglen): Likewise.
6953         * lib/hash-pjw.h (hash_pjw): Likewise.
6954         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
6955         * lib/hash.c (is_prime, next_prime): Likewise.
6956         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
6957         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
6958         (hash_table_ok, hash_get_first, hash_string): Likewise.
6959         (compute_bucket_size): Likewise.
6960         * lib/i-ring.h (i_ring_empty): Likewise.
6961         * lib/isnan.c (isnanl): Likewise.
6962         * lib/math.h (isnanl, rpl_isnanl): Likewise.
6963         * lib/memcasecmp.h (memcasecmp): Likewise.
6964         * lib/memchr2.h (memchr2): Likewise.
6965         * lib/memcmp2.h (memcmp2): Likewise.
6966         * lib/parse-datetime.y (lookup_zone): Likewise.
6967         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
6968         [!WINDOWS_SOCKETS]: Likewise.
6969         * lib/strnlen1.h (strnlen1): Likewise.
6970         * lib/uniwidth.in.h (uc_width): Likewise.
6971         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
6972         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
6973         (quoting_options_from_style): Add a comment.
6974         * lib/propername.h (proper_name): Add a comment.
6975
6976 2011-11-27  Bruno Haible  <bruno@clisp.org>
6977
6978         Remove unused macros from !_LIBC code in glibc-borrowed files.
6979         * lib/fnmatch.c (STRCOLL): Remove macro.
6980         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
6981         * lib/glob.c (__stat, __readdir64): Remove macros.
6982         * lib/tempname.c (__open64, __xstat64): Remove macros.
6983         Suggested by Paul Eggert.
6984
6985 2011-11-27  Bruno Haible  <bruno@clisp.org>
6986
6987         getcwd: Fix link error on MSVC 9.
6988         * modules/getcwd (Depends-on): Add readdir, rewinddir.
6989
6990 2011-11-27  Bruno Haible  <bruno@clisp.org>
6991
6992         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
6993         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
6994         HAVE_OPENDIR is 0.
6995         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
6996         HAVE_CLOSEDIR is 0.
6997         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
6998         is 0.
6999         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
7000
7001 2011-11-27  Bruno Haible  <bruno@clisp.org>
7002
7003         getcwd: Fix bug from 2011-08-17.
7004         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
7005         platforms that need it.
7006         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
7007         code of 4 to be a failure, not a success. This ensures that
7008         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
7009
7010 2011-11-27  Bruno Haible  <bruno@clisp.org>
7011
7012         binary-io tests: Avoid test failure on mingw when libtool is used.
7013         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
7014         Don't verify the size of t-bin-out1.tmp here.
7015         * tests/test-binary-io.sh: Verify it here.
7016         Reported by Simon Josefsson.
7017
7018 2011-11-26  Bruno Haible  <bruno@clisp.org>
7019
7020         Fix conflict between two instantiations of module 'unistd'.
7021         * gnulib-tool (func_emit_autoconf_snippet): Substitute
7022         ${include_guard_prefix} also in the autoconf snippet.
7023         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
7024         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
7025         GNULIB_UNISTD_H_GETOPT.
7026         * modules/getopt-posix (configure.ac): Set the
7027         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
7028         * modules/getopt-gnu (configure.ac): Likewise.
7029         * modules/unistd (Makefile.am): Change the substitution value of
7030         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
7031         Reported by Simon Josefsson.
7032
7033 2011-11-25  Bruno Haible  <bruno@clisp.org>
7034
7035         pagealign_alloc: Doc and comments.
7036         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
7037         module.
7038         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
7039
7040 2011-11-25  Jim Meyering  <meyering@redhat.com>
7041
7042         test-update-copyright.sh: avoid false-positive failure
7043         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
7044         around false positive failure on Cygwin/Windows.  The latter was
7045         matching erroneously-created files with names like
7046         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
7047
7048 2011-11-25  Simon Josefsson  <simon@josefsson.org>
7049
7050         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
7051         * m4/valgrind-tests.m4: Check that the parameters that will be
7052         used works, not just a subset of them.  Reported by Bruno Haible
7053         <bruno@clisp.org>.
7054
7055 2011-11-24  Jim Meyering  <meyering@redhat.com>
7056
7057         test-stdalign.c: comment out long double tests
7058         * tests/test-stdalign.c: Don't try to reduce alignment of long double
7059         variables.  That provokes errors like this from gcc-4.7.0 20111124:
7060         error: '_Alignas' specifiers cannot reduce alignment of \
7061         'static_longdouble_alignas'.
7062
7063 2011-11-22  Jim Meyering  <meyering@redhat.com>
7064
7065         init.sh: make "compare /dev/null FILE" output more readable
7066         * tests/init.sh (compare_): Document the preferred order of arguments.
7067         (emit_diff_u_header_): New function.
7068         (compare_dev_null_): Emit a simulated diff, rather than just the
7069         contents of the unexpected file.  Suggestion from Bruno Haible.
7070
7071 2011-11-21  Jim Meyering  <meyering@redhat.com>
7072             Eric Blake  <eblake@redhat.com>
7073
7074         init.sh: work around OSF/1 5.1's mishandling of /dev/null
7075         * tests/init.sh: Make our compare function slightly more portable.
7076         Reported by Bruno Haible in
7077         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
7078
7079 2011-11-21  Simon Josefsson  <simon@josefsson.org>
7080
7081         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
7082         before using it, in code that ends up in config.h.
7083
7084 2011-11-20  Bruno Haible  <bruno@clisp.org>
7085
7086         getcwd: Work around getcwd bug on AIX 5..7.
7087         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
7088         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
7089         Use a different value for gl_cv_func_getcwd_path_max. Move the
7090         definition of HAVE_PARTLY_WORKING_GETCWD from here...
7091         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
7092         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
7093         Define HAVE_MINIMALLY_WORKING_GETCWD.
7094         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
7095         where it is not even minimally working, that is, on AIX.
7096         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
7097         m4/getcwd-path-max.m4.
7098         (main): Update exit code computation.
7099         * doc/posix-functions/getcwd.texi: Mention list of platforms where
7100         getcwd does not handle long file names.
7101
7102 2011-11-20  Bruno Haible  <bruno@clisp.org>
7103
7104         getcwd: Fix bug from 2009-09-10.
7105         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
7106         like "no".
7107
7108 2011-11-20  Simon Josefsson  <simon@josefsson.org>
7109
7110         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
7111
7112 2011-11-20  Bruno Haible  <bruno@clisp.org>
7113
7114         fma tests: Avoid shadowing local variables.
7115         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
7116         expected.
7117
7118 2011-11-20  Bruno Haible  <bruno@clisp.org>
7119
7120         copysignf tests: Fix.
7121         * tests/test-copysignf.c: Fix signature check.
7122
7123 2011-11-20  Bruno Haible  <bruno@clisp.org>
7124
7125         fma: Remove unused code.
7126         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
7127         unused macros.
7128
7129 2011-11-20  Bruno Haible  <bruno@clisp.org>
7130
7131         sethostname: Fix doc about AIX.
7132         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
7133         sethostname; it has it.
7134
7135         sethostname: Mention more portability problems.
7136         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
7137         problem.
7138         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
7139
7140 2011-11-19  Bruno Haible  <bruno@clisp.org>
7141
7142         Depend on module fcntl-h when AT_FDCWD is used.
7143         * modules/utimens (Depends-on): Add fcntl-h.
7144         * modules/areadlinkat (Depends-on): Likewise.
7145         * modules/areadlinkat-with-size (Depends-on): Likewise.
7146         * modules/faccessat (Depends-on): Likewise.
7147         * modules/fchmodat (Depends-on): Likewise.
7148         * modules/fchownat (Depends-on): Likewise.
7149         * modules/getcwd (Depends-on): Likewise.
7150         * modules/mkdirat (Depends-on): Likewise.
7151         * modules/mkfifoat (Depends-on): Likewise.
7152         * modules/readlinkat (Depends-on): Likewise.
7153         * modules/symlinkat (Depends-on): Likewise.
7154         * modules/dup2-tests (Depends-on): Likewise.
7155         * modules/fdutimensat-tests (Depends-on): Likewise.
7156         * modules/futimens-tests (Depends-on): Likewise.
7157
7158 2011-11-19  Bruno Haible  <bruno@clisp.org>
7159
7160         euidaccess: Update a comment.
7161         * lib/euidaccess.c: Update comment about platforms with faccessat.
7162
7163 2011-11-19  Bruno Haible  <bruno@clisp.org>
7164
7165         openat: Fix file list.
7166         * modules/openat (Files): Remove lib/at-func.c.
7167
7168 2011-11-19  Bruno Haible  <bruno@clisp.org>
7169
7170         fstatat: Simplify.
7171         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
7172         gnulib should define rpl_fstatat, there is a
7173         "#define fstatat rpl_fstatat" in <sys/stat.h>.
7174
7175 2011-11-19  Bruno Haible  <bruno@clisp.org>
7176
7177         Ensure 'inline' can be used in tests/test-utimens-common.h.
7178         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
7179         * modules/futimens-tests (configure.ac): Likewise.
7180         * modules/utimens-tests (configure.ac): Likewise.
7181         * modules/utimensat-tests (configure.ac): Likewise.
7182
7183 2011-11-19  Simon Josefsson  <simon@josefsson.org>
7184
7185         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
7186         not hash_insert0.
7187         (hash_insert_if_absent): Doc fix.
7188
7189 2011-11-19  Simon Josefsson  <simon@josefsson.org>
7190
7191         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
7192
7193 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
7194
7195         test-getcwd: disambiguate exit status
7196         * tests/test-getcwd.c (test_long_name): Return 0..7.
7197         (main): Exit with an unambiguous exit status.  The old
7198         code yielded a mysterious mixture of two failure codes.
7199
7200         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
7201         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
7202         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
7203         rpl_fstatat or fstatat.  This should fix the other problem
7204         reported by Kai Habel in
7205         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
7206         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
7207         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
7208         and I reproduced it on a Solaris 8 host we still have in production.
7209
7210 2011-11-18  Jim Meyering  <meyering@redhat.com>
7211
7212         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
7213         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
7214         Add a sentence to the comment.
7215         (hash_insert0): New function that simply calls hash_insert_if_absent.
7216         * lib/hash.h (hash_insert_if_absent): Declare it.
7217         (hash_insert0): Add deprecation attribute.
7218         (_GL_ATTRIBUTE_DEPRECATED): Define.
7219         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
7220         not hash_insert0.
7221         * NEWS: Mention it, even though it's not really an incompatible change.
7222
7223 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
7224
7225         openat: avoid compilation failure due to lack of <errno.h> inclusion
7226         * lib/openat.c: Include <errno.h>.
7227
7228 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
7229
7230         * modules/getcwd (Depends-on): Add fdopendir.
7231         This fixes one of the two problems reported by Kai Habel in
7232         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
7233
7234         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
7235         stdalign problem reported by Ian Beckwith in
7236         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
7237         * modules/crypto/gc-arcfour (Depends-on):
7238         Depend conditionally on crypto/arcfour.
7239         * modules/crypto/gc-arctwo (Depends-on):
7240         Depend conditionally on crypto/arctwo.
7241         * modules/crypto/gc-des (Depends-on):
7242         Depend conditionally on crypto/des.
7243         * modules/crypto/gc-hmac-md5 (Depends-on):
7244         Depend conditionally on crypto/hmac-md5.
7245         * modules/crypto/gc-hmac-sha1 (Depends-on):
7246         Depend conditionally on crypto/hmac-sha1.
7247         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
7248         * modules/crypto/gc-md4 (Depends-on):
7249         Depend conditionally on crypto/md4.
7250         * modules/crypto/gc-md5 (Depends-on):
7251         Depend conditionally on crypto/md5.
7252         * modules/crypto/gc-rijndael (Depends-on):
7253         Depend conditionally on crypto/rijndael.
7254         * modules/crypto/gc-sha1 (Depends-on):
7255         Depend conditionally on crypto/sha1.
7256         * modules/crypto/gc-arcfour:
7257         * modules/crypto/gc-arctwo:
7258         * modules/crypto/gc-des:
7259         * modules/crypto/gc-hmac-md5:
7260         * modules/crypto/gc-hmac-sha1:
7261         * modules/crypto/gc-md2:
7262         * modules/crypto/gc-md4:
7263         * modules/crypto/gc-md5:
7264         * modules/crypto/gc-rijndael:
7265         * modules/crypto/gc-sha1:
7266         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
7267         now that the conditional dependencies do the work for us.
7268
7269 2011-11-17  Jim Meyering  <meyering@redhat.com>
7270
7271         tests: factor st_ctime-comparison out of two headers
7272         * tests/test-utimens-common.h (ctime_compare): Define.
7273         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
7274         * tests/test-lutimens.h (test_lutimens): Likewise.
7275         * tests/test-utimens.h (test_utimens): Likewise.
7276
7277         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
7278         Invoke the test program via an init.sh-using wrapper.
7279         * tests/test-getcwd.sh: New file.
7280         * modules/getcwd-tests (Files): Add it.
7281         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
7282
7283 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
7284
7285         gitlog-to-changelog: support multi-author commits.
7286         The FSF cares about keeping track of all authors of patches to its
7287         projects, but Git doesn't provide obvious support for multi-author
7288         changesets. Consensus seems to be forming around the use of extra
7289         Signed-off-by inspired lines in the log message formatted as
7290         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
7291         multi-author commits between version control systems.
7292         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
7293         log message and output in standard ChangeLog multi-author format.
7294         Reported by Peter Rosin <peda@lysator.liu.se>
7295
7296 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
7297             Bruno Haible  <bruno@clisp.org>
7298
7299         Fix some modules' file list.
7300         * modules/fstatat (Files): Add m4/lstat.m4.
7301         * modules/openat (Files): Likewise.
7302         * modules/unlinkat (Files): Likewise.
7303
7304 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
7305
7306         maint.mk: fix tight-scope.mk generation in VPATH builds.
7307         * top/maint.mk (tight-scope.mk): Make sure to prefix file
7308         reference with $(srcdir) so that the file is found correctly even
7309         when running `make syntax-check' in a VPATH build.
7310
7311 2011-11-13  Bruno Haible  <bruno@clisp.org>
7312             Jim Meyering  <meyering@redhat.com>
7313
7314         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
7315         * tests/init.sh (compare): Remove "No differences encountered" or
7316         synonymous output from the 'diff' program.
7317
7318 2011-11-13  Bruno Haible  <bruno@clisp.org>
7319
7320         Makefile: Tweak indentation.
7321         * Makefile: Use tab as first character in every line that contains rule
7322         commands.
7323
7324 2011-11-13  Bruno Haible  <bruno@clisp.org>
7325
7326         Syntax check for copyright statements.
7327         * check-copyright: New file.
7328         * Makefile (sc_check_copyright): New rule.
7329
7330 2011-11-13  Simon Josefsson  <simon@josefsson.org>
7331
7332         * build-aux/git-version-gen: Add --prefix to configure the tag
7333         match string.
7334
7335 2011-11-13  Simon Josefsson  <simon@josefsson.org>
7336
7337         * build-aux/git-version-gen: Add --help and --version.
7338
7339 2011-11-12  Jim Meyering  <meyering@redhat.com>
7340
7341         revamp the other test-exclude?.sh scripts to use init.sh, too
7342         * tests/test-exclude1.sh: Use init.sh.
7343         * tests/test-exclude2.sh: Likewise.
7344         * tests/test-exclude3.sh: Likewise.
7345         * tests/test-exclude4.sh: Likewise.
7346         * tests/test-exclude5.sh: Likewise.
7347         * tests/test-exclude6.sh: Likewise.
7348         * tests/test-exclude7.sh: Likewise.
7349         * tests/test-exclude8.sh: Likewise.
7350         * modules/exclude-tests (Files): List init.sh.
7351
7352         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
7353         These shell scripts ignored failure of the binary test-exclude,
7354         so making the latter return 77 didn't cause them to be skipped.
7355         * tests/test-exclude5.sh: Exit with test-exclude's error status
7356         when that program fails.  Revamp to use init.sh.
7357         * tests/test-exclude2.sh: Likewise.
7358
7359         test-exclude: fix a typo
7360         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
7361
7362 2011-11-11  Bruno Haible  <bruno@clisp.org>
7363
7364         obstack: Fix compilation error on MSVC 9.
7365         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
7366
7367 2011-11-11  Jim Meyering  <meyering@redhat.com>
7368
7369         test-exclude: skip tests rather than failing on deficient systems
7370         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
7371         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
7372         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
7373         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
7374
7375 2011-11-10  Bruno Haible  <bruno@clisp.org>
7376
7377         ptsname_r test: Avoid gcc warning on glibc systems.
7378         * tests/test-ptsname_r.c (null_ptr): New function.
7379         (test_errors): Use it.
7380
7381 2011-11-10  Bruno Haible  <bruno@clisp.org>
7382
7383         ptsname_r: Avoid compilation error on OSF/1 5.1.
7384         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
7385         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
7386         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
7387         function is not declared or incompatibly declared.
7388         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
7389         * modules/ptsname_r (Depends-on, configure.ac): Update.
7390         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
7391
7392 2011-11-10  Bruno Haible  <bruno@clisp.org>
7393
7394         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
7395         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
7396         When cross-compiling, guess yes on all platforms except AIX.
7397         Reported by Ludovic Courtès <ludo@gnu.org>.
7398
7399 2011-11-09  Bruno Haible  <bruno@clisp.org>
7400
7401         ptsname_r tests: Fix bugs.
7402         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
7403         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
7404
7405 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
7406
7407         fstatat: work with cross-compilation
7408         Problem reported by Ludovic Courtès in
7409         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
7410         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
7411         "cross-compiling" and assume the bug is present.  Replace
7412         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
7413         an inverted sense, to be more conservative about our assumptions.
7414         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
7415
7416 2011-11-09  Bruno Haible  <bruno@clisp.org>
7417
7418         Improve MODULES.html output.
7419         * modules/mkfifoat (Description): Use the word "function".
7420         * modules/readlinkat (Description): Likewise.
7421         * modules/symlinkat (Description): Likewise.
7422
7423 2011-11-09  Eric Blake  <eblake@redhat.com>
7424
7425         ptsname_r-tests: new test module
7426         * modules/ptsname_r-tests: New module.
7427         * tests/test-ptsname_r.c: New file.
7428
7429         ptsname_r: new module
7430         * modules/ptsname_r: New module.
7431         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
7432         * lib/ptsname.c (__ptsname_r): Split...
7433         * lib/ptsname_r.c: ...into new file.
7434         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
7435         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
7436         * modules/stdlib (Makefile.am): Substitute witnesses.
7437         * lib/stdlib.in.h (ptsname_r): Declare it.
7438         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
7439         * MODULES.html.sh (Misc): Likewise.
7440         * modules/ptsname (Depends-on): Alter dependency.
7441         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
7442
7443 2011-11-09  Jim Meyering  <meyering@redhat.com>
7444
7445         announce-gen: be more concise when there's only one URL+tarball
7446         * build-aux/announce-gen (get_tool_versions): When you distribute
7447         only one type of tarball, combine the first two "Here are..."
7448         sections and make the key-checking grammar independent of
7449         how many tarballs there are.
7450
7451 2011-11-09  Eric Blake  <eblake@redhat.com>
7452
7453         openpty: provide a stub on mingw
7454         * lib/pty.in.h (includes): Provide forward declarations.
7455         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
7456
7457         raise: fix mingw handling of SIGPIPE
7458         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
7459
7460 2011-11-08  Bruno Haible  <bruno@clisp.org>
7461
7462         More conditional dependencies.
7463         * modules/faccessat (Depends-on): Add conditions.
7464         * modules/fchmodat (Depends-on): Likewise.
7465         * modules/fchownat (Depends-on): Likewise.
7466         * modules/fstatat (Depends-on): Likewise.
7467         * modules/mkfifoat (Depends-on): Likewise.
7468         * modules/readlinkat (Depends-on): Likewise.
7469         * modules/symlinkat (Depends-on): Likewise.
7470         * modules/unlinkat (Depends-on): Likewise.
7471         * modules/utimensat (Depends-on): Likewise.
7472         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
7473         * modules/linkat (Depends-on): Refine the conditions.
7474         * modules/renameat (Depends-on): Likewise.
7475
7476 2011-11-08  Bruno Haible  <bruno@clisp.org>
7477
7478         faccessat: Move AC_LIBOBJ invocation to module description.
7479         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
7480         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
7481         invocation from here...
7482         * modules/faccessat (configure.ac): ... to here. Invoke
7483         gl_PREREQ_FACCESSAT.
7484
7485 2011-11-08  Bruno Haible  <bruno@clisp.org>
7486
7487         faccessat: Simplify autoconf macro.
7488         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
7489         gl_FUNC_EUIDACCESS.
7490
7491 2011-11-08  Bruno Haible  <bruno@clisp.org>
7492
7493         renameat: Fix dependencies.
7494         * modules/renameat (Depends-on): Add stdbool.
7495
7496 2011-11-08  Bruno Haible  <bruno@clisp.org>
7497
7498         mkfifoat: Fix module description.
7499         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
7500         not gl_UNISTD_MODULE_INDICATOR.
7501
7502 2011-11-08  Bruno Haible  <bruno@clisp.org>
7503
7504         fstatat: Remove unused dependency.
7505         * modules/fstatat (Depends-on): Remove fstat.
7506
7507 2011-11-08  Simon Josefsson  <simon@josefsson.org>
7508
7509         GNUmakefile: behave when Makefile is missing.
7510         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
7511
7512 2011-11-08  Bruno Haible  <bruno@clisp.org>
7513
7514         openat: Conditionalize dependencies.
7515         * lib/openat.c: Reduce the scope of some #includes.
7516         * modules/openat (Depends-on): Add conditions.
7517
7518 2011-11-07  Jim Meyering  <meyering@redhat.com>
7519
7520         maint.mk: extract GPG key ID without using a temporary file
7521         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
7522         without using a temporary file.  Based on a suggestion from Werner Koch
7523         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
7524
7525 2011-11-07  Eric Blake  <eblake@redhat.com>
7526
7527         grantpt: fix typo
7528         * lib/stdlib.in.h (grantpt): Check correct function.
7529
7530         maint.mk: silence new syntax check
7531         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
7532
7533 2011-11-06  Bruno Haible  <bruno@clisp.org>
7534
7535         Doc about floating-point and math API.
7536         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
7537         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
7538
7539 2011-11-06  Bruno Haible  <bruno@clisp.org>
7540
7541         stdalign tests: Skip the test when compiled by Sun C.
7542         * tests/test-stdalign.c (main): Skip the test on Sun C.
7543
7544 2011-11-06  Bruno Haible  <bruno@clisp.org>
7545
7546         ansi-c++-opt: Complete the 2011-06-05 change.
7547         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
7548         does not support namespaces, set the variable to "no", not to ":".
7549
7550 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
7551
7552         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
7553
7554 2011-11-06  Bruno Haible  <bruno@clisp.org>
7555
7556         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
7557         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
7558         (minus_zerol) [HP-UX]: New macro.
7559         (unary_minus) [HP-UX]: New function.
7560         (copysignl) [HP-UX]: Use unary_minus function.
7561
7562 2011-11-06  Bruno Haible  <bruno@clisp.org>
7563
7564         ldexp, ldexpf, ldexpl: Enhance tests.
7565         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
7566         and tests/test-ldexpl.c.
7567         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
7568         LDEXP, MIN_EXP, MAX_EXP): New macros.
7569         Include test-ldexp.h.
7570         (main): Just call test_function.
7571         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
7572         infinity.h, nan.h.
7573         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
7574         MAX_EXP): New macros.
7575         Include test-ldexp.h.
7576         (x, y): Remove variables.
7577         (main): Just call test_function.
7578         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
7579         infinity.h, nan.h.
7580         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
7581         MAX_EXP): New macros.
7582         Include test-ldexp.h.
7583         (x, y): Remove variables.
7584         (main): Just call test_function.
7585         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
7586         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
7587         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
7588         (Depends-on): Add isnand-nolibm, signbit, float.
7589         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
7590         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
7591         (Depends-on): Add isnanf-nolibm, signbit, float.
7592
7593 2011-11-06  Bruno Haible  <bruno@clisp.org>
7594
7595         math tests: Cosmetics.
7596         * tests/test-math-c++.cc: Reorder declarations.
7597
7598 2011-11-05  Bruno Haible  <bruno@clisp.org>
7599
7600         fma*: Simplify test.
7601         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
7602         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
7603
7604         Tests for module 'fmal'.
7605         * modules/fmal-tests: New file.
7606         * tests/test-fmal1.c: New file.
7607         * tests/test-fmal2.c: New file.
7608
7609         New module 'fmal'.
7610         * lib/math.in.h (fmal): New declaration.
7611         * lib/fmal.c: New file.
7612         * m4/fmal.m4: New file.
7613         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
7614         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
7615         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
7616         REPLACE_FMAL.
7617         * modules/fmal: New file.
7618         * doc/posix-functions/fmal.texi: Mention the new module and the various
7619         bugs.
7620
7621         Tests for module 'fmaf'.
7622         * modules/fmaf-tests: New file.
7623         * tests/test-fmaf1.c: New file.
7624         * tests/test-fmaf2.c: New file.
7625
7626         New module 'fmaf'.
7627         * lib/math.in.h (fmaf): New declaration.
7628         * lib/fmaf.c: New file.
7629         * m4/fmaf.m4: New file.
7630         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
7631         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
7632         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
7633         REPLACE_FMAF.
7634         * modules/fmaf: New file.
7635         * doc/posix-functions/fmaf.texi: Mention the new module and the various
7636         bugs.
7637
7638         Tests for module 'fma'.
7639         * modules/fma-tests: New file.
7640         * tests/test-fma1.c: New file.
7641         * tests/test-fma1.h: New file.
7642         * tests/test-fma2.c: New file.
7643         * tests/test-fma2.h: New file.
7644
7645         New module 'fma'.
7646         * lib/math.in.h (fma): New declaration.
7647         * lib/fma.c: New file.
7648         * m4/fma.m4: New file.
7649         * m4/fegetround.m4: New file.
7650         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
7651         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
7652         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
7653         REPLACE_FMA.
7654         * modules/fma: New file.
7655         * doc/posix-functions/fma.texi: Mention the new module and the various
7656         bugs.
7657
7658         Extend gl_MATHFUNC.
7659         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
7660         Support 'void' as argument type.
7661         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
7662
7663 2011-11-05  Jim Meyering  <meyering@redhat.com>
7664
7665         maint.mk: also prohibit inclusion of dirent.h without use
7666         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
7667
7668 2011-11-05  Bruno Haible  <bruno@clisp.org>
7669
7670         ldexpl tests: Avoid test failure on MSVC 9.
7671         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
7672         value. Needed in order to enforce the conversion from a value greater
7673         than LDBL_MAX to Infinity.
7674
7675 2011-11-05  Bruno Haible  <bruno@clisp.org>
7676
7677         New modules 'at-internal', 'openat-h', split off from module 'openat'.
7678         * modules/at-internal: New file, extracted from modules/openat.
7679         * modules/openat-h: New file.
7680         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
7681         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
7682         * modules/openat (Description): Add reference to POSIX function.
7683         (Files): Remove lib/openat.h, lib/openat-proc.c.
7684         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
7685         intprops, unistd.
7686         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
7687         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
7688         gl_FCNTL_MODULE_INDICATOR.
7689         (Include): Remove unistd.h, openat.h.
7690         * modules/areadlinkat (Files): Add lib/at-func.c.
7691         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
7692         openat-die, openat-h, save-cwd.
7693         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
7694         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
7695         openat-die, openat-h, save-cwd, unistd.
7696         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
7697         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
7698         openat-h, save-cwd. Remove fcntl-h, openat.
7699         * modules/fchmodat (Files): Remove lib/openat.h.
7700         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
7701         openat, stdbool, unistd.
7702         * modules/fchownat (Files): Remove lib/openat.h.
7703         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
7704         openat, stdbool, sys_stat.
7705         * modules/fdopendir (Files): Remove lib/openat-priv.h,
7706         lib/openat-proc.c.
7707         (Depends-on): Add at-internal.
7708         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
7709         * modules/fstatat (Files): Remove lib/openat.h.
7710         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
7711         stdbool, unistd.
7712         * modules/fts (Depends-on): Add openat-h.
7713         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
7714         openat.
7715         * modules/mkdirat (Files): Remove lib/openat.h.
7716         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
7717         openat, stdbool, sys_stat.
7718         * modules/mkfifoat (Files): Add lib/at-func.c.
7719         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
7720         openat-h, save-cwd. Remove fcntl-h, openat.
7721         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
7722         * modules/readlinkat (Files): Add lib/at-func.c.
7723         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
7724         openat-h, save-cwd. Remove fcntl-h, openat.
7725         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
7726         openat.
7727         * modules/selinux-at (Files): Add lib/at-func.c.
7728         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
7729         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
7730         * modules/symlinkat (Files): Add lib/at-func.c.
7731         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
7732         openat-h, save-cwd. Remove fcntl-h, openat.
7733         * modules/unlinkat (Files): Remove lib/openat.h.
7734         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
7735         stdbool.
7736         * modules/utimensat (Files): Add lib/at-func.c.
7737         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
7738         openat-die, openat-h, save-cwd.
7739         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
7740         * modules/fdutimensat-tests (Depends-on): Add openat.
7741         * modules/fstatat-tests (Depends-on): Add openat-h.
7742         * modules/readlinkat-tests (Depends-on): Add openat.
7743         * modules/symlinkat-tests (Depends-on): Add openat.
7744
7745 2011-11-05  Bruno Haible  <bruno@clisp.org>
7746
7747         openat: Include <stdbool.h>.
7748         * lib/openat.c: Include <stdbool.h>.
7749
7750 2011-11-04  Bruno Haible  <bruno@clisp.org>
7751
7752         fchownat, renameat, unlinkat: Fix dependencies.
7753         * modules/fchownat (Depends-on): Add fstatat.
7754         * modules/renameat (Depends-on): Likewise.
7755         * modules/unlinkat (Depends-on): Likewise.
7756
7757 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
7758
7759         openat: remove direct dependency on dirent
7760         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
7761         and hasn't been needed ever since fdopendir was split into its own
7762         module on 2009-08-31.
7763         * modules/openat (Depends-on): Remove dirent.
7764
7765 2011-11-04  Bruno Haible  <bruno@clisp.org>
7766
7767         renameat: Optimize code size.
7768         * modules/renameat (configure.ac): Don't compile at-func2.c if
7769         REPLACE_RENAMEAT is 1.
7770
7771 2011-11-04  Bruno Haible  <bruno@clisp.org>
7772
7773         openat tests: Fix file list.
7774         * modules/openat-tests (Files): Add tests/test-open.h.
7775
7776 2011-11-04  Bruno Haible  <bruno@clisp.org>
7777
7778         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
7779         * modules/fchmodat (Depends-on): Add openat-die.
7780         * modules/fchownat (Depends-on): Likewise.
7781         * modules/linkat (Depends-on): Likewise.
7782         * modules/renameat (Depends-on): Likewise.
7783         * modules/openat (Depends-on): Add dirent.
7784
7785 2011-11-04  Jim Meyering  <meyering@redhat.com>
7786
7787         at-func*.c: fix comments
7788         * lib/at-func2.c: Correct/improve first-line comment.
7789         * lib/at-func.c: Correct grammar in first-line comment.
7790
7791 2011-11-04  Bruno Haible  <bruno@clisp.org>
7792
7793         New module 'mkdirat', split off from module 'openat'.
7794         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
7795         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
7796         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
7797         * modules/mkdirat: New file, extracted from modules/openat.
7798         * modules/openat (Files): Remove lib/mkdirat.c.
7799         (Depends-on): Remove mkdir.
7800         (configure.ac): Remove AC_LIBOBJ of mkdirat.
7801         (Include): Remove <sys/stat.h>.
7802         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
7803         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
7804         tests/test-mkdir.h.
7805         (Depends-on): Remove ignore-value.
7806         (Makefile.am): Remove rules for test-mkdirat.
7807         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
7808         of module 'openat'.
7809         * NEWS: Mention the change.
7810
7811 2011-11-04  Bruno Haible  <bruno@clisp.org>
7812
7813         closedir: Avoid warning on mingw.
7814         * lib/closedir.c: Include <unistd.h>.
7815
7816 2011-11-04  Bruno Haible  <bruno@clisp.org>
7817
7818         New module 'fstatat', split off from module 'openat'.
7819         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
7820         defined.
7821         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
7822         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
7823         gl_FUNC_FSTATAT.
7824         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
7825         * modules/fstatat: New file, extracted from modules/openat.
7826         * modules/openat (Files): Remove lib/fstatat.c.
7827         (Depends-on): Remove lstat.
7828         (configure.ac): Remove AC_LIBOBJ of fstatat.
7829         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
7830         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
7831         tests/test-lstat.h, tests/test-stat.h.
7832         (Depends-on): Remove getcwd-lgpl.
7833         (Makefile.am): Remove rules for test-fstatat.
7834         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
7835         of module 'openat'.
7836         * NEWS: Mention the change.
7837         * modules/getcwd (Depends-on): Add fstatat.
7838         * modules/linkat (Depends-on): Likewise.
7839         * modules/mkfifoat-tests (Depends-on): Likewise.
7840         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
7841
7842 2011-11-03  Bruno Haible  <bruno@clisp.org>
7843
7844         New module 'unlinkat', split off from module 'openat'.
7845         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
7846         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
7847         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
7848         * modules/unlinkat: New file, extracted from modules/openat. Correct
7849         the dependency conditions.
7850         * modules/openat (Files): Remove lib/unlinkat.c.
7851         (Depends-on): Remove rmdir, unlink.
7852         (configure.ac): Remove AC_LIBOBJ of unlinkat.
7853         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
7854         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
7855         tests/test-rmdir.h, tests/test-unlink.h.
7856         (Depends-on): Remove unlinkdir.
7857         (Makefile.am): Remove rules for test-unlinkat.
7858         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
7859         of module 'openat'.
7860         * NEWS: Mention the change.
7861         * modules/linkat-tests (Depends-on): Add unlinkat.
7862         * modules/mkfifoat-tests (Depends-on): Likewise.
7863         * modules/readlinkat-tests (Depends-on): Likewise.
7864
7865 2011-11-02  Bruno Haible  <bruno@clisp.org>
7866
7867         New module 'fchmodat', split off from module 'openat'.
7868         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
7869         defined.
7870         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
7871         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
7872         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
7873         * modules/fchmodat: New file, extracted from modules/openat.
7874         * modules/openat (Files): Remove lib/fchmodat.c.
7875         (configure.ac): Remove AC_LIBOBJ of fchmodat.
7876         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
7877         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
7878         (Makefile.am): Remove rules for test-fchmodat.
7879         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
7880         of module 'openat'.
7881         * NEWS: Mention the change.
7882
7883 2011-11-02  Jim Meyering  <meyering@redhat.com>
7884
7885         putenv: indent #definition of "environ" to placate cppi
7886         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
7887
7888         gitlog-to-changelog: provide a ChangeLog-repair mechanism
7889         Git logs are often treated as immutable, because editing them
7890         changes the SHA1 checksums of all descendants.  Thus, errors in
7891         git logs tend to stay there forever.  However, when we generate
7892         a ChangeLog file -- typically for distribution -- from that git log,
7893         we can actually make corrections in the generated file.  The key
7894         lies in recording in machine-readable/applicable form the desired
7895         corrections.  See --help for description and an example.
7896         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
7897         (usage): Describe it; alphabetize option descriptions.
7898         (main): Honor the new option, carefully.
7899
7900 2011-11-01  Jim Meyering  <meyering@redhat.com>
7901
7902         gitlog-to-changelog: avoid an infloop
7903         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
7904         that ends up being empty.
7905
7906 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
7907
7908         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
7909         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
7910         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
7911         contains (possibly-quoted) backslashes.  This should avoid
7912         all-too-common shell bugs if COMPLICATED contains backslashes in
7913         the "wrong" places.  Reported by David Evans in
7914         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
7915         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
7916         because we want ASCII ranges.  Is there some reason we don't use
7917         the C locale everywhere in this script?
7918         (func_module, top level): Avoid unwanted pathname expansion when
7919         $repo_url_prefix or $repo_url_suffix_repl contain shell
7920         metacharacters like '?' and '*'.
7921
7922 2011-11-01  Bruno Haible  <bruno@clisp.org>
7923
7924         fchownat: Improve description.
7925         * modules/fchownat (Description): Add link to function.
7926
7927 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
7928
7929         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
7930         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
7931         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
7932         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
7933
7934 2011-11-01  Bruno Haible  <bruno@clisp.org>
7935
7936         alignof: Avoid collision with stdalign module.
7937         * lib/alignof.h (alignof): Remove macro.
7938         * NEWS: Mention the change.
7939         Reported by Paul Eggert.
7940
7941 2011-11-01  Bruno Haible  <bruno@clisp.org>
7942
7943         New module 'fchownat', split off from module 'openat'.
7944         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
7945         defined.
7946         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
7947         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
7948         invoke gl_FUNC_FCHOWNAT.
7949         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
7950         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
7951         * modules/fchownat: New file, extracted from modules/openat.
7952         * modules/openat (Files): Remove lib/fchownat.c.
7953         (Depends-on): Remove lchown.
7954         (configure.ac): Remove AC_LIBOBJ of fchownat.
7955         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
7956         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
7957         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
7958         (Depends-on): Remove mgetgroups, usleep, stat-time.
7959         (configure.ac): Remove test for getegid.
7960         (Makefile.am): Remove rules for test-fchownat.
7961         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
7962         of module 'openat'.
7963         * NEWS: Mention the change.
7964
7965 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
7966
7967         stdalign: port better to MSVC and to Sun C 5.11
7968         This fixes some of the problems reported by Bruno Haible in
7969         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
7970         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
7971         shortcomings of MSVC and of Sun C 5.11.
7972         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
7973         around __declspec arg.
7974         * modules/stdalign-tests (Files): Add tests/macros.h.
7975         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
7976         Include macros.h, for ASSERT.
7977         (DECLARE_ALIGNED): Remove.
7978         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
7979         to catch bug), and to 1 if not (simplifies the rest of the code).
7980         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
7981         (CHECK_AUTO): Remove.
7982         (CHECK_ALIGNED): Check only the alignment of the static vars,
7983         since auto var alignment isn't supported by Sun C 5.11.
7984         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
7985         ASSERT failures are easier to diagnose.
7986
7987 2011-10-31  Bruno Haible  <bruno@clisp.org>
7988
7989         doc about some IRIX 5.3 problems.
7990         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
7991         on IRIX 5.3.
7992         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
7993         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
7994         5.3.
7995         * doc/posix-functions/grantpt.texi: Likewise.
7996         * doc/posix-functions/unlockpt.texi: Likewise.
7997         * doc/posix-functions/lgamma.texi: Likewise.
7998         * doc/posix-functions/nextafter.texi: Likewise.
7999         * doc/posix-functions/remainder.texi: Likewise.
8000         * doc/posix-functions/select.texi: Mention misplaced declaration on
8001         IRIX 5.3.
8002         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8003
8004 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
8005
8006         gitlog-to-changelog: fix git-log invocation.
8007         git-log mishandles date strings before 1970-01-01 UTC, and there is
8008         no use to specify --since=1970-01-01 by default anyway.
8009         * build-aux/gitlog-to-changelog: By default, when no --since option
8010         was given, do not specify explicit --since option to git-log.
8011
8012 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
8013
8014         gitlog-to-changelog: new option --append-dot.
8015         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
8016         first non-blank line of each commit message terminated with a dot.
8017
8018 2011-10-30  Bruno Haible  <bruno@clisp.org>
8019
8020         ffsl, ffsll: Avoid compilation error due to 'restrict'.
8021         * lib/ffsl.h: Include <config.h>.
8022         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
8023
8024 2011-10-30  Jim Meyering  <meyering@redhat.com>
8025
8026         GNUmakefile: reenable "make syntax-check" for most projects
8027         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
8028         build-aux variable", "syntax-check" would do nothing but succeed with
8029         the "No version control files detected..." diagnostic (unless you
8030         happened to override _build-aux via cfg.mk).
8031         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
8032         to precede inclusion of maint.mk.  Otherwise, these variables would
8033         be used undefined in any project that does not override the default.
8034
8035 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
8036
8037         gitlog-to-changelog: treat a message with only blank lines as empty.
8038         * build-aux/gitlog-to-changelog: Move the code that removes leading and
8039         trailing blank lines before the code that issues a warning about an
8040         empty commit message.
8041
8042 2011-10-30  Jim Meyering  <meyering@redhat.com>
8043
8044         test-parse-datetime.c: avoid new DST-related false positive test failure
8045         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
8046         based on the time/date we'll convert, not the current time.
8047         Otherwise, the moment we cross a DST boundary like today's in
8048         Europe, (CEST to CET), that offset ends up being one hour off.
8049
8050 2011-10-27  Bruno Haible  <bruno@clisp.org>
8051
8052         fstat: Tweak documentation.
8053         * modules/fstat (Description): More precise description.
8054
8055 2011-10-27  Bruno Haible  <bruno@clisp.org>
8056
8057         Update documentation regarding 'largefile' module.
8058         * doc/posix-functions/fstat.texi: Tweak wording.
8059         * doc/posix-functions/opendir.texi: Mention that the module fixes the
8060         problems with huge directories and/or small ino_t types.
8061         * doc/posix-functions/readdir.texi: Likewise.
8062         * doc/posix-functions/rewinddir.texi: Likewise.
8063
8064 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
8065
8066         maint.mk: don't maintain a second build-aux variable.
8067         * maint.mk (build_aux): Removed.  The maintainer-makefile module
8068         depends on GNUmakefile, which already maintains a cfg.mk
8069         overridable $(_build-aux) for projects with a non-standard
8070         build-aux directory location, although without the $(srcdir)
8071         prefix.  Use that variable consistently instead of introducing a
8072         second one.  Adjust all call sites.
8073
8074 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
8075
8076         Add stdalign module and use it in other modules.
8077         This is based on a previous proposal by Bruno Haible
8078         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
8079
8080         stdalign: new module
8081         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
8082         * modules/stdalign: New files.
8083         * MODULES.html.sh (c1x_core_properties): Add stdalign.
8084         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
8085
8086         stdalign-tests: new module
8087         * modules/stdalign-tests, tests/test-stdalign.c: New files.
8088
8089         argp: use stdalign
8090         * lib/argp-parse.c: Include <stdalign.h>.
8091         (alignof): Remove.
8092         * modules/argp (Depends-on): Add stdalign.
8093
8094         crypto libraries: use stdalign
8095         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
8096         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
8097         Do not include <stdlib.h> twice, in md4.c.
8098         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
8099         because we are accessing a pointer's bit-pattern, not a size.
8100         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
8101         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
8102         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
8103         * modules/crypto/sha512: Likewise.
8104
8105         sys_socket: use stdalign, not alignof
8106         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
8107         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
8108
8109 2011-10-27  Bruno Haible  <bruno@clisp.org>
8110
8111         raise test: Avoid a test failure on Linux/MIPS.
8112         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
8113         because 99 is a valid signal on Linux/MIPS.
8114
8115 2011-10-27  Bruno Haible  <bruno@clisp.org>
8116
8117         nonblocking tests: Fix test failure on Linux/MIPS.
8118         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
8119         Set to 270000.
8120
8121 2011-10-27  Bruno Haible  <bruno@clisp.org>
8122
8123         utimensat: Work around problem on Linux/hppa.
8124         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
8125         values.
8126         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
8127
8128 2011-10-25  Jim Meyering  <meyering@redhat.com>
8129
8130         maint.mk: fix a bug in sc_prohibit_stddef_without_use
8131         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
8132         after symbols like NULL, size_t, etc.
8133         Reported by Alfred M. Szmidt.
8134
8135         maint.mk: exempt ENODATA from a syntax-check rule
8136         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
8137         from the sc_prohibit_always-defined_macros syntax-check rule.
8138         Add a comment.  See this for more details:
8139         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
8140
8141 2011-10-23  Jim Meyering  <meyering@redhat.com>
8142
8143         fts: close parent dir FD before returning from post-traversal fts_read
8144         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
8145         unlink A, even though an FD open on A remained.  This is suboptimal
8146         (holding a file descriptor open longer than needed), but otherwise not
8147         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
8148         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
8149         that represents a real problem: it causes the removal of A to fail
8150         with e.g., "rm: cannot remove `A': Device or resource busy"
8151
8152         fts visits each directory twice and keeps a cache (fts_fd_ring) of
8153         directory file descriptors.  After completing the final, FTS_DP,
8154         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
8155         cache, but then proceeded to add a new FD to it via the subsequent
8156         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
8157         final file descriptor would be closed only via fts_close's call to
8158         fd_ring_clear.  Now, it is usually closed earlier, via the final
8159         FTS_DP-returning fts_read call.
8160         * lib/fts.c (restore_initial_cwd): New function, converted from
8161         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
8162         Update callers.
8163         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
8164         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
8165
8166 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
8167             Bruno Haible  <bruno@clisp.org>
8168             Jim Meyering  <jim@meyering.net>
8169
8170         readme-release: improve safety of release prep instructions.
8171         * README-release: Don't git pull all branches when only master
8172         is needed for the release process.
8173         Run make maintainer-clean before changing trees and merging.
8174         Don't try to run ./configure right after git pull in case files
8175         that influence the bootstrap process have changed, move the
8176         ./configure step to after running ./bootstrap.
8177         Don't bootstrap "one last time"... it's the first time!
8178
8179 2011-10-22  Bruno Haible  <bruno@clisp.org>
8180
8181         errno, strerror-override: Support for MSVC 10.
8182         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
8183         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
8184         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
8185         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
8186         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
8187         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
8188         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
8189         Assign values compatible with MSVC 10.
8190         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
8191         New macros.
8192         (GNULIB_defined_EWINSOCK): New macro.
8193         * lib/strerror-override.c (strerror_override): Update accordingly.
8194         * lib/strerror-override.h: Likewise.
8195         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
8196         longer equal to the corresponding errno value.
8197         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
8198
8199 2011-10-22  Bruno Haible  <bruno@clisp.org>
8200
8201         perror: Recognize when test program crashes.
8202         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
8203         strerror, set gl_cv_func_perror_works to no.
8204         Reported by Daniel Richard G. <skunk@iskunk.org>.
8205
8206         perror: Fix indentation.
8207         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
8208
8209 2011-10-22  Bruno Haible  <bruno@clisp.org>
8210
8211         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
8212         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
8213         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
8214         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
8215         functions, not as a macro.
8216         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
8217         macros.
8218         (isfinite, isinf, isnan, signbit): Check overloaded functions and
8219         absence of macro.
8220         Suggested by Eric Blake.
8221         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
8222
8223 2011-10-21  Bruno Haible  <bruno@clisp.org>
8224
8225         relocatable-prog-wrapper: Don't leave object files behind.
8226         * build-aux/install-reloc: Re-synchronize list of .o files to be
8227         removed with list of compilation units.
8228
8229 2011-10-20  Bruno Haible  <bruno@clisp.org>
8230
8231         openpty, posix_openpt: Remove code duplication.
8232         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
8233         * lib/openpty.c: Include <stdlib.h>.
8234         (openpty): Use posix_openpt on all platforms except IRIX.
8235         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
8236
8237 2011-10-20  Bruno Haible  <bruno@clisp.org>
8238
8239         unlockpt: Detect invalid argument.
8240         * lib/unlockpt.c: Include <fcntl.h>.
8241         (unlockpt): Check whether fd is valid, using fcntl().
8242         * modules/unlockpt (Depends-on): Add fcntl-h.
8243
8244 2011-10-20  Bruno Haible  <bruno@clisp.org>
8245
8246         openpty: Avoid compilation error on AIX 6.1.
8247         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
8248
8249 2011-10-20  Bruno Haible  <bruno@clisp.org>
8250
8251         posix_openpt: Support for OpenBSD.
8252         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
8253         (posix_openpt) [OpenBSD]: New code.
8254         * lib/grantpt.c: Include <fcntl.h>.
8255         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
8256         * modules/grantpt (Depends-on): Add fcntl-h.
8257
8258 2011-10-20  Bruno Haible  <bruno@clisp.org>
8259
8260         posix_openpt test: Coding style.
8261         * tests/test-posix_openpt.c: Use GNU coding style.
8262
8263 2011-10-20  Bruno Haible  <bruno@clisp.org>
8264
8265         grantpt: Support --avoid=pt_chown.
8266         * modules/grantpt (Files): Add lib/pty-private.h.
8267
8268 2011-10-20  Bruno Haible  <bruno@clisp.org>
8269
8270         posix_openpt: Fix autoconf macro.
8271         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
8272         unneeded check for _getpty.
8273
8274 2011-10-20  Bruno Haible  <bruno@clisp.org>
8275
8276         openpty: Update comments.
8277         * lib/openpty.c: Add comments about Minix.
8278
8279 2011-10-19  Eric Blake  <eblake@redhat.com>
8280
8281         openpty: relax license
8282         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
8283
8284         pt_chown: use configmake to simplify build
8285         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
8286
8287         ptsname and others: relax license
8288         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
8289         * modules/unlockpt (License): Likewise.
8290         * modules/pt_chown (License): Likewise.
8291         * modules/ptsname (License): Likewise.
8292         * modules/ttyname_r (License): Likewise.
8293
8294 2011-10-19  Jim Meyering  <meyering@redhat.com>
8295
8296         posix_openpt: remove spurious #endif
8297         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
8298
8299 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
8300
8301         maint.mk: Respect $(build_aux) in web-manual rule.
8302         * top/maint.mk (web-manual): Find gen-announce script in user's
8303         $(build_aux) directory instead of hard-coding 'build-aux'.
8304
8305 2011-10-19  Bruno Haible  <bruno@clisp.org>
8306
8307         posix_openpt: Fix compilation error.
8308         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
8309         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
8310         Mention the openpty module as an alternative.
8311
8312 2011-10-19  Bruno Haible  <bruno@clisp.org>
8313
8314         Support for old NeXTstep 3.3 frexp().
8315         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
8316         execution time of the test to 5 seconds.
8317         Reported by Daniel Richard G. <skunk@iskunk.org>.
8318
8319 2011-10-19  Bruno Haible  <bruno@clisp.org>
8320
8321         Support for old NeXTstep 3.3 sed.
8322         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
8323         part, use /.../, not \|...|. Escape periods in the header file name.
8324         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
8325         Reported by Daniel Richard G. <skunk@iskunk.org>.
8326
8327 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
8328
8329         Support for old NeXTstep 3.3 gcc.
8330         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
8331         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
8332         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
8333         * lib/spawn.in.h (_Restrict_arr_): Likewise.
8334         * lib/regex.h (_Restrict_arr_): Likewise.
8335         * lib/regex_internal.h (re_token_t): Likewise.
8336         * lib/regexec.c (check_node_accept_bytes): Likewise.
8337         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
8338
8339 2011-10-18  Eric Blake  <eblake@redhat.com>
8340
8341         posix_openpt: new module
8342         * modules/posix_openpt: New module.
8343         * m4/posix_openpt.m4: New file.
8344         * lib/posix_openpt.c: Likewise.
8345         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
8346         (gl_STDLIB_H_DEFAULTS): Set defaults.
8347         * modules/stdlib (Makefile.am): Substitute macros.
8348         * lib/stdlib.in.h (posix_openpt): Declare.
8349         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
8350         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
8351         * modules/posix_openpt-tests: New test module.
8352         * tests/test-posix_openpt.c: New test.
8353
8354 2011-10-15  Bruno Haible  <bruno@clisp.org>
8355
8356         xstrtoll: Fix compilation failure.
8357         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
8358         from lib/strtol.c.
8359         * doc/posix-headers/limits.texi: Mention missing numerical limits on
8360         some platforms.
8361         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8362
8363 2011-10-15  Bruno Haible  <bruno@clisp.org>
8364
8365         vasnprintf: Optimize bit search operation.
8366         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
8367         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
8368         gl_DOUBLE_EXPONENT_LOCATION.
8369         * modules/vasnprintf (Files): Add m4/exponentd.m4.
8370         * modules/unistdio/u8-vasnprintf (Files): Likewise.
8371         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
8372         * modules/unistdio/u16-vasnprintf (Files): Likewise.
8373         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
8374         * modules/unistdio/u32-vasnprintf (Files): Likewise.
8375         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
8376         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
8377         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
8378
8379 2011-10-15  Bruno Haible  <bruno@clisp.org>
8380
8381         vasnprintf: Fix comments.
8382         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
8383
8384 2011-10-14  Bruno Haible  <bruno@clisp.org>
8385
8386         Tests for module 'integer_length_ll'.
8387         * modules/integer_length_ll-tests: New file.
8388         * tests/test-integer_length_ll.c: New file.
8389
8390         New module 'integer_length_ll'.
8391         * lib/integer_length_ll.c: New file.
8392         * modules/integer_length_ll: New file.
8393
8394 2011-10-14  Bruno Haible  <bruno@clisp.org>
8395
8396         Tests for module 'integer_length_l'.
8397         * modules/integer_length_l-tests: New file.
8398         * tests/test-integer_length_l.c: New file.
8399
8400         New module 'integer_length_l'.
8401         * lib/integer_length_l.c: New file.
8402         * modules/integer_length_l: New file.
8403
8404 2011-10-14  Bruno Haible  <bruno@clisp.org>
8405
8406         Tests for module 'integer_length'.
8407         * modules/integer_length-tests: New file.
8408         * tests/test-integer_length.c: New file.
8409
8410         New module 'integer_length'.
8411         * lib/integer_length.h: New file.
8412         * lib/integer_length.c: New file.
8413         * modules/integer_length: New file.
8414
8415 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
8416
8417         popen: Fix dependency conditions.
8418         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
8419
8420 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
8421
8422         perror: Fix autoconf test.
8423         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
8424         <stdlib.h> and <string.h>.
8425
8426 2011-10-14  Bruno Haible  <bruno@clisp.org>
8427
8428         ffsl: Optimize on 64-bit platforms.
8429         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
8430         unrolling.
8431
8432 2011-10-13  Bruno Haible  <bruno@clisp.org>
8433
8434         ffsl: Optimize on 32-bit platforms.
8435         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
8436         use ffs() without a loop.
8437
8438         ffsl, ffsll: Optimize for GCC.
8439         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
8440         * lib/ffsl.c (GCC_BUILTIN): New macro.
8441         * lib/ffsll.c (GCC_BUILTIN): Likewise.
8442
8443 2011-10-13  Bruno Haible  <bruno@clisp.org>
8444
8445         ffs, bcopy, memset: Support symbol renaming via config.h.
8446         * lib/ffs.c: Include <config.h>.
8447         * lib/bcopy.c: Likewise.
8448         * lib/memset.c: Likewise.
8449
8450 2011-10-10  Bruno Haible  <bruno@clisp.org>
8451
8452         atanl: Simplify for platforms where 'long double' == 'double'.
8453         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
8454         alternative implementation.
8455         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8456         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8457         * modules/atanl (Depends-on): Add atan. Update conditions.
8458
8459 2011-10-10  Bruno Haible  <bruno@clisp.org>
8460
8461         acosl: Simplify for platforms where 'long double' == 'double'.
8462         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
8463         alternative implementation.
8464         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8465         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8466         * modules/acosl (Depends-on): Add acos. Update conditions.
8467
8468 2011-10-10  Bruno Haible  <bruno@clisp.org>
8469
8470         asinl: Simplify for platforms where 'long double' == 'double'.
8471         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
8472         alternative implementation.
8473         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8474         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8475         * modules/asinl (Depends-on): Add asin. Update conditions.
8476
8477 2011-10-10  Bruno Haible  <bruno@clisp.org>
8478
8479         tanl: Simplify for platforms where 'long double' == 'double'.
8480         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
8481         implementation.
8482         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8483         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8484         * modules/tanl (Depends-on): Add tan. Update conditions.
8485         (configure.ac): Don't compile trigl.c if
8486         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8487
8488 2011-10-10  Bruno Haible  <bruno@clisp.org>
8489
8490         cosl: Simplify for platforms where 'long double' == 'double'.
8491         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
8492         implementation.
8493         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8494         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8495         * modules/cosl (Depends-on): Add cos. Update conditions.
8496         (configure.ac): Don't compile sincosl.c and trigl.c if
8497         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8498
8499 2011-10-10  Bruno Haible  <bruno@clisp.org>
8500
8501         sinl: Simplify for platforms where 'long double' == 'double'.
8502         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
8503         implementation.
8504         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8505         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8506         * modules/sinl (Depends-on): Add sin. 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         logl: Simplify for platforms where 'long double' == 'double'.
8513         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
8514         implementation.
8515         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8516         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8517         * modules/logl (Depends-on): Add log. Update conditions.
8518
8519 2011-10-10  Bruno Haible  <bruno@clisp.org>
8520
8521         expl: Simplify for platforms where 'long double' == 'double'.
8522         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
8523         implementation.
8524         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8525         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8526         * modules/expl (Depends-on): Add exp. Update conditions.
8527
8528 2011-10-10  Bruno Haible  <bruno@clisp.org>
8529
8530         sqrtl: Simplify for platforms where 'long double' == 'double'.
8531         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
8532         alternative implementation.
8533         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8534         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8535         * modules/sqrtl (Depends-on): Update conditions.
8536
8537 2011-10-10  Bruno Haible  <bruno@clisp.org>
8538
8539         ldexpl: Simplify for platforms where 'long double' == 'double'.
8540         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
8541         alternative implementation.
8542         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8543         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8544         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
8545
8546 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
8547
8548         ffsll: set correct witness
8549         * modules/ffsll (configure.ac): Fix typo.
8550
8551 2011-10-10  Bruno Haible  <bruno@clisp.org>
8552
8553         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
8554         * lib/printf-frexpl.c: Include <config.h>.
8555         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8556         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
8557         second time.
8558         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
8559         gl_LONG_DOUBLE_VS_DOUBLE.
8560         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
8561         conditions.
8562
8563 2011-10-10  Bruno Haible  <bruno@clisp.org>
8564
8565         frexpl: Simplify for platforms where 'long double' == 'double'.
8566         * lib/frexpl.c: Include <config.h>.
8567         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8568         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
8569         time.
8570         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8571         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8572         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
8573         * modules/frexpl (Depends-on): Add frexp. Update conditions.
8574         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
8575         conditions.
8576
8577 2011-10-10  Jim Meyering  <meyering@redhat.com>
8578
8579         test-renameat: don't leave behind a temporary file
8580         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
8581           ERROR: files left in build directory after distclean:
8582           ./gltests/test-renameat.too
8583           make[1]: *** [distcleancheck] Error 1
8584         Reported by Tom G. Christensen.
8585
8586 2011-10-09  Bruno Haible  <bruno@clisp.org>
8587
8588         rint: Determine RINT_LIBM correctly on AIX 7.
8589         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
8590         directly, not only through a function pointer. Also accept an optional
8591         4th argument with extra code.
8592         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
8593         rintf() call by gcc when optimizing.
8594
8595         mathfunc.m4: Refactor.
8596         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
8597         m4 variable.
8598
8599 2011-10-09  Bruno Haible  <bruno@clisp.org>
8600
8601         rintl: Simplify for platforms where 'long double' == 'double'.
8602         * lib/rintl.c: Include <config.h>.
8603         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8604         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
8605         time.
8606         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8607         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8608         * modules/rintl (Depends-on): Add rint. Update conditions.
8609
8610 2011-10-09  Bruno Haible  <bruno@clisp.org>
8611
8612         roundl: Simplify for platforms where 'long double' == 'double'.
8613         * lib/roundl.c: Include <config.h>.
8614         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8615         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
8616         time.
8617         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8618         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8619         * modules/roundl (Depends-on): Add round. Update conditions.
8620
8621 2011-10-09  Bruno Haible  <bruno@clisp.org>
8622
8623         truncl: Simplify for platforms where 'long double' == 'double'.
8624         * lib/truncl.c: Include <config.h>.
8625         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8626         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
8627         time.
8628         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8629         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8630         * modules/truncl (Depends-on): Add trunc. Update conditions.
8631
8632 2011-10-09  Bruno Haible  <bruno@clisp.org>
8633
8634         ceill: Simplify for platforms where 'long double' == 'double'.
8635         * lib/ceill.c: Include <config.h>.
8636         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8637         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
8638         time.
8639         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8640         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8641         * modules/ceill (Depends-on): Add ceil. Update conditions.
8642
8643 2011-10-09  Bruno Haible  <bruno@clisp.org>
8644
8645         floorl: Simplify for platforms where 'long double' == 'double'.
8646         * lib/floorl.c: Include <config.h>.
8647         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8648         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
8649         time.
8650         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8651         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8652         * modules/floorl (Depends-on): Add floor. Update conditions.
8653
8654 2011-10-09  Bruno Haible  <bruno@clisp.org>
8655
8656         rint: Fix ordering constraints.
8657         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
8658         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
8659         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
8660
8661 2011-10-09  Bruno Haible  <bruno@clisp.org>
8662
8663         copysignl: Simplify for platforms where 'long double' == 'double'.
8664         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
8665         alternative.
8666         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8667         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8668         * modules/copysignl (Depends-on): Add copysign. Update conditions.
8669
8670 2011-10-09  Bruno Haible  <bruno@clisp.org>
8671
8672         Tests for module 'rintl'.
8673         * modules/rintl-tests: New file.
8674         * tests/test-rintl.c: New file.
8675
8676         New module 'rintl'.
8677         * lib/math.in.h (rintl): New declaration.
8678         * lib/rintl.c: New file.
8679         * m4/rintl.m4: New file.
8680         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
8681         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
8682         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
8683         * modules/rintl: New file.
8684         * tests/test-math-c++.cc: Check the declaration of rintl.
8685         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
8686         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
8687         * doc/posix-functions/rintl.texi: Mention the new module.
8688
8689 2011-10-09  Bruno Haible  <bruno@clisp.org>
8690
8691         Tests for module 'rintf'.
8692         * modules/rintf-tests: New file.
8693         * tests/test-rintf.c: New file.
8694
8695         New module 'rintf'.
8696         * lib/math.in.h (rintf): New declaration.
8697         * lib/rintf.c: New file.
8698         * m4/rintf.m4: New file.
8699         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
8700         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
8701         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
8702         * modules/rintf: New file.
8703         * tests/test-math-c++.cc: Check the declaration of rintf.
8704         * doc/posix-functions/rintf.texi: Mention the new module.
8705
8706 2011-10-09  Bruno Haible  <bruno@clisp.org>
8707
8708         rint: Support for MSVC.
8709         * lib/math.in.h (rint): New declaration.
8710         * lib/rint.c: New file.
8711         * m4/rint.m4: New file.
8712         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
8713         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
8714         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
8715         * modules/rint (Description): Fix.
8716         (Files): Add lib/rint.c, m4/rint.m4.
8717         (Depends-on): Add math.
8718         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
8719         gl_MATH_MODULE_INDICATOR.
8720         * tests/test-math-c++.cc: Check the declaration of rint.
8721         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
8722         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
8723         * doc/posix-functions/rint.texi: Mention the replacement provided by
8724         the module.
8725
8726         rint tests: More tests.
8727         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
8728         minus-zero.h, infinity.h, nan.h.
8729         (main): Skip the test if the current rounding mode is not standard. Add
8730         tests for negative numbers, minus zero, infinity, NaN.
8731         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
8732         tests/nan.h.
8733         (Depends-on): Add isnand-nolibm.
8734
8735 2011-10-09  Bruno Haible  <bruno@clisp.org>
8736
8737         Tests for module 'copysignl'.
8738         * modules/copysignl-tests: New file.
8739         * tests/test-copysignl.c: New file.
8740
8741         New module 'copysignl'.
8742         * lib/math.in.h (copysignl): New declaration.
8743         * lib/copysignl.c: New file.
8744         * m4/copysignl.m4: New file.
8745         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
8746         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
8747         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
8748         HAVE_COPYSIGNL.
8749         * modules/copysignl: New file.
8750         * tests/test-math-c++.cc: Check the declaration of copysignl.
8751         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
8752         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
8753         * doc/posix-functions/copysignl.texi: Mention the new module.
8754
8755 2011-10-09  Bruno Haible  <bruno@clisp.org>
8756
8757         Tests for module 'copysignf'.
8758         * modules/copysignf-tests: New file.
8759         * tests/test-copysignf.c: New file.
8760
8761         New module 'copysignf'.
8762         * lib/math.in.h (copysignf): New declaration.
8763         * lib/copysignf.c: New file.
8764         * m4/copysignf.m4: New file.
8765         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
8766         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
8767         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
8768         HAVE_COPYSIGNF.
8769         * modules/copysignf: New file.
8770         * tests/test-math-c++.cc: Check the declaration of copysignf.
8771         * doc/posix-functions/copysignf.texi: Mention the new module.
8772
8773 2011-10-09  Bruno Haible  <bruno@clisp.org>
8774
8775         Ensure that HAVE_* variables are set to 1 before they are set to 0.
8776         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
8777         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
8778         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
8779         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
8780         gl_SIGNAL_H_DEFAULTS.
8781
8782 2011-10-09  Bruno Haible  <bruno@clisp.org>
8783
8784         poll: Make macro safer.
8785         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
8786         ac_cv_header_poll_h is not set.
8787
8788 2011-10-09  Bruno Haible  <bruno@clisp.org>
8789
8790         copysign: Provide replacement.
8791         * lib/math.in.h (copysign): New declaration.
8792         * lib/copysign.c: New file.
8793         * m4/copysign.m4: New file.
8794         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
8795         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
8796         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
8797         HAVE_COPYSIGN.
8798         * modules/copysign (Description): Clarify.
8799         (Files): Add lib/copysign.c, m4/copysign.m4.
8800         (Depends-on): Add math, signbit.
8801         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
8802         gl_MATH_MODULE_INDICATOR.
8803         * tests/test-math-c++.cc: Check the declaration of copysign.
8804         * doc/posix-functions/copysign.texi: Mention the effects of the module
8805         on Minix and MSVC.
8806
8807 2011-10-09  Bruno Haible  <bruno@clisp.org>
8808
8809         isinf: Ensure macro on AIX 5.1.
8810         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
8811         macro.
8812         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
8813
8814 2011-10-09  Bruno Haible  <bruno@clisp.org>
8815
8816         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
8817         * modules/snprintf-posix-tests (configure.ac): Require
8818         gl_LONG_DOUBLE_VS_DOUBLE.
8819         * modules/sprintf-posix-tests (configure.ac): Likewise.
8820         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
8821         * modules/vasprintf-posix-tests (configure.ac): Likewise.
8822         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
8823         * modules/vsprintf-posix-tests (configure.ac): Likewise.
8824         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
8825         tests on platforms where 'long double' is the same as 'double'.
8826         * tests/test-sprintf-posix.h (test_function): Likewise.
8827         * tests/test-vasnprintf-posix.c (test_function): Likewise.
8828         * tests/test-vasprintf-posix.c (test_function): Likewise.
8829
8830         *printf: Fix for platforms where 'long double' == 'double'.
8831         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
8832         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
8833         * modules/dprintf-posix (Files): Add m4/math_h.m4.
8834         * modules/fprintf-posix (Files): Likewise.
8835         * modules/obstack-printf-posix (Files): Likewise.
8836         * modules/snprintf-posix (Files): Likewise.
8837         * modules/sprintf-posix (Files): Likewise.
8838         * modules/vasnprintf (Files): Likewise.
8839         * modules/vasnprintf-posix (Files): Likewise.
8840         * modules/vasprintf-posix (Files): Likewise.
8841         * modules/vdprintf-posix (Files): Likewise.
8842         * modules/vfprintf-posix (Files): Likewise.
8843         * modules/vsnprintf-posix (Files): Likewise.
8844         * modules/vsprintf-posix (Files): Likewise.
8845         * modules/unistdio/u8-vasnprintf (Files): Likewise.
8846         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
8847         * modules/unistdio/u16-vasnprintf (Files): Likewise.
8848         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
8849         * modules/unistdio/u32-vasnprintf (Files): Likewise.
8850         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
8851         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
8852
8853         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
8854         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
8855         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8856         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
8857         'long double'.
8858         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
8859
8860         isinf: Fix for platforms where 'long double' == 'double'.
8861         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
8862         Don't blindly assume 80-bit 'long double'.
8863
8864         isfinite: Fix for platforms where 'long double' == 'double'.
8865         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
8866         Don't blindly assume 80-bit 'long double'.
8867
8868         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
8869         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
8870         * modules/isfinite-tests (configure.ac): Require
8871         gl_LONG_DOUBLE_VS_DOUBLE.
8872         * modules/isinf-tests (configure.ac): Likewise.
8873         * modules/isnan-tests (configure.ac): Likewise.
8874         * modules/isnanl-tests (configure.ac): Likewise.
8875         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
8876         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
8877         tests on platforms where 'long double' is the same as 'double'.
8878         * tests/test-isinf.c (test_isinfl): Likewise.
8879         * tests/test-isnan.c (test_long_double): Likewise.
8880         * tests/test-isnanl.h (main): Likewise.
8881
8882 2011-10-08  Bruno Haible  <bruno@clisp.org>
8883
8884         Tests for module 'tanhf'.
8885         * modules/tanhf-tests: New file.
8886         * tests/test-tanhf.c: New file.
8887
8888         New module 'tanhf'.
8889         * lib/math.in.h (tanhf): New declaration.
8890         * lib/tanhf.c: New file.
8891         * m4/tanhf.m4: New file.
8892         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
8893         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
8894         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
8895         * modules/tanhf: New file.
8896         * tests/test-math-c++.cc: Check the declaration of tanhf.
8897         * doc/posix-functions/tanhf.texi: Mention the new module.
8898
8899         tanh: Use a .m4 file.
8900         * m4/tanh.m4: New file.
8901         * modules/tanh (Files): Add it.
8902         (configure.ac): Just invoke gl_FUNC_TANH.
8903
8904 2011-10-08  Bruno Haible  <bruno@clisp.org>
8905
8906         Tests for module 'coshf'.
8907         * modules/coshf-tests: New file.
8908         * tests/test-coshf.c: New file.
8909
8910         New module 'coshf'.
8911         * lib/math.in.h (coshf): New declaration.
8912         * lib/coshf.c: New file.
8913         * m4/coshf.m4: New file.
8914         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
8915         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
8916         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
8917         * modules/coshf: New file.
8918         * tests/test-math-c++.cc: Check the declaration of coshf.
8919         * doc/posix-functions/coshf.texi: Mention the new module.
8920
8921         cosh: Use a .m4 file.
8922         * m4/cosh.m4: New file.
8923         * modules/cosh (Files): Add it.
8924         (configure.ac): Just invoke gl_FUNC_COSH.
8925
8926 2011-10-08  Bruno Haible  <bruno@clisp.org>
8927
8928         Tests for module 'sinhf'.
8929         * modules/sinhf-tests: New file.
8930         * tests/test-sinhf.c: New file.
8931
8932         New module 'sinhf'.
8933         * lib/math.in.h (sinhf): New declaration.
8934         * lib/sinhf.c: New file.
8935         * m4/sinhf.m4: New file.
8936         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
8937         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
8938         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
8939         * modules/sinhf: New file.
8940         * tests/test-math-c++.cc: Check the declaration of sinhf.
8941         * doc/posix-functions/sinhf.texi: Mention the new module.
8942
8943         sinh: Use a .m4 file.
8944         * m4/sinh.m4: New file.
8945         * modules/sinh (Files): Add it.
8946         (configure.ac): Just invoke gl_FUNC_SINH.
8947
8948 2011-10-08  Bruno Haible  <bruno@clisp.org>
8949
8950         Tests for module 'atan2f'.
8951         * modules/atan2f-tests: New file.
8952         * tests/test-atan2f.c: New file.
8953
8954         New module 'atan2f'.
8955         * lib/math.in.h (atan2f): New declaration.
8956         * lib/atan2f.c: New file.
8957         * m4/atan2f.m4: New file.
8958         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
8959         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
8960         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
8961         * modules/atan2f: New file.
8962         * tests/test-math-c++.cc: Check the declaration of atan2f.
8963         * doc/posix-functions/atan2f.texi: Mention the new module.
8964
8965         atan2: Use a .m4 file.
8966         * m4/atan2.m4: New file.
8967         * modules/atan2 (Files): Add it.
8968         (configure.ac): Just invoke gl_FUNC_ATAN2.
8969
8970 2011-10-08  Bruno Haible  <bruno@clisp.org>
8971
8972         Tests for module 'atanf'.
8973         * modules/atanf-tests: New file.
8974         * tests/test-atanf.c: New file.
8975
8976         New module 'atanf'.
8977         * lib/math.in.h (atanf): New declaration.
8978         * lib/atanf.c: New file.
8979         * m4/atanf.m4: New file.
8980         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
8981         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
8982         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
8983         * modules/atanf: New file.
8984         * tests/test-math-c++.cc: Check the declaration of atanf.
8985         * doc/posix-functions/atanf.texi: Mention the new module.
8986
8987         atan: Use a .m4 file.
8988         * m4/atan.m4: New file.
8989         * modules/atan (Files): Add it.
8990         (configure.ac): Just invoke gl_FUNC_ATAN.
8991
8992 2011-10-08  Bruno Haible  <bruno@clisp.org>
8993
8994         Tests for module 'acosf'.
8995         * modules/acosf-tests: New file.
8996         * tests/test-acosf.c: New file.
8997
8998         New module 'acosf'.
8999         * lib/math.in.h (acosf): New declaration.
9000         * lib/acosf.c: New file.
9001         * m4/acosf.m4: New file.
9002         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
9003         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
9004         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
9005         * modules/acosf: New file.
9006         * tests/test-math-c++.cc: Check the declaration of acosf.
9007         * doc/posix-functions/acosf.texi: Mention the new module.
9008
9009         acos: Use a .m4 file.
9010         * m4/acos.m4: New file.
9011         * modules/acos (Files): Add it.
9012         (configure.ac): Just invoke gl_FUNC_ACOS.
9013
9014 2011-10-08  Bruno Haible  <bruno@clisp.org>
9015
9016         Tests for module 'asinf'.
9017         * modules/asinf-tests: New file.
9018         * tests/test-asinf.c: New file.
9019
9020         New module 'asinf'.
9021         * lib/math.in.h (asinf): New declaration.
9022         * lib/asinf.c: New file.
9023         * m4/asinf.m4: New file.
9024         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
9025         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
9026         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
9027         * modules/asinf: New file.
9028         * tests/test-math-c++.cc: Check the declaration of asinf.
9029         * doc/posix-functions/asinf.texi: Mention the new module.
9030
9031         asin: Use a .m4 file.
9032         * m4/asin.m4: New file.
9033         * modules/asin (Files): Add it.
9034         (configure.ac): Just invoke gl_FUNC_ASIN.
9035
9036 2011-10-08  Bruno Haible  <bruno@clisp.org>
9037
9038         Tests for module 'tanf'.
9039         * modules/tanf-tests: New file.
9040         * tests/test-tanf.c: New file.
9041
9042         New module 'tanf'.
9043         * lib/math.in.h (tanf): New declaration.
9044         * lib/tanf.c: New file.
9045         * m4/tanf.m4: New file.
9046         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
9047         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
9048         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
9049         * modules/tanf: New file.
9050         * tests/test-math-c++.cc: Check the declaration of tanf.
9051         * doc/posix-functions/tanf.texi: Mention the new module.
9052
9053         tan: Use a .m4 file.
9054         * m4/tan.m4: New file.
9055         * modules/tan (Files): Add it.
9056         (configure.ac): Just invoke gl_FUNC_TAN.
9057
9058 2011-10-08  Bruno Haible  <bruno@clisp.org>
9059
9060         Tests for module 'cosf'.
9061         * modules/cosf-tests: New file.
9062         * tests/test-cosf.c: New file.
9063
9064         New module 'cosf'.
9065         * lib/math.in.h (cosf): New declaration.
9066         * lib/cosf.c: New file.
9067         * m4/cosf.m4: New file.
9068         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
9069         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
9070         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
9071         * modules/cosf: New file.
9072         * tests/test-math-c++.cc: Check the declaration of cosf.
9073         * doc/posix-functions/cosf.texi: Mention the new module.
9074
9075         cos: Use a .m4 file.
9076         * m4/cos.m4: New file.
9077         * modules/cos (Files): Add it.
9078         (configure.ac): Just invoke gl_FUNC_COS.
9079
9080 2011-10-08  Bruno Haible  <bruno@clisp.org>
9081
9082         Tests for module 'sinf'.
9083         * modules/sinf-tests: New file.
9084         * tests/test-sinf.c: New file.
9085
9086         New module 'sinf'.
9087         * lib/math.in.h (sinf): New declaration.
9088         * lib/sinf.c: New file.
9089         * m4/sinf.m4: New file.
9090         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
9091         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
9092         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
9093         * modules/sinf: New file.
9094         * tests/test-math-c++.cc: Check the declaration of sinf.
9095         * doc/posix-functions/sinf.texi: Mention the new module.
9096
9097         sin: Use a .m4 file.
9098         * m4/sin.m4: New file.
9099         * modules/sin (Files): Add it.
9100         (configure.ac): Just invoke gl_FUNC_SIN.
9101
9102 2011-10-08  Bruno Haible  <bruno@clisp.org>
9103
9104         Tests for module 'powf'.
9105         * modules/powf-tests: New file.
9106         * tests/test-powf.c: New file.
9107
9108         New module 'powf'.
9109         * lib/math.in.h (powf): New declaration.
9110         * lib/powf.c: New file.
9111         * m4/powf.m4: New file.
9112         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
9113         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
9114         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
9115         * modules/powf: New file.
9116         * tests/test-math-c++.cc: Check the declaration of powf.
9117         * doc/posix-functions/powf.texi: Mention the new module.
9118
9119         pow: Use a .m4 file.
9120         * m4/pow.m4: New file.
9121         * modules/pow (Files): Add it.
9122         (configure.ac): Just invoke gl_FUNC_POW.
9123
9124 2011-10-08  Bruno Haible  <bruno@clisp.org>
9125
9126         Tests for module 'log10f'.
9127         * modules/log10f-tests: New file.
9128         * tests/test-log10f.c: New file.
9129
9130         New module 'log10f'.
9131         * lib/math.in.h (log10f): New declaration.
9132         * lib/log10f.c: New file.
9133         * m4/log10f.m4: New file.
9134         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
9135         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
9136         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
9137         * modules/log10f: New file.
9138         * tests/test-math-c++.cc: Check the declaration of log10f.
9139         * doc/posix-functions/log10f.texi: Mention the new module.
9140
9141         log10: Use a .m4 file.
9142         * m4/log10.m4: New file.
9143         * modules/log10 (Files): Add it.
9144         (configure.ac): Just invoke gl_FUNC_LOG10.
9145
9146 2011-10-08  Bruno Haible  <bruno@clisp.org>
9147
9148         Tests for module 'logf'.
9149         * modules/logf-tests: New file.
9150         * tests/test-logf.c: New file.
9151
9152         New module 'logf'.
9153         * lib/math.in.h (logf): New declaration.
9154         * lib/logf.c: New file.
9155         * m4/logf.m4: New file.
9156         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
9157         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
9158         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
9159         * modules/logf: New file.
9160         * tests/test-math-c++.cc: Check the declaration of logf.
9161         * doc/posix-functions/logf.texi: Mention the new module.
9162
9163         log: Use a .m4 file.
9164         * m4/log.m4: New file.
9165         * modules/log (Files): Add it.
9166         (configure.ac): Just invoke gl_FUNC_LOG.
9167
9168 2011-10-08  Bruno Haible  <bruno@clisp.org>
9169
9170         Tests for module 'expf'.
9171         * modules/expf-tests: New file.
9172         * tests/test-expf.c: New file.
9173
9174         New module 'expf'.
9175         * lib/math.in.h (expf): New declaration.
9176         * lib/expf.c: New file.
9177         * m4/expf.m4: New file.
9178         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
9179         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
9180         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
9181         * modules/expf: New file.
9182         * tests/test-math-c++.cc: Check the declaration of expf.
9183         * doc/posix-functions/expf.texi: Mention the new module.
9184
9185         exp: Use a .m4 file.
9186         * m4/exp.m4: New file.
9187         * modules/exp (Files): Add it.
9188         (configure.ac): Just invoke gl_FUNC_EXP.
9189
9190 2011-10-08  Bruno Haible  <bruno@clisp.org>
9191
9192         Tests for module 'sqrtf'.
9193         * modules/sqrtf-tests: New file.
9194         * tests/test-sqrtf.c: New file.
9195
9196         New module 'sqrtf'.
9197         * lib/math.in.h (sqrtf): New declaration.
9198         * lib/sqrtf.c: New file.
9199         * m4/sqrtf.m4: New file.
9200         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
9201         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
9202         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
9203         * modules/sqrtf: New file.
9204         * tests/test-math-c++.cc: Check the declaration of sqrtf.
9205         * doc/posix-functions/sqrtf.texi: Mention the new module.
9206
9207 2011-10-08  Bruno Haible  <bruno@clisp.org>
9208
9209         Tests: Avoid link failures w.r.t. libintl.
9210         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
9211         $(LIBINTL).
9212         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
9213         $(LIBINTL).
9214         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
9215         against $(LIBINTL).
9216         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
9217         $(LIBINTL).
9218         * modules/openat-tests (Makefile.am): Link test-fchmodat against
9219         $(LIBINTL).
9220         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
9221
9222 2011-10-08  Bruno Haible  <bruno@clisp.org>
9223
9224         pow tests: Defeat compiler optimizations.
9225         * tests/test-pow.c (main): Assign arguments to x and y before use.
9226
9227 2011-10-08  Bruno Haible  <bruno@clisp.org>
9228
9229         gnulib-tool: Improve last commit.
9230         * gnulib-tool (func_modules_transitive_closure): Simplify code.
9231         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
9232         ignore dependencies that are not among the modules list.
9233
9234 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
9235
9236         gnulib-tool: don't follow dependencies to avoided modules
9237         This fixes a bug that is related to the previous one.
9238         * gnulib-tool (func_modules_transitive_closure)
9239         (func_emit_autoconf_snippets):
9240         Check whether a dependency is acceptable before using it.
9241         (--extract-dependencies): Report an error if --avoid is also used,
9242         since this combination of options is not yet supported.
9243
9244         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
9245         Problem reported by Peter Dyballa in
9246         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
9247         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
9248         when echoing "$condition".
9249
9250 2011-10-07  Bruno Haible  <bruno@clisp.org>
9251
9252         Fix documentation about math functions on MacOS X.
9253         * doc/posix-functions/exp2.texi: Don't say the function is missing on
9254         MacOS X 10.5.
9255         * doc/posix-functions/fdim.texi: Likewise.
9256         * doc/posix-functions/feclearexcept.texi: Likewise.
9257         * doc/posix-functions/fegetenv.texi: Likewise.
9258         * doc/posix-functions/fegetround.texi: Likewise.
9259         * doc/posix-functions/feholdexcept.texi: Likewise.
9260         * doc/posix-functions/feraiseexcept.texi: Likewise.
9261         * doc/posix-functions/fesetenv.texi: Likewise.
9262         * doc/posix-functions/fesetround.texi: Likewise.
9263         * doc/posix-functions/fetestexcept.texi: Likewise.
9264         * doc/posix-functions/feupdateenv.texi: Likewise.
9265         * doc/posix-functions/fmax.texi: Likewise.
9266         * doc/posix-functions/fmin.texi: Likewise.
9267         * doc/posix-functions/log2.texi: Likewise.
9268         * doc/posix-functions/modff.texi: Likewise.
9269         * doc/posix-functions/nan.texi: Likewise.
9270         * doc/posix-functions/nanf.texi: Likewise.
9271         * doc/posix-functions/nextafterf.texi: Likewise.
9272         * doc/posix-functions/remquo.texi: Likewise.
9273
9274 2011-10-07  Bruno Haible  <bruno@clisp.org>
9275
9276         modff: Drop assumption about library that defines modff.
9277         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
9278         AC_CHECK_FUNCS.
9279         * modules/modff (Files): Add m4/mathfunc.m4.
9280
9281 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
9282
9283         raise tests: Avoid a GCC warning.
9284         * tests/test-raise.c (handler): Use _Noreturn.
9285
9286 2011-10-07  Bruno Haible  <bruno@clisp.org>
9287
9288         Tests for module 'ldexpf'.
9289         * modules/ldexpf-tests: New file.
9290         * tests/test-ldexpf.c: New file.
9291
9292         New module 'ldexpf'.
9293         * lib/math.in.h (ldexpf): New declaration.
9294         * lib/ldexpf.c: New file.
9295         * m4/ldexpf.m4: New file.
9296         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
9297         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
9298         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
9299         * modules/ldexpf: New file.
9300         * tests/test-math-c++.cc: Check the declaration of ldexpf.
9301         * doc/posix-functions/ldexpf.texi: Mention the new module.
9302
9303 2011-10-06  Bruno Haible  <bruno@clisp.org>
9304
9305         frexpf: Work around problems on IRIX and mingw.
9306         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
9307         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
9308         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
9309         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
9310         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
9311         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
9312         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
9313
9314 2011-10-06  Bruno Haible  <bruno@clisp.org>
9315
9316         fabsf: Drop assumption about library that defines fabsf.
9317         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
9318         AC_CHECK_FUNCS.
9319         * modules/fabsf (Files): Add m4/mathfunc.m4.
9320
9321 2011-10-06  Bruno Haible  <bruno@clisp.org>
9322
9323         frexpf: Drop assumption about library that defines frexpf.
9324         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
9325         'int *', 'float *', 'long double *', 'float', 'long double'.
9326         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
9327         AC_CHECK_FUNCS.
9328         * modules/frexpf (Files): Add m4/mathfunc.m4.
9329
9330         Tests for module 'frexpf'.
9331         * modules/frexpf-tests: New file.
9332         * tests/test-frexpf.c: New file.
9333
9334         New module 'frexpf'.
9335         * lib/math.in.h (frexpf): New declaration.
9336         * lib/frexpf.c: New file.
9337         * m4/frexpf.m4: New file.
9338         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
9339         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
9340         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
9341         * modules/frexpf: New file.
9342         * tests/test-math-c++.cc: Check the declaration of frexpf.
9343         * doc/posix-functions/frexpf.texi: Mention the new module.
9344
9345 2011-10-06  Bruno Haible  <bruno@clisp.org>
9346
9347         math: Sort function declarations of math.in.h.
9348         * lib/math.in.h (frexp, logb): Move declarations.
9349
9350 2011-10-05  Bruno Haible  <bruno@clisp.org>
9351
9352         Tests for module 'modff'.
9353         * modules/modff-tests: New file.
9354         * tests/test-modff.c: New file.
9355
9356         New module 'modff'.
9357         * lib/math.in.h (modff): New declaration.
9358         * lib/modff.c: New file.
9359         * m4/modff.m4: New file.
9360         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
9361         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
9362         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
9363         * modules/modff: New file.
9364         * tests/test-math-c++.cc: Check the declaration of modff.
9365         * doc/posix-functions/modff.texi: Mention the new module.
9366
9367         modf tests: Make test sharper.
9368         * tests/test-modf.c (main): Strengthen upper bound.
9369
9370         modf: Use a .m4 file.
9371         * m4/modf.m4: New file.
9372         * modules/modf (Files): Add it.
9373         (configure.ac): Just invoke gl_FUNC_MODF.
9374
9375 2011-10-05  Bruno Haible  <bruno@clisp.org>
9376
9377         Tests for module 'fmodf'.
9378         * modules/fmodf-tests: New file.
9379         * tests/test-fmodf.c: New file.
9380
9381         New module 'fmodf'.
9382         * lib/math.in.h (fmodf): New declaration.
9383         * lib/fmodf.c: New file.
9384         * m4/fmodf.m4: New file.
9385         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
9386         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
9387         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
9388         * modules/fmodf: New file.
9389         * tests/test-math-c++.cc: Check the declaration of fmodf.
9390         * doc/posix-functions/fmodf.texi: Mention the new module.
9391
9392         fmod: Use a .m4 file.
9393         * m4/fmod.m4: New file.
9394         * modules/fmod (Files): Add it.
9395         (configure.ac): Just invoke gl_FUNC_FMOD.
9396
9397 2011-10-05  Bruno Haible  <bruno@clisp.org>
9398
9399         Tests for module 'fabsf'.
9400         * modules/fabsf-tests: New file.
9401         * tests/test-fabsf.c: New file.
9402
9403         New module 'fabsf'.
9404         * lib/math.in.h (fabsf): New declaration.
9405         * lib/fabsf.c: New file.
9406         * m4/fabsf.m4: New file.
9407         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
9408         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
9409         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
9410         * modules/fabsf: New file.
9411         * tests/test-math-c++.cc: Check the declaration of fabsf.
9412         * doc/posix-functions/fabsf.texi: Mention the new module.
9413
9414         fabs: Use a .m4 file.
9415         * m4/fabs.m4: New file.
9416         * modules/fabs (Files): Add it.
9417         (configure.ac): Just invoke gl_FUNC_FABS.
9418
9419 2011-10-05  Jim Meyering  <meyering@redhat.com>
9420
9421         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
9422         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
9423         ls -lL regression introduced in coreutils-8.12, it does so at the
9424         cost of an additional stat call in the common case.  Besides, now
9425         that the kernel change that prompted commit 95f7c57f has been reverted
9426         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
9427         we have no use for commit 95f7c57f, "file-has-acl: use
9428         acl_extended_file_nofollow if available".
9429
9430 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
9431
9432         file-has-acl: revert unintended change in behavior of ls -L
9433         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
9434         derived from...
9435         (file_has_acl): ...code here.  Call it.
9436         This problem was introduced with 2011-07-22 commit 95f7c57f,
9437         "file-has-acl: use acl_extended_file_nofollow if available".
9438         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
9439
9440 2011-10-03  Bruno Haible  <bruno@clisp.org>
9441
9442         poll: Avoid link errors on MSVC.
9443         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
9444         * modules/poll (Depends-on): Add sockets.
9445         (Link): New section.
9446         * NEWS: Mention the change.
9447         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
9448         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
9449         $(LIB_POLL) instead of $(LIBSOCKET).
9450
9451 2011-10-03  Bruno Haible  <bruno@clisp.org>
9452
9453         sys_select tests: Fix link error on MSVC 9.
9454         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
9455         with $(LIB_SELECT) instead of $(LIBSOCKET).
9456
9457 2011-10-03  Bruno Haible  <bruno@clisp.org>
9458
9459         sys_select: Fix compilation error on mingw.
9460         * lib/sys_select.in.h: On native Windows, include <io.h>.
9461
9462 2011-10-03  Bruno Haible  <bruno@clisp.org>
9463
9464         wmemset: Support for MSVC.
9465         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
9466         whether wmemset() exists.
9467
9468 2011-10-03  Bruno Haible  <bruno@clisp.org>
9469
9470         wmemmove: Support for MSVC.
9471         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
9472         whether wmemmove() exists.
9473
9474 2011-10-03  Bruno Haible  <bruno@clisp.org>
9475
9476         wmemcpy: Support for MSVC.
9477         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
9478         whether wmemcpy() exists.
9479
9480 2011-10-03  Bruno Haible  <bruno@clisp.org>
9481
9482         wmemcmp: Support for MSVC.
9483         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
9484         whether wmemcmp() exists.
9485
9486 2011-10-03  Bruno Haible  <bruno@clisp.org>
9487
9488         wmemchr: Support for MSVC.
9489         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
9490         whether wmemchr() exists.
9491
9492 2011-10-03  Bruno Haible  <bruno@clisp.org>
9493
9494         glthread/*, strsignal: Support for MSVC.
9495         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
9496         including <winsock.h> on MSVC 9.
9497         * lib/glthread/lock.h: Likewise.
9498         * lib/glthread/thread.h: Likewise.
9499         * lib/glthread/tls.h: Likewise.
9500         * lib/glthread/yield.h: Likewise.
9501         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
9502         if HAVE_UNISTD_H is false.
9503         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
9504
9505 2011-10-03  Bruno Haible  <bruno@clisp.org>
9506
9507         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
9508         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
9509         Set to 100000.
9510
9511 2011-10-03  Bruno Haible  <bruno@clisp.org>
9512
9513         acl: Fix specification.
9514         * lib/file-has-acl.c (file_has_acl): Fix specification.
9515
9516 2011-10-03  Bruno Haible  <bruno@clisp.org>
9517
9518         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
9519         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
9520         (compute_curr_prefix, shared_library_fullname,
9521         find_shared_library_fullname, get_shared_library_fullname, relocate):
9522         Use it together with PIC && INSTALLDIR.
9523         Reported by <jojelino@gmail.com>
9524         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
9525
9526 2011-10-01  Jim Meyering  <meyering@redhat.com>
9527
9528         maint.mk: adjust a release-related rule not to require use of gzip
9529         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
9530         Instead, check each file in $(DIST_ARCHIVES).  This is better for
9531         projects that build only .tar.xz files.  Also fix an erroneous test.
9532
9533         test-linkat: don't leave behind a temporary file
9534         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
9535         Otherwise, coreutils' "make distcheck" would fail with this:
9536           Only in /c/cu/tests/torture/coreutils/test/\
9537             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
9538           make[2]: *** [my-distcheck] Error 1
9539
9540         float, math: add omitted file
9541         * lib/itold.c: Add file, required for yesterday's float change.
9542
9543 2011-10-01  Bruno Haible  <bruno@clisp.org>
9544
9545         isinf: Fix for OpenBSD/x86.
9546         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
9547         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
9548         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
9549
9550 2011-10-01  Bruno Haible  <bruno@clisp.org>
9551
9552         isfinite: Fix syntax error in configure test.
9553         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
9554
9555         isfinite: Fix typo.
9556         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
9557         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
9558
9559 2011-10-01  Bruno Haible  <bruno@clisp.org>
9560
9561         nonblocking tests: Fix test failure on Linux/IA-64.
9562         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
9563         Set to 270000.
9564
9565 2011-10-01  Bruno Haible  <bruno@clisp.org>
9566
9567         mkfifoat tests: Fix a test failure on mingw.
9568         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
9569         with error ENOSYS.
9570
9571 2011-09-30  Bruno Haible  <bruno@clisp.org>
9572
9573         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
9574         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
9575         'long double'. Set REPLACE_ITOLD.
9576         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
9577         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
9578         * lib/itold.c: New file.
9579         * modules/float (Files): Add lib/itold.c.
9580         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
9581         (Makefile.am): Substitute REPLACE_ITOLD.
9582         * modules/math (Depends-on): Add float.
9583         (Makefile.am): Substitute REPLACE_ITOLD.
9584         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
9585         * doc/posix-headers/math.texi: Likewise.
9586         * doc/posix-functions/logl.texi: Likewise.
9587
9588 2011-09-30  Bruno Haible  <bruno@clisp.org>
9589
9590         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
9591         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
9592         Set to 140000.
9593
9594 2011-09-30  Bruno Haible  <bruno@clisp.org>
9595
9596         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
9597         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
9598         invocation, say "right after AC_PROG_CC_STDC", not "right after
9599         AC_PROG_CC".
9600         Reported by Gary V. Vaughan <gary@gnu.org>.
9601
9602 2011-09-30  Bruno Haible  <bruno@clisp.org>
9603
9604         Centralize C99 requirement.
9605         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
9606         * modules/stdarg (configure.ac-early): Invoke it instead of
9607         AC_PROG_CC_STDC.
9608         Reported by Gary V. Vaughan and Paul Eggert.
9609
9610 2011-09-29  Bruno Haible  <bruno@clisp.org>
9611
9612         float: Fix LDBL_MAX value on Linux/PowerPC.
9613         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
9614         on Linux/PowerPC.
9615         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
9616         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
9617         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
9618         platform.
9619         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
9620
9621 2011-09-29  Bruno Haible  <bruno@clisp.org>
9622
9623         doc: Improve doc about gl_EARLY.
9624         * doc/gnulib-tool.texi (Initial import): Mention where to place an
9625         AC_PROG_CC_STDC invocation.
9626         Reported by Gary V. Vaughan <gary@gnu.org>.
9627
9628 2011-09-28  Bruno Haible  <bruno@clisp.org>
9629
9630         fgetc, fputc, fread, fwrite tests: Fix link error.
9631         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
9632         on non-MSVC platforms.
9633         * tests/test-fputc.c (main): Likewise.
9634         * tests/test-fread.c (main): Likewise.
9635         * tests/test-fwrite.c (main): Likewise.
9636         Reported by Jim Meyering.
9637
9638 2011-09-27  Bruno Haible  <bruno@clisp.org>
9639
9640         fputc, fwrite tests: Avoid test failure on MSVC.
9641         * tests/test-fgetc.c: Include msvc-inval.h.
9642         (main): Invoke gl_msvc_inval_ensure_handler.
9643         * tests/test-fputc.c: Include msvc-inval.h.
9644         (main): Invoke gl_msvc_inval_ensure_handler.
9645         * tests/test-fread.c: Include msvc-inval.h.
9646         (main): Invoke gl_msvc_inval_ensure_handler.
9647         * tests/test-fwrite.c: Include msvc-inval.h.
9648         (main): Invoke gl_msvc_inval_ensure_handler.
9649         * modules/fgetc-tests (Depends-on): Add msvc-inval.
9650         * modules/fputc-tests (Depends-on): Likewise.
9651         * modules/fread-tests (Depends-on): Likewise.
9652         * modules/fwrite-tests (Depends-on): Likewise.
9653
9654 2011-09-27  Bruno Haible  <bruno@clisp.org>
9655
9656         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
9657         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
9658         (raise): Remove older, duplicated declaration.
9659         (_gl_raise_SIGPIPE): New declaration.
9660         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
9661         (rpl_raise): Remove function.
9662         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
9663         a gnulib-defined SIGPIPE here.
9664         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
9665         'sigprocmask' has detected missing signal-blocking and the module
9666         'sigpipe' is enabled.
9667         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
9668
9669 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
9670
9671         base64-tests: avoid memory leak
9672         * tests/test-base64.c (main): Plug memory leak.
9673
9674         base32: new module
9675         * modules/base32: New module.
9676         * lib/base32.c: New file.
9677         * lib/base32.h: Likewise.
9678         * m4/base32.m4: Likewise.
9679         * modules/base32-tests: New test.
9680         * tests/test-base32.c: Likewise.
9681         * MODULES.html.sh (Misc): Mention it.
9682
9683 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
9684
9685         gnulib: use more-standard license notice wording
9686         * gnulib-tool (func_emit_copyright_notice): When emitting a
9687         license notice into a file, use the standard wording as suggested
9688         by the current information for GNU maintainers, except say "file"
9689         rather than "program".  The new wording gives a license version
9690         number, which addresses an issue raised by Glenn Morris in
9691         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
9692         * m4/onceonly.m4: Use that same wording here, too.
9693
9694         dup2: minor simplification
9695         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
9696         as lib/dup2.c no longer uses 'inline'.
9697
9698 2011-09-25  Bruno Haible  <bruno@clisp.org>
9699
9700         strings: Fix compilation error on MSVC.
9701         * lib/strings.in.h: Include <stddef.h> for size_t.
9702
9703 2011-09-25  Bruno Haible  <bruno@clisp.org>
9704
9705         fflush et al.: Document limitation on MSVC.
9706         * doc/posix-functions/fflush.texi: Document possible crash in handling
9707         mode other than DEFAULT_HANDLING.
9708         * doc/posix-functions/fgetc.texi: Likewise.
9709         * doc/posix-functions/fputc.texi: Likewise.
9710         * doc/posix-functions/fread.texi: Likewise.
9711         * doc/posix-functions/fwrite.texi: Likewise.
9712
9713 2011-09-25  Bruno Haible  <bruno@clisp.org>
9714
9715         msvc-inval: Allow three invalid parameter handling modes.
9716         * lib/msvc-inval.h: Don't include <stdlib.h> here.
9717         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
9718         macros.
9719         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
9720         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
9721         SANE_LIBRARY_HANDLING as a no-op.
9722         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
9723         <stdlib.h>.
9724         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
9725
9726 2011-09-25  Bruno Haible  <bruno@clisp.org>
9727
9728         msvc-inval: Make handler multithread-safe.
9729         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
9730         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
9731         declarations.
9732         (gl_msvc_inval_current): New declaration.
9733         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
9734         Operate on the structure returned by gl_msvc_inval_current().
9735         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
9736         Remove varaiables.
9737         (tls_index, tls_initialized): New variables.
9738         (not_per_thread): New variable.
9739         (gl_msvc_inval_current): New function.
9740         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
9741         returned by gl_msvc_inval_current().
9742
9743 2011-09-25  Bruno Haible  <bruno@clisp.org>
9744
9745         msvc-inval: Install handler globally.
9746         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
9747         !_MSC_VER.
9748         (gl_msvc_invalid_parameter_handler): Remove declaration.
9749         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
9750         declarations.
9751         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
9752         Install the handler globally, don't uninstall it.
9753         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
9754         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
9755         currently valid, call RaiseException instead.
9756         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
9757         for !_MSC_VER.
9758
9759 2011-09-25  Bruno Haible  <bruno@clisp.org>
9760
9761         strerror_r-posix: Fix for MSVC 9.
9762         * lib/strerror_r.c (local_snprintf): New function.
9763         (snprintf): Define to local_snprintf, not to _snprintf.
9764
9765 2011-09-25  Bruno Haible  <bruno@clisp.org>
9766
9767         ftruncate: Support for MSVC 9.
9768         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
9769         (chsize_nothrow): New function.
9770         (chsize): Redefine as a macro.
9771         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
9772         * modules/ftruncate (Depends-on): Add msvc-inval.
9773
9774 2011-09-25  Bruno Haible  <bruno@clisp.org>
9775
9776         New module 'fstat'.
9777         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
9778         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
9779         * lib/fchdir.c (rpl_fstat): Remove function.
9780         * m4/fstat.m4: New file.
9781         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
9782         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
9783         declared.
9784         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
9785         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
9786         * modules/fstat: New file.
9787         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
9788         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
9789         is set.
9790         * doc/posix-functions/fstat.texi: Mention the new module and the
9791         problem on MSVC.
9792         * NEWS: Mention the change.
9793         * modules/acl (Depends-on): Add fstat.
9794         * modules/chdir-safer (Depends-on): Likewise.
9795         * modules/chown (Depends-on): Likewise.
9796         * modules/copy-file (Depends-on): Likewise.
9797         * modules/fchdir (Depends-on): Likewise.
9798         * modules/fdopendir (Depends-on): Likewise.
9799         * modules/fopen (Depends-on): Likewise.
9800         * modules/fts (Depends-on): Likewise.
9801         * modules/getcwd (Depends-on): Likewise.
9802         * modules/isapipe (Depends-on): Likewise.
9803         * modules/linkat (Depends-on): Likewise.
9804         * modules/lseek (Depends-on): Likewise.
9805         * modules/mkdir-p (Depends-on): Likewise.
9806         * modules/open (Depends-on): Likewise.
9807         * modules/openat (Depends-on): Likewise.
9808         * modules/read-file (Depends-on): Likewise.
9809         * modules/renameat (Depends-on): Likewise.
9810         * modules/utimens (Depends-on): Likewise.
9811
9812 2011-09-25  Bruno Haible  <bruno@clisp.org>
9813
9814         linkat: Fix compilation on MSVC 9.
9815         * lib/linkat.c: Don't include <stdint.h>.
9816
9817 2011-09-25  Bruno Haible  <bruno@clisp.org>
9818
9819         fclose: Support for MSVC 9.
9820         * lib/fclose.c: Include msvc-inval.h.
9821         (fclose_nothrow): New function.
9822         (rpl_fclose): Use it.
9823         * modules/fclose (Depends-on): Add msvc-inval.
9824         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
9825
9826 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
9827
9828         dup2: minor simplifications
9829         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
9830         that it's a performance win.
9831         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
9832         ! defined __CYGWIN__)" to "ifdef F_GETFL".
9833
9834 2011-09-24  Jim Meyering  <meyering@redhat.com>
9835
9836         test-futimens: avoid a warning from gcc -Wshadow
9837         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
9838         to avoid a shadowing warning.
9839
9840 2011-09-24  Bruno Haible  <bruno@clisp.org>
9841
9842         fdopen: Support for MSVC 9.
9843         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
9844         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
9845         * lib/fdopen.c: Include msvc-inval.h.
9846         (fdopen_nothrow): New function.
9847         (rpl_fdopen): Use it.
9848         * modules/fdopen (Depends-on): Add msvc-inval.
9849         * modules/fclose-tests (Depends-on): Add fdopen.
9850         * modules/fflush-tests (Depends-on): Likewise.
9851         * modules/fgetc-tests (Depends-on): Likewise.
9852         * modules/fputc-tests (Depends-on): Likewise.
9853         * modules/fread-tests (Depends-on): Likewise.
9854         * modules/freopen-tests (Depends-on): Likewise.
9855         * modules/fseeko-tests (Depends-on): Likewise.
9856         * modules/ftello-tests (Depends-on): Likewise.
9857         * modules/fwrite-tests  (Depends-on): Likewise.
9858         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
9859
9860 2011-09-24  Bruno Haible  <bruno@clisp.org>
9861
9862         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
9863         * modules/fgetc-tests (Depends-on): Add unistd.
9864         * modules/fputc-tests (Depends-on): Likewise.
9865         * modules/fread-tests (Depends-on): Likewise.
9866         * modules/fwrite-tests (Depends-on): Likewise.
9867
9868 2011-09-24  Bruno Haible  <bruno@clisp.org>
9869
9870         dup: Simplify autoconf test.
9871         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
9872         on gl_MSVC_INVAL's result.
9873
9874 2011-09-24  Bruno Haible  <bruno@clisp.org>
9875
9876         Tests for function fwrite().
9877         * modules/fwrite-tests: New file.
9878         * tests/test-fwrite.c: New file.
9879         * modules/stdio-tests (Depends-on): Add fwrite-tests.
9880
9881         Tests for function fread().
9882         * modules/fread-tests: New file.
9883         * tests/test-fread.c: New file.
9884         * modules/stdio-tests (Depends-on): Add fread-tests.
9885
9886         Activate fputc tests.
9887         * modules/stdio-tests (Depends-on): Add fputc-tests.
9888
9889         Enhance fgetc, fputc tests.
9890         * tests/test-fgetc.c (main): Also test the stream's error indicator.
9891         * tests/test-fputc.c (main): Likewise.
9892
9893 2011-09-24  Bruno Haible  <bruno@clisp.org>
9894
9895         write: Support for MSVC 9.
9896         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
9897         is not 1.
9898         * lib/write.c (write_nothrow): New function.
9899         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
9900         not 1. Use write_nothrow.
9901         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
9902         invalid parameter handler.
9903         (gl_PREREQ_WRITE): New macro.
9904         * modules/write (Depends-on): Add msvc-inval.
9905         (configure.ac): Invoke gl_PREREQ_WRITE.
9906         * doc/posix-functions/write.texi: Mention the problem on MSVC.
9907
9908 2011-09-24  Bruno Haible  <bruno@clisp.org>
9909
9910         read: Fix last commit.
9911         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
9912
9913 2011-09-24  Bruno Haible  <bruno@clisp.org>
9914
9915         dup2: Fix last commit.
9916         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
9917         (rpl_dup2): Disable fcntl workaround on native Windows.
9918
9919         sigprocmask: Make code safer.
9920         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
9921         section that changes macro definitions for this compilation unit.
9922
9923 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
9924
9925         dup2: clarify by coalescing Windows-specific material
9926         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
9927         "msvc-nothrow.h"' to the Windows-specific section, so that the
9928         Emacs source need not contain these include files.
9929         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
9930         Windows-specific fixes into this function rather than just the
9931         nothrow fix, as this shortens and clarifies the code.  Always
9932         define as a function, as that's a bit cleaner than having it be
9933         sometimes a function and sometimes a macro.
9934         (rpl_dup2): Move the Windows-specific stuff out of here and into
9935         ms_windows_dup2.  Don't protect the Haiku-related fix with
9936         "#if !defined __linux__", as the same code also works around
9937         a Linux kernel bug, and it doesn't add any system calls on any
9938         platform.  Add comment about FreeBSD 6.1.
9939
9940         sigprocmask: move #include directive
9941         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
9942         Windows-specific section, so that the Emacs source need not
9943         contain msvc-inval.h.
9944
9945 2011-09-23  Bruno Haible  <bruno@clisp.org>
9946
9947         read: Support for MSVC 9.
9948         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
9949         is not 1.
9950         * lib/read.c (read_nothrow): New function.
9951         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
9952         read_nothrow.
9953         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
9954         invalid parameter handler.
9955         (gl_PREREQ_READ): New macro.
9956         * modules/read (Depends-on): Add msvc-inval.
9957         (configure.ac): Invoke gl_PREREQ_READ.
9958         * doc/posix-functions/read.texi: Mention the problem on MSVC.
9959
9960 2011-09-23  Bruno Haible  <bruno@clisp.org>
9961
9962         close: Support for MSVC 9.
9963         * lib/close.c: Include <errno.h>, msvc-inval.h.
9964         (close_nothrow): New function.
9965         (rpl_close): Use it.
9966         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
9967         invalid parameter handler.
9968         * modules/close (Depends-on): Add msvc-inval.
9969         * modules/dup2-tests (Depends-on): Add close.
9970         * modules/dup3-tests (Depends-on): Likewise.
9971         * modules/fcntl-tests (Depends-on): Likewise.
9972         * modules/spawn-pipe-tests (Depends-on): Likewise.
9973         * modules/unistd-safer-tests (Depends-on): Likewise.
9974         * doc/posix-functions/close.texi: Mention the problem on MSVC.
9975
9976 2011-09-23  Bruno Haible  <bruno@clisp.org>
9977
9978         New module 'dup'.
9979         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
9980         Allow replacement.
9981         * lib/dup.c: New file.
9982         * lib/fchdir.c (rpl_dup): Remove function.
9983         * m4/dup.m4: New file.
9984         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
9985         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
9986         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
9987         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
9988         * modules/dup: New file.
9989         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
9990         'dup' module is in use.
9991         * modules/fdopendir (Depends-on): Add dup.
9992         * modules/fdutimensat-tests (Depends-on): Likewise.
9993         * modules/fts (Depends-on): Likewise.
9994         * modules/futimens-tests (Depends-on): Likewise.
9995         * modules/posix_spawnp-tests (Depends-on): Likewise.
9996         * modules/unistd-safer-tests (Depends-on): Likewise.
9997         * modules/utimens-tests (Depends-on): Likewise.
9998         * doc/posix-functions/dup.texi: Mention the new module and the problem
9999         on MSVC.
10000
10001 2011-09-23  Bruno Haible  <bruno@clisp.org>
10002
10003         getdtablesize: Support for MSVC 9.
10004         * lib/getdtablesize.c: Include msvc-inval.h.
10005         (_setmaxstdio_nothrow): New function.
10006         (_setmaxstdio): Redefine it.
10007         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
10008         * modules/getdtablesize (Depends-on): Add msvc-inval.
10009         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
10010
10011 2011-09-23  Bruno Haible  <bruno@clisp.org>
10012
10013         signal-h: Rename from signal.
10014         * modules/signal-h: Renamed from modules/signal.
10015         * modules/pthread_sigmask (Depends-on): Update.
10016         * modules/raise (Depends-on): Likewise.
10017         * modules/sigaction (Depends-on): Likewise.
10018         * modules/sigpipe (Depends-on): Likewise.
10019         * modules/sigprocmask (Depends-on): Likewise.
10020         * modules/sys_select (Depends-on): Likewise.
10021         * modules/signal-h-tests: Renamed from modules/signal-tests.
10022         (Files, Depends-on, Makefile.am): Update.
10023         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
10024         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
10025         (Files, Makefile.am): Update.
10026         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
10027         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
10028         * modules/signal: New placeholder file.
10029         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
10030         * doc/posix-headers/signal.texi: Update.
10031         * NEWS: Mention the change.
10032
10033 2011-09-23  Bruno Haible  <bruno@clisp.org>
10034
10035         sigprocmask: Avoid crashes through signal() on MSVC 9.
10036         * lib/sigprocmask.c: Include msvc-inval.h.
10037         (signal_nothrow): New function.
10038         (signal): Redefine it.
10039         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
10040         * modules/sigprocmask (Depends-on): Add msvc-inval.
10041         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
10042
10043 2011-09-23  Bruno Haible  <bruno@clisp.org>
10044
10045         Tests for module 'raise'.
10046         * modules/raise-tests: New file.
10047         * tests/test-raise.c: New file.
10048
10049         raise: Support for MSVC.
10050         * lib/signal.in.h (raise): New declaration.
10051         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
10052         for native Windows platforms.
10053         * m4/raise.m4: New file.
10054         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
10055         HAVE_RAISE, REPLACE_RAISE.
10056         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
10057         REPLACE_RAISE.
10058         * modules/raise (Status, Notice): Remove fields.
10059         (Files): Add m4/raise.m4.
10060         (Depends-on): Add signal, msvc-inval.
10061         (configure.ac): Use the common idioms.
10062         (Maintainer): Add me.
10063         * tests/test-signal-c++.cc: Check the signature of raise.
10064         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
10065
10066 2011-09-23  Bruno Haible  <bruno@clisp.org>
10067
10068         pipe2: Fix compilation on pre-C99 compilers.
10069         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
10070
10071 2011-09-23  Bruno Haible  <bruno@clisp.org>
10072
10073         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
10074         * lib/msvc-nothrow.h: New file.
10075         * lib/msvc-nothrow.c: New file.
10076         * m4/msvc-nothrow.m4: New file.
10077         * modules/msvc-nothrow: New file.
10078         * lib/dup2.c: Include msvc-nothrow.h.
10079         (rpl_dup2): No need to protect _get_osfhandle call here.
10080         * lib/accept4.c: Include msvc-nothrow.h.
10081         * lib/error.c: Likewise.
10082         * lib/fcntl.c: Likewise.
10083         * lib/lseek.c: Likewise.
10084         * lib/nonblocking.c: Likewise.
10085         * lib/poll.c: Likewise.
10086         * lib/read.c: Likewise.
10087         * lib/select.c: Likewise.
10088         * lib/sockets.h: Likewise.
10089         * lib/sockets.c: Likewise.
10090         * lib/stdio-read.c: Likewise.
10091         * lib/stdio-write.c: Likewise.
10092         * lib/write.c: Likewise.
10093         * lib/w32sock.h: Likewise.
10094         * lib/w32spawn.h: Likewise.
10095         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
10096         * lib/fsync.c: Likewise.
10097         * lib/isapipe.c: Likewise.
10098         * modules/dup2 (Depends-on): Add msvc-nothrow.
10099         * modules/accept4 (Depends-on): Likewise.
10100         * modules/error (Depends-on): Likewise.
10101         * modules/fcntl (Depends-on): Likewise.
10102         * modules/lseek (Depends-on): Likewise.
10103         * modules/nonblocking (Depends-on): Likewise.
10104         * modules/poll (Depends-on): Likewise.
10105         * modules/read (Depends-on): Likewise.
10106         * modules/select (Depends-on): Likewise.
10107         * modules/sockets (Depends-on): Likewise.
10108         * modules/sigpipe (Depends-on): Likewise.
10109         * modules/write (Depends-on): Likewise.
10110         * modules/accept (Depends-on): Likewise.
10111         * modules/bind (Depends-on): Likewise.
10112         * modules/connect (Depends-on): Likewise.
10113         * modules/gethostname (Depends-on): Likewise.
10114         * modules/getpeername (Depends-on): Likewise.
10115         * modules/getsockname (Depends-on): Likewise.
10116         * modules/getsockopt (Depends-on): Likewise.
10117         * modules/ioctl (Depends-on): Likewise.
10118         * modules/listen (Depends-on): Likewise.
10119         * modules/recv (Depends-on): Likewise.
10120         * modules/recvfrom (Depends-on): Likewise.
10121         * modules/send (Depends-on): Likewise.
10122         * modules/sendto (Depends-on): Likewise.
10123         * modules/setsockopt (Depends-on): Likewise.
10124         * modules/shutdown (Depends-on): Likewise.
10125         * modules/socket (Depends-on): Likewise.
10126         * modules/execute (Depends-on): Likewise.
10127         * modules/spawn-pipe (Depends-on): Likewise.
10128         * modules/flock (Depends-on): Likewise.
10129         * modules/fsync (Depends-on): Likewise.
10130         * modules/isapipe (Depends-on): Likewise.
10131         * tests/test-cloexec.c: Include msvc-nothrow.h.
10132         * tests/test-dup-safer.c: Likewise.
10133         * tests/test-dup2.c: Likewise.
10134         * tests/test-dup3.c: Likewise.
10135         * tests/test-fcntl.c: Likewise.
10136         * tests/test-pipe.c: Likewise.
10137         * tests/test-pipe2.c: Likewise.
10138         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
10139         * modules/unistd-safer-tests (Depends-on): Likewise.
10140         * modules/dup2-tests (Depends-on): Likewise.
10141         * modules/dup3-tests (Depends-on): Likewise.
10142         * modules/fcntl-tests (Depends-on): Likewise.
10143         * modules/pipe-posix-tests (Depends-on): Likewise.
10144         * modules/pipe2-tests (Depends-on): Likewise.
10145
10146 2011-09-23  Bruno Haible  <bruno@clisp.org>
10147
10148         dup2: Make code more maintainable.
10149         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
10150         (rpl_dup2): Use it.
10151         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
10152         * modules/dup2 (configure.ac): Invoke it.
10153         Reported by Paul Eggert.
10154
10155 2011-09-23  Bruno Haible  <bruno@clisp.org>
10156
10157         msvc-inval: Fix compilation error.
10158         * lib/msvc-inval.h: Include <excpt.h>.
10159
10160 2011-09-23  Bruno Haible  <bruno@clisp.org>
10161
10162         mkdir: Tweak for MSVC 9.
10163         * lib/sys_stat.in.h: Update comments.
10164         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
10165
10166         Tests for module 'chdir'.
10167         * modules/chdir-tests: New file.
10168         * tests/test-chdir.c: New file.
10169
10170         New module 'chdir'.
10171         * modules/chdir: New file.
10172         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
10173         (chdir): New declaration.
10174         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
10175         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
10176         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
10177         * tests/test-unistd-c++.cc: Check signature of chdir.
10178         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
10179         * modules/chdir-long (Depends-on): Add chdir.
10180         * modules/fchdir (Depends-on): Likewise.
10181         * modules/rename (Depends-on): Likewise.
10182         * modules/savewd (Depends-on): Likewise.
10183
10184         rmdir: Support for mingw, MSVC 9.
10185         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
10186         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
10187
10188         getcwd: Tweak for MSVC 9.
10189         * lib/unistd.in.h: Update comments.
10190         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
10191
10192 2011-09-22  Bruno Haible  <bruno@clisp.org>
10193
10194         strerror_r-posix: Avoid a link error on MSVC.
10195         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
10196         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
10197
10198 2011-09-22  Bruno Haible  <bruno@clisp.org>
10199
10200         select: Avoid link errors on MSVC.
10201         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
10202         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
10203         * modules/pselect (Link): Likewise.
10204         * NEWS: Mention the change.
10205         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
10206         test-select-stdin against $(LIB_SELECT).
10207         * modules/pselect-tests (Makefile.am): Link test-pselect against
10208         $(LIB_SELECT).
10209
10210 2011-09-22  Bruno Haible  <bruno@clisp.org>
10211
10212         select: Avoid compilation error on MSVC.
10213         * lib/select.c: Don't include <stdbool.h>.
10214
10215 2011-09-21  Bruno Haible  <bruno@clisp.org>
10216
10217         Consolidate all uses of PATH_MAX in *.m4 files.
10218         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
10219         macros.
10220         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
10221         and gl_PATHMAX_SNIPPET.
10222         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
10223         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
10224         * modules/chdir-long (Files): Add m4/pathmax.m4.
10225         * modules/getcwd (Files): Likewise.
10226
10227 2011-09-21  Bruno Haible  <bruno@clisp.org>
10228
10229         ftruncate: Un-deprecate, concentrate on Win32 support.
10230         * modules/ftruncate (Status, Notice): Remove sections.
10231         (Depends-on): Add largefile.
10232         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
10233         non-mingw platforms.
10234         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
10235         include <io.h>.
10236         * modules/perror-tests (Depends-on): Add ftruncate.
10237         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
10238         'ftruncate' module.
10239
10240 2011-09-21  Bruno Haible  <bruno@clisp.org>
10241
10242         Add dependencies to new dirent related modules.
10243         * modules/opendir (Depends-on): Add closedir.
10244         * modules/getcwd (Depends-on): Add opendir, closedir.
10245         * modules/dirent-safer-tests (Depends-on): Likewise.
10246         * modules/fdopendir-tests (Depends-on): Likewise.
10247         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
10248         * modules/renameat-tests (Depends-on): Likewise.
10249
10250 2011-09-21  Bruno Haible  <bruno@clisp.org>
10251
10252         opendir: Avoid compilation error on mingw.
10253         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
10254         * modules/opendir (Depends-on): Add unistd.
10255
10256 2011-09-21  Bruno Haible  <bruno@clisp.org>
10257
10258         ftruncate tests: Avoid a test failure on mingw.
10259         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
10260
10261 2011-09-21  Bruno Haible  <bruno@clisp.org>
10262
10263         select tests: Avoid test failures on OSF/1 5.1 and mingw.
10264         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
10265         native Windows.
10266
10267 2011-09-21  Bruno Haible  <bruno@clisp.org>
10268
10269         New module 'fdopen'.
10270         * lib/stdio.in.h (fdopen): New declaration.
10271         * lib/fdopen.c: New file.
10272         * m4/fdopen.m4: New file.
10273         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
10274         REPLACE_FDOPEN.
10275         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
10276         REPLACE_FDOPEN.
10277         * modules/fdopen: New file.
10278         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
10279         * tests/test-stdio-c++.cc: Check signature of fdopen.
10280         * doc/posix-functions/fdopen.texi: Mention the new module.
10281
10282 2011-09-21  Bruno Haible  <bruno@clisp.org>
10283
10284         unlockpt tests: Avoid test failure on NetBSD 5.1.
10285         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
10286         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
10287
10288 2011-09-21  Bruno Haible  <bruno@clisp.org>
10289
10290         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
10291         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
10292         * tests/test-getlogin_r.c (main): Likewise.
10293
10294 2011-09-20  Bruno Haible  <bruno@clisp.org>
10295
10296         time tests: Don't require pid_t.
10297         * doc/posix-headers/time.texi: Revert last change.
10298         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
10299         * tests/test-time.c: Comment out the check for pid_t.
10300
10301 2011-09-20  Bruno Haible  <bruno@clisp.org>
10302
10303         fsync tests: Avoid a test failure on mingw.
10304         * tests/test-fsync.c (main): Allow a failure with EIO.
10305
10306 2011-09-20  Bruno Haible  <bruno@clisp.org>
10307
10308         euidaccess: Update comments.
10309         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
10310
10311 2011-09-20  Bruno Haible  <bruno@clisp.org>
10312
10313         Ensure EBADF returns for socket functions on mingw.
10314         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
10315         descriptor is invalid.
10316         * lib/bind.c (rpl_bind): Likewise.
10317         * lib/connect.c (rpl_connect): Likewise.
10318         * lib/getpeername.c (rpl_getpeername): Likewise.
10319         * lib/getsockname.c (rpl_getsockname): Likewise.
10320         * lib/getsockopt.c (rpl_getsockopt): Likewise.
10321         * lib/listen.c (rpl_listen): Likewise.
10322         * lib/recv.c (rpl_recv): Likewise.
10323         * lib/recvfrom.c (rpl_recvfrom): Likewise.
10324         * lib/send.c (rpl_send): Likewise.
10325         * lib/sendto.c (rpl_sendto): Likewise.
10326         * lib/setsockopt.c (rpl_setsockopt): Likewise.
10327         * lib/shutdown.c (rpl_shutdown): Likewise.
10328
10329 2011-09-20  Bruno Haible  <bruno@clisp.org>
10330
10331         select tests: EBADF tests.
10332         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
10333         test_bad_fd): New functions.
10334         (test_function): Invoke also test_bad_fd.
10335
10336 2011-09-20  Bruno Haible  <bruno@clisp.org>
10337
10338         Tests for module 'posix_spawn_file_actions_addopen.
10339         * modules/posix_spawn_file_actions_addopen-tests: New file.
10340         * tests/test-posix_spawn_file_actions_addopen.c: New file.
10341
10342         Tests for module 'posix_spawn_file_actions_adddup2'.
10343         * modules/posix_spawn_file_actions_adddup2-tests: New file.
10344         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
10345
10346         Tests for module 'posix_spawn_file_actions_addclose'.
10347         * modules/posix_spawn_file_actions_addclose-tests: New file.
10348         * tests/test-posix_spawn_file_actions_addclose.c: New file.
10349
10350 2011-09-20  Bruno Haible  <bruno@clisp.org>
10351
10352         Tests for module 'unlockpt'.
10353         * modules/unlockpt-tests: New file.
10354         * tests/test-unlockpt.c: New file.
10355         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
10356
10357         Tests for module 'grantpt'.
10358         * modules/grantpt-tests: New file.
10359         * tests/test-grantpt.c: New file.
10360         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
10361
10362 2011-09-20  Bruno Haible  <bruno@clisp.org>
10363
10364         freopen tests: EBADF tests.
10365         * tests/test-freopen.c: Include errno.h, unistd.h.
10366         (main): Add tests for EBADF, commented out for the moment.
10367
10368         fclose tests: EBADF tests.
10369         * tests/test-fclose.c (main): Add tests for EBADF.
10370
10371         fflush tests: EBADF tests.
10372         * tests/test-fflush.c: Include errno.h, macros.h.
10373         (main): Add tests for EBADF.
10374
10375         ftello tests: EBADF tests.
10376         * tests/test-ftello4.sh: New file.
10377         * tests/test-ftello4.c: New file.
10378         * modules/ftello-tests (Files): Add them.
10379         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
10380
10381         fseeko tests: EBADF tests.
10382         * tests/test-fseeko4.sh: New file.
10383         * tests/test-fseeko4.c: New file.
10384         * modules/fseeko-tests (Files): Add them.
10385         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
10386
10387         Tests for function fputc().
10388         * modules/fputc-tests: New file.
10389         * tests/test-fputc.c: New file.
10390         * modules/stdio-tests (Depends-on): Add fputc-tests.
10391
10392         Tests for function fgetc().
10393         * modules/fgetc-tests: New file.
10394         * tests/test-fgetc.c: New file.
10395         * modules/stdio-tests (Depends-on): Add fgetc-tests.
10396
10397         Tests for function fdopen().
10398         * modules/fdopen-tests: New file.
10399         * tests/test-fdopen.c: New file.
10400         * modules/stdio-tests (Depends-on): Add fdopen-tests.
10401
10402         Tests for module 'vdprintf'.
10403         * modules/vdprintf-tests: New file.
10404         * tests/test-vdprintf.c: New file.
10405
10406         Tests for module 'dprintf'.
10407         * modules/dprintf-tests: New file.
10408         * tests/test-dprintf.c: New file.
10409
10410 2011-09-20  Bruno Haible  <bruno@clisp.org>
10411
10412         Tests for module 'ioctl'.
10413         * modules/ioctl-tests: New file.
10414         * tests/test-ioctl.c: New file.
10415
10416 2011-09-20  Bruno Haible  <bruno@clisp.org>
10417
10418         fcntl tests: EBADF tests.
10419         * tests/test-fcntl.c (main): Add more tests for EBADF.
10420
10421 2011-09-20  Bruno Haible  <bruno@clisp.org>
10422
10423         utimensat tests: EBADF tests.
10424         * tests/test-utimensat.c (main): Add tests for EBADF.
10425
10426         renameat tests: EBADF tests.
10427         * tests/test-renameat.c (main): Add tests for EBADF.
10428
10429         mkfifoat tests: EBADF tests.
10430         * tests/test-mkfifoat.c (main): Add tests for EBADF.
10431
10432         readlinkat tests: EBADF tests.
10433         * tests/test-readlinkat.c (main): Add tests for EBADF.
10434
10435         symlinkat tests: EBADF tests.
10436         * tests/test-symlinkat.c (main): Add tests for EBADF.
10437
10438         linkat tests: EBADF tests.
10439         * tests/test-linkat.c (main): Add tests for EBADF.
10440
10441         Tests for module 'faccessat'.
10442         * modules/faccessat-tests: New file.
10443         * tests/test-faccessat.c: New file.
10444
10445         fdopendir tests: EBADF tests.
10446         * tests/test-fdopendir.c (main): Add more tests for EBADF.
10447
10448         openat tests: EBADF tests.
10449         * tests/test-fchownat.c (main): Add tests for EBADF.
10450         * tests/test-fstatat.c (main): Likewise.
10451         * tests/test-mkdirat.c (main): Likewise.
10452         * tests/test-openat.c (main): Likewise.
10453         * tests/test-unlinkat.c (main): Likewise.
10454         * tests/test-fchmodat.c: New file.
10455         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
10456         (Makefile.am): Also run 'test-fchmodat'.
10457
10458 2011-09-20  Bruno Haible  <bruno@clisp.org>
10459
10460         utimens, futimens, fdutimensat tests: EBADF tests.
10461         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
10462
10463         Tests for function fstat().
10464         * modules/fstat-tests: New file.
10465         * tests/test-fstat.c: New file.
10466         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
10467
10468 2011-09-20  Bruno Haible  <bruno@clisp.org>
10469
10470         test-ttyname_r tests: EBADF tests.
10471         * tests/test-ttyname_r.c (main): Add tests for EBADF.
10472
10473         Tests for module 'isatty'.
10474         * modules/isatty-tests: New file.
10475         * tests/test-isatty.c: New file.
10476
10477         Tests for module 'write'.
10478         * modules/write-tests: New file.
10479         * tests/test-write.c: New file.
10480
10481         Tests for module 'read'.
10482         * modules/read-tests: New file.
10483         * tests/test-read.c: New file.
10484
10485         pwrite tests: EBADF tests.
10486         * tests/test-pwrite.c (main): Add tests for EBADF.
10487
10488         pread tests: EBADF tests.
10489         * tests/test-pread.c (main): Add tests for EBADF.
10490
10491         lseek tests: EBADF tests.
10492         * tests/test-lseek.c (main): Add more tests for EBADF.
10493
10494         Tests for module 'ftruncate'.
10495         * modules/ftruncate-tests: New file.
10496         * tests/test-ftruncate.sh: New file.
10497         * tests/test-ftruncate.c: New file.
10498
10499         fsync tests: EBADF tests.
10500         * tests/test-fsync.c (main): Add more tests for EBADF.
10501
10502         fdatasync tests: EBADF tests.
10503         * tests/test-fdatasync.c (main): Add more tests for EBADF.
10504
10505         Tests for module 'fchown'.
10506         * modules/fchown-tests: New file.
10507         * tests/test-fchown.c: New file.
10508
10509         Tests for module 'fchmod'.
10510         * modules/fchmod-tests: New file.
10511         * tests/test-fchmod.c: New file.
10512
10513         fchdir tests: EBADF tests.
10514         * tests/test-fchdir.c (main): Add more tests for EBADF.
10515
10516         dup2 tests: EBADF tests.
10517         * tests/test-dup2.c (main): Add more tests for EBADF.
10518
10519         Tests for module 'dup'.
10520         * modules/dup-tests: New file.
10521         * tests/test-dup.c: New file.
10522
10523         Tests for module 'close'.
10524         * modules/close-tests: New file.
10525         * tests/test-close.c: New file.
10526
10527 2011-09-20  Bruno Haible  <bruno@clisp.org>
10528
10529         Tests for module 'shutdown'.
10530         * modules/shutdown-tests: New file.
10531         * tests/test-shutdown.c: New file.
10532
10533         Tests for module 'setsockopt'.
10534         * modules/setsockopt-tests: New file.
10535         * tests/test-setsockopt.c: New file.
10536
10537         Tests for module 'sendto'.
10538         * modules/sendto-tests: New file.
10539         * tests/test-sendto.c: New file.
10540
10541         Tests for module 'send'.
10542         * modules/send-tests: New file.
10543         * tests/test-send.c: New file.
10544
10545         Tests for module 'recvfrom'.
10546         * modules/recvfrom-tests: New file.
10547         * tests/test-recvfrom.c: New file.
10548
10549         Tests for module 'recv'.
10550         * modules/recv-tests: New file.
10551         * tests/test-recv.c: New file.
10552
10553         Tests for module 'listen'.
10554         * modules/listen-tests: New file.
10555         * tests/test-listen.c: New file.
10556
10557         Tests for module 'getsockopt'.
10558         * modules/getsockopt-tests: New file.
10559         * tests/test-getsockopt.c: New file.
10560
10561         Tests for module 'getsockname'.
10562         * modules/getsockname-tests: New file.
10563         * tests/test-getsockname.c: New file.
10564
10565         Tests for module 'getpeername'.
10566         * modules/getpeername-tests: New file.
10567         * tests/test-getpeername.c: New file.
10568
10569         Tests for module 'connect'.
10570         * modules/connect-tests: New file.
10571         * tests/test-connect.c: New file.
10572
10573         Tests for module 'bind'.
10574         * modules/bind-tests: New file.
10575         * tests/test-bind.c: New file.
10576
10577         accept4 tests: Fix for native Windows.
10578         * tests/test-accept4.c: Include sockets.h.
10579         (main): Invoke gl_sockets_startup.
10580         * modules/accept4-tests (Depends-on): Add sockets.
10581
10582         accept tests: Fix for native Windows.
10583         * tests/test-accept.c: Include sockets.h.
10584         (main): Invoke gl_sockets_startup.
10585         * modules/accept-tests (Depends-on): Add sockets.
10586
10587 2011-09-19  Bruno Haible  <bruno@clisp.org>
10588
10589         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
10590         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
10591         do...while(0).
10592         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
10593         Suggested by Paul Eggert.
10594
10595 2011-09-19  Bruno Haible  <bruno@clisp.org>
10596
10597         sched: Ensure pid_t is defined.
10598         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
10599         not define pid_t.
10600         * lib/sched.in.h: Include <sys/types.h>.
10601         * doc/posix-headers/sched.texi: Mention the pid_t problem.
10602         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10603
10604 2011-09-19  Bruno Haible  <bruno@clisp.org>
10605
10606         msvc-inval: Ensure the entire expansion is a single statement.
10607         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
10608         of braces.
10609
10610 2011-09-19  Jim Meyering  <meyering@redhat.com>
10611
10612         tests: use printf, not echo in init.sh's warn_ function
10613         * tests/init.sh (warn_): Use printf, not echo.  The latter would
10614         misbehave when given strings containing a backslash or starting
10615         with e.g., -n.  James Youngman suggested setting IFS.
10616
10617 2011-09-19  Eric Blake  <eblake@redhat.com>
10618
10619         futimens: enhance test
10620         * tests/test-futimens.h (test_futimens): Also check for EBADF on
10621         closed non-negative fd.
10622
10623         date: accept 'hence' as opposite of 'ago'
10624         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
10625         * tests/test-parse-datetime.c (main): Enhance test.
10626         Suggested by Jesse Wilson.
10627
10628 2011-09-19  Jim Meyering  <meyering@redhat.com>
10629
10630         getcwd: don't fail in a deep directory on a system without openat
10631         Before this change, getcwd would fail when called from a directory
10632         of depth PATH_MAX / 3 or greater.  That was due to the fact that
10633         the non-openat implementation used "..", "../..", "../../..", etc.
10634         to access ancestor directories.  With too many, that string would
10635         be longer than PATH_MAX.
10636         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
10637         using gnulib's openat replacement.
10638         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
10639         we're using the replacement function.
10640
10641 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
10642
10643         maint.mk: avoid warnings from perl about missing files
10644         * top/maint.mk (def_sym_regex): Ignore files listed in
10645         $(gl_other_headers_) that do not exist, say because a project
10646         does not use a corresponding module.
10647
10648 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
10649
10650         stat: use pathmax.h only if needed
10651         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
10652         This is better for Emacs, which does not have a mingw port and
10653         therefore can avoid the pathmax module.
10654
10655         utimens: remove dependency on dup2
10656         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
10657         to work around the Linux kernel bug.
10658         * modules/utimens (Depends-on): Remove dup2.
10659
10660 2011-09-18  Bruno Haible  <bruno@clisp.org>
10661
10662         inet_ntop, inet_pton: Look for it also in libresolv.
10663         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
10664         libnsl, search for it in libresolv.
10665         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
10666         Needed on Solaris 7.
10667
10668 2011-09-18  Bruno Haible  <bruno@clisp.org>
10669
10670         accept, accept4 tests: Avoid link error on Solaris.
10671         * modules/accept-tests (Makefile.am): Link test-accept against
10672         $(LIBSOCKET).
10673         * modules/accept4-tests (Makefile.am): Link test-accept4 against
10674         $(LIBSOCKET).
10675
10676         accept4: Avoid link error on Solaris.
10677         * modules/accept4 (Link): New section.
10678
10679         socket functions: Avoid link errors on Solaris.
10680         * modules/accept (Depends-on): Add socketlib.
10681         (Link): New section.
10682         * modules/bind (Depends-on): Add socketlib.
10683         (Link): New section.
10684         * modules/connect (Depends-on): Add socketlib.
10685         (Link): New section.
10686         * modules/getpeername (Depends-on): Add socketlib.
10687         (Link): New section.
10688         * modules/getsockname (Depends-on): Add socketlib.
10689         (Link): New section.
10690         * modules/getsockopt (Depends-on): Add socketlib.
10691         (Link): New section.
10692         * modules/listen (Depends-on): Add socketlib.
10693         (Link): New section.
10694         * modules/recv (Depends-on): Add socketlib.
10695         (Link): New section.
10696         * modules/recvfrom (Depends-on): Add socketlib.
10697         (Link): New section.
10698         * modules/send (Depends-on): Add socketlib.
10699         (Link): New section.
10700         * modules/sendto (Depends-on): Add socketlib.
10701         (Link): New section.
10702         * modules/setsockopt (Depends-on): Add socketlib.
10703         (Link): New section.
10704         * modules/shutdown (Depends-on): Add socketlib.
10705         (Link): New section.
10706         * modules/socket (Depends-on): Add socketlib.
10707         (Link): New section.
10708
10709 2011-09-18  Bruno Haible  <bruno@clisp.org>
10710
10711         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
10712         * tests/test-ptsname.c (main): Terminate the test if it takes longer
10713         than 5 seconds.
10714         * modules/ptsname-tests (configure.ac): Test for alarm.
10715
10716 2011-09-18  Bruno Haible  <bruno@clisp.org>
10717
10718         posix_spawn_file_actions_add*: Fix module dependencies.
10719         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
10720         posix_spawn_file_actions_init.
10721         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
10722         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
10723
10724 2011-09-18  Bruno Haible  <bruno@clisp.org>
10725
10726         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
10727         * tests/test-rename.h (test_rename): Allow error code EEXIST.
10728         * tests/test-renameat.c (main): Likewise.
10729
10730 2011-09-18  Bruno Haible  <bruno@clisp.org>
10731
10732         Tests for module 'accept4'.
10733         * modules/accept4-tests: New file.
10734         * tests/test-accept4.c: New file.
10735
10736 2011-09-18  Bruno Haible  <bruno@clisp.org>
10737
10738         Tests for module 'accept'.
10739         * modules/accept-tests: New file.
10740         * tests/test-accept.c: New file.
10741
10742 2011-09-18  Bruno Haible  <bruno@clisp.org>
10743
10744         dup2: Support for MSVC.
10745         * lib/dup2.c: Include msvc-inval.h.
10746         (rpl_dup2): Handle invalid parameter notifications during dup2 and
10747         _get_osfhandle calls.
10748         * modules/dup2 (Depends-on): Add msvc-inval.
10749         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
10750
10751         New module 'msvc-inval'.
10752         * lib/msvc-inval.h: New file.
10753         * lib/msvc-inval.c: New file.
10754         * m4/msvc-inval.m4: New file.
10755         * modules/msvc-inval: New file.
10756
10757 2011-09-17  Bruno Haible  <bruno@clisp.org>
10758
10759         Tests for module 'pclose'.
10760         * modules/pclose-tests: New file.
10761
10762         New module 'pclose'.
10763         * lib/stdio.in.h (pclose): New declaration.
10764         * lib/pclose.c: New file.
10765         * m4/pclose.m4: New file.
10766         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
10767         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
10768         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
10769         * modules/pclose: New file.
10770         * modules/popen-tests (Depends-on): Add pclose.
10771         * modules/popen-safer-tests (Depends-on): Likewise.
10772         * doc/posix-functions/pclose.texi: Mention the new module.
10773
10774 2011-09-17  Bruno Haible  <bruno@clisp.org>
10775
10776         popen: Support for MSVC.
10777         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
10778         * lib/popen.c (popen): Provide alternate definition for native Windows.
10779         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
10780         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
10781         * modules/popen (Depends-on, configure.ac): Update condition.
10782         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
10783         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
10784         fixed.
10785
10786 2011-09-17  Bruno Haible  <bruno@clisp.org>
10787
10788         isnanl, isnand, isnanf: Work around MSVC bug.
10789         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
10790
10791 2011-09-17  Bruno Haible  <bruno@clisp.org>
10792
10793         sys_socket tests: Fix recent mistake.
10794         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
10795
10796 2011-09-17  Bruno Haible  <bruno@clisp.org>
10797
10798         putenv: Support for MSVC.
10799         * modules/putenv (Depends-on): Add environ.
10800         * lib/putenv.c (environ): Disable declaration.
10801         * lib/unistd.in.h: Update comment.
10802
10803 2011-09-17  Bruno Haible  <bruno@clisp.org>
10804
10805         math: Avoid macro redefinition warnings on MSVC.
10806         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
10807         Undefine before redefining.
10808
10809 2011-09-17  Bruno Haible  <bruno@clisp.org>
10810
10811         doc: Mention functions which are declared as macros.
10812         * doc/posix-functions/*[fl].texi: Mention that some functions are
10813         defined as macros with arguments only.
10814
10815 2011-09-17  Bruno Haible  <bruno@clisp.org>
10816
10817         Add dependencies to new dirent related modules.
10818         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
10819         * modules/fts (Depends-on): Likewise.
10820         * modules/glob (Depends-on): Likewise.
10821         * modules/savedir (Depends-on): Likewise.
10822         * modules/scandir (Depends-on): Likewise.
10823         * modules/dirent-safer (Depends-on): Add opendir, closedir.
10824         * modules/fdopendir (Depends-on): Add opendir.
10825
10826 2011-09-17  Bruno Haible  <bruno@clisp.org>
10827
10828         inet_pton: Support for MSVC on Windows Vista or newer.
10829         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
10830         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
10831         HAVE_DECL_INET_PTON is defined.
10832         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
10833         On platforms with <winsock2.h>, test whether inet_pton is declared in
10834         <ws2tcpip.h>. If so, arrange to replace it.
10835         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
10836         REPLACE_INET_PTON.
10837         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
10838         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
10839         (Depends-on, configure.ac): Update condition.
10840         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
10841
10842 2011-09-17  Bruno Haible  <bruno@clisp.org>
10843
10844         inet_ntop: Support for MSVC on Windows Vista or newer.
10845         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
10846         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
10847         HAVE_DECL_INET_NTOP is defined.
10848         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
10849         On platforms with <winsock2.h>, test whether inet_ntop is declared in
10850         <ws2tcpip.h>. If so, arrange to replace it.
10851         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
10852         REPLACE_INET_NTOP.
10853         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
10854         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
10855         (Depends-on, configure.ac): Update condition.
10856         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
10857
10858 2011-09-16  Eric Blake  <eblake@redhat.com>
10859
10860         test-fsync: yet another enhancement
10861         * tests/test-fsync.c (main): Also test behavior on read-only text
10862         file.
10863
10864 2011-09-16  Bruno Haible  <bruno@clisp.org>
10865
10866         Enhance fsync, fdatasync tests.
10867         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
10868         * tests/test-fdatasync.c (main): Likewise.
10869
10870 2011-09-16  Bruno Haible  <bruno@clisp.org>
10871
10872         Support for MSVC compiler: Ensure mode_t gets defined.
10873         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
10874         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
10875         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
10876         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
10877         * tests/test-fcntl-h.c: Check that mode_t is defined.
10878         * tests/test-sys_stat.c: Likewise.
10879         * tests/test-sys_types.c: Likewise.
10880         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
10881         * doc/posix-headers/sys_stat.texi: Likewise.
10882         * doc/posix-headers/sys_types.texi: Likewise.
10883
10884 2011-09-16  Bruno Haible  <bruno@clisp.org>
10885
10886         sys_stat: Support for MSVC.
10887         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
10888         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
10889         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
10890         MSVC.
10891
10892 2011-09-16  Bruno Haible  <bruno@clisp.org>
10893
10894         Support for MSVC compiler: Ensure off_t gets defined.
10895         * lib/unistd.in.h: Include <sys/types.h>.
10896         * tests/test-fcntl-h.c: Check that off_t is defined.
10897         * tests/test-sys_stat.c: Likewise.
10898         * tests/test-sys_types.c: Likewise.
10899
10900 2011-09-16  Eric Blake  <eblake@redhat.com>
10901
10902         fdatasync: port to Solaris
10903         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
10904         * modules/fdatasync (Link): Document it.
10905         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
10906
10907         fdatasync: port to MacOS X 10.7
10908         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
10909         declared.
10910         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
10911         * modules/unistd (Makefile.am): Substitute it.
10912         * lib/unistd.in.h (fdatasync): Declare on MacOS.
10913         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
10914
10915         fdatasync: minor improvements
10916         * modules/fdatasync (Depends-on): Add condition for fsync.
10917         * lib/fdatasync.c (fdatasync): Add comment.
10918         * tests/test-unistd-c++.cc: Test fdatasync.
10919
10920         unistd: update refs to newer POSIX
10921         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
10922         Suggested by Bruno Haible.
10923
10924         fdatasync: new module
10925         * modules/fsync (Description): Document difference to fdatasync.
10926         * modules/fdatasync: New module.
10927         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
10928         * lib/fdatasync.c (fdatasync): Likewise.
10929         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
10930         defaults.
10931         * modules/unistd (Makefile.am): Set witnesses.
10932         * lib/unistd.in.h (fdatasync): Declare.
10933         * MODULES.html.sh: Document it.
10934         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
10935         * modules/fdatasync-tests: New test.
10936         * tests/test-fdatasync.c: Likewise.
10937
10938 2011-09-16  Eric Blake  <eblake@redhat.com>
10939
10940         test-fsync: enhance tests
10941         * modules/fsync-tests (Depends-on): Add errno, for mingw.
10942         * tests/test-fsync.c (main): Enhance test.
10943
10944 2011-09-15  Bruno Haible  <bruno@clisp.org>
10945
10946         Support for MSVC compiler: Ensure ssize_t gets defined.
10947         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
10948         * doc/posix-headers/stdio.texi: Likewise.
10949         * modules/stdio (Depends-on): Add ssize_t.
10950         * modules/sys_socket (Depends-on): Likewise.
10951         * modules/sys_types (Depends-on): Likewise.
10952         * modules/sys_uio (Depends-on): Likewise.
10953         * modules/unistd (Depends-on): Likewise.
10954         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
10955         * tests/test-sys_types.c: Check that ssize_t is defined.
10956
10957 2011-09-14  Bruno Haible  <bruno@clisp.org>
10958
10959         Avoid using #, the m4 comment starter character, near brackets.
10960         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
10961         delimiter character in sed expressions.
10962         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
10963         Suggested by Eric Blake.
10964
10965         Properly quote AC_CHECK_DECLS' 4th argument.
10966         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
10967         argument.
10968         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
10969         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
10970         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
10971         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
10972         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
10973         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
10974         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
10975         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
10976         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
10977         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
10978         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
10979         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
10980         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
10981         * m4/isinf.m4 (gl_ISINF): Likewise.
10982         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
10983         * m4/readutmp.m4 (gl_READUTMP): Likewise.
10984         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
10985         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
10986         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
10987         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
10988         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
10989         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
10990         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
10991         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
10992         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
10993         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
10994         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
10995         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
10996         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
10997         Reported by Eric Blake.
10998
10999         Properly quote AC_CHECK_DECL's 4th argument.
11000         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
11001         argument.
11002         * m4/argp.m4 (gl_ARGP): Likewise.
11003         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
11004         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
11005         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
11006         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
11007         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
11008         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
11009         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
11010         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
11011         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
11012         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
11013         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
11014         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
11015         Reported by Eric Blake.
11016
11017 2011-09-14  Eric Blake  <eblake@redhat.com>
11018
11019         opendir: avoid compile warning
11020         * lib/opendir.c (includes): Always include errno.h.
11021         Reported by Tatsuro MATSUOKA.
11022
11023 2011-09-14  Jim Meyering  <meyering@redhat.com>
11024
11025         maint.mk: sc_tight_scope: propagate failure from sub-make
11026         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
11027         Reported by Martin von Gagern.
11028
11029 2011-09-13  Bruno Haible  <bruno@clisp.org>
11030
11031         tempname: Support for MSVC.
11032         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
11033         MSVC.
11034         * modules/tempname (Depends-on): Add fcntl-h.
11035
11036 2011-09-13  Bruno Haible  <bruno@clisp.org>
11037
11038         sys_time: Support for MSVC.
11039         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
11040         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
11041         include <winsock2.h>.
11042         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
11043         function declarations that collide with POSIX.
11044         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
11045         (Makefile.am): Substitute HAVE_WINSOCK2_H.
11046
11047 2011-09-13  Bruno Haible  <bruno@clisp.org>
11048
11049         stat: Support for MSVC.
11050         * lib/stat.c: Include pathmax.h.
11051         * modules/stat (Depends-on): Add pathmax.
11052
11053         pathmax: Support for native Windows.
11054         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
11055
11056 2011-09-12  Bruno Haible  <bruno@clisp.org>
11057
11058         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
11059         * lib/dirent.in.h (struct dirent): New type.
11060         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
11061         DT_WHT): New macros.
11062         (DIR): New type.
11063         (opendir, closedir): Declare only if the module 'opendir' is enabled.
11064         (readdir, rewinddir): New declarations.
11065         * lib/dirent-private.h: New file.
11066         * lib/opendir.c: New file.
11067         * lib/readdir.c: New file.
11068         * lib/rewinddir.c: New file.
11069         * lib/closedir.c: New file.
11070         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
11071         * m4/opendir.m4: New file.
11072         * m4/readdir.m4: New file.
11073         * m4/rewinddir.m4: New file.
11074         * m4/closedir.m4: New file.
11075         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
11076         REPLACE_CLOSEDIR here.
11077         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
11078         readdir, rewinddir are declared.
11079         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
11080         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
11081         HAVE_REWINDDIR, HAVE_CLOSEDIR.
11082         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
11083         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
11084         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
11085         * modules/opendir: New file.
11086         * modules/readdir: New file.
11087         * modules/rewinddir: New file.
11088         * modules/closedir: New file.
11089         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
11090         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
11091         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
11092         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
11093         * NEWS: Mention the 'fchdir' change.
11094
11095 2011-09-11  Bruno Haible  <bruno@clisp.org>
11096
11097         asm-underscore.m4: Support for MSVC.
11098         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
11099         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
11100
11101 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
11102
11103         Doc about crypt functions.
11104         * doc/posix-functions/crypt.texi: Expand range of glibc versions
11105         needing for _GNU_SOURCE to get crypt.
11106         * doc/posix-functions/encrypt.texi: Likewise.
11107         * doc/posix-functions/setkey.texi: Likewise.
11108
11109 2011-09-11  Bruno Haible  <bruno@clisp.org>
11110
11111         doc: Update regarding MSVC 9.
11112         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
11113         tested".
11114         * doc/posix-functions/*.texi: Update with info about MSVC 9.
11115         * doc/posix-headers/*.texi: Likewise.
11116         * doc/pastposix-functions/*.texi: Likewise.
11117         * doc/glibc-functions/*.texi: Likewise.
11118         * doc/glibc-headers/*.texi: Likewise.
11119
11120 2011-09-11  Bruno Haible  <bruno@clisp.org>
11121
11122         unistd et al.: Don't assume <unistd.h> exists.
11123         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
11124         does not exist.
11125         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
11126         exist. But include <stdlib.h>.
11127         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
11128         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
11129         symlink() does not exist.
11130         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
11131         include <io.h> instead.
11132         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
11133         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
11134         include <direct.h> instead.
11135         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
11136         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
11137         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
11138         <io.h> instead.
11139         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
11140         correctly if the system does not have hard links.
11141         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
11142         <direct.h> instead.
11143         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
11144         it when looking for function declarations.
11145         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
11146         <direct.h> and <io.h> instead.
11147         * doc/posix-headers/unistd.texi: More details about MSVC problem.
11148
11149 2011-09-11  Bruno Haible  <bruno@clisp.org>
11150
11151         strcase: Support for MSVC.
11152         * modules/strcase (Status, Notice): Remove obsoletion mark.
11153         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
11154         * doc/posix-functions/strncasecmp.texi: Likewise.
11155
11156         strings: Don't assume <strings.h> exists.
11157         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
11158         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
11159         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
11160         * doc/posix-headers/strings.texi: Mention the MSVC problem.
11161
11162 2011-09-11  Bruno Haible  <bruno@clisp.org>
11163
11164         dirent: Don't assume <dirent.h> exists.
11165         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
11166         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
11167         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
11168         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
11169
11170 2011-09-11  Bruno Haible  <bruno@clisp.org>
11171
11172         Fix wint_t on MSVC.
11173         * lib/wchar.in.h (wint_t): On MSVC, override it.
11174         * lib/wctype.in.h (wint_t): Likewise.
11175         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
11176         MSVC.
11177         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
11178         * doc/posix-headers/wctype.texi: Likewise.
11179
11180 2011-09-11  Bruno Haible  <bruno@clisp.org>
11181
11182         sys_types: Fix typo.
11183         * lib/sys_types.in.h: Fix typo in comment.
11184         Reported by Paul Eggert.
11185
11186         Support for MSVC compiler: Ensure size_t gets defined.
11187         * modules/strings (Depends-on): Add 'sys_types'.
11188         * modules/sys_uio (Depends-on): Likewise.
11189         * lib/sys_uio.in.h: Update comment.
11190
11191         C++ tests for module 'sys_types'.
11192         * modules/sys_types-c++-tests: New file.
11193         * tests/test-sys_types-c++.cc: New file.
11194
11195         Tests for module 'sys_types'.
11196         * modules/sys_types-tests: New file.
11197         * tests/test-sys_types.c: New file.
11198
11199         New module 'sys_types'.
11200         * lib/sys_types.in.h: New file.
11201         * m4/sys_types_h.m4: New file.
11202         * modules/sys_types: New file.
11203         * doc/posix-headers/sys_types.texi: Mention the new module and the
11204         size_t problem on MSVC 9.
11205
11206 2011-09-11  Bruno Haible  <bruno@clisp.org>
11207
11208         Support for MSVC compiler: Avoid division by a literal 0.
11209         * lib/math.in.h (NAN): Define through a function call also on MSVC.
11210         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
11211         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
11212         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
11213         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
11214         * tests/infinity.h: New file.
11215         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
11216         on MSVC.
11217         * tests/test-ceilf1.c: Include infinity.h.
11218         (main): Use Infinityf.
11219         * tests/test-ceil1.c: Include infinity.h.
11220         (main): Use Infinityd.
11221         * tests/test-ceill.c: Include infinity.h.
11222         (main): Use Infinityl.
11223         * tests/test-dprintf-posix.c: Include infinity.h.
11224         (test_function): Use Infinityd.
11225         * tests/test-floorf1.c: Include infinity.h.
11226         (main): Use Infinityf.
11227         * tests/test-floor1.c: Include infinity.h.
11228         (main): Use Infinityd.
11229         * tests/test-floorl.c: Include infinity.h.
11230         (main): Use Infinityl.
11231         * tests/test-fprintf-posix.c: Include infinity.h.
11232         (test_function): Use Infinityd.
11233         * tests/test-frexp.c: Include infinity.h.
11234         (main): Use Infinityd.
11235         * tests/test-frexpl.c: Include infinity.h.
11236         (main): Use Infinityl.
11237         * tests/test-isfinite.c: Include infinity.h.
11238         (test_isfinitef): Use Infinityf.
11239         (test_isfinited): Use Infinityd.
11240         (test_isfinitel): Use Infinityl.
11241         * tests/test-isinf.c: Include infinity.h.
11242         (test_isinff): Use Infinityf.
11243         (test_isinfd): Use Infinityd.
11244         (test_isinfl): Use Infinityl.
11245         * tests/test-isnan.c: Include infinity.h.
11246         (test_float): Use Infinityf.
11247         (test_double): Use Infinityd.
11248         (test_long_double): Use Infinityl.
11249         * tests/test-isnanf.h: Include infinity.h.
11250         (main): Use Infinityf.
11251         * tests/test-isnand.h: Include infinity.h.
11252         (main): Use Infinityd.
11253         * tests/test-isnanl.h: Include infinity.h.
11254         (main): Use Infinityl.
11255         * tests/test-ldexpl.c: Include infinity.h.
11256         (main): Use Infinityl.
11257         * tests/test-printf-posix.h: Include infinity.h.
11258         (test_function): Use Infinityd.
11259         * tests/test-roundf1.c: Include infinity.h.
11260         (main): Use Infinityf.
11261         * tests/test-round1.c: Include infinity.h.
11262         (main): Use Infinityd.
11263         * tests/test-roundl.c: Include infinity.h.
11264         (main): Use Infinityl.
11265         * tests/test-signbit.c: Include infinity.h.
11266         (test_signbitf): Use Infinityf.
11267         (test_signbitd): Use Infinityd.
11268         (test_signbitl): Use Infinityl.
11269         * tests/test-snprintf-posix.h: Include infinity.h.
11270         (test_function): Use Infinityd, Infinityl.
11271         * tests/test-sprintf-posix.h: Include infinity.h.
11272         (test_function): Use Infinityd, Infinityl.
11273         * tests/test-truncf1.c: Include infinity.h.
11274         (main): Use Infinityf.
11275         * tests/test-trunc1.c: Include infinity.h.
11276         (main): Use Infinityd.
11277         * tests/test-truncl.c: Include infinity.h.
11278         (main): Use Infinityl.
11279         * tests/test-vasnprintf-posix.c: Include infinity.h.
11280         (test_function): Use Infinityd, Infinityl.
11281         * tests/test-vasprintf-posix.c: Include infinity.h.
11282         (test_function): Use Infinityd, Infinityl.
11283         * modules/ceilf-tests (Files): Add tests/infinity.h.
11284         * modules/ceil-tests (Files): Likewise.
11285         * modules/ceill-tests (Files): Likewise.
11286         * modules/dprintf-posix-tests (Files): Likewise.
11287         * modules/floorf-tests (Files): Likewise.
11288         * modules/floor-tests (Files): Likewise.
11289         * modules/floorl-tests (Files): Likewise.
11290         * modules/fprintf-posix-tests (Files): Likewise.
11291         * modules/frexp-tests (Files): Likewise.
11292         * modules/frexp-nolibm-tests (Files): Likewise.
11293         * modules/frexpl-tests (Files): Likewise.
11294         * modules/frexpl-nolibm-tests (Files): Likewise.
11295         * modules/isfinite-tests (Files): Likewise.
11296         * modules/isinf-tests (Files): Likewise.
11297         * modules/isnan-tests (Files): Likewise.
11298         * modules/isnanf-tests (Files): Likewise.
11299         * modules/isnanf-nolibm-tests (Files): Likewise.
11300         * modules/isnand-tests (Files): Likewise.
11301         * modules/isnand-nolibm-tests (Files): Likewise.
11302         * modules/isnanl-tests (Files): Likewise.
11303         * modules/isnanl-nolibm-tests (Files): Likewise.
11304         * modules/ldexpl-tests (Files): Likewise.
11305         * modules/printf-posix-tests (Files): Likewise.
11306         * modules/roundf-tests (Files): Likewise.
11307         * modules/round-tests (Files): Likewise.
11308         * modules/roundl-tests (Files): Likewise.
11309         * modules/signbit-tests (Files): Likewise.
11310         * modules/snprintf-posix-tests (Files): Likewise.
11311         * modules/sprintf-posix-tests (Files): Likewise.
11312         * modules/truncf-tests (Files): Likewise.
11313         * modules/trunc-tests (Files): Likewise.
11314         * modules/truncl-tests (Files): Likewise.
11315         * modules/vasnprintf-posix-tests (Files): Likewise.
11316         * modules/vasprintf-posix-tests (Files): Likewise.
11317         * modules/vdprintf-posix-tests (Files): Likewise.
11318         * modules/vfprintf-posix-tests (Files): Likewise.
11319         * modules/vprintf-posix-tests (Files): Likewise.
11320         * modules/vsnprintf-posix-tests (Files): Likewise.
11321         * modules/vsprintf-posix-tests (Files): Likewise.
11322         * modules/xprintf-posix-tests (Files): Likewise.
11323
11324 2011-09-11  Bruno Haible  <bruno@clisp.org>
11325
11326         Ensure pid_t gets defined.
11327         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
11328         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
11329         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
11330         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
11331         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
11332         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
11333         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
11334         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
11335         * tests/test-fcntl-h.c: Check that pid_t is defined.
11336         * tests/test-sched.c: Likewise.
11337         * tests/test-termios.c: Likewise.
11338         * tests/test-time.c: Likewise.
11339         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
11340         * doc/posix-headers/signal.texi: Likewise.
11341         * doc/posix-headers/sys_types.texi: Likewise.
11342         * doc/posix-headers/time.texi: Likewise.
11343
11344 2011-09-11  Bruno Haible  <bruno@clisp.org>
11345
11346         acl: Fix compilation on Solaris 10 (older version).
11347         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
11348         of ACE_EVERYONE.
11349         * lib/set-mode-acl.c (qset_acl): Likewise.
11350         Reported by Christian Jullien <eligis@orange.fr>.
11351
11352 2011-09-10  Bruno Haible  <bruno@clisp.org>
11353
11354         iconv, unsetenv: Add support for MSVC compiler.
11355         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
11356         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
11357
11358 2011-09-10  Bruno Haible  <bruno@clisp.org>
11359
11360         *printf: Add support for MSVC compiler.
11361         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
11362         handles the exception caused by the %n directive. When cross-compiling,
11363         guess no on native Windows.
11364         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
11365         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
11366         emulate it through vsnprintf.
11367         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
11368         * doc/posix-functions/dprintf.texi: Update documentation regarding
11369         MSVC 9.
11370         * doc/posix-functions/fprintf.texi: Likewise.
11371         * doc/posix-functions/printf.texi: Likewise.
11372         * doc/posix-functions/snprintf.texi: Likewise.
11373         * doc/posix-functions/sprintf.texi: Likewise.
11374         * doc/posix-functions/swprintf.texi: Likewise.
11375         * doc/posix-functions/vdprintf.texi: Likewise.
11376         * doc/posix-functions/vfprintf.texi: Likewise.
11377         * doc/posix-functions/vprintf.texi: Likewise.
11378         * doc/posix-functions/vsnprintf.texi: Likewise.
11379         * doc/posix-functions/vsprintf.texi: Likewise.
11380         * doc/glibc-functions/asprintf.texi: Likewise.
11381         * doc/glibc-functions/obstack_printf.texi: Likewise.
11382         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
11383         * doc/glibc-functions/vasprintf.texi: Likewise.
11384
11385 2011-09-10  Bruno Haible  <bruno@clisp.org>
11386
11387         nocrash: Add support for native Windows.
11388         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
11389
11390 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
11391             Bruno Haible  <bruno@clisp.org>
11392
11393         absolute-header, include-next: Add support for MSVC compiler.
11394         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
11395         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
11396         directory separator in #line directives.
11397         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
11398         recognize also backslash as directory separator in #line directives.
11399
11400 2011-09-08  Jim Meyering  <meyering@redhat.com>
11401
11402         maint.mk: mark the post-release commit log with "maint: " prefix
11403         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
11404         one-line commit-log summary.
11405
11406 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
11407             Bruno Haible  <bruno@clisp.org>
11408
11409         Doc about crypt functions.
11410         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
11411         systems.
11412         * doc/posix-functions/encrypt.texi: Likewise.
11413         * doc/posix-functions/setkey.texi: Likewise.
11414
11415 2011-09-08  Simon Josefsson  <simon@josefsson.org>
11416
11417         * lib/gc.h: Fix copyright header.
11418
11419 2011-09-07  Bruno Haible  <bruno@clisp.org>
11420
11421         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
11422         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
11423         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
11424
11425 2011-09-07  Bruno Haible  <bruno@clisp.org>
11426
11427         openat: Work around compilation error with OSF/1 5.1 DTK cc.
11428         * lib/fopen.c: Use different syntax for include of <stdio.h>.
11429         * lib/freopen.c: Likewise.
11430         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
11431         * lib/lstat.c: Likewise.
11432         * lib/stat.c: Likewise.
11433         * lib/open.c: Use different syntax for include of <fcntl.h>.
11434         * lib/openat.c: Include fcntl.h again, explicitly.
11435
11436 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
11437
11438         parse-datetime: document the newly accepted format
11439         * doc/parse-datetime.texi (Combined date and time of day items):
11440         New section.
11441
11442 2011-09-06  Bruno Haible  <bruno@clisp.org>
11443
11444         acl: Fix a test failure on newer Solaris 10 with ZFS.
11445         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
11446         ENOSYS as no ACL.
11447         Reported by Jim Meyering.
11448
11449 2011-09-06  Bruno Haible  <bruno@clisp.org>
11450
11451         acl: Update for AIX >= 5.3 with NFS.
11452         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
11453         ENOSYS as no ACL.
11454
11455         acl: Fix a test failure on AIX >= 5.3 with NFS.
11456         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
11457         as no ACL.
11458
11459 2011-09-06  Bruno Haible  <bruno@clisp.org>
11460
11461         acl: Fix a test failure on IRIX 6.5 with NFS.
11462         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
11463         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
11464         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
11465         * lib/copy-acl.c (qcopy_acl): Likewise.
11466
11467 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
11468
11469         openat: port to AIX 7.1 with large files
11470         AIX 7.1 does a "#define openat open64at" if large files are in use,
11471         so we can't simply #undef openat.  Use the orig_openat trick (similar
11472         to orig_open in lib/open.c) to work around the problem.  Problem
11473         reported by Kevin Brott for GNU tar, in the thread containing
11474         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
11475         * lib/openat.c (__need_system_fcntl_h): Define first.
11476         Include <fcntl.h> and <sys/types.h> before undefining.
11477         (orig_openat) [HAVE_OPENAT]: New inline function.
11478         (openat) [HAVE_OPENAT]: Do not undef.
11479         (rpl_openat): Use orig_openat, not openat.
11480
11481 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
11482             Bruno Haible  <bruno@clisp.org>
11483
11484         acl: Avoid errors on NonStop Kernel.
11485         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
11486         ENOTSUP errors.
11487
11488 2011-09-05  Bruno Haible  <bruno@clisp.org>
11489
11490         acl: Clean up Solaris code.
11491         * lib/acl-internal.h: Remove no-op #if.
11492         * lib/file-has-acl.c: Likewise.
11493         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
11494         * lib/copy-acl.c (qcopy_acl): Likewise.
11495
11496 2011-09-05  Bruno Haible  <bruno@clisp.org>
11497
11498         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
11499         binaries built on the original Solaris 10.
11500         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
11501         trivial.
11502
11503 2011-09-05  Bruno Haible  <bruno@clisp.org>
11504
11505         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
11506         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
11507         10.
11508         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
11509         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
11510         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
11511         instead of acl_get, facl_get, acl_set, facl_set.
11512
11513 2011-09-05  Bruno Haible  <bruno@clisp.org>
11514
11515         copy-file: Try unit tests on more file systems.
11516         * tests/test-copy-file-1.sh: New file.
11517         * tests/test-copy-file-2.sh: New file.
11518         * modules/copy-file-tests (Files): Add them.
11519         (Makefile.am): Add them to TESTS.
11520
11521         acl: Try unit tests on more file systems.
11522         * tests/test-file-has-acl-1.sh: New file.
11523         * tests/test-file-has-acl-2.sh: New file.
11524         * tests/test-set-mode-acl-1.sh: New file.
11525         * tests/test-set-mode-acl-2.sh: New file.
11526         * tests/test-copy-acl-1.sh: New file.
11527         * tests/test-copy-acl-2.sh: New file.
11528         * modules/acl-tests (Files): Add them.
11529         (Makefile.am): Add them to TESTS.
11530
11531 2011-09-04  Bruno Haible  <bruno@clisp.org>
11532
11533         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
11534         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
11535         10.
11536         (OLD_ALLOW, OLD_DENY): New macros.
11537         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
11538         ACE_ACCESS_ALLOWED_ACE_TYPE.
11539         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
11540         ACE_ACCESS_DENIED_ACE_TYPE.
11541         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
11542         (NEW_ACE_EXECUTE): Fix value.
11543         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
11544         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
11545         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
11546         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
11547         NEW_ACE_SYNCHRONIZE): New macros.
11548         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
11549         instead of acl_fromtext, acl_set, facl_set.
11550         Fixes a coreutils/tests/cp/perm failure.
11551
11552 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
11553
11554         openat: test for fstatat (..., 0) bug
11555         Further testing with tar suggests that fstatat (..., 0)
11556         does not work in general, on AIX 7.1; see
11557         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
11558         So, give up entirely on AIX 7.1's fstatat, and fall back on our
11559         replacement fstatat (which is what older AIX releases were using
11560         anyway).
11561         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
11562         use is now changed to orig_fstatat.  This was probably the right
11563         thing to do anyway.
11564         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
11565         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
11566         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
11567         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
11568         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
11569         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
11570         if the bug is found.
11571
11572         openat: test for fstatat (AT_FDCWD, ..., 0) bug
11573         This tests for another fstatat bug on AIX 7.1:
11574         fstatat (AT_FDCWD, ..., 0) does not work.  See
11575         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
11576         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
11577         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
11578         (rpl_fstatat): Adjust so that it works around either (or both)
11579         bugs if present.
11580         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
11581
11582 2011-09-03  Karl Berry  <karl@gnu.org>
11583
11584         * doc/regex.texi (Character Class Operators): Avoid literal ":"
11585         in index entries.
11586
11587 2011-09-02  Bruno Haible  <bruno@clisp.org>
11588
11589         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
11590         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
11591         values of AR, ARFLAGS, RANLIB.
11592         Reported by John W. Eaton <jwe@gnu.org> for Octave.
11593
11594 2011-09-02  Bruno Haible  <bruno@clisp.org>
11595
11596         Find 'ar' program that fits with --host argument.
11597         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
11598
11599 2011-09-02  Bruno Haible  <bruno@clisp.org>
11600
11601         tests: init.sh: Support any non-GNU diff.
11602         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
11603         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
11604         Solaris 8.
11605
11606 2011-09-02  Bruno Haible  <bruno@clisp.org>
11607
11608         tests: init.sh: work also with any non-GNU diff that supports -u
11609         * tests/init.sh: Relax check for diff -u support.
11610         Rather than checking for GNU diff via --version, simply check
11611         for support for -u itself.  Useful at least on OpenBSD 4.9,
11612         AIX 7.1, IRIX 6.5, and Solaris 10.
11613
11614 2011-09-01  Bruno Haible  <bruno@clisp.org>
11615
11616         strtoimax, strtoumax: Document problem on HP-UX 11.
11617         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
11618         * doc/posix-functions/strtoumax.texi: Likewise.
11619
11620 2011-09-01  Bruno Haible  <bruno@clisp.org>
11621
11622         strtoumax: Avoid link error on OSF/1 with DTK cc.
11623         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
11624         defined as a function.
11625         * modules/strtoumax (Depends-on, configure.ac): Test only whether
11626         strtoumax is defined, not whether it is declared.
11627
11628 2011-09-01  Bruno Haible  <bruno@clisp.org>
11629
11630         strtoimax: Avoid link error on OSF/1 with DTK cc.
11631         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
11632         defined as a function.
11633         * modules/strtoimax (Depends-on, configure.ac): Test only whether
11634         strtoimax is defined, not whether it is declared.
11635
11636 2011-09-01  Bruno Haible  <bruno@clisp.org>
11637
11638         imaxdiv: Avoid link error on OSF/1 with DTK cc.
11639         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
11640         as a function.
11641         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
11642         whether it is declared.
11643
11644 2011-09-01  Bruno Haible  <bruno@clisp.org>
11645
11646         imaxabs: Avoid link error on OSF/1 with DTK cc.
11647         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
11648         as a function.
11649         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
11650         whether it is declared.
11651
11652 2011-09-01  Bruno Haible  <bruno@clisp.org>
11653
11654         Tests for module 'strtoumax'.
11655         * modules/strtoumax-tests: New file.
11656         * tests/test-strtoumax.c: New file.
11657
11658         Tests for module 'strtoimax'.
11659         * modules/strtoimax-tests: New file.
11660         * tests/test-strtoimax.c: New file.
11661
11662         Tests for module 'imaxdiv'.
11663         * modules/imaxdiv-tests: New file.
11664         * tests/test-imaxdiv.c: New file.
11665
11666         Tests for module 'imaxabs'.
11667         * modules/imaxabs-tests: New file.
11668         * tests/test-imaxabs.c: New file.
11669
11670 2011-09-01  Bruno Haible  <bruno@clisp.org>
11671
11672         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
11673         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
11674         pthread_create.
11675
11676 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
11677
11678         openat: work around AIX 7.1 fstatat issue
11679         This should fix the problem that was not properly fixed
11680         in the previous change, dated 2011-08-30.
11681         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
11682         __need_system_stat_h defined.
11683         (orig_fstatat) [HAVE_FSTATAT]: New function.
11684         (rpl_fstatat): Go back to the old way of doing things,
11685         except call orig_fstatat instead of fstatat.
11686         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
11687         Remove unnecessary check whether fstatat fills in st_size etc.
11688
11689 2011-09-01  Bruno Haible  <bruno@clisp.org>
11690
11691         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
11692         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
11693         just include the system's header.
11694
11695 2011-08-31  Jim Meyering  <meyering@redhat.com>
11696
11697         tests: avoid spurious assertion failure in test-float.c on ppc64
11698         * tests/test-float.c (test_long_double): Comment out an assertion,
11699         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
11700         with gcc-4.4.4.
11701
11702         maint: indent with spaces, not TABs
11703         I need to get in the habit of running gnulib's "make check".
11704         Both of these would have been caught.
11705         * m4/largefile.m4: Indent with spaces, not TABs.
11706         * lib/parse-datetime.y (iso_8601_time): Likewise.
11707         Spotted by Pádraig Brady.
11708
11709         test-parse-datetime.c: accommodate a relatively strict gcc warning
11710         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
11711         to avoid a warning from gcc's -Werror=missing-declarations.
11712         Insert a few spaces-before-funcall-parenthesis.
11713
11714 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
11715
11716         parse-datetime: accept ISO 8601 date and time rep with "T" separator
11717         The parser now accepts ISO 8601 date-time strings with "T" as the
11718         separator.  It has long parsed dates like "2004-02-29 16:21:42"
11719         with a space between the date and time strings.  Now it also parses
11720         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
11721         variants like "2004-02-29T16:21:42.333-07:00"
11722         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
11723         of day representation using the 'T' separator character.
11724         * doc/parse-datetime.texi (General date syntax): replace use of
11725         deprecated --iso-8601 option with --rfc-3339 in example of date
11726         command output formats that can be parsed.
11727         * tests/test-parse-datetime.c (tm_diff): New function, taken from
11728         lib/parse-datetime.y.
11729         (gmt_offset): New function.
11730         (main): Add additional test cases to validate ISO8601 extended
11731         date and time of day parsing.
11732
11733 2011-08-31  Bruno Haible  <bruno@clisp.org>
11734
11735         freopen: Documentation.
11736         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
11737         name.
11738         Reported by Claudio Bley <claudio.bley@gmail.com>.
11739
11740 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
11741
11742         freopen: Don't crash if the filename argument is NULL.
11743         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
11744         NULL.
11745
11746 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
11747
11748         openat: work around AIX 7.1 fstatat bug
11749         Problem reported by Kevin Brott for GNU tar, in the thread containing
11750         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
11751         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
11752         FSTATAT_ST_SIZE_ETC_BROKEN.
11753         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
11754         rpl_fstatat.
11755         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
11756         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
11757         AC_CHECK_FUNCS_ONCE for fstatat.
11758         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
11759         fchmodat, mkdirat, openat and unlinkat.
11760
11761 2011-08-30  Bruno Haible  <bruno@clisp.org>
11762
11763         Avoid endless recursions if config.h includes some header files.
11764         * lib/fopen.c (__need_FILE): Define already before including config.h.
11765         * lib/freopen.c (__need_FILE): Likewise.
11766         * lib/open.c (__need_system_fcntl_h): Likewise.
11767         * lib/stat.c (__need_system_sys_stat_h): Likewise.
11768         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
11769         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
11770
11771 2011-08-25  Karl Berry  <karl@gnu.org>
11772
11773         * config/srclist.txt (ylwrap): new try.
11774         * build-aux/ylwrap: new file.
11775
11776 2011-08-23  Bruno Haible  <bruno@clisp.org>
11777
11778         tmpdir: Use a good default directory on native Windows.
11779         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
11780         (P_tmpdir): Default to _P_tmpdir on native Windows.
11781         (path_search): On native Windows, try the value returned by GetTempPath
11782         before trying P_tmpdir.
11783         * modules/tmpdir (Depends-on): Add pathmax.
11784         Suggested by John Darrington <john@darrington.wattle.id.au>.
11785
11786 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
11787
11788         doc: fix typo in README-release
11789         * top/README-release: Capitalize first word of a sentence.
11790
11791 2011-08-19  Jim Meyering  <meyering@redhat.com>
11792
11793         fts: do not exhaust memory when processing million-entry directories
11794         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
11795         directory would require about 256*N bytes of memory.  Thus, it was
11796         easy to construct a directory too large to be processed by any of
11797         those tools.  With this change, fts' maximum memory utilization is
11798         now limited to around 30MB.
11799         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
11800         (fts_read): When we've processed the final entry (i.e., when
11801         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
11802         using the parent entry to read any remaining entries.  Dispatch
11803         depending on what fts_build returns:
11804         - NULL+stop, aka failure: stop
11805         - NULL otherwise: move up in the dir hierarchy
11806         - non-NULL: handle this new entry
11807         (fts_build): Declare and use new local, continue_readdir.
11808         Prepare to be called from fts_read, when the entries
11809         from a partially-read directory have just been exhausted.
11810         In that case, we'll skip the opendir and instead use the parent's
11811         fts_dirp and derive dir_fd from that.
11812         Finally, in the readdir loop, if we read max_entries entries,
11813         exit the loop ensuring *not* to call closedir.  This is required
11814         so that fts_dirp can be reused on a subsequent call.
11815         Prompted by Ben England's report of memory exhaustion in find
11816         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
11817
11818         maint: fts: move decl of `dp' down into while loop; split a long line
11819         * lib/fts.c (fts_build): No semantic change.
11820
11821         fts: add/use new struct member, fts_dirp
11822         We are about to use this to manage any directory with
11823         too many entries to read all of them into memory at once.
11824         To do that, we'll need to save the DIR* pointer in each
11825         affected FTSENT struct.
11826         * lib/fts_.h: Include <dirent.h>.
11827         (struct FTSENT) [fts_dirp]: New member.
11828         * lib/fts.c (closedir_and_clear): Define.
11829         Use it in place of closedir so that we are sure to
11830         clear the new fts_dirp member when done with it.
11831         (fts_alloc): Initialize the new member.
11832         (fts_lfree): Free, if needed.
11833
11834         maint: fts: give __opendir2 a new parameter and rename
11835         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
11836         than surreptitiously using sole caller's "dir_fd".
11837         (fts_opendir): Rename from __opendir2.
11838
11839         maint: fts.c: remove __opendir2's now-unused parameter, oflag
11840         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
11841
11842         maint: fts.c: correct off-by-one indentation
11843         * lib/fts.c (fts_build): Correct indentation, change style
11844         of a couple of block comments, and bracing style.
11845
11846         maint: fts.c: move __opendir2 #define "up" out of function body
11847         * lib/fts.c (__opendir2): Move "up".  No semantic change.
11848
11849         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
11850         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
11851         out for a long time and besides was useful only on BSD systems.
11852
11853 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
11854
11855         regex: port to Stratus OpenVOS
11856         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
11857         define to empty, rather than attempting nonportable optimizations.
11858         Problem reported by Paul Green in:
11859         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
11860         and fix suggested by Eric Blake in:
11861         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
11862
11863 2011-08-17  Eric Blake  <eblake@redhat.com>
11864
11865         getcwd: fix test failures on mingw
11866         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
11867         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
11868         test if long directory cannot be created, and allow mingw errno.
11869
11870         getcwd-lgpl: fix m4 to match relaxed test for BSD
11871         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
11872         (gl_FUNC_GETCWD_SIGNATURE): New macro.
11873         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
11874         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
11875         signature problem.
11876
11877         getcwd: fix compilation on mingw64
11878         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
11879         getcwd.
11880         Reported by Marc-André Lureau.
11881
11882         pipe2: silence compiler warning
11883         * lib/pipe2.c (pipe2): Hide label if it is not used.
11884
11885 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
11886
11887         relocatable-prog: fix link error
11888         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
11889         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
11890         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
11891         into modules/relocatable-lib without noticing that
11892         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
11893         also needs to build relocatable.c.
11894
11895 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
11896
11897         getaddrinfo: fix sh typo in gai_strerrorA decl checking
11898         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
11899         shell code: it contained a 'break' that was not in a loop.
11900         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
11901         via a shell-language loop; this may have been true in old Autoconf
11902         versions, but it's not true in Autoconf 2.68.  I found this bug
11903         when testing coreutils git on Solaris 8, whose shell complains
11904         about the syntax error.
11905
11906 2011-08-12  Simon Josefsson  <simon@josefsson.org>
11907
11908         * lib/base64.c: Fix comment to reference RFC 4648.
11909         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
11910         <gvtulder@gmail.com>.
11911
11912 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
11913
11914         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
11915
11916         po/Makefile.in.in: fix make -q problem
11917         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
11918         rule, since there's no file named 'check-macro-version' and its
11919         use as a file breaks make -q.
11920         (all): Don't depend on check-macro-version.
11921         (CHECK_MACRO_VERSION): New macro.
11922         (stamp-po): Use it.
11923
11924         configmake: fix make -q problem
11925         * modules/configmake (configmake.h): Update configmake.h's time stamp
11926         even if the file does not change.  Otherwise, 'make -q' fails.
11927         Problem reported by Simon Josefsson in
11928         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
11929
11930 2011-08-11  Jim Meyering  <meyering@redhat.com>
11931
11932         git-version-gen: correct the advice in a comment
11933         * build-aux/git-version-gen: Correct comment.
11934         Don't recommend to list .tarball-version in .gitignore.
11935
11936 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
11937
11938         base64: fix off-by-one buffer size bug
11939         Problem and (trivial) fix reported by Gijs van Tulder in
11940         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
11941         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
11942         * tests/test-base64.c (main): Catch the bug.
11943
11944 2011-08-10  Eric Blake  <eblake@redhat.com>
11945
11946         closein: correct comments
11947         * lib/closein.c (close_stdin): Improve comments.
11948
11949 2011-08-09  Bruno Haible  <bruno@clisp.org>
11950
11951         More tests for 'fseeko'.
11952         * tests/test-fseeko3.c: New file, from Eric Blake.
11953         * tests/test-fseeko3.sh: New file.
11954         * modules/fseeko-tests (Files): Add them.
11955         (TESTS): Add test-fseeko3.sh.
11956         (check_PROGRAMS): Add test-fseeko3.
11957
11958 2011-08-09  Eric Blake  <eblake@redhat.com>
11959
11960         fseeko: remove unneeded hack
11961         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
11962
11963         fseeko: fix bug on glibc
11964         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
11965         Reported by John W. Eaton.
11966
11967 2011-08-08  Bruno Haible  <bruno@clisp.org>
11968
11969         unictype/base: Fix interoperability with preinstalled libunistring.
11970         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
11971         Reported by Simon Josefsson.
11972
11973 2011-08-08  Bruno Haible  <bruno@clisp.org>
11974
11975         iswblank: Detect declaration correctly.
11976         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
11977         AC_CHECK_DECLS invocation.
11978
11979 2011-08-08  Bruno Haible  <bruno@clisp.org>
11980
11981         tcgetsid: Detect declaration correctly.
11982         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
11983         AC_CHECK_DECLS invocation.
11984         Reported by Simon Josefsson.
11985
11986 2011-08-08  Eric Blake  <eblake@redhat.com>
11987
11988         largefile: fix typo that regressed large file support
11989         * modules/largefile (configure.ac-early): Fix section name.
11990
11991 2011-08-06  Karl Berry  <karl@gnu.org>
11992
11993         * MODULES.html.sh (func_all_files): _Noreturn is no longer
11994         a separate module.
11995
11996 2011-08-05  Simon Josefsson  <simon@josefsson.org>
11997
11998         openat: Fix warnings and commens when building unlinkat.c on Hurd.
11999         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
12000         get prototype for free.
12001
12002 2011-08-04  Bruno Haible  <bruno@clisp.org>
12003
12004         Tests for module 'pathmax'.
12005         * modules/pathmax-tests: New file.
12006         * tests/test-pathmax.c: New file.
12007
12008         canonicalize-lgpl: Support larger filenames on the Hurd.
12009         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
12010         Reported by Paul Eggert.
12011
12012         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
12013         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
12014         * lib/chdir-long.h: Include pathmax.h.
12015         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
12016         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
12017         (PATH_MAX): Remove code that is done by pathmax.h.
12018         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
12019         * lib/tmpfile.c: Add a comment.
12020         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
12021         * modules/chdir-long (Depends-on): Add pathmax.
12022         * modules/getcwd (Depends-on): Add pathmax.
12023         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
12024         is not defined.
12025         * doc/posix-headers/limits.texi: Mention the pathmax module.
12026         * NEWS: Mention the change.
12027
12028 2011-08-02  Bruno Haible  <bruno@clisp.org>
12029
12030         pthread_sigmask: Actually use results of gl_THREADLIB.
12031         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
12032         gl_THREADLIB, not gl_[]THREADLIB.
12033         Reported by Eric Blake.
12034
12035 2011-08-02  Jim Meyering  <meyering@redhat.com>
12036
12037         maint.mk: relax the default _gl_TS_function_match regexp
12038         * top/maint.mk (_gl_TS_function_match): Don't require at least one
12039         space between function name and "(" in an "extern" declaration.
12040         That would fail to match a decl with no space there: extern void foo();
12041
12042 2011-07-31  Iain Nicol  <iain@thenicols.net>
12043
12044         git-version-gen: document that EXTRA_DIST must include .version
12045         * build-aux/git-version-gen: In the how-to-use comment, document
12046         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
12047         will fail when run from an unpacked distribution tarball.
12048
12049 2011-08-01  Bruno Haible  <bruno@clisp.org>
12050
12051         wctype-h: Fix last change.
12052         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
12053         REPLACE_TOWLOWER to 0.
12054         Reported by Sam Steingold <sds@gnu.org>.
12055
12056 2011-07-31  Bruno Haible  <bruno@clisp.org>
12057
12058         frexpl: Update autoconf test.
12059         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
12060         according to changes of 2011-06-20.
12061
12062 2011-07-31  Bruno Haible  <bruno@clisp.org>
12063
12064         sys_utsname: Add support for Minix.
12065         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
12066         <sys/utsname.h>.
12067         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
12068         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
12069
12070 2011-07-31  Bruno Haible  <bruno@clisp.org>
12071
12072         strings: Add support for Minix.
12073         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
12074         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
12075         * doc/posix-headers/strings.texi: Document the Minix problem.
12076
12077 2011-07-31  Bruno Haible  <bruno@clisp.org>
12078
12079         wctype-h: Add support for Minix.
12080         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
12081         REPLACE_TOWLOWER.
12082         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
12083         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
12084         REPLACE_ISWCNTRL.
12085
12086 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
12087
12088         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
12089         This is a performance improvement for 64-bit hosts: it causes the
12090         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
12091
12092 2011-07-31  Bruno Haible  <bruno@clisp.org>
12093
12094         stdioext: Add support for Minix.
12095         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
12096         * lib/fpurge.c (fpurge): Likewise.
12097         * lib/freadahead.c (freadahead): Likewise.
12098         * lib/freadable.c (freadable): Likewise.
12099         * lib/freading.c (freading): Likewise.
12100         * lib/freadptr.c (freadptr): Likewise.
12101         * lib/freadseek.c (freadptrinc): Likewise.
12102         * lib/fseeko.c (rpl_fseeko): Likewise.
12103         * lib/fseterr.c (fseterr): Likewise.
12104         * lib/fwritable.c (fwritable): Likewise.
12105         * lib/fwriting.c (fwriting): Likewise.
12106         * lib/fflush.c (clear_ungetc_buffer): Update comment.
12107         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
12108
12109 2011-07-31  Bruno Haible  <bruno@clisp.org>
12110
12111         errno: Port to Minix.
12112         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
12113         ECONNABORTED are defined.
12114         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
12115         GNULIB_defined_ECONNABORTED): New macros.
12116         * lib/strerror-override.h (strerror_override): Test also
12117         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
12118         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
12119         ECONNABORTED.
12120         * doc/posix-headers/errno.texi: Mention the Minix problem.
12121
12122 2011-07-31  Bruno Haible  <bruno@clisp.org>
12123
12124         Work around declaration collisions on Minix.
12125         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
12126         defined, set REPLACE_MBSINIT.
12127         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
12128         defined, set REPLACE_MBRTOWC.
12129         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
12130         set REPLACE_MBRLEN.
12131         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
12132         defined, set REPLACE_MBSRTOWCS.
12133         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
12134         defined, set REPLACE_WCRTOMB.
12135         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
12136         defined, set REPLACE_WCSRTOMBS.
12137
12138 2011-07-31  Bruno Haible  <bruno@clisp.org>
12139
12140         Add support for Minix with ACK compiler.
12141         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
12142         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
12143         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
12144
12145 2011-07-31  Bruno Haible  <bruno@clisp.org>
12146
12147         Documentation about Minix.
12148         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
12149         * doc/glibc-headers/*.texi: Likewise.
12150         * doc/posix-functions/*.texi: Likewise.
12151         * doc/glibc-functions/*.texi: Likewise.
12152
12153 2011-07-31  Bruno Haible  <bruno@clisp.org>
12154
12155         snippet/warn-on-use: Fix indentation.
12156         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
12157
12158 2011-07-25  Jim Meyering  <meyering@redhat.com>
12159
12160         tests: test-update-copyright.sh: remove unnecessary "rm" commands
12161         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
12162         commands.
12163
12164 2011-07-27  Jim Meyering  <meyering@redhat.com>
12165
12166         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
12167         * top/maint.mk (gl_extract_significant_defines_): Now that
12168         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
12169         gnulib/lib/signal.in.h, and now that we recommend to
12170         define-if-undefined those two symbols in application code,
12171         we must filter them out of the "significant" list.
12172         This avoids a "make syntax-check" failure in coreutils.
12173
12174 2011-07-26  Eric Blake  <eblake@redhat.com>
12175
12176         warnings: add comments about previous patch
12177         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
12178         * m4/include_next.m4: Likewise.
12179         * m4/warn-on-use.m4: Likewise.
12180         * m4/warnings.m4: Likewise, and simplify use.
12181         Suggested by Stefano Lattarini.
12182
12183         include-next, warnings: support older autoconf
12184         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
12185         AS_VAR_PUSHDEF in a way that works with older autoconf.
12186         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
12187         Reported by Daniel P. Berrange.
12188
12189 2011-07-25  Bruno Haible  <bruno@clisp.org>
12190
12191         fseek, ftell: Fix doc.
12192         * doc/posix-functions/fseek.texi: Reword statement about
12193         AC_SYS_LARGEFILE.
12194         * doc/posix-functions/ftell.texi: Likewise.
12195
12196 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
12197             Bruno Haible  <bruno@clisp.org>
12198
12199         Add dependencies to the 'largefile' module.
12200         * modules/fopen (Depends-on): Add 'largefile'.
12201         * modules/freopen (Depends-on): Likewise.
12202         * modules/fseeko (Depends-on): Likewise.
12203         * modules/ftello (Depends-on): Likewise.
12204         * modules/glob (Depends-on): Likewise.
12205         * modules/lseek (Depends-on): Likewise.
12206         * modules/lstat (Depends-on): Likewise.
12207         * modules/mkostemp (Depends-on): Likewise.
12208         * modules/mkostemps (Depends-on): Likewise.
12209         * modules/mkstemp (Depends-on): Likewise.
12210         * modules/mkstemps (Depends-on): Likewise.
12211         * modules/open (Depends-on): Likewise.
12212         * modules/openat (Depends-on): Likewise.
12213         * modules/pread (Depends-on): Likewise.
12214         * modules/pwrite (Depends-on): Likewise.
12215         * modules/scandir (Depends-on): Likewise.
12216         * modules/stat (Depends-on): Likewise.
12217         * modules/tmpfile (Depends-on): Likewise.
12218         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
12219         since the containing module now depends on the largefile module.
12220         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
12221         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
12222         off_t is fixed by gnulib.
12223         * doc/posix-functions/freopen.texi: Likewise.
12224         * doc/posix-functions/fseeko.texi: Likewise.
12225         * doc/posix-functions/fstatat.texi: Likewise.
12226         * doc/posix-functions/ftello.texi: Likewise.
12227         * doc/posix-functions/glob.texi: Likewise.
12228         * doc/posix-functions/lseek.texi: Likewise.
12229         * doc/posix-functions/lstat.texi: Likewise.
12230         * doc/posix-functions/mkstemp.texi: Likewise.
12231         * doc/posix-functions/open.texi: Likewise.
12232         * doc/posix-functions/openat.texi: Likewise.
12233         * doc/posix-functions/pread.texi: Likewise.
12234         * doc/posix-functions/pwrite.texi: Likewise.
12235         * doc/posix-functions/scandir.texi: Likewise.
12236         * doc/posix-functions/stat.texi: Likewise.
12237         * doc/posix-functions/tmpfile.texi: Likewise.
12238         * doc/glibc-functions/mkostemp.texi: Likewise.
12239         * doc/glibc-functions/mkostemps.texi: Likewise.
12240         * doc/glibc-functions/mkstemps.texi: Likewise.
12241
12242 2011-07-25  Bruno Haible  <bruno@clisp.org>
12243
12244         fcntl: Move AC_LIBOBJ invocation to module description.
12245         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
12246         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
12247
12248         fcntl: Remove call-in from fchdir.m4.
12249         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
12250         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
12251
12252         dup3: Remove potential call-in from fchdir.m4.
12253         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
12254         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
12255
12256         dup2: Move AC_LIBOBJ invocation to module description.
12257         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
12258         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
12259         Don't invoke AC_LIBOBJ.
12260         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
12261
12262         dup2: Remove call-in from fchdir.m4.
12263         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
12264         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
12265
12266         fclose: Move AC_LIBOBJ invocation to module description.
12267         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
12268         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
12269         to 1.
12270         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
12271
12272         fclose: Remove call-in from close.m4.
12273         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
12274         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
12275
12276         close: Move AC_LIBOBJ invocation to module description.
12277         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
12278         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
12279         1.
12280         * modules/close (configure.ac): Invoke AC_LIBOBJ.
12281
12282         close: Remove call-in from fchdir.m4.
12283         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
12284         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
12285
12286         open: Move AC_LIBOBJ invocation to module description.
12287         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
12288         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
12289         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
12290
12291         open: Remove call-in from fchdir.m4.
12292         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
12293         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
12294
12295         fchdir: Start to remove gl_REPLACE_* idiom.
12296         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
12297         (gl_FUNC_FCHDIR): Invoke it.
12298
12299 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
12300
12301         * lib/ftell.c (ftell): Comment out cast.
12302
12303         close: use gl_REPLACE_FCLOSE only if defined
12304         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
12305         is defined.  The close module doesn't depend on the fclose module
12306         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
12307         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
12308         I reproduced the problem with "./gnulib-tool --test close sys_socket".
12309
12310 2011-07-24  Jim Meyering  <meyering@redhat.com>
12311
12312         test-select.h: avoid warning when using gcc's -Wmissing-declarations
12313         * tests/test-select.h (test_function): Declare as "static".
12314
12315 2011-07-24  Bruno Haible  <bruno@clisp.org>
12316
12317         doc: Mention the effects of AC_SYS_LARGEFILE.
12318         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
12319         on this function.
12320         * doc/posix-functions/aio_error.texi: Likewise.
12321         * doc/posix-functions/aio_fsync.texi: Likewise.
12322         * doc/posix-functions/aio_read.texi: Likewise.
12323         * doc/posix-functions/aio_return.texi: Likewise.
12324         * doc/posix-functions/aio_suspend.texi: Likewise.
12325         * doc/posix-functions/aio_write.texi: Likewise.
12326         * doc/posix-functions/fgetpos.texi: Likewise.
12327         * doc/posix-functions/fopen.texi: Likewise.
12328         * doc/posix-functions/freopen.texi: Likewise.
12329         * doc/posix-functions/fsetpos.texi: Likewise.
12330         * doc/posix-functions/fstatvfs.texi: Likewise.
12331         * doc/posix-functions/ftruncate.texi: Likewise.
12332         * doc/posix-functions/ftw.texi: Likewise.
12333         * doc/posix-functions/getrlimit.texi: Likewise.
12334         * doc/posix-functions/glob.texi: Likewise.
12335         * doc/posix-functions/lio_listio.texi: Likewise.
12336         * doc/posix-functions/lockf.texi: Likewise.
12337         * doc/posix-functions/mkstemp.texi: Likewise.
12338         * doc/posix-functions/mmap.texi: Likewise.
12339         * doc/posix-functions/nftw.texi: Likewise.
12340         * doc/posix-functions/openat.texi: Likewise.
12341         * doc/posix-functions/opendir.texi: Likewise.
12342         * doc/posix-functions/posix_fadvise.texi: Likewise.
12343         * doc/posix-functions/posix_fallocate.texi: Likewise.
12344         * doc/posix-functions/pread.texi: Likewise.
12345         * doc/posix-functions/pwrite.texi: Likewise.
12346         * doc/posix-functions/readdir.texi: Likewise.
12347         * doc/posix-functions/readdir_r.texi: Likewise.
12348         * doc/posix-functions/rewinddir.texi: Likewise.
12349         * doc/posix-functions/scandir.texi: Likewise.
12350         * doc/posix-functions/seekdir.texi: Likewise.
12351         * doc/posix-functions/setrlimit.texi: Likewise.
12352         * doc/posix-functions/statvfs.texi: Likewise.
12353         * doc/posix-functions/telldir.texi: Likewise.
12354         * doc/posix-functions/tmpfile.texi: Likewise.
12355         * doc/posix-functions/truncate.texi: Likewise.
12356         * doc/glibc-functions/fallocate.texi: Likewise.
12357         * doc/glibc-functions/fstatfs.texi: Likewise.
12358         * doc/glibc-functions/fts_children.texi: Likewise.
12359         * doc/glibc-functions/fts_read.texi: Likewise.
12360         * doc/glibc-functions/getdirentries.texi: Likewise.
12361         * doc/glibc-functions/mkostemp.texi: Likewise.
12362         * doc/glibc-functions/mkostemps.texi: Likewise.
12363         * doc/glibc-functions/mkstemps.texi: Likewise.
12364         * doc/glibc-functions/preadv.texi: Likewise.
12365         * doc/glibc-functions/pwritev.texi: Likewise.
12366         * doc/glibc-functions/sendfile.texi: Likewise.
12367         * doc/glibc-functions/statfs.texi: Likewise.
12368
12369 2011-07-24  Bruno Haible  <bruno@clisp.org>
12370
12371         doc: Fix typo.
12372         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
12373
12374 2011-07-24  Bruno Haible  <bruno@clisp.org>
12375
12376         doc: Mention fsusage.
12377         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
12378
12379 2011-07-24  Bruno Haible  <bruno@clisp.org>
12380
12381         doc: Mention new glibc headers and functions.
12382         * doc/glibc-headers/gshadow.texi: New file.
12383         * doc/glibc-functions/endsgent.texi: New file.
12384         * doc/glibc-functions/fgetsgent.texi: New file.
12385         * doc/glibc-functions/fgetsgent_r.texi: New file.
12386         * doc/glibc-functions/getsgent.texi: New file.
12387         * doc/glibc-functions/getsgent_r.texi: New file.
12388         * doc/glibc-functions/getsgnam.texi: New file.
12389         * doc/glibc-functions/getsgnam_r.texi: New file.
12390         * doc/glibc-functions/putsgent.texi: New file.
12391         * doc/glibc-functions/setsgent.texi: New file.
12392         * doc/glibc-functions/sgetsgent.texi: New file.
12393         * doc/glibc-functions/sgetsgent_r.texi: New file.
12394         * doc/glibc-functions/malloc_info.texi: New file.
12395         * doc/glibc-functions/preadv.texi: New file.
12396         * doc/glibc-functions/pwritev.texi: New file.
12397         * doc/glibc-functions/register_printf_modifier.texi: New file.
12398         * doc/glibc-functions/register_printf_specifier.texi: New file.
12399         * doc/glibc-functions/register_printf_type.texi: New file.
12400         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
12401         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
12402         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
12403         * doc/glibc-functions/pthread_getname_np.texi: New file.
12404         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
12405         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
12406         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
12407         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
12408         * doc/glibc-functions/pthread_setname_np.texi: New file.
12409         * doc/glibc-functions/pthread_sigqueue.texi: New file.
12410         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
12411         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
12412         * doc/glibc-functions/qsort_r.texi: New file.
12413         * doc/glibc-functions/quick_exit.texi: New file.
12414         * doc/glibc-functions/syncfs.texi: New file.
12415         * doc/gnulib.texi: Include them.
12416         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
12417         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
12418         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
12419         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
12420         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
12421         * doc/glibc-functions/execvpe.texi: Likewise.
12422
12423 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
12424
12425         ftell: don't include <unistd.h>
12426         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
12427         guaranteed to define off_t, and the ftell module depends on the
12428         stdio module.
12429
12430         ftell: do not assume wraparound signed arithmetic
12431         * lib/ftell.c: Include <limits.h>.
12432         (ftell): Don't assume wraparound signed arithmetic.
12433
12434 2011-07-24  Bruno Haible  <bruno@clisp.org>
12435
12436         close: No longer depend on module 'fclose'.
12437         * modules/close (Depends-on): Remove fclose.
12438         * NEWS: Mention the change.
12439         Suggested by Sam Steingold <sds@gnu.org>.
12440
12441 2011-07-24  Bruno Haible  <bruno@clisp.org>
12442
12443         fsusage: Enable large volume support on AIX >= 5.2.
12444         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
12445         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
12446         instead of STAT_STATVFS.
12447         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
12448
12449         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
12450         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
12451         f_blocks field only on MacOS X.
12452
12453         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
12454         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
12455         * modules/fsusage (Depends-on): Add largefile.
12456
12457 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
12458
12459         * README: Modernize discussion of signed integers.
12460         Assuming overflow wraparound is no longer safe.
12461         Mention ones' complement and signed magnitude.
12462
12463 2011-07-22  Bruno Haible  <bruno@clisp.org>
12464
12465         select tests, pselect tests: Refactor.
12466         * tests/test-select.h: New file, extracted from tests/test-select.c.
12467         (select_fn): New type.
12468         (test, do_select, do_select_nowait, do_select_wait, test_tty,
12469         test_connect_first, test_accept_first, test_pair, test_socket_pair,
12470         test_pipe): Add my_select argument.
12471         (test_function): Renamed from main. Add my_select argument.
12472         * tests/test-select.c: Move most code to tests/test-select.h. Include
12473         test-select.h.
12474         * modules/select-tests (Files): Add tests/test-select.h.
12475         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
12476         (my_select, main): New functions.
12477         * modules/pselect-tests (Files): Add tests/test-select.h,
12478         tests/macros.h, tests/signature.h.
12479         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
12480         (configure.ac): Check for <sys/wait.h>.
12481
12482 2011-07-22  Bruno Haible  <bruno@clisp.org>
12483
12484         sys_select tests: Check the signature of FD_*.
12485         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
12486         signature tests from here...
12487         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
12488         here.
12489         * modules/sys_select-tests (Files): Add tests/signature.h.
12490
12491 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
12492
12493         largefile: new module, replacing large-inode
12494         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
12495         * MODULES.html.sh: Add largefile, remove large-inode.
12496         * modules/largefile, m4/largefile.m4: New files.
12497         * modules/large-inode, m4/large-inode.m4: Remove.
12498
12499         fsusage: port to MacOS X 10.7 with 4 TiB file systems
12500         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
12501         implementations that use only 32 bits to count blocks.
12502         On typical hosts with 1024-byte blocks, this fails with file
12503         systems as small as 4 TiB.  Problem reported by Herb Wartens
12504         <http://debbugs.gnu.org/9140> and this should also fix a similar
12505         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
12506
12507         large-inode: New module
12508         * MODULES.html.sh: Add it.
12509         * modules/large-inode, m4/large-inode.m4: New files.
12510
12511         extensions: Enable extensions on MacOS X 10.5 and later.
12512         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
12513
12514 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
12515
12516         file-has-acl: use acl_extended_file_nofollow if available
12517         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
12518         (acl_extended_file): New macro.
12519         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
12520         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
12521
12522 2011-07-21  Bruno Haible  <bruno@clisp.org>
12523
12524         Declare system functions in a way that works with C++.
12525         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
12526         declare fdopendir as extern "C".
12527         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
12528         declare frexpl as extern "C".
12529         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
12530         declare gai_strerror as extern "C".
12531         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
12532         programs, declare gai_strerror as extern "C".
12533         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
12534         declare getlogin_r as extern "C".
12535         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
12536         as extern "C".
12537         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
12538         declare ldexpl as extern "C".
12539         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
12540         as extern "C".
12541         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
12542         program, declare getmntinfo as extern "C".
12543         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
12544         stpncpy as extern "C".
12545         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
12546         program, declare __xpg_strerror_r as extern "C".
12547         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
12548         strndup as extern "C".
12549         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
12550         declare memset and bzero as extern "C".
12551         Reported by Sam Steingold <sds@gnu.org>.
12552
12553 2011-07-12  Jim Meyering  <meyering@redhat.com>
12554
12555         maint.mk: prohibit inclusion of "verify.h" without use
12556         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
12557
12558 2011-07-19  Pádraig Brady  <P@draigBrady.com>
12559
12560         timer-time: A new module to check for timer_settime()
12561         * m4/timer_time.m4: Check for the posix function.
12562         * modules/timer-time: Add the new module.
12563         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
12564         Mention it.
12565
12566 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
12567             Bruno Haible  <bruno@clisp.org>
12568
12569         pthread_sigmask: assume POSIX threads if --avoid=threadlib
12570         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
12571         not defined, assume POSIX threads and look for pthread_sigmask in
12572         $LIBS, without changing $CPPFLAGS.
12573
12574 2011-07-19  Bruno Haible  <bruno@clisp.org>
12575
12576         strstr: Update cross-compilation guess.
12577         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
12578         CPUs, guess no, in view of glibc
12579         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
12580         Suggested by Eric Blake. Reported by Reuben Thomas.
12581
12582 2011-07-19  Pádraig Brady  <P@draigBrady.com>
12583
12584         getopt-gnu: suppress core dumps from detection code
12585         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
12586         to suppress core dumps that may well occur on glibc systems.
12587         * modules/getopt-gnu: Depend on nocrash.
12588
12589 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
12590
12591         pthread_sigmask: ensure usleep is declared
12592         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
12593         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
12594
12595 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
12596
12597         doc: Document NonStop portability issues.
12598         * doc/posix-functions/sigaction.texi (sigaction):
12599         * doc/posix-headers/signal.texi (signal.h):
12600         Document NonStop.  See Joachim Schmitz in
12601         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
12602
12603 2011-07-15  Bruno Haible  <bruno@clisp.org>
12604
12605         ffsl, ffsll: Avoid unportable behaviour.
12606         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
12607
12608 2011-07-15  Bruno Haible  <bruno@clisp.org>
12609
12610         ffs: More tests.
12611         * tests/test-ffs.c (NBITS): New macro.
12612         (main): Add more tests.
12613         * tests/test-ffsl.c (NBITS): New macro.
12614         (main): Add more tests.
12615         * tests/test-ffsll.c (NBITS): New macro.
12616         (main): Add more tests.
12617
12618 2011-07-15  Eric Blake  <eblake@redhat.com>
12619
12620         ffsl, ffsll: new modules
12621         * modules/ffsl: New file.
12622         * modules/ffsll: Likewise.
12623         * m4/ffsl.m4: Likewise.
12624         * m4/ffsll.m4: Likewise.
12625         * lib/ffsl.c: Likewise.
12626         * lib/ffsl.h: Likewise.
12627         * lib/ffsll.c: Likewise.
12628         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
12629         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
12630         * modules/string (Makefile.am): Substitute witnesses.
12631         * lib/strings.in.h (ffsl, ffsll): Declare.
12632         * modules/ffsl-tests: New test file.
12633         * modules/ffsll-tests: Likewise.
12634         * tests/test-ffsl.c: Likewise.
12635         * tests/test-ffsll.c: Likewise.
12636         * MODULES.html.sh (Integer arithmetic functions): Mention it.
12637         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
12638         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
12639
12640         ffs: fix m4 prerequisite
12641         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
12642
12643         ffs: avoid undefined behavior
12644         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
12645         * tests/test-ffs.c (naive, main): Avoid signed shifts.
12646         Reported by Bruno Haible.
12647
12648 2011-07-12  Bruno Haible  <bruno@clisp.org>
12649
12650         pthread_sigmask: Rely on module 'threadlib'.
12651         * modules/pthread_sigmask (Depends-on): Add threadlib.
12652         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
12653         is defined.
12654
12655 2011-07-12  Bruno Haible  <bruno@clisp.org>
12656
12657         regex: Depend on module 'strcase'.
12658         * modules/regex (Depends-on): Add strcase, for strcasecmp().
12659
12660 2011-07-12  Jim Meyering  <meyering@redhat.com>
12661
12662         warn-on-use: fix typo in file name
12663         * modules/snippet/warn-on-use (Files): Correct file name:
12664         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
12665
12666 2011-07-12  Bruno Haible  <bruno@clisp.org>
12667
12668         strings: Document module.
12669         * doc/posix-headers/strings.texi: Mention module 'strings'.
12670
12671 2011-07-12  Bruno Haible  <bruno@clisp.org>
12672
12673         Rename module '_Noreturn' to 'snippet/_Noreturn'.
12674         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
12675         (Files, Makefile.am): Update.
12676         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
12677         * modules/stdlib (Depends-on): Update.
12678
12679 2011-07-12  Bruno Haible  <bruno@clisp.org>
12680
12681         * NEWS: Mention the changes.
12682
12683         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
12684         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
12685         (Files, Makefile.am): Update.
12686         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
12687         * modules/arpa_inet (Depends-on): Update.
12688         * modules/ctype (Depends-on): Update.
12689         * modules/dirent (Depends-on): Update.
12690         * modules/fcntl-h (Depends-on): Update.
12691         * modules/glob (Depends-on): Update.
12692         * modules/iconv-h (Depends-on): Update.
12693         * modules/inttypes-incomplete (Depends-on): Update.
12694         * modules/langinfo (Depends-on): Update.
12695         * modules/locale (Depends-on): Update.
12696         * modules/math (Depends-on): Update.
12697         * modules/netdb (Depends-on): Update.
12698         * modules/poll-h (Depends-on): Update.
12699         * modules/pty (Depends-on): Update.
12700         * modules/search (Depends-on): Update.
12701         * modules/signal (Depends-on): Update.
12702         * modules/spawn (Depends-on): Update.
12703         * modules/stdio (Depends-on): Update.
12704         * modules/stdlib (Depends-on): Update.
12705         * modules/string (Depends-on): Update.
12706         * modules/strings (Depends-on): Update.
12707         * modules/sys_file (Depends-on): Update.
12708         * modules/sys_ioctl (Depends-on): Update.
12709         * modules/sys_select (Depends-on): Update.
12710         * modules/sys_socket (Depends-on): Update.
12711         * modules/sys_stat (Depends-on): Update.
12712         * modules/sys_time (Depends-on): Update.
12713         * modules/sys_times (Depends-on): Update.
12714         * modules/sys_utsname (Depends-on): Update.
12715         * modules/sys_wait (Depends-on): Update.
12716         * modules/termios (Depends-on): Update.
12717         * modules/time (Depends-on): Update.
12718         * modules/unistd (Depends-on): Update.
12719         * modules/wchar (Depends-on): Update.
12720         * modules/wctype-h (Depends-on): Update.
12721         * MODULES.html.sh (Support for building libraries and executables):
12722         Update.
12723
12724         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
12725         * modules/snippet/unused-parameter: Renamed from
12726         modules/unused-parameter.
12727         (Files, Makefile.am): Update.
12728         * build-aux/snippet/unused-parameter.h: Renamed from
12729         build-aux/unused-parameter.h.
12730         * modules/selinux-h (Depends-on): Update.
12731         * modules/unistr/base (Depends-on): Update.
12732         * MODULES.html.sh (Core language properties): Update.
12733
12734         Rename module 'link-warning' to 'snippet/link-warning'.
12735         * modules/snippet/link-warning: Renamed from modules/link-warning.
12736         (Files, Makefile.am): Update.
12737         * build-aux/snippet/link-warning.h: Renamed from
12738         build-aux/link-warning.h.
12739         * MODULES.html.sh (Support for building libraries and executables):
12740         Update.
12741
12742         Rename module 'c++defs' to 'snippet/c++defs'.
12743         * modules/snippet/c++defs: Renamed from modules/c++defs.
12744         (Files, Makefile.am): Update.
12745         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
12746         * modules/arpa_inet (Depends-on): Update.
12747         * modules/ctype (Depends-on): Update.
12748         * modules/dirent (Depends-on): Update.
12749         * modules/fcntl-h (Depends-on): Update.
12750         * modules/glob (Depends-on): Update.
12751         * modules/iconv-h (Depends-on): Update.
12752         * modules/langinfo (Depends-on): Update.
12753         * modules/locale (Depends-on): Update.
12754         * modules/math (Depends-on): Update.
12755         * modules/netdb (Depends-on): Update.
12756         * modules/poll-h (Depends-on): Update.
12757         * modules/pty (Depends-on): Update.
12758         * modules/search (Depends-on): Update.
12759         * modules/signal (Depends-on): Update.
12760         * modules/spawn (Depends-on): Update.
12761         * modules/stdio (Depends-on): Update.
12762         * modules/stdlib (Depends-on): Update.
12763         * modules/string (Depends-on): Update.
12764         * modules/strings (Depends-on): Update.
12765         * modules/sys_ioctl (Depends-on): Update.
12766         * modules/sys_select (Depends-on): Update.
12767         * modules/sys_socket (Depends-on): Update.
12768         * modules/sys_stat (Depends-on): Update.
12769         * modules/sys_time (Depends-on): Update.
12770         * modules/sys_wait (Depends-on): Update.
12771         * modules/termios (Depends-on): Update.
12772         * modules/time (Depends-on): Update.
12773         * modules/unistd (Depends-on): Update.
12774         * modules/wchar (Depends-on): Update.
12775         * modules/wctype-h (Depends-on): Update.
12776
12777         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
12778         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
12779         (Files, Makefile.am): Update.
12780         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
12781         * modules/argv-iter (Depends-on): Update.
12782         * modules/arpa_inet (Depends-on): Update.
12783         * modules/dirent (Depends-on): Update.
12784         * modules/fcntl-h (Depends-on): Update.
12785         * modules/fnmatch (Depends-on): Update.
12786         * modules/getopt-posix (Depends-on): Update.
12787         * modules/glob (Depends-on): Update.
12788         * modules/iconv-h (Depends-on): Update.
12789         * modules/inttypes-incomplete (Depends-on): Update.
12790         * modules/locale (Depends-on): Update.
12791         * modules/math (Depends-on): Update.
12792         * modules/netdb (Depends-on): Update.
12793         * modules/search (Depends-on): Update.
12794         * modules/signal (Depends-on): Update.
12795         * modules/spawn (Depends-on): Update.
12796         * modules/stdio (Depends-on): Update.
12797         * modules/stdlib (Depends-on): Update.
12798         * modules/string (Depends-on): Update.
12799         * modules/strings (Depends-on): Update.
12800         * modules/sys_socket (Depends-on): Update.
12801         * modules/sys_stat (Depends-on): Update.
12802         * modules/sys_time (Depends-on): Update.
12803         * modules/sys_times (Depends-on): Update.
12804         * modules/sys_utsname (Depends-on): Update.
12805         * modules/time (Depends-on): Update.
12806         * modules/unistd (Depends-on): Update.
12807         * modules/wchar (Depends-on): Update.
12808         * MODULES.html.sh (Support for building libraries and executables):
12809         Update.
12810
12811 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
12812
12813         Improvements on _Noreturn and related modules.
12814
12815         modules/_Exit-tests: test _Noreturn too
12816         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
12817         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
12818         (main): Use them.
12819
12820         stdnoreturn, stdnoreturn-tests: remove modules
12821         They're not needed here and a bit premature for use elsewhere.  See
12822         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
12823         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
12824         * tests/test-stdnoreturn.c: Remove files.
12825         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
12826         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
12827         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
12828         and using noreturn.
12829         * modules/openat, modules/sigpipe-die, modules/xalloc:
12830         * modules/xmemdup0, modules/xstrtol:
12831         Remove dependency on stdnoreturn.
12832
12833         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
12834         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
12835         Reparenthesize to avoid GCC warning.
12836         Support Microsoft's syntax.
12837         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
12838
12839         _Noreturn-tests: remove module
12840         * modules/_Noreturn-tests: Remove.
12841         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
12842         * tests/test-_Noreturn.c: Remove.
12843         * tests/test-stdnoreturn.c: Merge from the old
12844         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
12845
12846 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
12847
12848         _Noreturn, stdnoreturn, and related modules.
12849
12850         * top/maint.mk: Adjust to new noreturn support.
12851         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
12852         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
12853
12854         xalloc: use stdnoreturn.h
12855         * lib/xalloc.h: Include <stdnoreturn.h>.
12856         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
12857         * modules/xalloc (Depends-on): Add stdnoreturn.
12858
12859         xstrtol: use stdnoreturn.h
12860         * lib/xstrtol.h: Include <stdnoreturn.h>.
12861         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
12862         * modules/xstrtol (Depends-on): Add stdnoreturn.
12863
12864         xmemdup0: use stdnoreturn.h
12865         * lib/xmemdup0.h: Include <stdnoreturn.h>.
12866         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
12867         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
12868
12869         sigpipe-die: use stdnoreturn.h
12870         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
12871         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
12872         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
12873
12874         openat: use stdnoreturn.h
12875         * lib/openat.h: Include <stdnoreturn.h>.
12876         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
12877         * modules/openat (Depends-on): Add stdnoreturn.
12878
12879         * lib/openat-die.c (openat_save_fail): Modernize comment.
12880
12881         * lib/xalloc-die.c (xalloc_die): Modernize comment.
12882
12883         * lib/glthread/thread.h: Modernize comment.
12884
12885         obstack: use _Noreturn
12886         * lib/obstack.c (__attribute__): Remove macro.
12887         (print_and_abort): Use _Noreturn.
12888
12889         c-stack: use _Noreturn
12890         * lib/c-stack.c (die, overflow_handler, segv_handler):
12891         Use _Noreturn rather than __attribute__((noreturn)).
12892
12893         argmatch-tests, exclude_tests: use _Noreturn
12894         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
12895         Remove.
12896         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
12897
12898         stdlib: use _Noreturn
12899         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
12900         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
12901         * modules/stdlib (Depends-on): Add _Noreturn.
12902         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
12903
12904         stdnoreturn-tests: new module
12905         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
12906
12907         stdnoreturn: new module
12908         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
12909         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
12910
12911         _Noreturn-tests: new module
12912         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
12913
12914         _Noreturn: new module
12915         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
12916         New section, mentioning it.
12917         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
12918
12919         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
12920
12921 2011-07-11  Eric Blake  <eblake@redhat.com>
12922
12923         ffs: new module
12924         * modules/ffs: New file.
12925         * m4/ffs.m4: Likewise.
12926         * lib/ffs.c: Likewise.
12927         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
12928         * modules/strings (Makefile.am): Substitute witness.
12929         (Depends-on): Add c++defs.
12930         * lib/strings.in.h (ffs): Declare.
12931         * modules/ffs-tests: New test file.
12932         * tests/test-ffs.c: Test new module.
12933         * MODULES.html.sh (Integer arithmetic functions): Mention it.
12934         * doc/posix-functions/ffs.texi (ffs): Likewise.
12935
12936         regex: avoid compiler warning
12937         * lib/regex.c (includes): Include <strings.h>, for use of
12938         strcasecmp in regcomp.c.
12939         Reported by Joachim Schmitz.
12940
12941 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
12942
12943         stdint: respect system's intmax_t if INTMAX_MAX
12944         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
12945         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
12946         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
12947         long but int64_t is long long, and where we will clash with the
12948         system intmax_t if we override it.  See
12949         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
12950         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
12951         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
12952         similarly for UINTMAX_C.
12953
12954 2011-07-08  Bruno Haible  <bruno@clisp.org>
12955
12956         pthread_sigmask tests: Avoid a compiler warning.
12957         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
12958         non-zero.
12959
12960         sigprocmask tests: A better way to avoid a compiler warning.
12961         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
12962         (main): Complain if system() returns non-zero.
12963         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
12964
12965 2011-07-08  Bruno Haible  <bruno@clisp.org>
12966
12967         pthread_sigmask: Work around IRIX bug.
12968         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
12969         bug.
12970         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
12971         there may be unblocked pending signals.
12972         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
12973
12974 2011-07-08  Bruno Haible  <bruno@clisp.org>
12975
12976         pthread_sigmask: Work around Cygwin bug.
12977         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
12978         bug.
12979         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
12980         the system's pthread_sigmask function.
12981         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
12982
12983 2011-07-08  Bruno Haible  <bruno@clisp.org>
12984
12985         pthread_sigmask: Work around bug in single-threaded implementation.
12986         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
12987         FreeBSD, HP-UX, Solaris bug.
12988         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
12989         * lib/pthread_sigmask.c: Include <stddef.h>.
12990         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
12991         the system's pthread_sigmask function.
12992         * modules/pthread_sigmask (configure.ac): Invoke
12993         gl_PREREQ_PTHREAD_SIGMASK.
12994         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
12995         HP-UX, Solaris.
12996
12997 2011-07-08  Eric Blake  <eblake@redhat.com>
12998
12999         test-sigprocmask: avoid compiler warning
13000         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
13001         * tests/test-sigprocmask.c (main): Use it to silence warning.
13002         Reported by Jim Meyering.
13003
13004         test-snprintf: avoid compiler warning
13005         * tests/test-snprintf.c (main): Avoid shadowed declaration.
13006         * tests/test-vsnprintf.c (main): Likewise.
13007         Reported by Jim Meyering.
13008
13009 2011-07-08  Bruno Haible  <bruno@clisp.org>
13010
13011         Tests for module 'pthread_sigmask'.
13012         * modules/pthread_sigmask-tests: New file.
13013         * tests/test-pthread_sigmask1.c: New file, based on
13014         tests/test-sigprocmask.c.
13015         * tests/test-pthread_sigmask2.c: New file.
13016
13017 2011-07-08  Jim Meyering  <meyering@redhat.com>
13018
13019         test-getopt.h: avoid warning about an unused variable
13020         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
13021
13022 2011-07-07  Jim Meyering  <meyering@redhat.com>
13023
13024         maint: reduce list of files exempt from sc_prohibit_leading_TABs
13025         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
13026         now that it no longer contains leading TABs.
13027         Remove unused "url=FIXME" statement.
13028
13029 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
13030
13031         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
13032         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
13033         When gl_THREADLIB is not in use, assume that the POSIX sematics
13034         are desired.  This is better for Emacs, which uses POSIX semantics
13035         on GNUish and/or POSIXish platforms, and does not use threads at
13036         all otherwise.
13037
13038         pthread_sigmask: fix typo when testing for libraries
13039         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
13040         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
13041
13042 2011-07-08  Eric Blake  <eblake@redhat.com>
13043
13044         fts: introduce FTS_NOATIME
13045         * lib/fts_.h (FTS_NOATIME): New bit flag.
13046         (FTS_OPTIONMASK): Adjust.
13047         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
13048         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
13049
13050 2011-07-08  Bruno Haible  <bruno@clisp.org>
13051
13052         Tests for module 'thread'.
13053         * modules/thread-tests: New file.
13054         * tests/test-thread_self.c: New file.
13055         * tests/test-thread_create.cc: New file.
13056
13057 2011-07-08  Bruno Haible  <bruno@clisp.org>
13058
13059         thread: Avoid gcc warnings when using gl_thread_self().
13060         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
13061         'void *'.
13062         (gl_thread_self_pointer): Update.
13063
13064 2011-07-07  Bruno Haible  <bruno@clisp.org>
13065
13066         signal-c++-tests: Check declaration of pthread_sigmask.
13067         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
13068         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
13069         $(LIB_PTHREAD_SIGMASK).
13070
13071 2011-07-07  Bruno Haible  <bruno@clisp.org>
13072
13073         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
13074         * lib/signal.in.h (pthread_sigmask): Override if
13075         REPLACE_PTHREAD_SIGMASK is 1.
13076         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
13077         REPLACE_PTHREAD_SIGMASK.
13078         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
13079         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
13080         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
13081         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
13082         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
13083
13084 2011-07-07  Bruno Haible  <bruno@clisp.org>
13085
13086         pthread_sigmask: Ensure declaration in <signal.h>.
13087         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
13088         include <pthread.h>.
13089         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
13090         problem.
13091
13092 2011-07-07  Bruno Haible  <bruno@clisp.org>
13093
13094         pthread_sigmask: Document the module.
13095         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
13096
13097 2011-07-07  Bruno Haible  <bruno@clisp.org>
13098
13099         pthread_sigmask: Follow gnulib conventions.
13100         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
13101         gl_PTHREAD_SIGMASK.
13102         * modules/pthread_sigmask (configure.ac): Update.
13103
13104 2011-07-07  Bruno Haible  <bruno@clisp.org>
13105
13106         pthread_sigmask: Make declaration C++ safe.
13107         * lib/signal.in.h: In two special conditions, just do an #include_next.
13108         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
13109         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
13110         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
13111         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
13112         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
13113         not REPLACE_PTHREAD_MASK.
13114         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
13115         not REPLACE_PTHREAD_MASK.
13116         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
13117
13118 2011-07-07  Bruno Haible  <bruno@clisp.org>
13119
13120         pthread_sigmask: Fix return value.
13121         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
13122         * lib/pthread_sigmask.c: New file.
13123         * modules/pthread_sigmask (Files): Add it.
13124         (configure.ac): Invoke AC_LIBOBJ.
13125
13126 2011-07-07  Eric Blake  <eblake@redhat.com>
13127
13128         getopt: more portable argv creation
13129         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
13130         const, use char arrays rather than strings.
13131         Suggested by Paul Eggert.
13132
13133 2011-07-07  Bruno Haible  <bruno@clisp.org>
13134
13135         Tests for module 'sigprocmask'.
13136         * modules/sigprocmask-tests: New file.
13137         * tests/test-sigprocmask.c: New file.
13138
13139 2011-07-07  Bruno Haible  <bruno@clisp.org>
13140
13141         float tests: Tweak.
13142         * tests/test-float.c (main): Tweak skip message.
13143
13144 2011-07-07  Eric Blake  <eblake@redhat.com>
13145
13146         getopt: avoid compiler warning during configure
13147         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
13148         assigning string literals to non-const pointer.
13149
13150         getopt-gnu: avoid crash in glibc getopt
13151         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
13152         * tests/test-getopt.h (test_getopt): Enhance test.
13153         * tests/test-getopt_long.h (test_getopt_long): Likewise.
13154         * doc/posix-functions/getopt.texi (getopt): Document it.
13155         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
13156         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
13157         Likewise.
13158
13159 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
13160
13161         getopt: handle W; without long options in getopt [BZ #12922]
13162         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
13163         but no long options are defined, just return 'W'.
13164
13165 2011-07-07  Bruno Haible  <bruno@clisp.org>
13166
13167         Avoid literal tabs.
13168         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
13169         variable containing a tab instead of a literal tab.
13170         Reported by Jim Meyering.
13171
13172 2011-07-07  Bruno Haible  <bruno@clisp.org>
13173
13174         Comments.
13175         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
13176
13177 2011-07-06  Bruno Haible  <bruno@clisp.org>
13178
13179         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
13180         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
13181         <winsock2.h>.
13182         (rpl_fd_isset, FD_ISSET): New definitions, copied from
13183         lib/sys_socket.in.h.
13184         (close, gethostname): Hide declarations from <winsock2.h>.
13185         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
13186         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
13187         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
13188         (select): Don't override if gnulib's <sys/select.h> was already
13189         included.
13190         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
13191         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
13192         setsockopt, shutdown, select): Tweak indentation.
13193
13194 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
13195
13196         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
13197         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
13198         in an application that does not use the sys_select module.
13199
13200 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
13201
13202         poll: do not return 0 on timeout=-1
13203         * lib/poll.c: Loop with yield if no events occured
13204
13205 2011-07-06  Eric Blake  <eblake@redhat.com>
13206
13207         pthread_sigmask: always replace when not using pthread
13208         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
13209         replacement when using some threading other than pthread.  Fix
13210         logic bug.
13211
13212 2011-07-06  Bruno Haible  <bruno@clisp.org>
13213
13214         Comments.
13215         * m4/printf.m4: Update comments about mingw.
13216
13217 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
13218
13219         sys_select: define sigset_t more portably
13220         * lib/sys_select.in.h: Always include <sys/types.h>, since
13221         we now need sigset_t and mingw defines it there.
13222         Include <signal.h> before split inclusion guard, to avoid
13223         mishaps on Solaris, whose <signal.h> eventually includes us.
13224         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
13225         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
13226         which come from ...
13227         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
13228         gl_CHECK_TYPE_SIGSET_T.
13229         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
13230         does the real work.
13231         * modules/sys_select (Depends-on): Add 'signal'.
13232
13233         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
13234         Suggested by Bruno Haible.
13235
13236         pselect: Use pthread_sigmask, not sigprocmask.
13237         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
13238         multithreaded apps better than sigprocmask does.
13239         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
13240         sigprocmask directly.
13241
13242 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
13243
13244         * lib/pselect.c (pselect): Use plain name, without "rpl_".
13245         Don't #undef,  since we don't need any underlying pselect.
13246         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
13247         (Depends-on): Add select.
13248         (Link): Add $(LIBSOCKET).
13249         These changes suggested by Bruno Haible.
13250
13251         pselect: document better
13252         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
13253         * doc/posix-functions/pselect.texi (pselect): Document new module.
13254
13255         pthread_sigmask: new module
13256         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
13257         * doc/posix-functions/pthread_sigmask.texi: Document new module.
13258         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
13259         This is done only as a macro; I don't know how well that'll
13260         work for C++.  Move <sys/types.h> include before the include_next,
13261         to avoid mishap on Solaris.
13262         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
13263         * modules/signal (Makefile.am): Substitute the check's results.
13264         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
13265
13266         test-pselect: new module
13267         * modules/pselect-tests, tests/test-pselect.c: New files.
13268         * tests/test-select.c, tests/test-sys_select-c++.cc:
13269         If TEST_PSELECT is defined, test pselect instead of testing select.
13270
13271         * tests/test-sys_select.c (sigset_t): Test for it, too.
13272         Suggested by Bruno Haible.
13273
13274 2011-07-05  Eric Blake  <eblake@redhat.com>
13275
13276         snprintf: guarantee %1$d, for libintl
13277         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
13278         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
13279         * doc/posix-functions/snprintf.texi (snprintf): Update.
13280         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
13281         * tests/test-snprintf.c (main): Enhance test.
13282         * tests/test-vsnprintf.c (main): Likewise.
13283
13284 2011-07-05  Jim Meyering  <meyering@redhat.com>
13285
13286         maint: exempt stdio-read.c and stdio-write.c from the cppi check
13287         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
13288         per Bruno's request, to accommodate this idiom (no space after "#")
13289         even when the function is inside an #if block:
13290         char *
13291         gets (char *s)
13292         #undef gets
13293         {
13294           ...
13295         }
13296
13297 2011-07-04  Jim Meyering  <meyering@redhat.com>
13298
13299         maint: indent with spaces, not TABs, and add a rule to check this
13300         * tests/test-userspec.c: Indent with spaces, not TABs.
13301         * tests/test-argp.c: Likewise.
13302         * tests/test-c-stack2.sh: Likewise.
13303         * tests/test-parse-duration.sh: Likewise
13304         * m4/strtod.m4: Likewise.
13305         * m4/alloca.m4: Likewise.
13306         * m4/pselect.m4: Likewise.
13307         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
13308
13309 2011-07-03  Jim Meyering  <meyering@redhat.com>
13310
13311         maint.mk: correct omissions in prohibit_argmatch_without_use check
13312         This rule would mistakenly report that argmatch.h is included without
13313         use even when both the argmatch and invalid_arg macro were used.
13314         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
13315         of argmatch and invalid_arg.
13316
13317 2011-07-03  Bruno Haible  <bruno@clisp.org>
13318
13319         Comments about EINTR.
13320         * lib/safe-read.h: Explain the purpose of this module.
13321         * lib/safe-write.h: Likewise.
13322         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
13323         module.
13324         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
13325         module.
13326         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
13327
13328 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
13329
13330         xnanosleep: Rewrite to use new dtotimespec module.
13331         It has the conversion code that used to be in xnanosleep.
13332         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
13333         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
13334         (TIME_T_MAX): Remove.
13335         (xnanosleep): Rewrite in terms of dtotimespec.
13336         * modules/xnanosleep (Depends-on): Add dtotimespec.
13337         Remove intprops, stdbool.
13338
13339         timespec-add, timespec-sub: new modules
13340         * lib/timespec.h (timespec_add, timespec_sub): New decls.
13341         * lib/timespec-add.c, lib/timespec-sub.c:
13342         * modules/timespec-add, modules/timespec-sub: New files.
13343
13344         dtotimespec: new module
13345         * lib/timespec.h (dtotimespec): New decl.
13346         * lib/dtotimespec.c, modules/dtotimespec: New files.
13347
13348         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
13349
13350         pselect: new module
13351         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
13352         (pselect): New decls.
13353         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
13354         since the standard pselect decl uses 'restrict'.
13355         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
13356         HAVE_PSELECT, REPLACE_PSELECT.
13357         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
13358         HAVE_PSELECT, REPLACE_PSELECT.
13359         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
13360
13361         sys_select: don't depend on sys_socket
13362         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
13363         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
13364         This fix works on GNU and GNU-like platforms, but has not been tested
13365         on native Windows.
13366         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
13367         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
13368         gl_HEADER_SYS_SOCKET.
13369         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
13370         gl_PREREQ_SYS_H_WINSOCK2.
13371
13372 2011-06-29  Eric Blake  <eblake@redhat.com>
13373
13374         pipe2: fix C89 compile problem
13375         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
13376         Reported by Bruno Haible.
13377
13378         pipe, pipe2: don't corrupt fd on error
13379         * lib/pipe.c (pipe): Leave fd unchanged on error.
13380         * lib/pipe2.c (pipe2): Likewise.
13381         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
13382         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
13383
13384 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
13385
13386         mmap-anon: do not use regular expressions inadvertently
13387         * m4/mmap-anon.m4: Remove trailing period from strings sought
13388         in the output.
13389
13390 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
13391
13392         nanosleep: fix integer overflow problem
13393         * lib/nanosleep.c (my_usleep): Don't assume signed integer
13394         arithmetic wraps around on overflow.
13395
13396         nanosleep: simplify carrying
13397         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
13398         first call to the underyling nanosleep, not for the last one.
13399         This doesn't fix any bugs, but it simplifies the computation of
13400         the remaining delay.  Found while auditing integer overflow issues.
13401
13402         dup2: remove test for existence of fcntl
13403         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
13404         "#if HAVE_FCNTL", in the configure-time test program.
13405         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
13406         and therefore speeds up "configure" a bit.  Found while
13407         adding the dup2 module to Emacs.
13408
13409 2011-06-24  Eric Blake  <eblake@redhat.com>
13410
13411         maint.mk: enhance useless header checks
13412         * top/maint.mk (_sc_header_without_use): Check both include
13413         styles.
13414         (sc_prohibit_assert_without_use)
13415         (sc_prohibit_close_stream_without_use)
13416         (sc_prohibit_getopt_without_use)
13417         (sc_prohibit_quotearg_without_use)
13418         (sc_prohibit_quote_without_use)
13419         (sc_prohibit_long_options_without_use)
13420         (sc_prohibit_inttostr_without_use)
13421         (sc_prohibit_ignore_value_without_use)
13422         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
13423         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
13424         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
13425         (sc_prohibit_hash_pjw_without_use)
13426         (sc_prohibit_safe_read_without_use)
13427         (sc_prohibit_argmatch_without_use)
13428         (sc_prohibit_canonicalize_without_use)
13429         (sc_prohibit_root_dev_ino_without_use)
13430         (sc_prohibit_openat_without_use)
13431         (sc_prohibit_c_ctype_without_use)
13432         (sc_prohibit_signal_without_use)
13433         (sc_prohibit_stdio--_without_use)
13434         (sc_prohibit_stdio-safer_without_use)
13435         (sc_prohibit_strings_without_use)
13436         (sc_prohibit_intprops_without_use)
13437         (sc_prohibit_stddef_without_use)
13438         (sc_prohibit_xfreopen_without_use): Update clients.
13439
13440 2011-06-24  Jim Meyering  <meyering@redhat.com>
13441
13442         syntax-check: keep one maint.mk rule in sync with its header
13443         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
13444         of the bug Eric has just fixed, with today's commit 25e4c2ec.
13445         I prefer to avoid temporary files here, so use <(...), but that
13446         is not supported by /bin/sh, so...
13447         (SHELL): Define to /bin/bash.
13448
13449 2011-06-24  Eric Blake  <eblake@redhat.com>
13450
13451         maint.mk: update sc_prohibit_intprops_without_use
13452         * top/maint.mk (_intprops_names): Match recent changes.
13453
13454 2011-06-24  Bruno Haible  <bruno@clisp.org>
13455
13456         strerror-override: No-op tweak.
13457         * lib/strerror-override.h (strerror_override): Reorder conditions,
13458         for consistency with lib/strerror-override.c.
13459
13460 2011-06-23  Eric Blake  <eblake@redhat.com>
13461
13462         maint.mk: test further PATH_MAX issues
13463         * top/maint.mk (sc_prohibit_path_max_array): Rename...
13464         (sc_prohibit_path_max_allocation): ...and also test alloca.
13465         Suggested by Jim Meyering.
13466
13467 2011-06-22  Eric Blake  <eblake@redhat.com>
13468
13469         maint.mk: add syntax-check to avoid char[PATH_MAX]
13470         * top/maint.mk (sc_prohibit_path_max_array): New rule.
13471
13472         stat: be robust to PATH_MAX definition
13473         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
13474         * modules/stat (Depends-on): Add verify.
13475
13476         link: work around IRIX bug
13477         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
13478         * lib/link.c (rpl_link): Work around it.
13479         * tests/test-link.h (test_link): Enhance test.
13480         * doc/posix-functions/link.texi (link): Document the bug.
13481
13482         getopt: silence clang warning
13483         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
13484         dereference.
13485         Reported by Gustavo Martin Domato.
13486
13487 2011-06-22  Jim Meyering  <meyering@redhat.com>
13488
13489         bootstrap: do not insert a blank line into each .gitignore file
13490         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
13491
13492 2011-06-21  Eric Blake  <eblake@redhat.com>
13493
13494         perror: test for output mismatch
13495         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
13496         perror on IRIX.
13497
13498         strerror_r: fix OpenBSD behavior on out-of-range
13499         * lib/strerror_r.c (strerror_r): Always use maximal string.
13500         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
13501
13502         strerror_r: fix OpenBSD behavior on 0
13503         * lib/strerror-override.c (strerror_override): Also override 0
13504         when needed.
13505         * lib/strerror-override.h (strerror_override): Likewise.
13506         * lib/strerror.c (strerror): Simplify, now that 0 override is done
13507         earlier.
13508         * lib/strerror_r.c (strerror_r): Likewise.
13509         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
13510         behavior...
13511         (gl_FUNC_STRERROR_0): ...into new macro.
13512         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
13513         is overridden.
13514         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
13515         * modules/strerror-override (Files): Add strerror.m4.
13516         (configure.ac): Also provide override for 0 when needed.
13517         * doc/posix-functions/strerror.texi (strerror): Document this.
13518         * doc/posix-functions/perror.texi (perror): Likewise.
13519
13520         perror: adjust array size
13521         * modules/perror (Depends-on): Add strerror-override.
13522         * lib/perror.c (perror): Use it to avoid magic number.
13523
13524         strerror-override: reduce size
13525         * lib/strerror-override.c (strerror_override): Use fewer lines.
13526
13527 2011-06-20  Bruno Haible  <bruno@clisp.org>
13528
13529         pathmax: Ensure correct value for PATH_MAX on HP-UX.
13530         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
13531
13532 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
13533
13534         alloca: port to compilers that can optimize like GCC 4.6.0
13535         * lib/alloca.c (find_stack_direction): New signature, taken from
13536         Autoconf git.  This works with GCC 4.6.0.  This code should never
13537         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
13538         be used with other compilers that optimize as well as GCC 4.6.0 does.
13539         (alloca): Adjust to new signature.
13540         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
13541         New macro, which patches Autoconf in a similar way.
13542
13543         c-stack: stop worrying about stack direction
13544         * lib/c-stack.c (find_stack_direction): Remove.
13545         (segv_handler): Don't worry about stack direction growth, as it's
13546         too much of a pain to configure this correctly, given how compilers
13547         are optimizing-away our stack-growth detection code.  Instead, assume
13548         that any access to just before or just after the stack is OK.
13549         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
13550         Don't require AC_FUNC_ALLOCA; no longer needed.
13551
13552 2011-06-20  Eric Blake  <eblake@redhat.com>
13553
13554         test-stat: don't allocate PATH_MAX bytes
13555         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
13556         PATH_MAX-sized buffer.
13557         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
13558         * modules/stat-tests (Depends-on): Likewise.
13559         * tests/test-fstatat.c (includes): Drop pathmax.h.
13560         * tests/test-stat.c (includes): Likewise.
13561         Reported by Bruno Haible.
13562
13563 2011-06-20  Bruno Haible  <bruno@clisp.org>
13564
13565         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
13566         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
13567         * lib/float.c: New file.
13568         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
13569         REPLACE_FLOAT_LDBL.
13570         * modules/float (Files): Add lib/float.c.
13571         (configure.ac): Invoke AC_LIBOBJ.
13572         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
13573
13574 2011-06-20  Bruno Haible  <bruno@clisp.org>
13575
13576         Tests for module 'float'.
13577         * modules/float-tests: New file.
13578         * tests/test-float.c: New file.
13579
13580 2011-06-19  Bruno Haible  <bruno@clisp.org>
13581
13582         isinf: Coding style.
13583         * lib/isinf.c: Use GNU coding style.
13584
13585 2011-06-19  Bruno Haible  <bruno@clisp.org>
13586
13587         linkat test: Avoid test failure on AIX 7.1.
13588         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
13589         * tests/test-link.h (test_link): Likewise.
13590
13591 2011-06-19  Bruno Haible  <bruno@clisp.org>
13592
13593         pread test: Avoid test failure on OpenBSD 4.9.
13594         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
13595
13596 2011-06-19  Bruno Haible  <bruno@clisp.org>
13597
13598         sprintf-posix: Fix test failure on AIX 7.1.
13599         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
13600         * doc/posix-functions/dprintf.texi: Mention limited precision problem
13601         on AIX.
13602         * doc/posix-functions/fprintf.texi: Likewise.
13603         * doc/posix-functions/printf.texi: Likewise.
13604         * doc/posix-functions/snprintf.texi: Likewise.
13605         * doc/posix-functions/sprintf.texi: Likewise.
13606         * doc/posix-functions/vdprintf.texi: Likewise.
13607         * doc/posix-functions/vfprintf.texi: Likewise.
13608         * doc/posix-functions/vprintf.texi: Likewise.
13609         * doc/posix-functions/vsnprintf.texi: Likewise.
13610         * doc/posix-functions/vsprintf.texi: Likewise.
13611
13612 2011-06-19  Bruno Haible  <bruno@clisp.org>
13613
13614         roundl-ieee: Fix test failure on AIX 7.1.
13615         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
13616         * doc/posix-functions/roundl.texi: Mention problem with negative
13617         arguments.
13618
13619 2011-06-19  Bruno Haible  <bruno@clisp.org>
13620
13621         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
13622         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
13623         * doc/posix-functions/round.texi: Mention problem with negative
13624         arguments.
13625         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
13626
13627 2011-06-19  Bruno Haible  <bruno@clisp.org>
13628
13629         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
13630         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
13631         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
13632         * doc/posix-functions/roundf.texi: Mention problem with negative
13633         arguments.
13634         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
13635
13636 2011-06-19  Bruno Haible  <bruno@clisp.org>
13637
13638         ceilf-ieee: Work around bug on MacOS X 10.5.
13639         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
13640
13641         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
13642         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
13643         IEEE compliant, avoid compiler optimizations.
13644         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
13645         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
13646         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
13647         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
13648         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
13649         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
13650         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
13651         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
13652         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
13653         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
13654
13655 2011-06-19  Bruno Haible  <bruno@clisp.org>
13656
13657         ceilf-ieee: Work around bug on AIX 7.1.
13658         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
13659         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
13660
13661 2011-06-19  Bruno Haible  <bruno@clisp.org>
13662
13663         ceil-ieee: Work around bug on AIX 7.1.
13664         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
13665         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
13666
13667 2011-06-18  Bruno Haible  <bruno@clisp.org>
13668
13669         fsync test: Avoid test failure on MacOS X and AIX.
13670         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
13671         EINVAL.
13672
13673 2011-06-18  Bruno Haible  <bruno@clisp.org>
13674
13675         openat, fdopendir tests: Fix link errors.
13676         * modules/openat-tests (Depends-on): Add progname.
13677         * modules/fdopendir-tests (Depends-on): Likewise.
13678         * tests/test-fchownat.c: Include progname.h.
13679         (main): Call set_program_name.
13680         * tests/test-fstatat.c: Include progname.h.
13681         (main): Call set_program_name.
13682         * tests/test-mkdirat.c: Include progname.h.
13683         (main): Call set_program_name.
13684         * tests/test-openat.c: Include progname.h.
13685         (main): Call set_program_name.
13686         * tests/test-unlinkat.c: Include progname.h.
13687         (main): Call set_program_name.
13688         * tests/test-fdopendir.c: Include progname.h.
13689         (main): Call set_program_name.
13690
13691 2011-06-18  Bruno Haible  <bruno@clisp.org>
13692
13693         Doc update.
13694         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
13695         HP-UX.
13696         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
13697
13698 2011-06-18  Bruno Haible  <bruno@clisp.org>
13699
13700         getcwd tests: Avoid compilation error on HP-UX 11.31.
13701         * modules/getcwd-tests (Depends-on): Add pathmax.
13702         * tests/test-getcwd.c: Include pathmax.h.
13703
13704 2011-06-18  Bruno Haible  <bruno@clisp.org>
13705
13706         isfinite, isinf: Fix link error on AIX 6 and 7.
13707         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
13708         needed, also test the macro with a 'float' argument.
13709         * m4/isinf.m4 (gl_ISINF): Likewise.
13710
13711 2011-06-18  Bruno Haible  <bruno@clisp.org>
13712
13713         getloadavg: Don't clobber LIBS. Regression from previous commit.
13714         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
13715         AC_CHECK_LIB from here...
13716         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
13717         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
13718         gl_func_getloadavg_done.
13719         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13720
13721 2011-06-18  Bruno Haible  <bruno@clisp.org>
13722
13723         clean-temp: Improve documentation.
13724         * lib/clean-temp.h: Explain better how to use this module.
13725         Reported by John Darrington <john@darrington.wattle.id.au>.
13726
13727 2011-06-17  Bruno Haible  <bruno@clisp.org>
13728
13729         pread, pwrite: Avoid cc warning on AIX.
13730         * lib/unistd.in.h (pread): Undefine before defining as a macro.
13731         (pwrite): Likewise.
13732
13733 2011-06-17  Bruno Haible  <bruno@clisp.org>
13734
13735         spawn-pipe tests: Fix link error.
13736         * tests/test-spawn-pipe-child.c: Undefine fprintf.
13737         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13738
13739 2011-06-17  Bruno Haible  <bruno@clisp.org>
13740
13741         Tests: Remove unnecessary dependency.
13742         * modules/canonicalize-tests (Depends-on): Remove progname.
13743         * modules/chown-tests (Depends-on): Likewise.
13744         * modules/dirname-tests (Depends-on): Likewise.
13745         * modules/fdopendir-tests (Depends-on): Likewise.
13746         * modules/fdutimensat-tests (Depends-on): Likewise.
13747         * modules/hash-tests (Depends-on): Likewise.
13748         * modules/lchown-tests (Depends-on): Likewise.
13749         * modules/linkat-tests (Depends-on): Likewise.
13750         * modules/renameat-tests (Depends-on): Likewise.
13751         * modules/spawn-pipe-tests (Depends-on): Likewise.
13752         * modules/utimensat-tests (Depends-on): Likewise.
13753
13754 2011-06-17  Bruno Haible  <bruno@clisp.org>
13755
13756         spawn-pipe tests: Fix link error.
13757         * tests/test-spawn-pipe-child.c: Undefine fflush.
13758
13759 2011-06-17  Bruno Haible  <bruno@clisp.org>
13760
13761         Fix tests link errors.
13762         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
13763         * modules/chown-tests (Makefile.am): Don't link test-chown with
13764         LIBINTL.
13765         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
13766         LIBINTL.
13767         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
13768         LIBINTL.
13769         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
13770         LIBINTL.
13771
13772 2011-06-16  Bruno Haible  <bruno@clisp.org>
13773
13774         crypto/gc-sha1: Fix recent regression.
13775         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
13776         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
13777
13778         crypto/gc-md5: Fix recent regression.
13779         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
13780
13781         crypto/gc-md4: Fix recent regression.
13782         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
13783         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
13784
13785         crypto/gc-arctwo: Fix recent regression.
13786         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
13787         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
13788
13789         crypto/gc-rijndael: Fix recent regression.
13790         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
13791         (configure.ac): Invoke AC_LIBOBJ here.
13792         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
13793         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13794
13795         crypto/gc-hmac-sha1: Fix recent regression.
13796         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
13797         (configure.ac): Invoke AC_LIBOBJ here.
13798         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
13799         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13800
13801         crypto/gc-hmac-md5: Fix recent regression.
13802         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
13803         (configure.ac): Invoke AC_LIBOBJ here.
13804         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
13805         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13806
13807         crypto/gc-des: Fix recent regression.
13808         * modules/crypto/gc-des (Files): Remove m4/des.m4.
13809         (configure.ac): Invoke AC_LIBOBJ here.
13810         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
13811         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13812
13813         crypto/gc-arcfour: Fix recent regression.
13814         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
13815         (configure.ac): Invoke AC_LIBOBJ here.
13816         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
13817         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13818
13819 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
13820
13821         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
13822         After the 2011-05-21 change, this macro requires
13823         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
13824         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
13825
13826 2011-06-16  Bruno Haible  <bruno@clisp.org>
13827
13828         fprintftime: Move AC_LIBOBJ invocations to module description.
13829         * m4/fprintftime.m4: Remove file.
13830         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
13831         (configure.ac): Remove gl_FPRINTFTIME call.
13832         (Makefile.am): Augment lib_SOURCES.
13833         Reported by Jim Meyering.
13834
13835 2011-06-16  Bruno Haible  <bruno@clisp.org>
13836
13837         tmpfile-safer: Finish 2011-05-23 commit.
13838         * m4/stdio-safer.m4: Really remove file.
13839         Reported by Jim Meyering.
13840
13841 2011-06-16  Bruno Haible  <bruno@clisp.org>
13842
13843         syntax-check: Fix typo.
13844         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
13845         printf-posix.m4.
13846         Reported by Jim Meyering.
13847
13848 2011-06-13  Jim Meyering  <meyering@redhat.com>
13849
13850         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
13851         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
13852
13853 2011-05-23  Bruno Haible  <bruno@clisp.org>
13854
13855         yesno: Move AC_LIBOBJ invocations to module description.
13856         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
13857         * modules/yesno (Makefile.am): Augment lib_SOURCES.
13858
13859 2011-05-23  Bruno Haible  <bruno@clisp.org>
13860
13861         xstrtol: Move AC_LIBOBJ invocations to module description.
13862         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
13863         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
13864
13865 2011-05-23  Bruno Haible  <bruno@clisp.org>
13866
13867         xstrtold: Move AC_LIBOBJ invocations to module description.
13868         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
13869         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
13870
13871 2011-05-23  Bruno Haible  <bruno@clisp.org>
13872
13873         xstrtod: Move AC_LIBOBJ invocations to module description.
13874         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
13875         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
13876
13877 2011-05-23  Bruno Haible  <bruno@clisp.org>
13878
13879         xnanosleep: Move AC_LIBOBJ invocations to module description.
13880         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
13881         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
13882
13883 2011-05-23  Bruno Haible  <bruno@clisp.org>
13884
13885         xgetcwd: Move AC_LIBOBJ invocations to module description.
13886         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
13887         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
13888
13889 2011-05-23  Bruno Haible  <bruno@clisp.org>
13890
13891         xalloc: Move AC_LIBOBJ invocations to module description.
13892         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
13893         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
13894
13895 2011-05-23  Bruno Haible  <bruno@clisp.org>
13896
13897         write-any-file: Move AC_LIBOBJ invocations to module description.
13898         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
13899         invocation.
13900         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
13901
13902 2011-05-23  Bruno Haible  <bruno@clisp.org>
13903
13904         utimens: Move AC_LIBOBJ invocations to module description.
13905         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
13906         * modules/utimens (Makefile.am): Augment lib_SOURCES.
13907
13908 2011-05-23  Bruno Haible  <bruno@clisp.org>
13909
13910         utimecmp: Move AC_LIBOBJ invocations to module description.
13911         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
13912         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
13913
13914 2011-05-23  Bruno Haible  <bruno@clisp.org>
13915
13916         userspec: Move AC_LIBOBJ invocations to module description.
13917         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
13918         * modules/userspec (Makefile.am): Augment lib_SOURCES.
13919
13920 2011-05-23  Bruno Haible  <bruno@clisp.org>
13921
13922         unlinkdir: Move AC_LIBOBJ invocations to module description.
13923         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
13924         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
13925
13926 2011-05-23  Bruno Haible  <bruno@clisp.org>
13927
13928         unistd-safer: Move AC_LIBOBJ invocations to module description.
13929         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
13930         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
13931
13932 2011-05-23  Bruno Haible  <bruno@clisp.org>
13933
13934         tempname: Move AC_LIBOBJ invocations to module description.
13935         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
13936         * modules/tempname (Makefile.am): Augment lib_SOURCES.
13937
13938 2011-05-23  Bruno Haible  <bruno@clisp.org>
13939
13940         strftime: Move AC_LIBOBJ invocations to module description.
13941         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
13942         * modules/strftime (Makefile.am): Augment lib_SOURCES.
13943
13944 2011-05-23  Bruno Haible  <bruno@clisp.org>
13945
13946         stdlib-safer: Move AC_LIBOBJ invocations to module description.
13947         * m4/stdlib-safer.m4: Remove file.
13948         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
13949         (configure.ac): Remove gl_STDLIB_SAFER call.
13950         (Makefile.am): Augment lib_SOURCES.
13951
13952 2011-05-23  Bruno Haible  <bruno@clisp.org>
13953
13954         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
13955         * m4/stdio-safer.m4: Remove file.
13956         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
13957         (configure.ac): Remove gl_TMPFILE_SAFER call.
13958         (Makefile.am): Augment lib_SOURCES.
13959
13960 2011-05-23  Bruno Haible  <bruno@clisp.org>
13961
13962         popen-safer: Move AC_LIBOBJ invocations to module description.
13963         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
13964         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
13965         (configure.ac): Remove gl_POPEN_SAFER call.
13966         (Makefile.am): Augment lib_SOURCES.
13967
13968 2011-05-23  Bruno Haible  <bruno@clisp.org>
13969
13970         freopen-safer: Move AC_LIBOBJ invocations to module description.
13971         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
13972         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
13973         (configure.ac): Remove gl_FREOPEN_SAFER call.
13974         (Makefile.am): Augment lib_SOURCES.
13975
13976 2011-05-23  Bruno Haible  <bruno@clisp.org>
13977
13978         fopen-safer: Move AC_LIBOBJ invocations to module description.
13979         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
13980         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
13981         (configure.ac): Remove gl_FOPEN_SAFER call.
13982         (Makefile.am): Augment lib_SOURCES.
13983
13984 2011-05-23  Bruno Haible  <bruno@clisp.org>
13985
13986         crypto/sha512: Move AC_LIBOBJ invocations to module description.
13987         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
13988         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
13989
13990 2011-05-23  Bruno Haible  <bruno@clisp.org>
13991
13992         crypto/sha256: Move AC_LIBOBJ invocations to module description.
13993         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
13994         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
13995
13996 2011-05-23  Bruno Haible  <bruno@clisp.org>
13997
13998         crypto/sha1: Move AC_LIBOBJ invocations to module description.
13999         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
14000         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
14001
14002 2011-05-23  Bruno Haible  <bruno@clisp.org>
14003
14004         settime: Move AC_LIBOBJ invocations to module description.
14005         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
14006         * modules/settime (Makefile.am): Augment lib_SOURCES.
14007
14008 2011-05-23  Bruno Haible  <bruno@clisp.org>
14009
14010         savedir: Move AC_LIBOBJ invocations to module description.
14011         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
14012         * modules/savedir (Makefile.am): Augment lib_SOURCES.
14013
14014 2011-05-23  Bruno Haible  <bruno@clisp.org>
14015
14016         save-cwd: Move AC_LIBOBJ invocations to module description.
14017         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
14018         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
14019
14020 2011-05-23  Bruno Haible  <bruno@clisp.org>
14021
14022         same: Move AC_LIBOBJ invocations to module description.
14023         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
14024         * modules/same (Makefile.am): Augment lib_SOURCES.
14025
14026 2011-05-23  Bruno Haible  <bruno@clisp.org>
14027
14028         safe-write: Move AC_LIBOBJ invocations to module description.
14029         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
14030         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
14031         instead of gl_SAFE_WRITE.
14032         (Makefile.am): Augment lib_SOURCES.
14033
14034 2011-05-23  Bruno Haible  <bruno@clisp.org>
14035
14036         safe-read: Move AC_LIBOBJ invocations to module description.
14037         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
14038         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
14039         of gl_SAFE_READ.
14040         (Makefile.am): Augment lib_SOURCES.
14041
14042 2011-05-23  Bruno Haible  <bruno@clisp.org>
14043
14044         safe-alloc: Move AC_LIBOBJ invocations to module description.
14045         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
14046         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
14047
14048 2011-05-23  Bruno Haible  <bruno@clisp.org>
14049
14050         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
14051         * m4/rijndael.m4: Remove file.
14052         * modules/crypto/rijndael (Files): Remove it.
14053         (configure.ac): Remove gl_RIJNDAEL call.
14054         (Makefile.am): Augment lib_SOURCES.
14055
14056 2011-05-23  Bruno Haible  <bruno@clisp.org>
14057
14058         readtokens: Move AC_LIBOBJ invocations to module description.
14059         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
14060         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
14061
14062 2011-05-23  Bruno Haible  <bruno@clisp.org>
14063
14064         read-file: Move AC_LIBOBJ invocations to module description.
14065         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
14066         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
14067         of gl_FUNC_READ_FILE.
14068         (Makefile.am): Augment lib_SOURCES.
14069
14070 2011-05-23  Bruno Haible  <bruno@clisp.org>
14071
14072         quotearg: Move AC_LIBOBJ invocations to module description.
14073         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
14074         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
14075
14076 2011-05-23  Bruno Haible  <bruno@clisp.org>
14077
14078         quote: Move AC_LIBOBJ invocations to module description.
14079         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
14080         * modules/quote (Makefile.am): Augment lib_SOURCES.
14081
14082 2011-05-23  Bruno Haible  <bruno@clisp.org>
14083
14084         posixver: Move AC_LIBOBJ invocations to module description.
14085         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
14086         * modules/posixver (Makefile.am): Augment lib_SOURCES.
14087
14088 2011-05-23  Bruno Haible  <bruno@clisp.org>
14089
14090         posixtm: Move AC_LIBOBJ invocations to module description.
14091         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
14092         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
14093
14094 2011-05-23  Bruno Haible  <bruno@clisp.org>
14095
14096         physmem: Move AC_LIBOBJ invocations to module description.
14097         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
14098         * modules/physmem (Makefile.am): Augment lib_SOURCES.
14099
14100 2011-05-23  Bruno Haible  <bruno@clisp.org>
14101
14102         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
14103         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
14104         invocation.
14105         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
14106
14107 2011-05-23  Bruno Haible  <bruno@clisp.org>
14108
14109         mpsort: Move AC_LIBOBJ invocations to module description.
14110         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
14111         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
14112
14113 2011-05-23  Bruno Haible  <bruno@clisp.org>
14114
14115         modechange: Move AC_LIBOBJ invocations to module description.
14116         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
14117         * modules/modechange (Makefile.am): Augment lib_SOURCES.
14118
14119 2011-05-23  Bruno Haible  <bruno@clisp.org>
14120
14121         mkdir-p: Move AC_LIBOBJ invocations to module description.
14122         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
14123         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
14124
14125 2011-05-23  Bruno Haible  <bruno@clisp.org>
14126
14127         mkancesdirs: Move AC_LIBOBJ invocations to module description.
14128         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
14129         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
14130
14131 2011-05-23  Bruno Haible  <bruno@clisp.org>
14132
14133         mgetgroups: Move AC_LIBOBJ invocations to module description.
14134         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
14135         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
14136
14137 2011-05-23  Bruno Haible  <bruno@clisp.org>
14138
14139         memxor: Move AC_LIBOBJ invocations to module description.
14140         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
14141         * modules/memxor (Makefile.am): Augment lib_SOURCES.
14142
14143 2011-05-23  Bruno Haible  <bruno@clisp.org>
14144
14145         memcoll: Move AC_LIBOBJ invocations to module description.
14146         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
14147         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
14148
14149 2011-05-23  Bruno Haible  <bruno@clisp.org>
14150
14151         memcasecmp: Move AC_LIBOBJ invocations to module description.
14152         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
14153         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
14154
14155 2011-05-23  Bruno Haible  <bruno@clisp.org>
14156
14157         crypto/md5: Move AC_LIBOBJ invocations to module description.
14158         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
14159         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
14160
14161 2011-05-23  Bruno Haible  <bruno@clisp.org>
14162
14163         crypto/md4: Move AC_LIBOBJ invocations to module description.
14164         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
14165         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
14166
14167 2011-05-23  Bruno Haible  <bruno@clisp.org>
14168
14169         crypto/md2: Move AC_LIBOBJ invocations to module description.
14170         * m4/md2.m4: Remove file.
14171         * modules/crypto/md2 (Files): Remove it.
14172         (configure.ac): Remove gl_MD2 call.
14173         (Makefile.am): Augment lib_SOURCES.
14174
14175 2011-05-23  Bruno Haible  <bruno@clisp.org>
14176
14177         long-options: Move AC_LIBOBJ invocations to module description.
14178         * m4/long-options.m4: Remove file.
14179         * modules/long-options (Files): Remove it.
14180         (configure.ac): Remove gl_LONG_OPTIONS call.
14181         (Makefile.am): Augment lib_SOURCES.
14182
14183 2011-05-23  Bruno Haible  <bruno@clisp.org>
14184
14185         i-ring: Move AC_LIBOBJ invocations to module description.
14186         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
14187         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
14188
14189 2011-05-23  Bruno Haible  <bruno@clisp.org>
14190
14191         idcache: Move AC_LIBOBJ invocations to module description.
14192         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
14193         * modules/idcache (Makefile.am): Augment lib_SOURCES.
14194
14195 2011-05-23  Bruno Haible  <bruno@clisp.org>
14196
14197         human: Move AC_LIBOBJ invocations to module description.
14198         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
14199         * modules/human (Makefile.am): Augment lib_SOURCES.
14200
14201 2011-05-23  Bruno Haible  <bruno@clisp.org>
14202
14203         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
14204         * m4/hmac-sha1.m4: Remove file.
14205         * modules/crypto/hmac-sha1 (Files): Remove it.
14206         (configure.ac): Remove gl_HMAC_SHA1 call.
14207         (Makefile.am): Augment lib_SOURCES.
14208
14209 2011-05-23  Bruno Haible  <bruno@clisp.org>
14210
14211         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
14212         * m4/hmac-md5.m4: Remove file.
14213         * modules/crypto/hmac-md5 (Files): Remove it.
14214         (configure.ac): Remove gl_HMAC_MD5 call.
14215         (Makefile.am): Augment lib_SOURCES.
14216
14217 2011-05-23  Bruno Haible  <bruno@clisp.org>
14218
14219         hash: Move AC_LIBOBJ invocations to module description.
14220         * m4/hash.m4: Remove file.
14221         * modules/hash (Files): Remove it.
14222         (configure.ac): Remove gl_HASH call.
14223         (Makefile.am): Augment lib_SOURCES.
14224
14225 2011-05-23  Bruno Haible  <bruno@clisp.org>
14226
14227         hard-locale: Move AC_LIBOBJ invocations to module description.
14228         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
14229         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
14230
14231 2011-05-23  Bruno Haible  <bruno@clisp.org>
14232
14233         getugroups: Move AC_LIBOBJ invocations to module description.
14234         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
14235         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
14236
14237 2011-05-23  Bruno Haible  <bruno@clisp.org>
14238
14239         gettime: Move AC_LIBOBJ invocations to module description.
14240         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
14241         * modules/gettime (Makefile.am): Augment lib_SOURCES.
14242
14243 2011-05-23  Bruno Haible  <bruno@clisp.org>
14244
14245         getndelim2: Move AC_LIBOBJ invocations to module description.
14246         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
14247         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
14248
14249 2011-05-23  Bruno Haible  <bruno@clisp.org>
14250
14251         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
14252         * m4/gc-pbkdf2-sha1.m4: Remove file.
14253         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
14254         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
14255         (Makefile.am): Augment lib_SOURCES.
14256
14257 2011-05-23  Bruno Haible  <bruno@clisp.org>
14258
14259         fts: Move AC_LIBOBJ invocations to module description.
14260         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
14261         * modules/fts (configure.ac): ... to here.
14262
14263 2011-05-23  Bruno Haible  <bruno@clisp.org>
14264
14265         file-type: Move AC_LIBOBJ invocations to module description.
14266         * m4/file-type.m4: Remove file.
14267         * modules/file-type (Files): Remove it.
14268         (configure.ac): Remove gl_FILE_TYPE call.
14269         (Makefile.am): Augment lib_SOURCES.
14270
14271 2011-05-23  Bruno Haible  <bruno@clisp.org>
14272
14273         filenamecat*: Respect rules for use of AC_LIBOBJ.
14274         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
14275         Remove AC_LIBOBJ invocation.
14276         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
14277         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
14278
14279 2011-05-23  Bruno Haible  <bruno@clisp.org>
14280
14281         filemode: Move AC_LIBOBJ invocations to module description.
14282         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
14283         * modules/filemode (Makefile.am): Augment lib_SOURCES.
14284
14285 2011-05-23  Bruno Haible  <bruno@clisp.org>
14286
14287         openat-safer: Move AC_LIBOBJ invocations to module description.
14288         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
14289         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
14290
14291 2011-05-23  Bruno Haible  <bruno@clisp.org>
14292
14293         fcntl-safer: Move AC_LIBOBJ invocations to module description.
14294         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
14295         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
14296
14297 2011-05-23  Bruno Haible  <bruno@clisp.org>
14298
14299         exclude: Move AC_LIBOBJ invocations to module description.
14300         * m4/exclude.m4: Remove file.
14301         * modules/exclude (Files): Remove it.
14302         (configure.ac): Remove gl_EXCLUDE call.
14303         (Makefile.am): Augment lib_SOURCES.
14304
14305 2011-05-23  Bruno Haible  <bruno@clisp.org>
14306
14307         dirname*: Respect rules for use of AC_LIBOBJ.
14308         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
14309         invocations.
14310         * modules/dirname (Makefile.am): Augment lib_SOURCES.
14311         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
14312
14313 2011-05-23  Bruno Haible  <bruno@clisp.org>
14314
14315         dirent-safer: Move AC_LIBOBJ invocations to module description.
14316         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
14317         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
14318
14319 2011-05-23  Bruno Haible  <bruno@clisp.org>
14320
14321         crypto/des: Move AC_LIBOBJ invocations to module description.
14322         * m4/des.m4: Remove file.
14323         * modules/crypto/des (Files): Remove it.
14324         (configure.ac): Remove gl_DES call.
14325         (Makefile.am): Augment lib_SOURCES.
14326
14327 2011-05-23  Bruno Haible  <bruno@clisp.org>
14328
14329         cycle-check: Move AC_LIBOBJ invocations to module description.
14330         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
14331         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
14332
14333 2011-05-23  Bruno Haible  <bruno@clisp.org>
14334
14335         c-strtold: Move AC_LIBOBJ invocations to module description.
14336         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
14337         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
14338
14339 2011-05-23  Bruno Haible  <bruno@clisp.org>
14340
14341         c-strtod: Move AC_LIBOBJ invocations to module description.
14342         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
14343         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
14344
14345 2011-05-23  Bruno Haible  <bruno@clisp.org>
14346
14347         crc: Move AC_LIBOBJ invocations to module description.
14348         * m4/crc.m4: Remove file.
14349         * modules/crc (Files): Remove it.
14350         (configure.ac): Remove gl_CRC call.
14351         (Makefile.am): Augment lib_SOURCES.
14352
14353 2011-05-23  Bruno Haible  <bruno@clisp.org>
14354
14355         close-stream: Move AC_LIBOBJ invocations to module description.
14356         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
14357         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
14358
14359 2011-05-23  Bruno Haible  <bruno@clisp.org>
14360
14361         closeout: Move AC_LIBOBJ invocations to module description.
14362         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
14363         * modules/closeout (Makefile.am): Augment lib_SOURCES.
14364
14365 2011-05-23  Bruno Haible  <bruno@clisp.org>
14366
14367         closein: Move AC_LIBOBJ invocations to module description.
14368         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
14369         * modules/closein (Makefile.am): Augment lib_SOURCES.
14370
14371 2011-05-23  Bruno Haible  <bruno@clisp.org>
14372
14373         cloexec: Move AC_LIBOBJ invocations to module description.
14374         * m4/cloexec.m4: Remove file.
14375         * modules/cloexec (Files): Remove it.
14376         (configure.ac): Remove gl_CLOEXEC call.
14377         (Makefile.am): Augment lib_SOURCES.
14378
14379 2011-05-23  Bruno Haible  <bruno@clisp.org>
14380
14381         check-version: Move AC_LIBOBJ invocations to module description.
14382         * m4/check-version.m4: Remove file.
14383         * modules/check-version (Files): Remove it.
14384         (configure.ac): Remove gl_CHECK_VERSION call.
14385         (Makefile.am): Augment lib_SOURCES.
14386
14387 2011-05-23  Bruno Haible  <bruno@clisp.org>
14388
14389         chdir-safer: Move AC_LIBOBJ invocations to module description.
14390         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
14391         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
14392
14393 2011-05-23  Bruno Haible  <bruno@clisp.org>
14394
14395         canonicalize: Move AC_LIBOBJ invocations to module description.
14396         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
14397         AC_LIBOBJ invocation.
14398         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
14399
14400 2011-05-23  Bruno Haible  <bruno@clisp.org>
14401
14402         canon-host: Move AC_LIBOBJ invocations to module description.
14403         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
14404         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
14405         instead of gl_CANON_HOST.
14406         (Makefile.am): Augment lib_SOURCES.
14407
14408 2011-05-23  Bruno Haible  <bruno@clisp.org>
14409
14410         backupfile: Move AC_LIBOBJ invocations to module description.
14411         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
14412         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
14413
14414 2011-05-23  Bruno Haible  <bruno@clisp.org>
14415
14416         argmatch: Move AC_LIBOBJ invocations to module description.
14417         * m4/argmatch.m4: Remove file.
14418         * modules/argmatch (Files): Remove it.
14419         (configure.ac): Remove gl_ARGMATCH call.
14420         (Makefile.am): Augment lib_SOURCES.
14421
14422 2011-05-23  Bruno Haible  <bruno@clisp.org>
14423
14424         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
14425         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
14426         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
14427
14428 2011-05-23  Bruno Haible  <bruno@clisp.org>
14429
14430         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
14431         * m4/arcfour.m4: Remove file.
14432         * modules/crypto/arcfour (Files): Remove it.
14433         (configure.ac): Remove gl_ARCFOUR call.
14434         (Makefile.am): Augment lib_SOURCES.
14435
14436 2011-05-22  Bruno Haible  <bruno@clisp.org>
14437
14438         write: Move AC_LIBOBJ invocations to module description.
14439         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
14440         * modules/write (configure.ac): ... to here.
14441
14442 2011-05-22  Bruno Haible  <bruno@clisp.org>
14443
14444         wmemset: Move AC_LIBOBJ invocations to module description.
14445         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
14446         here...
14447         * modules/wmemset (configure.ac): ... to here.
14448
14449 2011-05-22  Bruno Haible  <bruno@clisp.org>
14450
14451         wmemmove: Move AC_LIBOBJ invocations to module description.
14452         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
14453         here...
14454         * modules/wmemmove (configure.ac): ... to here.
14455
14456 2011-05-22  Bruno Haible  <bruno@clisp.org>
14457
14458         wmemcpy: Move AC_LIBOBJ invocations to module description.
14459         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
14460         here...
14461         * modules/wmemcpy (configure.ac): ... to here.
14462
14463 2011-05-22  Bruno Haible  <bruno@clisp.org>
14464
14465         wmemcmp: Move AC_LIBOBJ invocations to module description.
14466         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
14467         here...
14468         * modules/wmemcmp (configure.ac): ... to here.
14469
14470 2011-05-22  Bruno Haible  <bruno@clisp.org>
14471
14472         wmemchr: Move AC_LIBOBJ invocations to module description.
14473         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
14474         here...
14475         * modules/wmemchr (configure.ac): ... to here.
14476
14477 2011-05-22  Bruno Haible  <bruno@clisp.org>
14478
14479         wcswidth: Move AC_LIBOBJ invocations to module description.
14480         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
14481         here...
14482         * modules/wcswidth (configure.ac): ... to here.
14483
14484 2011-05-22  Bruno Haible  <bruno@clisp.org>
14485
14486         wcwidth: Respect rules for use of AC_LIBOBJ.
14487         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
14488         invocation from here...
14489         * modules/wcwidth (configure.ac): ... to here.
14490         (Depends-on): Update conditions.
14491
14492 2011-05-22  Bruno Haible  <bruno@clisp.org>
14493
14494         wctype: Move AC_LIBOBJ invocations to module description.
14495         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
14496         invocation from here...
14497         * modules/wctype (configure.ac): ... to here.
14498         (Depends-on): Update conditions.
14499
14500 2011-05-22  Bruno Haible  <bruno@clisp.org>
14501
14502         wctrans: Move AC_LIBOBJ invocations to module description.
14503         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
14504         invocation from here...
14505         * modules/wctrans (configure.ac): ... to here.
14506
14507 2011-05-22  Bruno Haible  <bruno@clisp.org>
14508
14509         wctomb: Move AC_LIBOBJ invocations to module description.
14510         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
14511         invocations from here...
14512         * modules/wctomb (configure.ac): ... to here.
14513
14514 2011-05-22  Bruno Haible  <bruno@clisp.org>
14515
14516         wctob: Move AC_LIBOBJ invocations to module description.
14517         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
14518         gl_PREREQ_WCTOB invocations from here...
14519         * modules/wctob (configure.ac): ... to here.
14520         (Depends-on): Update conditions.
14521
14522 2011-05-22  Bruno Haible  <bruno@clisp.org>
14523
14524         wcsxfrm: Move AC_LIBOBJ invocations to module description.
14525         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
14526         here...
14527         * modules/wcsxfrm (configure.ac): ... to here.
14528
14529 2011-05-22  Bruno Haible  <bruno@clisp.org>
14530
14531         wcstok: Move AC_LIBOBJ invocations to module description.
14532         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
14533         * modules/wcstok (configure.ac): ... to here.
14534
14535 2011-05-22  Bruno Haible  <bruno@clisp.org>
14536
14537         wcsstr: Move AC_LIBOBJ invocations to module description.
14538         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
14539         * modules/wcsstr (configure.ac): ... to here.
14540
14541 2011-05-22  Bruno Haible  <bruno@clisp.org>
14542
14543         wcsspn: Move AC_LIBOBJ invocations to module description.
14544         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
14545         * modules/wcsspn (configure.ac): ... to here.
14546
14547 2011-05-22  Bruno Haible  <bruno@clisp.org>
14548
14549         wcsrtombs: Move AC_LIBOBJ invocations to module description.
14550         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
14551         gl_PREREQ_WCSRTOMBS invocations from here...
14552         * modules/wcsrtombs (configure.ac): ... to here.
14553
14554 2011-05-22  Bruno Haible  <bruno@clisp.org>
14555
14556         wcsrchr: Move AC_LIBOBJ invocations to module description.
14557         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
14558         here...
14559         * modules/wcsrchr (configure.ac): ... to here.
14560
14561 2011-05-22  Bruno Haible  <bruno@clisp.org>
14562
14563         wcspbrk: Move AC_LIBOBJ invocations to module description.
14564         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
14565         here...
14566         * modules/wcspbrk (configure.ac): ... to here.
14567
14568 2011-05-22  Bruno Haible  <bruno@clisp.org>
14569
14570         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
14571         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
14572         gl_PREREQ_WCSNRTOMBS invocations from here...
14573         * modules/wcsnrtombs (configure.ac): ... to here.
14574
14575 2011-05-22  Bruno Haible  <bruno@clisp.org>
14576
14577         wcsnlen: Move AC_LIBOBJ invocations to module description.
14578         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
14579         here...
14580         * modules/wcsnlen (configure.ac): ... to here.
14581
14582 2011-05-22  Bruno Haible  <bruno@clisp.org>
14583
14584         wcsncpy: Move AC_LIBOBJ invocations to module description.
14585         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
14586         here...
14587         * modules/wcsncpy (configure.ac): ... to here.
14588
14589 2011-05-22  Bruno Haible  <bruno@clisp.org>
14590
14591         wcsncmp: Move AC_LIBOBJ invocations to module description.
14592         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
14593         here...
14594         * modules/wcsncmp (configure.ac): ... to here.
14595
14596 2011-05-22  Bruno Haible  <bruno@clisp.org>
14597
14598         wcsncat: Move AC_LIBOBJ invocations to module description.
14599         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
14600         here...
14601         * modules/wcsncat (configure.ac): ... to here.
14602
14603 2011-05-22  Bruno Haible  <bruno@clisp.org>
14604
14605         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
14606         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
14607         from here...
14608         * modules/wcsncasecmp (configure.ac): ... to here.
14609
14610 2011-05-22  Bruno Haible  <bruno@clisp.org>
14611
14612         wcslen: Move AC_LIBOBJ invocations to module description.
14613         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
14614         * modules/wcslen (configure.ac): ... to here.
14615
14616 2011-05-22  Bruno Haible  <bruno@clisp.org>
14617
14618         wcsdup: Move AC_LIBOBJ invocations to module description.
14619         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
14620         * modules/wcsdup (configure.ac): ... to here.
14621
14622 2011-05-22  Bruno Haible  <bruno@clisp.org>
14623
14624         wcscspn: Move AC_LIBOBJ invocations to module description.
14625         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
14626         here...
14627         * modules/wcscspn (configure.ac): ... to here.
14628
14629 2011-05-22  Bruno Haible  <bruno@clisp.org>
14630
14631         wcscpy: Move AC_LIBOBJ invocations to module description.
14632         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
14633         * modules/wcscpy (configure.ac): ... to here.
14634
14635 2011-05-22  Bruno Haible  <bruno@clisp.org>
14636
14637         wcscoll: Move AC_LIBOBJ invocations to module description.
14638         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
14639         here...
14640         * modules/wcscoll (configure.ac): ... to here.
14641
14642 2011-05-22  Bruno Haible  <bruno@clisp.org>
14643
14644         wcscmp: Move AC_LIBOBJ invocations to module description.
14645         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
14646         * modules/wcscmp (configure.ac): ... to here.
14647
14648 2011-05-22  Bruno Haible  <bruno@clisp.org>
14649
14650         wcschr: Move AC_LIBOBJ invocations to module description.
14651         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
14652         * modules/wcschr (configure.ac): ... to here.
14653
14654 2011-05-22  Bruno Haible  <bruno@clisp.org>
14655
14656         wcscat: Move AC_LIBOBJ invocations to module description.
14657         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
14658         * modules/wcscat (configure.ac): ... to here.
14659
14660 2011-05-22  Bruno Haible  <bruno@clisp.org>
14661
14662         wcscasecmp: Move AC_LIBOBJ invocations to module description.
14663         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
14664         here...
14665         * modules/wcscasecmp (configure.ac): ... to here.
14666
14667 2011-05-22  Bruno Haible  <bruno@clisp.org>
14668
14669         wcrtomb: Move AC_LIBOBJ invocations to module description.
14670         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
14671         invocations from here...
14672         * modules/wcrtomb (configure.ac): ... to here.
14673
14674 2011-05-22  Bruno Haible  <bruno@clisp.org>
14675
14676         wcpncpy: Move AC_LIBOBJ invocations to module description.
14677         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
14678         here...
14679         * modules/wcpncpy (configure.ac): ... to here.
14680
14681 2011-05-22  Bruno Haible  <bruno@clisp.org>
14682
14683         wcpcpy: Move AC_LIBOBJ invocations to module description.
14684         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
14685         * modules/wcpcpy (configure.ac): ... to here.
14686
14687 2011-05-22  Bruno Haible  <bruno@clisp.org>
14688
14689         waitpid: Move AC_LIBOBJ invocations to module description.
14690         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
14691         invocation from here...
14692         * modules/waitpid (configure.ac): ... to here.
14693
14694 2011-05-22  Bruno Haible  <bruno@clisp.org>
14695
14696         utimensat: Move AC_LIBOBJ invocations to module description.
14697         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
14698         here...
14699         * modules/utimensat (configure.ac): ... to here.
14700
14701 2011-05-22  Bruno Haible  <bruno@clisp.org>
14702
14703         usleep: Move AC_LIBOBJ invocations to module description.
14704         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
14705         here...
14706         * modules/usleep (configure.ac): ... to here.
14707
14708 2011-05-22  Bruno Haible  <bruno@clisp.org>
14709
14710         unlockpt: Move AC_LIBOBJ invocations to module description.
14711         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
14712         gl_PREREQ_UNLOCKPT invocations from here...
14713         * modules/unlockpt (configure.ac): ... to here.
14714
14715 2011-05-22  Bruno Haible  <bruno@clisp.org>
14716
14717         unlink: Respect rules for use of AC_LIBOBJ.
14718         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
14719         * modules/unlink (configure.ac): ... to here.
14720
14721 2011-05-22  Bruno Haible  <bruno@clisp.org>
14722
14723         uname: Move AC_LIBOBJ invocations to module description.
14724         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
14725         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
14726         here...
14727         * modules/uname (configure.ac): ... to here.
14728
14729 2011-05-22  Bruno Haible  <bruno@clisp.org>
14730
14731         ttyname_r: Move AC_LIBOBJ invocations to module description.
14732         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
14733         gl_PREREQ_TTYNAME_R invocations from here...
14734         * modules/ttyname_r (configure.ac): ... to here.
14735
14736 2011-05-22  Bruno Haible  <bruno@clisp.org>
14737
14738         tsearch: Move AC_LIBOBJ invocations to module description.
14739         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
14740         invocations from here...
14741         * modules/tsearch (configure.ac): ... to here.
14742
14743 2011-05-22  Bruno Haible  <bruno@clisp.org>
14744
14745         towctrans: Move AC_LIBOBJ invocations to module description.
14746         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
14747         AC_LIBOBJ invocation from here...
14748         * modules/towctrans (configure.ac): ... to here.
14749
14750 2011-05-22  Bruno Haible  <bruno@clisp.org>
14751
14752         tmpfile: Move AC_LIBOBJ invocations to module description.
14753         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
14754         invocations from here...
14755         * modules/tmpfile (configure.ac): ... to here.
14756
14757 2011-05-22  Bruno Haible  <bruno@clisp.org>
14758
14759         times: Move AC_LIBOBJ invocations to module description.
14760         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
14761         * modules/times (configure.ac): ... to here.
14762
14763 2011-05-22  Bruno Haible  <bruno@clisp.org>
14764
14765         time_r: Move AC_LIBOBJ invocations to module description.
14766         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
14767         invocations from here...
14768         * modules/time_r (configure.ac): ... to here.
14769
14770 2011-05-22  Bruno Haible  <bruno@clisp.org>
14771
14772         timegm: Move AC_LIBOBJ invocations to module description.
14773         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
14774         invocations from here...
14775         * modules/timegm (configure.ac): ... to here.
14776
14777 2011-05-22  Bruno Haible  <bruno@clisp.org>
14778
14779         tcgetsid: Move AC_LIBOBJ invocations to module description.
14780         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
14781         and gl_PREREQ_TCGETSID invocations from here...
14782         * modules/tcgetsid (configure.ac): ... to here.
14783         (Depends-on): Update conditions.
14784
14785 2011-05-22  Bruno Haible  <bruno@clisp.org>
14786
14787         symlinkat: Move AC_LIBOBJ invocations to module description.
14788         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
14789         here...
14790         * modules/symlinkat (configure.ac): ... to here.
14791
14792 2011-05-22  Bruno Haible  <bruno@clisp.org>
14793
14794         symlink: Move AC_LIBOBJ invocations to module description.
14795         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
14796         here...
14797         * modules/symlink (configure.ac): ... to here.
14798
14799 2011-05-22  Bruno Haible  <bruno@clisp.org>
14800
14801         strverscmp: Move AC_LIBOBJ invocations to module description.
14802         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
14803         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
14804         from here...
14805         * modules/strverscmp (configure.ac): ... to here.
14806
14807 2011-05-22  Bruno Haible  <bruno@clisp.org>
14808
14809         strtok_r: Move AC_LIBOBJ invocations to module description.
14810         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
14811         and gl_PREREQ_STRTOK_R invocations from here...
14812         * modules/strtok_r (configure.ac): ... to here.
14813         (Depends-on): Update conditions.
14814
14815 2011-05-22  Bruno Haible  <bruno@clisp.org>
14816
14817         strtoumax: Move AC_LIBOBJ invocations to module description.
14818         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
14819         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
14820         from here...
14821         * modules/strtoumax (configure.ac): ... to here.
14822
14823 2011-05-22  Bruno Haible  <bruno@clisp.org>
14824
14825         strtoimax: Move AC_LIBOBJ invocations to module description.
14826         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
14827         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
14828         from here...
14829         * modules/strtoimax (configure.ac): ... to here.
14830
14831 2011-05-22  Bruno Haible  <bruno@clisp.org>
14832
14833         strtoull: Move AC_LIBOBJ invocations to module description.
14834         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
14835         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
14836         from here...
14837         * modules/strtoull (configure.ac): ... to here.
14838
14839 2011-05-22  Bruno Haible  <bruno@clisp.org>
14840
14841         strtoll: Move AC_LIBOBJ invocations to module description.
14842         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
14843         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
14844         here...
14845         * modules/strtoll (configure.ac): ... to here.
14846
14847 2011-05-22  Bruno Haible  <bruno@clisp.org>
14848
14849         strtoul: Move AC_LIBOBJ invocations to module description.
14850         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
14851         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
14852         * modules/strtoul (configure.ac): ... to here.
14853
14854 2011-05-22  Bruno Haible  <bruno@clisp.org>
14855
14856         strtol: Move AC_LIBOBJ invocations to module description.
14857         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
14858         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
14859         * modules/strtol (configure.ac): ... to here.
14860
14861 2011-05-22  Bruno Haible  <bruno@clisp.org>
14862
14863         strtod: Move AC_LIBOBJ invocations to module description.
14864         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
14865         invocations from here...
14866         * modules/strtod (configure.ac): ... to here.
14867
14868 2011-05-22  Bruno Haible  <bruno@clisp.org>
14869
14870         strstr*: Move AC_LIBOBJ invocations to module description.
14871         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
14872         invocations from here...
14873         * modules/strstr-simple (configure.ac): ... to here.
14874         * modules/strstr (configure.ac): ... and here.
14875
14876 2011-05-22  Bruno Haible  <bruno@clisp.org>
14877
14878         strsignal: Move AC_LIBOBJ invocations to module description.
14879         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
14880         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
14881         * modules/strsignal (configure.ac): ... to here.
14882         (Depends-on): Update conditions.
14883
14884 2011-05-22  Bruno Haible  <bruno@clisp.org>
14885
14886         strsep: Move AC_LIBOBJ invocations to module description.
14887         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
14888         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
14889         here...
14890         * modules/strsep (configure.ac): ... to here.
14891
14892 2011-05-22  Bruno Haible  <bruno@clisp.org>
14893
14894         strptime: Move AC_LIBOBJ invocations to module description.
14895         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
14896         gl_PREREQ_STRPTIME invocations from here...
14897         * modules/strptime (configure.ac): ... to here.
14898
14899 2011-05-22  Bruno Haible  <bruno@clisp.org>
14900
14901         strpbrk: Move AC_LIBOBJ invocations to module description.
14902         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
14903         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
14904         here...
14905         * modules/strpbrk (configure.ac): ... to here.
14906
14907 2011-05-22  Bruno Haible  <bruno@clisp.org>
14908
14909         strnlen: Move AC_LIBOBJ invocations to module description.
14910         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
14911         invocations from here...
14912         * modules/strnlen (configure.ac): ... to here.
14913
14914 2011-05-22  Bruno Haible  <bruno@clisp.org>
14915
14916         strndup: Move AC_LIBOBJ invocations to module description.
14917         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
14918         invocations from here...
14919         * modules/strndup (configure.ac): ... to here.
14920         (Depends-on): Update conditions.
14921
14922 2011-05-22  Bruno Haible  <bruno@clisp.org>
14923
14924         strncat: Move AC_LIBOBJ invocations to module description.
14925         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
14926         invocations from here...
14927         * modules/strncat (configure.ac): ... to here.
14928
14929 2011-05-22  Bruno Haible  <bruno@clisp.org>
14930
14931         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
14932         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
14933         invocations from here...
14934         * modules/strdup (configure.ac): ... to here.
14935         * modules/strdup-posix (configure.ac): ... and here.
14936
14937 2011-05-22  Bruno Haible  <bruno@clisp.org>
14938
14939         strcspn: Move AC_LIBOBJ invocations to module description.
14940         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
14941         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
14942         here...
14943         * modules/strcspn (configure.ac): ... to here.
14944
14945 2011-05-22  Bruno Haible  <bruno@clisp.org>
14946
14947         strchrnul: Move AC_LIBOBJ invocations to module description.
14948         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
14949         gl_PREREQ_STRCHRNUL invocations from here...
14950         * modules/strchrnul (configure.ac): ... to here.
14951
14952 2011-05-22  Bruno Haible  <bruno@clisp.org>
14953
14954         strcasestr*: Move AC_LIBOBJ invocations to module description.
14955         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
14956         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
14957         * modules/strcasestr-simple (configure.ac): ... to here.
14958         * modules/strcasestr (configure.ac): ... and here.
14959
14960 2011-05-22  Bruno Haible  <bruno@clisp.org>
14961
14962         strcase: Move AC_LIBOBJ invocations to module description.
14963         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
14964         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
14965         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
14966         gl_PREREQ_STRNCASECMP invocations from here...
14967         * modules/strcase (configure.ac): ... to here.
14968
14969 2011-05-22  Bruno Haible  <bruno@clisp.org>
14970
14971         stpncpy: Move AC_LIBOBJ invocations to module description.
14972         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
14973         here...
14974         * modules/stpncpy (configure.ac): ... to here.
14975
14976 2011-05-22  Bruno Haible  <bruno@clisp.org>
14977
14978         stpcpy: Move AC_LIBOBJ invocations to module description.
14979         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
14980         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
14981         here...
14982         * modules/stpcpy (configure.ac): ... to here.
14983
14984 2011-05-21  Bruno Haible  <bruno@clisp.org>
14985
14986         stat: Move AC_LIBOBJ invocations to module description.
14987         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
14988         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
14989         here...
14990         * modules/stat (configure.ac): ... to here.
14991
14992 2011-05-21  Bruno Haible  <bruno@clisp.org>
14993
14994         sleep: Move AC_LIBOBJ invocations to module description.
14995         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
14996         * modules/sleep (configure.ac): ... to here.
14997
14998 2011-05-21  Bruno Haible  <bruno@clisp.org>
14999
15000         signbit: Move AC_LIBOBJ invocations to module description.
15001         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
15002         * modules/signbit (configure.ac): ... to here.
15003
15004 2011-05-21  Bruno Haible  <bruno@clisp.org>
15005
15006         sigprocmask: Move AC_LIBOBJ invocations to module description.
15007         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
15008         gl_PREREQ_SIGPROMASK invocations from here...
15009         * modules/sigprocmask (configure.ac): ... to here.
15010
15011 2011-05-21  Bruno Haible  <bruno@clisp.org>
15012
15013         sigaction: Move AC_LIBOBJ invocations to module description.
15014         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
15015         gl_PREREQ_SIGACTION invocations from here...
15016         * modules/sigaction (configure.ac): ... to here.
15017
15018 2011-05-21  Bruno Haible  <bruno@clisp.org>
15019
15020         sig2str: Move AC_LIBOBJ invocations to module description.
15021         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
15022         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
15023         here...
15024         * modules/sig2str (configure.ac): ... to here.
15025
15026 2011-05-21  Bruno Haible  <bruno@clisp.org>
15027
15028         setlocale: Move AC_LIBOBJ invocations to module description.
15029         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
15030         gl_PREREQ_SETLOCALE invocations from here...
15031         * modules/setlocale (configure.ac): ... to here.
15032
15033 2011-05-21  Bruno Haible  <bruno@clisp.org>
15034
15035         unsetenv: Move AC_LIBOBJ invocations to module description.
15036         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
15037         and gl_PREREQ_UNSETENV invocations from here...
15038         * modules/unsetenv (configure.ac): ... to here.
15039         (Depends-on): Update.
15040
15041 2011-05-21  Bruno Haible  <bruno@clisp.org>
15042
15043         setenv: Move AC_LIBOBJ invocations to module description.
15044         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
15045         here...
15046         * modules/setenv (configure.ac): ... to here.
15047
15048 2011-05-21  Bruno Haible  <bruno@clisp.org>
15049
15050         selinux-h: Move AC_LIBOBJ invocations to module description.
15051         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
15052         AC_LIBOBJ invocation from here...
15053         * modules/selinux-h (configure.ac): ... to here.
15054
15055 2011-05-21  Bruno Haible  <bruno@clisp.org>
15056
15057         select: Respect rules for use of AC_LIBOBJ.
15058         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
15059         here...
15060         * modules/select (configure.ac): ... to here.
15061
15062 2011-05-21  Bruno Haible  <bruno@clisp.org>
15063
15064         scandir: Move AC_LIBOBJ invocations to module description.
15065         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
15066         invocations from here...
15067         * modules/scandir (configure.ac): ... to here.
15068
15069 2011-05-21  Bruno Haible  <bruno@clisp.org>
15070
15071         rpmatch: Move AC_LIBOBJ invocations to module description.
15072         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
15073         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
15074         here...
15075         * modules/rpmatch (configure.ac): ... to here.
15076
15077 2011-05-21  Bruno Haible  <bruno@clisp.org>
15078
15079         rmdir: Respect rules for use of AC_LIBOBJ.
15080         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
15081         * modules/rmdir (configure.ac): ... to here.
15082
15083 2011-05-21  Bruno Haible  <bruno@clisp.org>
15084
15085         renameat: Move AC_LIBOBJ invocations to module description.
15086         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
15087         here...
15088         * modules/renameat (configure.ac): ... to here.
15089
15090 2011-05-21  Bruno Haible  <bruno@clisp.org>
15091
15092         rename: Respect rules for use of AC_LIBOBJ.
15093         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
15094         here...
15095         * modules/rename (configure.ac): ... to here.
15096
15097 2011-05-21  Bruno Haible  <bruno@clisp.org>
15098
15099         remove: Move AC_LIBOBJ invocations to module description.
15100         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
15101         here...
15102         * modules/remove (configure.ac): ... to here.
15103
15104 2011-05-21  Bruno Haible  <bruno@clisp.org>
15105
15106         relocatable-lib: Move AC_LIBOBJ invocations to module description.
15107         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
15108         macro.
15109         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
15110         * modules/relocatable-lib (configure.ac): ... to here.
15111         * modules/relocatable-prog-wrapper (configure.ac): Invoke
15112         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
15113
15114 2011-05-21  Bruno Haible  <bruno@clisp.org>
15115
15116         relocatable-prog: Move AC_LIBOBJ invocations to module description.
15117         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
15118         here...
15119         * modules/relocatable-prog (configure.ac): ... to here.
15120
15121 2011-05-21  Bruno Haible  <bruno@clisp.org>
15122
15123         regex: Move AC_LIBOBJ invocations to module description.
15124         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
15125         invocations from here...
15126         * modules/regex (configure.ac): ... to here.
15127
15128 2011-05-21  Bruno Haible  <bruno@clisp.org>
15129
15130         realloc-*: Move AC_LIBOBJ invocations to module description.
15131         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
15132         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
15133         AC_LIBOBJ invocations from here...
15134         * modules/realloc-gnu (configure.ac): ... to here.
15135         * modules/realloc-posix (configure.ac): ... and here.
15136
15137 2011-05-21  Bruno Haible  <bruno@clisp.org>
15138
15139         readutmp: Move AC_LIBOBJ invocations to module description.
15140         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
15141         * modules/readutmp (configure.ac): ... to here.
15142
15143 2011-05-21  Bruno Haible  <bruno@clisp.org>
15144
15145         readlinkat: Move AC_LIBOBJ invocations to module description.
15146         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
15147         here...
15148         * modules/readlinkat (configure.ac): ... to here.
15149
15150 2011-05-21  Bruno Haible  <bruno@clisp.org>
15151
15152         readlink: Move AC_LIBOBJ invocations to module description.
15153         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
15154         gl_PREREQ_READLINK invocations from here...
15155         * modules/readlink (configure.ac): ... to here.
15156
15157 2011-05-21  Bruno Haible  <bruno@clisp.org>
15158
15159         readline: Move AC_LIBOBJ invocations to module description.
15160         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
15161         gl_PREREQ_READLINE invocations from here...
15162         * modules/readline (configure.ac): ... to here.
15163
15164 2011-05-21  Bruno Haible  <bruno@clisp.org>
15165
15166         read: Move AC_LIBOBJ invocations to module description.
15167         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
15168         * modules/read (configure.ac): ... to here.
15169
15170 2011-05-21  Bruno Haible  <bruno@clisp.org>
15171
15172         rawmemchr: Move AC_LIBOBJ invocations to module description.
15173         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
15174         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
15175         from here...
15176         * modules/rawmemchr (configure.ac): ... to here.
15177
15178 2011-05-21  Bruno Haible  <bruno@clisp.org>
15179
15180         random_r: Move AC_LIBOBJ invocations to module description.
15181         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
15182         gl_PREREQ_RANDOM_R invocations from here...
15183         * modules/random_r (configure.ac): ... to here.
15184
15185 2011-05-21  Bruno Haible  <bruno@clisp.org>
15186
15187         pwrite: Move AC_LIBOBJ invocations to module description.
15188         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
15189         * modules/pwrite (configure.ac): ... to here.
15190
15191 2011-05-21  Bruno Haible  <bruno@clisp.org>
15192
15193         putenv: Move AC_LIBOBJ invocations to module description.
15194         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
15195         * modules/putenv (configure.ac): ... to here.
15196
15197 2011-05-21  Bruno Haible  <bruno@clisp.org>
15198
15199         login_tty: Move AC_LIBOBJ invocations to module description.
15200         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
15201         * modules/login_tty (configure.ac): ... to here.
15202
15203 2011-05-21  Bruno Haible  <bruno@clisp.org>
15204
15205         openpty: Move AC_LIBOBJ invocations to module description.
15206         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
15207         * modules/openpty (configure.ac): ... to here.
15208
15209 2011-05-21  Bruno Haible  <bruno@clisp.org>
15210
15211         forkpty: Move AC_LIBOBJ invocations to module description.
15212         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
15213         * modules/forkpty (configure.ac): ... to here.
15214
15215 2011-05-21  Bruno Haible  <bruno@clisp.org>
15216
15217         ptsname: Move AC_LIBOBJ invocations to module description.
15218         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
15219         invocations from here...
15220         * modules/ptsname (configure.ac): ... to here.
15221
15222 2011-05-21  Bruno Haible  <bruno@clisp.org>
15223
15224         pread: Move AC_LIBOBJ invocations to module description.
15225         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
15226         * modules/pread (configure.ac): ... to here.
15227
15228 2011-05-21  Bruno Haible  <bruno@clisp.org>
15229
15230         posix_spawn*: Move AC_LIBOBJ invocations to module description.
15231         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
15232         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
15233         * modules/posix_spawn (configure.ac): ... to here.
15234         * modules/posix_spawnp (configure.ac): ... and here.
15235
15236 2011-05-21  Bruno Haible  <bruno@clisp.org>
15237
15238         popen: Move AC_LIBOBJ invocations to module description.
15239         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
15240         invocations from here...
15241         * modules/popen (configure.ac): ... to here.
15242
15243 2011-05-21  Bruno Haible  <bruno@clisp.org>
15244
15245         poll: Move AC_LIBOBJ invocations to module description.
15246         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
15247         invocations from here...
15248         * modules/poll (configure.ac): ... to here.
15249
15250 2011-05-21  Bruno Haible  <bruno@clisp.org>
15251
15252         pipe-posix: Move AC_LIBOBJ invocations to module description.
15253         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
15254         * modules/pipe-posix (configure.ac): ... to here.
15255
15256 2011-05-21  Bruno Haible  <bruno@clisp.org>
15257
15258         openat: Respect rules for use of AC_LIBOBJ.
15259         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
15260         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
15261         * modules/openat (configure.ac): ... to here.
15262
15263 2011-05-21  Bruno Haible  <bruno@clisp.org>
15264
15265         obstack-printf*: Move AC_LIBOBJ invocations to module description.
15266         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
15267         invocation from here...
15268         * modules/obstack-printf (configure.ac): ... to here.
15269         * modules/obstack-printf-posix (configure.ac): ... and here.
15270
15271 2011-05-21  Bruno Haible  <bruno@clisp.org>
15272
15273         nl_langinfo: Move AC_LIBOBJ invocations to module description.
15274         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
15275         from here...
15276         * modules/nl_langinfo (configure.ac): ... to here.
15277
15278 2011-05-21  Bruno Haible  <bruno@clisp.org>
15279
15280         nanosleep: Move AC_LIBOBJ invocations to module description.
15281         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
15282         gl_PREREQ_NANOSLEEP invocations from here...
15283         * modules/nanosleep (configure.ac): ... to here.
15284
15285 2011-05-21  Bruno Haible  <bruno@clisp.org>
15286
15287         mountlist: Move AC_LIBOBJ invocations to module description.
15288         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
15289         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
15290         * modules/mountlist (configure.ac): ... to here.
15291
15292 2011-05-21  Bruno Haible  <bruno@clisp.org>
15293
15294         mktime: Respect rules for use of AC_LIBOBJ.
15295         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
15296         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
15297         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
15298         (gl_FUNC_MKTIME_INTERNAL): ... and here...
15299         * modules/mktime (configure.ac): ... to here.
15300         * modules/mktime-internal (configure.ac): ... and here.
15301         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
15302
15303 2011-05-21  Bruno Haible  <bruno@clisp.org>
15304
15305         mkstemps: Move AC_LIBOBJ invocations to module description.
15306         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
15307         here...
15308         * modules/mkstemps (configure.ac): ... to here.
15309
15310 2011-05-21  Bruno Haible  <bruno@clisp.org>
15311
15312         mkstemp: Move AC_LIBOBJ invocations to module description.
15313         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
15314         gl_PREREQ_MKSTEMP invocations from here...
15315         * modules/mkstemp (configure.ac): ... to here.
15316
15317 2011-05-21  Bruno Haible  <bruno@clisp.org>
15318
15319         mkostemps: Move AC_LIBOBJ invocations to module description.
15320         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
15321         here...
15322         * modules/mkostemps (configure.ac): ... to here.
15323
15324 2011-05-21  Bruno Haible  <bruno@clisp.org>
15325
15326         mkostemp: Move AC_LIBOBJ invocations to module description.
15327         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
15328         gl_PREREQ_MKOSTEMP invocations from here...
15329         * modules/mkostemp (configure.ac): ... to here.
15330
15331 2011-05-21  Bruno Haible  <bruno@clisp.org>
15332
15333         mknod: Move AC_LIBOBJ invocations to module description.
15334         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
15335         * modules/mknod (configure.ac): ... to here.
15336
15337 2011-05-21  Bruno Haible  <bruno@clisp.org>
15338
15339         mkfifoat: Move AC_LIBOBJ invocations to module description.
15340         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
15341         here...
15342         * modules/mkfifoat (configure.ac): ... to here.
15343
15344 2011-05-21  Bruno Haible  <bruno@clisp.org>
15345
15346         mkfifo: Respect rules for use of AC_LIBOBJ.
15347         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
15348         here...
15349         * modules/mkfifo (configure.ac): ... to here.
15350
15351 2011-05-21  Bruno Haible  <bruno@clisp.org>
15352
15353         mkdtemp: Move AC_LIBOBJ invocations to module description.
15354         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
15355         invocations from here...
15356         * modules/mkdtemp (configure.ac): ... to here.
15357
15358 2011-05-21  Bruno Haible  <bruno@clisp.org>
15359
15360         mkdir: Move AC_LIBOBJ invocations to module description.
15361         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
15362         * modules/mkdir (configure.ac): ... to here.
15363
15364 2011-05-21  Bruno Haible  <bruno@clisp.org>
15365
15366         memset: Move AC_LIBOBJ invocations to module description.
15367         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
15368         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
15369         here...
15370         * modules/memset (configure.ac): ... to here.
15371
15372 2011-05-21  Bruno Haible  <bruno@clisp.org>
15373
15374         memrchr: Move AC_LIBOBJ invocations to module description.
15375         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
15376         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
15377         here...
15378         * modules/memrchr (configure.ac): ... to here.
15379
15380 2011-05-21  Bruno Haible  <bruno@clisp.org>
15381
15382         mempcpy: Move AC_LIBOBJ invocations to module description.
15383         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
15384         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
15385         here...
15386         * modules/mempcpy (configure.ac): ... to here.
15387
15388 2011-05-21  Bruno Haible  <bruno@clisp.org>
15389
15390         memmove: Move AC_LIBOBJ invocations to module description.
15391         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
15392         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
15393         here...
15394         * modules/memmove (configure.ac): ... to here.
15395
15396 2011-05-21  Bruno Haible  <bruno@clisp.org>
15397
15398         memmem*: Move AC_LIBOBJ invocations to module description.
15399         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
15400         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
15401         here...
15402         (gl_FUNC_MEMMEM): ... and here...
15403         * modules/memmem-simple (configure.ac): ... to here.
15404         * modules/memmem (configure.ac): ... and here.
15405
15406 2011-05-21  Bruno Haible  <bruno@clisp.org>
15407
15408         memcpy: Move AC_LIBOBJ invocations to module description.
15409         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
15410         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
15411         here...
15412         * modules/memcpy (configure.ac): ... to here.
15413
15414 2011-05-21  Bruno Haible  <bruno@clisp.org>
15415
15416         memcmp: Simplify autoconf macro.
15417         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
15418         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
15419         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
15420
15421 2011-05-21  Bruno Haible  <bruno@clisp.org>
15422
15423         memcmp: Move AC_LIBOBJ invocations to module description.
15424         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
15425         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
15426         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
15427         * modules/memcmp (configure.ac): ... to here.
15428         (Depends-on): Update conditions.
15429
15430 2011-05-21  Bruno Haible  <bruno@clisp.org>
15431
15432         memchr: Respect rules for use of AC_LIBOBJ.
15433         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
15434         invocations from here...
15435         * modules/memchr (configure.ac): ... to here.
15436
15437 2011-05-21  Bruno Haible  <bruno@clisp.org>
15438
15439         mbtowc: Move AC_LIBOBJ invocations to module description.
15440         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
15441         invocations from here...
15442         * modules/mbtowc (configure.ac): ... to here.
15443
15444 2011-05-21  Bruno Haible  <bruno@clisp.org>
15445
15446         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
15447         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
15448         gl_PREREQ_MBSRTOWCS invocations from here...
15449         * modules/mbsrtowcs (configure.ac): ... to here.
15450
15451 2011-05-21  Bruno Haible  <bruno@clisp.org>
15452
15453         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
15454         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
15455         gl_PREREQ_MBSNRTOWCS invocations from here...
15456         * modules/mbsnrtowcs (configure.ac): ... to here.
15457
15458 2011-05-21  Bruno Haible  <bruno@clisp.org>
15459
15460         mbsinit: Move AC_LIBOBJ invocations to module description.
15461         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
15462         invocations from here...
15463         * modules/mbsinit (configure.ac): ... to here.
15464
15465 2011-05-21  Bruno Haible  <bruno@clisp.org>
15466
15467         mbrlen: Move AC_LIBOBJ invocations to module description.
15468         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
15469         invocations from here...
15470         * modules/mbrlen (configure.ac): ... to here.
15471
15472 2011-05-21  Bruno Haible  <bruno@clisp.org>
15473
15474         mbrtowc: Respect rules for use of AC_LIBOBJ.
15475         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
15476         invocations from here...
15477         * modules/mbrtowc (configure.ac): ... to here.
15478
15479 2011-05-21  Bruno Haible  <bruno@clisp.org>
15480
15481         malloc-*: Move AC_LIBOBJ invocations to module description.
15482         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
15483         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
15484         AC_LIBOBJ invocations from here...
15485         * modules/malloc-gnu (configure.ac): ... to here.
15486         * modules/malloc-posix (configure.ac): ... and here.
15487
15488 2011-05-21  Bruno Haible  <bruno@clisp.org>
15489
15490         lstat, openat: Respect rules for use of AC_LIBOBJ.
15491         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
15492         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
15493         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
15494         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
15495         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
15496         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
15497         here.
15498         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
15499
15500 2011-05-21  Bruno Haible  <bruno@clisp.org>
15501
15502         lseek: Move AC_LIBOBJ invocations to module description.
15503         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
15504         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
15505         * modules/lseek (configure.ac): ... to here.
15506
15507 2011-05-21  Bruno Haible  <bruno@clisp.org>
15508
15509         linkat: Move AC_LIBOBJ invocations to module description.
15510         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
15511         here...
15512         * modules/linkat (configure.ac): ... to here.
15513
15514 2011-05-21  Bruno Haible  <bruno@clisp.org>
15515
15516         link: Respect rules for use of AC_LIBOBJ.
15517         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
15518         * modules/link (configure.ac): ... to here.
15519
15520 2011-05-21  Bruno Haible  <bruno@clisp.org>
15521
15522         lchown: Move AC_LIBOBJ invocations to module description.
15523         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
15524         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
15525         * modules/lchown (configure.ac): ... to here.
15526
15527 2011-05-21  Bruno Haible  <bruno@clisp.org>
15528
15529         iswctype: Move AC_LIBOBJ invocations to module description.
15530         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
15531         here...
15532         * modules/iswctype (configure.ac): ... to here.
15533
15534 2011-05-21  Bruno Haible  <bruno@clisp.org>
15535
15536         iswblank: Move AC_LIBOBJ invocations to module description.
15537         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
15538         here...
15539         * modules/iswblank (configure.ac): ... to here.
15540
15541 2011-05-21  Bruno Haible  <bruno@clisp.org>
15542
15543         atanl: Move AC_LIBOBJ invocations to module description.
15544         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
15545         * modules/atanl (configure.ac): ... to here.
15546
15547 2011-05-21  Bruno Haible  <bruno@clisp.org>
15548
15549         acosl: Move AC_LIBOBJ invocations to module description.
15550         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
15551         * modules/acosl (configure.ac): ... to here.
15552
15553 2011-05-21  Bruno Haible  <bruno@clisp.org>
15554
15555         asinl: Respect rules for use of AC_LIBOBJ.
15556         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
15557         * modules/asinl (configure.ac): ... to here.
15558
15559 2011-05-21  Bruno Haible  <bruno@clisp.org>
15560
15561         tanl: Move AC_LIBOBJ invocations to module description.
15562         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
15563         * modules/tanl (configure.ac): ... to here.
15564
15565 2011-05-21  Bruno Haible  <bruno@clisp.org>
15566
15567         cosl: Move AC_LIBOBJ invocations to module description.
15568         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
15569         * modules/cosl (configure.ac): ... to here.
15570
15571 2011-05-21  Bruno Haible  <bruno@clisp.org>
15572
15573         sinl: Move AC_LIBOBJ invocations to module description.
15574         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
15575         * modules/sinl (configure.ac): ... to here.
15576
15577 2011-05-21  Bruno Haible  <bruno@clisp.org>
15578
15579         logl: Move AC_LIBOBJ invocations to module description.
15580         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
15581         * modules/logl (configure.ac): ... to here.
15582
15583 2011-05-21  Bruno Haible  <bruno@clisp.org>
15584
15585         expl: Move AC_LIBOBJ invocations to module description.
15586         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
15587         * modules/expl (configure.ac): ... to here.
15588
15589 2011-05-21  Bruno Haible  <bruno@clisp.org>
15590
15591         roundl: Move AC_LIBOBJ invocations to module description.
15592         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
15593         * modules/roundl (configure.ac): ... to here.
15594
15595 2011-05-21  Bruno Haible  <bruno@clisp.org>
15596
15597         round: Move AC_LIBOBJ invocations to module description.
15598         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
15599         * modules/round (configure.ac): ... to here.
15600
15601 2011-05-21  Bruno Haible  <bruno@clisp.org>
15602
15603         roundf: Move AC_LIBOBJ invocations to module description.
15604         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
15605         * modules/roundf (configure.ac): ... to here.
15606
15607 2011-05-21  Bruno Haible  <bruno@clisp.org>
15608
15609         truncl: Move AC_LIBOBJ invocations to module description.
15610         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
15611         * modules/truncl (configure.ac): ... to here.
15612
15613 2011-05-21  Bruno Haible  <bruno@clisp.org>
15614
15615         trunc: Move AC_LIBOBJ invocations to module description.
15616         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
15617         * modules/trunc (configure.ac): ... to here.
15618
15619 2011-05-21  Bruno Haible  <bruno@clisp.org>
15620
15621         truncf: Move AC_LIBOBJ invocations to module description.
15622         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
15623         * modules/truncf (configure.ac): ... to here.
15624
15625 2011-05-21  Bruno Haible  <bruno@clisp.org>
15626
15627         ceill: Move AC_LIBOBJ invocations to module description.
15628         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
15629         * modules/ceill (configure.ac): ... to here.
15630
15631 2011-05-21  Bruno Haible  <bruno@clisp.org>
15632
15633         ceil: Move AC_LIBOBJ invocations to module description.
15634         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
15635         * modules/ceil (configure.ac): ... to here.
15636
15637 2011-05-21  Bruno Haible  <bruno@clisp.org>
15638
15639         ceilf: Move AC_LIBOBJ invocations to module description.
15640         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
15641         * modules/ceilf (configure.ac): ... to here.
15642
15643 2011-05-21  Bruno Haible  <bruno@clisp.org>
15644
15645         floorl: Respect rules for use of AC_LIBOBJ.
15646         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
15647         * modules/floorl (configure.ac): ... to here.
15648
15649 2011-05-21  Bruno Haible  <bruno@clisp.org>
15650
15651         floor: Respect rules for use of AC_LIBOBJ.
15652         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
15653         * modules/floor (configure.ac): ... to here.
15654
15655 2011-05-21  Bruno Haible  <bruno@clisp.org>
15656
15657         floorf: Move AC_LIBOBJ invocations to module description.
15658         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
15659         * modules/floorf (configure.ac): ... to here.
15660
15661 2011-05-20  Bruno Haible  <bruno@clisp.org>
15662
15663         sqrtl: Respect rules for use of AC_LIBOBJ.
15664         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
15665         * modules/sqrtl (configure.ac): ... to here.
15666
15667 2011-05-20  Bruno Haible  <bruno@clisp.org>
15668
15669         ldexpl: Respect rules for use of AC_LIBOBJ.
15670         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
15671         * modules/ldexpl (configure.ac): ... to here.
15672
15673 2011-05-20  Bruno Haible  <bruno@clisp.org>
15674
15675         frexpl*: Respect rules for use of AC_LIBOBJ.
15676         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
15677         invocation from here...
15678         * modules/frexpl (configure.ac): ... to here.
15679         * modules/frexpl-nolibm (configure.ac): ... and here.
15680
15681 2011-05-20  Bruno Haible  <bruno@clisp.org>
15682
15683         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
15684         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
15685         invocation from here...
15686         * modules/frexp (configure.ac): ... to here.
15687         * modules/frexp-nolibm (configure.ac): ... and here.
15688
15689 2011-05-20  Bruno Haible  <bruno@clisp.org>
15690
15691         isnan: Respect rules for use of AC_LIBOBJ.
15692         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
15693         invocations here.
15694         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
15695         REPLACE_ISNAN.
15696         * modules/isnand (configure.ac): Likewise.
15697         * modules/isnanl (configure.ac): Likewise.
15698
15699 2011-05-20  Bruno Haible  <bruno@clisp.org>
15700
15701         isnanl*: Respect rules for use of AC_LIBOBJ.
15702         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
15703         invocation from here...
15704         * modules/isnanl (configure.ac): ... to here.
15705         * modules/isnanl-nolibm (configure.ac): ... and here.
15706
15707 2011-05-20  Bruno Haible  <bruno@clisp.org>
15708
15709         isnand*: Move AC_LIBOBJ invocations to module description.
15710         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
15711         invocation from here...
15712         * modules/isnand (configure.ac): ... to here.
15713         * modules/isnand-nolibm (configure.ac): ... and here.
15714
15715 2011-05-20  Bruno Haible  <bruno@clisp.org>
15716
15717         isnanf*: Move AC_LIBOBJ invocations to module description.
15718         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
15719         invocation from here...
15720         * modules/isnanf (configure.ac): ... to here.
15721         * modules/isnanf-nolibm (configure.ac): ... and here.
15722
15723 2011-05-20  Bruno Haible  <bruno@clisp.org>
15724
15725         isnan*: Separate the AC_LIBOBJ invocations.
15726         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
15727         AC_LIBOBJ invocation.
15728         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
15729         here.
15730         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
15731         AC_LIBOBJ invocation.
15732         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
15733         here.
15734         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
15735         AC_LIBOBJ invocation.
15736         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
15737         here.
15738         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
15739
15740 2011-05-08  Bruno Haible  <bruno@clisp.org>
15741
15742         isinf: Move AC_LIBOBJ invocations to module description.
15743         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
15744         * modules/isinf (configure.ac): ... to here.
15745
15746 2011-05-08  Bruno Haible  <bruno@clisp.org>
15747
15748         isfinite: Move AC_LIBOBJ invocations to module description.
15749         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
15750         * modules/isfinite (configure.ac): ... to here.
15751
15752 2011-05-08  Bruno Haible  <bruno@clisp.org>
15753
15754         isblank: Move AC_LIBOBJ invocations to module description.
15755         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
15756         here...
15757         * modules/isblank (configure.ac): ... to here.
15758
15759 2011-05-08  Bruno Haible  <bruno@clisp.org>
15760
15761         isapipe: Move AC_LIBOBJ invocations to module description.
15762         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
15763         gl_PREREQ_ISAPIPE invocations from here...
15764         * modules/isapipe (configure.ac): ... to here.
15765         (Depends-on): Update condition.
15766
15767 2011-05-08  Bruno Haible  <bruno@clisp.org>
15768
15769         ioctl: Move AC_LIBOBJ invocations to module description.
15770         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
15771         invocations from here...
15772         * modules/ioctl (configure.ac): ... to here.
15773         (Depends-on): Update condition.
15774
15775 2011-05-08  Bruno Haible  <bruno@clisp.org>
15776
15777         imaxdiv: Move AC_LIBOBJ invocations to module description.
15778         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
15779         invocations from here...
15780         * modules/imaxdiv (configure.ac): ... to here.
15781
15782 2011-05-08  Bruno Haible  <bruno@clisp.org>
15783
15784         imaxabs: Move AC_LIBOBJ invocations to module description.
15785         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
15786         invocations from here...
15787         * modules/imaxabs (configure.ac): ... to here.
15788
15789 2011-05-08  Bruno Haible  <bruno@clisp.org>
15790
15791         getaddrinfo: Move AC_LIBOBJ invocations to module description.
15792         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
15793         AC_LIBOBJ invocations from here...
15794         * modules/getaddrinfo (configure.ac): ... to here.
15795         (Depends-on): Add conditions.
15796
15797 2011-05-08  Bruno Haible  <bruno@clisp.org>
15798
15799         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
15800         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
15801         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
15802         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
15803         (gl_PREREQ_INET_PTON): ... from here.
15804         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
15805         gl_PREREQ_INET_PTON here.
15806         (Depends-on): Update condition.
15807
15808 2011-05-08  Bruno Haible  <bruno@clisp.org>
15809
15810         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
15811         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
15812         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
15813         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
15814         (gl_PREREQ_INET_NTOP): ... from here.
15815         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
15816         gl_PREREQ_INET_NTOP here.
15817         (Depends-on): Update condition.
15818
15819 2011-05-08  Bruno Haible  <bruno@clisp.org>
15820
15821         iconv_open: Move AC_LIBOBJ invocations to module description.
15822         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
15823         AC_LIBOBJ invocations from here...
15824         * modules/iconv_open (configure.ac): ... to here.
15825
15826 2011-05-08  Bruno Haible  <bruno@clisp.org>
15827
15828         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
15829         If module 'iconv_open' is among the main modules and module
15830         'iconv_open-utf' is among the tests dependencies, then
15831         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
15832         return the special iconv_t values. Therefore iconv() and iconv_close()
15833         must support these special iconv_t values, already in lib, not only in
15834         tests.
15835         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
15836         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
15837         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
15838         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
15839         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
15840         (Depends-on): Add the dependencies of iconv_open-utf.
15841         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
15842         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
15843         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
15844
15845 2011-05-08  Bruno Haible  <bruno@clisp.org>
15846
15847         group-member: Move AC_LIBOBJ invocations to module description.
15848         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
15849         gl_PREREQ_GROUP_MEMBER invocations from here...
15850         * modules/group-member (configure.ac): ... to here.
15851
15852 2011-05-08  Bruno Haible  <bruno@clisp.org>
15853
15854         grantpt: Move AC_LIBOBJ invocations to module description.
15855         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
15856         invocations from here...
15857         * modules/grantpt (configure.ac): ... to here.
15858
15859 2011-05-08  Bruno Haible  <bruno@clisp.org>
15860
15861         glob: Move AC_LIBOBJ invocations to module description.
15862         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
15863         from here...
15864         * modules/glob (configure.ac): ... to here.
15865
15866 2011-05-08  Bruno Haible  <bruno@clisp.org>
15867
15868         getusershell: Move AC_LIBOBJ invocations to module description.
15869         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
15870         Move AC_LIBOBJ invocation from here...
15871         * modules/getusershell (configure.ac): ... to here.
15872         (Depends-on): Update condition.
15873
15874 2011-05-08  Bruno Haible  <bruno@clisp.org>
15875
15876         gettimeofday: Move AC_LIBOBJ invocations to module description.
15877         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
15878         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
15879         gl_PREREQ_GETTIMEOFDAY invocations from here...
15880         * modules/gettimeofday (configure.ac): ... to here.
15881
15882 2011-05-08  Bruno Haible  <bruno@clisp.org>
15883
15884         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
15885         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
15886         just gl_FUNC_TZSET.
15887         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
15888         (gl_FUNC_TZSET_CLOBBER): Remove actions.
15889         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
15890         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
15891
15892 2011-05-08  Bruno Haible  <bruno@clisp.org>
15893
15894         getsubopt: Move AC_LIBOBJ invocations to module description.
15895         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
15896         gl_PREREQ_GETSUBOPT invocations from here...
15897         * modules/getsubopt (configure.ac): ... to here.
15898
15899 2011-05-08  Bruno Haible  <bruno@clisp.org>
15900
15901         getpass-gnu: Move AC_LIBOBJ invocations to module description.
15902         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
15903         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
15904         * modules/getpass-gnu (configure.ac): ... to here.
15905
15906 2011-05-08  Bruno Haible  <bruno@clisp.org>
15907
15908         getpass: Move AC_LIBOBJ invocations to module description.
15909         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
15910         gl_PREREQ_GETPASS invocations from here...
15911         * modules/getpass (configure.ac): ... to here.
15912
15913 2011-05-08  Bruno Haible  <bruno@clisp.org>
15914
15915         getpagesize: Move AC_LIBOBJ invocations to module description.
15916         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
15917         from here...
15918         * modules/getpagesize (configure.ac): ... to here.
15919
15920 2011-05-08  Bruno Haible  <bruno@clisp.org>
15921
15922         getopt: Move AC_LIBOBJ invocations to module description.
15923         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
15924         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
15925         invocations from here...
15926         * modules/getopt-gnu (configure.ac): ... to here.
15927         * modules/getopt-posix (configure.ac): ... and here.
15928         (Depends-on): Update condition.
15929
15930 2011-05-08  Bruno Haible  <bruno@clisp.org>
15931
15932         getopt, argp: Respect rules for use of AC_LIBOBJ.
15933         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
15934         (gl_REPLACE_GETOPT_ALWAYS): New macro.
15935         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
15936         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
15937
15938 2011-05-08  Bruno Haible  <bruno@clisp.org>
15939
15940         getlogin_r: Move AC_LIBOBJ invocations to module description.
15941         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
15942         gl_PREREQ_GETLOGIN_R invocations from here...
15943         * modules/getlogin_r (configure.ac): ... to here.
15944
15945 2011-05-08  Bruno Haible  <bruno@clisp.org>
15946
15947         getlogin: Move AC_LIBOBJ invocations to module description.
15948         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
15949         here...
15950         * modules/getlogin (configure.ac): ... to here.
15951
15952 2011-05-08  Bruno Haible  <bruno@clisp.org>
15953
15954         getloadavg: Move AC_LIBOBJ invocations to module description.
15955         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
15956         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
15957         * modules/getloadavg (configure.ac): ... to here.
15958
15959 2011-05-08  Bruno Haible  <bruno@clisp.org>
15960
15961         gethrxtime: Move AC_LIBOBJ invocations to module description.
15962         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
15963         LIB_GETHRXTIME from here...
15964         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
15965         invocations from here...
15966         * modules/gethrxtime (configure.ac): ... to here.
15967
15968 2011-05-08  Bruno Haible  <bruno@clisp.org>
15969
15970         gethostname: Move AC_LIBOBJ invocations to module description.
15971         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
15972         gl_PREREQ_GETHOSTNAME invocations from here...
15973         * modules/gethostname (configure.ac): ... to here.
15974
15975 2011-05-08  Bruno Haible  <bruno@clisp.org>
15976
15977         getgroups: Move AC_LIBOBJ invocations to module description.
15978         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
15979         here...
15980         * modules/getgroups (configure.ac): ... to here.
15981
15982 2011-05-08  Bruno Haible  <bruno@clisp.org>
15983
15984         getdtablesize: Move AC_LIBOBJ invocations to module description.
15985         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
15986         invocation from here...
15987         * modules/getdtablesize (configure.ac): ... to here.
15988
15989 2011-05-08  Bruno Haible  <bruno@clisp.org>
15990
15991         getdomainname: Move AC_LIBOBJ invocations to module description.
15992         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
15993         gl_PREREQ_GETDOMAINNAME invocations from here...
15994         * modules/getdomainname (configure.ac): ... to here.
15995
15996 2011-05-08  Bruno Haible  <bruno@clisp.org>
15997
15998         getline: Move AC_LIBOBJ invocations to module description.
15999         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
16000         invocations from here...
16001         * modules/getline (configure.ac): ... to here.
16002
16003 2011-05-08  Bruno Haible  <bruno@clisp.org>
16004
16005         getline: Simplify.
16006         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
16007         It's already handled through the module dependency.
16008
16009 2011-05-08  Bruno Haible  <bruno@clisp.org>
16010
16011         getdelim: Move AC_LIBOBJ invocations to module description.
16012         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
16013         and gl_PREREQ_GETDELIM invocations from here...
16014         * modules/getdelim (configure.ac): ... to here.
16015         (Depends-on): Fix condition.
16016
16017 2011-05-08  Bruno Haible  <bruno@clisp.org>
16018
16019         getcwd: Move AC_LIBOBJ invocations to module description.
16020         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
16021         invocations from here...
16022         * modules/getcwd (configure.ac): ... to here.
16023
16024 2011-05-08  Bruno Haible  <bruno@clisp.org>
16025
16026         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
16027         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
16028         here...
16029         * modules/getcwd-lgpl (configure.ac): ... to here.
16030
16031 2011-05-07  Bruno Haible  <bruno@clisp.org>
16032
16033         crypto/gc: Move AC_LIBOBJ invocations to module description.
16034         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
16035         * modules/crypto/gc (configure.ac): ... to here.
16036
16037 2011-05-07  Bruno Haible  <bruno@clisp.org>
16038
16039         fwriting: Move AC_LIBOBJ invocations to module description.
16040         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
16041         here...
16042         * modules/fwriting (configure.ac): ... to here.
16043
16044 2011-05-07  Bruno Haible  <bruno@clisp.org>
16045
16046         fwritable: Move AC_LIBOBJ invocations to module description.
16047         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
16048         here...
16049         * modules/fwritable (configure.ac): ... to here.
16050
16051 2011-05-07  Bruno Haible  <bruno@clisp.org>
16052
16053         futimens: Move AC_LIBOBJ invocations to module description.
16054         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
16055         here...
16056         * modules/futimens (configure.ac): ... to here.
16057
16058 2011-05-07  Bruno Haible  <bruno@clisp.org>
16059
16060         ftruncate: Move AC_LIBOBJ invocations to module description.
16061         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
16062         gl_PREREQ_FTRUNCATE invocations from here...
16063         * modules/ftruncate (configure.ac): ... to here.
16064
16065 2011-05-07  Bruno Haible  <bruno@clisp.org>
16066
16067         fsync: Move AC_LIBOBJ invocations to module description.
16068         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
16069         invocations from here...
16070         * modules/fsync (configure.ac): ... to here.
16071
16072 2011-05-07  Bruno Haible  <bruno@clisp.org>
16073
16074         fsusage: Move AC_LIBOBJ invocations to module description.
16075         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
16076         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
16077         * modules/fsusage (configure.ac): ... to here.
16078
16079 2011-05-07  Bruno Haible  <bruno@clisp.org>
16080
16081         freopen: Move AC_LIBOBJ invocations to module description.
16082         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
16083         invocations from here...
16084         * modules/freopen (configure.ac): ... to here.
16085
16086 2011-05-07  Bruno Haible  <bruno@clisp.org>
16087
16088         free: Move AC_LIBOBJ invocations to module description.
16089         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
16090         invocations from here...
16091         * modules/free (configure.ac): ... to here.
16092
16093 2011-05-07  Bruno Haible  <bruno@clisp.org>
16094
16095         freadable: Move AC_LIBOBJ invocations to module description.
16096         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
16097         here...
16098         * modules/freadable (configure.ac): ... to here.
16099
16100 2011-05-07  Bruno Haible  <bruno@clisp.org>
16101
16102         fpurge: Move AC_LIBOBJ invocations to module description.
16103         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
16104         invocations from here...
16105         * modules/fpurge (configure.ac): ... to here.
16106
16107 2011-05-07  Bruno Haible  <bruno@clisp.org>
16108
16109         fpending: Move AC_LIBOBJ invocations to module description.
16110         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
16111         gl_FUNC_FPENDING.
16112         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
16113         invocations from here...
16114         * modules/fpending (configure.ac): ... to here.
16115
16116 2011-05-07  Bruno Haible  <bruno@clisp.org>
16117
16118         fopen: Move AC_LIBOBJ invocations to module description.
16119         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
16120         invocations from here...
16121         * modules/fopen (configure.ac): ... to here.
16122
16123 2011-05-07  Bruno Haible  <bruno@clisp.org>
16124
16125         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
16126         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
16127         gl_FUNC_FNMATCH_POSIX.
16128         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
16129         invocations from here...
16130         * modules/fnmatch (configure.ac): ... to here.
16131         * modules/fnmatch-gnu (configure.ac): ... and here.
16132
16133 2011-05-07  Bruno Haible  <bruno@clisp.org>
16134
16135         flock: Move AC_LIBOBJ invocations to module description.
16136         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
16137         invocations from here...
16138         * modules/flock (configure.ac): ... to here.
16139
16140 2011-05-07  Bruno Haible  <bruno@clisp.org>
16141
16142         fileblocks: Move AC_LIBOBJ invocations to module description.
16143         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
16144         gl_PREREQ_FILEBLOCKS invocations from here...
16145         * modules/fileblocks (configure.ac): ... to here.
16146
16147 2011-05-06  Bruno Haible  <bruno@clisp.org>
16148
16149         fflush: Move AC_LIBOBJ invocations to module description.
16150         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
16151         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
16152         invocations from here...
16153         * modules/fflush (configure.ac): ... to here.
16154
16155 2011-05-06  Bruno Haible  <bruno@clisp.org>
16156
16157         fdopendir: Move AC_LIBOBJ invocations to module description.
16158         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
16159         here...
16160         * modules/fdopendir (configure.ac): ... to here.
16161         (Depends-on): Improve conditions.
16162
16163 2011-05-06  Bruno Haible  <bruno@clisp.org>
16164
16165         _Exit: Move AC_LIBOBJ invocations to module description.
16166         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
16167         invocations from here...
16168         * modules/_Exit (configure.ac): ... to here.
16169
16170 2011-05-21  Bruno Haible  <bruno@clisp.org>
16171
16172         euidaccess: Respect rules for use of AC_LIBOBJ.
16173         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
16174         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
16175         from here...
16176         * modules/euidaccess (configure.ac): ... to here.
16177
16178 2011-05-06  Bruno Haible  <bruno@clisp.org>
16179
16180         error: Move AC_LIBOBJ invocations to module description.
16181         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
16182         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
16183         invocations from here...
16184         * modules/error (configure.ac): ... to here.
16185
16186 2011-05-06  Bruno Haible  <bruno@clisp.org>
16187
16188         duplocale: Move AC_LIBOBJ invocations to module description.
16189         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
16190         gl_PREREQ_DUPLOCALE invocations from here...
16191         * modules/duplocale (configure.ac): ... to here.
16192
16193 2011-05-05  Bruno Haible  <bruno@clisp.org>
16194
16195         dirfd: Move AC_LIBOBJ invocations to module description.
16196         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
16197         gl_FUNC_DIRFD.
16198         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
16199         here...
16200         * modules/dirfd (configure.ac): ... to here.
16201         (Depends-on): Fix condition.
16202
16203 2011-05-05  Bruno Haible  <bruno@clisp.org>
16204
16205         chown: Respect rules for use of AC_LIBOBJ.
16206         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
16207         * modules/chown (configure.ac): ... to here.
16208
16209 2011-05-05  Bruno Haible  <bruno@clisp.org>
16210
16211         chdir-long: Move AC_LIBOBJ invocations to module description.
16212         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
16213         gl_PREREQ_CHDIR_LONG invocations from here...
16214         * modules/chdir-long (configure.ac): ... to here.
16215
16216 2011-05-05  Bruno Haible  <bruno@clisp.org>
16217
16218         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
16219         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
16220         from here...
16221         * modules/canonicalize-lgpl (configure.ac): ... to here.
16222
16223 2011-05-05  Bruno Haible  <bruno@clisp.org>
16224
16225         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
16226         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
16227         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
16228         REPLACE_CALLOC.
16229         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
16230         * modules/calloc-gnu (configure.ac): Likewise.
16231
16232 2011-05-05  Bruno Haible  <bruno@clisp.org>
16233
16234         btowc: Move AC_LIBOBJ invocations to module description.
16235         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
16236         invocations from here...
16237         * modules/btowc (configure.ac): ... to here.
16238
16239 2011-05-21  Bruno Haible  <bruno@clisp.org>
16240
16241         atexit: Move AC_LIBOBJ invocations to module description.
16242         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
16243         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
16244         here...
16245         * modules/atexit (configure.ac): ... to here.
16246
16247 2011-05-05  Bruno Haible  <bruno@clisp.org>
16248
16249         atoll: Move AC_LIBOBJ invocations to module description.
16250         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
16251         invocations from here...
16252         * modules/atoll (configure.ac): ... to here.
16253
16254 2011-05-05  Bruno Haible  <bruno@clisp.org>
16255
16256         argz: Move AC_LIBOBJ invocations to module description.
16257         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
16258         * modules/argz (configure.ac): ... to here.
16259
16260 2011-05-05  Bruno Haible  <bruno@clisp.org>
16261
16262         alphasort: Move AC_LIBOBJ invocations to module description.
16263         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
16264         gl_PREREQ_ALPHASORT invocations from here...
16265         * modules/alphasort (configure.ac): ... to here.
16266
16267 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
16268
16269         verify: new macro verify_expr; verify_true deprecated
16270         * NEWS: Mention this.
16271         * doc/verify.texi (Compile-time Assertions): Document this.
16272         * lib/verify.h (verify_true): Deprecate.
16273         (verify_expr): New macro.
16274         * tests/test-verify.c (function): Test verify_expr.
16275
16276 2011-06-14  Jim Meyering  <meyering@redhat.com>
16277
16278         init.sh: give more portable redirection-related advice in a comment
16279         * tests/init.sh (stderr_fileno_): Update the advice in comments.
16280         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
16281         for lots of discussion.  Stefano Lattarini suggested the solution
16282         of putting "9>&2" after the command.  Reported by Bruno Haible.
16283
16284 2011-06-13  Bruno Haible  <bruno@clisp.org>
16285
16286         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
16287         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
16288         'none'.
16289
16290 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
16291
16292         ftoastr: use strtof only if HAVE_STRTOF
16293         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
16294         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
16295         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
16296         * modules/ftoastr (configure.ac): Check for strtof.
16297
16298 2011-06-13  Bruno Haible  <bruno@clisp.org>
16299
16300         gnulib-tool: Addendum to 2011-06-08 commit.
16301         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
16302         and --witness-c-macro have been given, augment AM_CPPFLAGS.
16303
16304 2011-06-13  Bruno Haible  <bruno@clisp.org>
16305
16306         fseeko: Provide a non-inline replacement of fseek().
16307         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
16308         * modules/fseeko (Depends-on): Add fseek.
16309         * modules/fseek (License): Change to LGPLv2+.
16310
16311 2011-06-13  Bruno Haible  <bruno@clisp.org>
16312
16313         ftello: Provide a non-inline replacement of ftell().
16314         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
16315         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
16316         not have ftello() (such as on mingw).
16317         * modules/ftello (Depends-on): Add ftell.
16318         * modules/ftell (License): Change to LGPLv2+.
16319
16320 2011-05-07  Bruno Haible  <bruno@clisp.org>
16321
16322         ftell: Move AC_LIBOBJ invocations to module description.
16323         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
16324         * modules/ftell (configure.ac): ... to here.
16325
16326 2011-05-07  Bruno Haible  <bruno@clisp.org>
16327
16328         ftello: Respect rules for use of AC_LIBOBJ.
16329         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
16330         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
16331         here...
16332         * modules/ftello (configure.ac): ... to here.
16333
16334 2011-05-07  Bruno Haible  <bruno@clisp.org>
16335
16336         fseeko: Simplify.
16337         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
16338         (gl_FUNC_FSEEKO): Inline it here.
16339
16340 2011-05-07  Bruno Haible  <bruno@clisp.org>
16341
16342         fseek: Move AC_LIBOBJ invocations to module description.
16343         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
16344         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
16345         * modules/fseek (configure.ac): ... to here.
16346
16347 2011-05-07  Bruno Haible  <bruno@clisp.org>
16348
16349         fseek: Respect rules for use of AC_LIBOBJ.
16350         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
16351         here...
16352         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
16353
16354 2011-05-07  Bruno Haible  <bruno@clisp.org>
16355
16356         fseeko: Respect rules for use of AC_LIBOBJ.
16357         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
16358         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
16359         here...
16360         * modules/fseeko (configure.ac): ... to here.
16361
16362 2011-06-13  Bruno Haible  <bruno@clisp.org>
16363
16364         gnulib-tool: Allow comments in the 'Depends-on' section.
16365         * doc/gnulib.texi (Module description): Mention comment syntax in the
16366         Depends-on section.
16367         * gnulib-tool (func_get_dependencies): Filter out comment lines.
16368
16369 2011-06-13  Bruno Haible  <bruno@clisp.org>
16370
16371         file-set.h: guard __attibute__ use, now that it's not always defined
16372         * lib/file-set.h (record_file): Use __attribute__ only with compiler
16373         versions that support it.  This fixes a coreutils build failure with
16374         the vendor cc on HP-UX 11.31.
16375
16376 2011-06-12  Bruno Haible  <bruno@clisp.org>
16377
16378         acl: Add support for HP-UX >= 11.11 JFS ACLs.
16379         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
16380         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
16381         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
16382         (acl, aclsort): New declarations.
16383         (aclv_nontrivial): New declaration.
16384         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
16385         (file_has_acl): Read also the second kind of HP-UX ACLs.
16386         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
16387         kind of HP-UX ACLs if the first kind fails.
16388         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
16389         second kind of HP-UX ACLs.
16390         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
16391         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
16392         agree.
16393         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
16394         hpuxjfs.
16395         Handle hpuxjfs.
16396         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
16397         hpuxjfs.
16398         Handle hpuxjfs.
16399         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
16400         (func_test_same_acls): Use both lsacl and getacl.
16401         Handle hpuxjfs.
16402         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
16403         (func_test_same_acls): Use both lsacl and getacl.
16404         Handle hpuxjfs.
16405
16406 2011-06-12  Bruno Haible  <bruno@clisp.org>
16407
16408         acl: Complete the 2010-08-10 fix.
16409         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
16410         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
16411         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
16412         explicitly.
16413         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
16414         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
16415
16416 2011-06-12  Bruno Haible  <bruno@clisp.org>
16417
16418         spawn-pipe tests: Comments.
16419         * tests/test-spawn-pipe-child.c (main): Update comment.
16420         Reported by James Youngman <jay@gnu.org>.
16421
16422 2011-06-11  James Youngman  <jay@gnu.org>
16423
16424         New module 'stat-size'.
16425         * modules/stat-size: New module.  Provides macros for accessing
16426         file size information in instances of struct stat.  Depends on the
16427         fileblocks module because it calls st_blocks.
16428         * lib/stat-size.h: New file, adapted from coreutils' system.h.
16429         * doc/gnulib.texi: Include stat-size.texi.
16430         * doc/stat-size.texi: Documentation for this module.
16431         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
16432         * m4/fileblocks.m4: Mention that stat-size depends on the call to
16433         AC_STRUCT_ST_BLOCKS.
16434
16435 2011-06-09  Bruno Haible  <bruno@clisp.org>
16436
16437         thread: Support pthreads-win32.
16438         * lib/glthread/thread.h (gl_thread_self): Define differently on
16439         pthreads-win32.
16440         (gl_null_thread): New declaration.
16441         (gl_thread_self_pointer): New macro.
16442         * lib/glthread/thread.c (gl_null_thread): New constant.
16443         * tests/test-lock.c: Use gl_thread_self_pointer instead of
16444         gl_thread_self.
16445         * tests/test-tls.c: Likewise.
16446         Suggested by Paul Eggert. Reported by Eric Blake.
16447
16448 2011-06-09  Bruno Haible  <bruno@clisp.org>
16449
16450         thread: Fix confusion between NULL and 0.
16451         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
16452         Reported by Paul Eggert.
16453
16454 2011-06-09  Bruno Haible  <bruno@clisp.org>
16455
16456         spawn-pipe tests: Avoid test failure on HP-UX 11.
16457         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
16458         is closed.
16459
16460 2011-06-09  Bruno Haible  <bruno@clisp.org>
16461
16462         acl tests: Fix compilation error on HP-UX 11.
16463         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
16464
16465 2011-06-09  Bruno Haible  <bruno@clisp.org>
16466
16467         rmdir: Avoid test failure on HP-UX 10.20.
16468         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
16469         EEXIST.
16470
16471 2011-06-08  Eric Blake  <eblake@redhat.com>
16472
16473         perror: fix test on mingw
16474         * modules/perror-tests (Depends-on): Add dup2.
16475
16476         strerror_r-posix: fix on MacOS
16477         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
16478         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
16479         logic bug.
16480         * lib/strerror_r.c (strerror_r): Fix the bug.
16481         * lib/strerror.c (strerror): Likewise.
16482         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
16483         problem.
16484         * doc/posix-functions/strerror.texi (strerror): Likewise.
16485         * doc/posix-functions/perror.texi (perror): Likewise.
16486         * tests/test-strerror.c (main): Enhance test.
16487         * tests/test-strerror_r.c (main): Likewise.
16488
16489 2011-06-08  Bruno Haible  <bruno@clisp.org>
16490
16491         gnulib-tool: Better isolation between different gnulib-tool invocations.
16492         * gnulib-tool: New option --witness-c-macro.
16493         (witness_c_macro): New variable.
16494         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
16495         AM_CPPFLAGS define it as a C macro.
16496         (func_emit_tests_Makefile_am): Likewise.
16497         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
16498         read it from there.
16499         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
16500         m4_define, not AC_DEFUN.
16501         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
16502         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
16503         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
16504         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
16505         s|...|...|, to substitute the values of the GNULIB_* module indicator
16506         variables.
16507         * modules/dirent (Makefile.am): Likewise.
16508         * modules/fcntl-h (Makefile.am): Likewise.
16509         * modules/iconv-h (Makefile.am): Likewise.
16510         * modules/langinfo (Makefile.am): Likewise.
16511         * modules/locale (Makefile.am): Likewise.
16512         * modules/math (Makefile.am): Likewise.
16513         * modules/netdb (Makefile.am): Likewise.
16514         * modules/poll-h (Makefile.am): Likewise.
16515         * modules/pty (Makefile.am): Likewise.
16516         * modules/search (Makefile.am): Likewise.
16517         * modules/signal (Makefile.am): Likewise.
16518         * modules/spawn (Makefile.am): Likewise.
16519         * modules/stdio (Makefile.am): Likewise.
16520         * modules/stdlib (Makefile.am): Likewise.
16521         * modules/string (Makefile.am): Likewise.
16522         * modules/sys_ioctl (Makefile.am): Likewise.
16523         * modules/sys_select (Makefile.am): Likewise.
16524         * modules/sys_socket (Makefile.am): Likewise.
16525         * modules/sys_stat (Makefile.am): Likewise.
16526         * modules/sys_times (Makefile.am): Likewise.
16527         * modules/sys_utsname (Makefile.am): Likewise.
16528         * modules/sys_wait (Makefile.am): Likewise.
16529         * modules/termios (Makefile.am): Likewise.
16530         * modules/time (Makefile.am): Likewise.
16531         * modules/unistd (Makefile.am): Likewise.
16532         * modules/wchar (Makefile.am): Likewise.
16533
16534 2011-06-08  Eric Blake  <eblake@redhat.com>
16535
16536         strerror: simplify replacement
16537         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
16538         * modules/strerror (configure.ac): No prereqs needed here...
16539         * modules/strerror-override (configure.ac): ...but this needs it.
16540         (Files): Add file for needed prereq macro.
16541
16542 2011-06-08  Bruno Haible  <bruno@clisp.org>
16543
16544         strerror_r-posix: Tweaks.
16545         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
16546         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
16547         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
16548         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
16549         (gl_FUNC_STRERROR_R): ... to here.
16550         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
16551
16552 2011-06-07  Eric Blake  <eblake@redhat.com>
16553
16554         perror: document fixed bugs
16555         * doc/posix-functions/perror.texi (perror): Document recent
16556         patches.
16557
16558 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
16559
16560         stat-time: get_stat_birthtime failure is better-defined
16561         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
16562         return a timestamp whose tv_sec and tv_nsec values are both -1.
16563         Previously, the spec said only that the tv_nsec value was negative.
16564         This upward-compatible change simplifies GNU tar a bit.
16565
16566 2011-06-07  Eric Blake  <eblake@redhat.com>
16567
16568         strerror_r-posix: work around cygwin 1.7.9
16569         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
16570         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
16571         bug without replacing strerror_r.
16572         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
16573         strerror_r is buggy, but without requiring strerror_r compilation.
16574         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
16575
16576         test-perror: relax test to ignore cygwin bug
16577         * tests/test-perror2.c (main): Relax test on requiring detection
16578         of stream errors, and use unbuffered stream.
16579         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
16580         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
16581         * doc/posix-functions/fputc.texi (fputc): Likewise.
16582         * doc/posix-functions/fputs.texi (fputs): Likewise.
16583         * doc/posix-functions/fputws.texi (fputws): Likewise.
16584         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
16585         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
16586         * doc/posix-functions/getopt.texi (getopt): Likewise.
16587         * doc/posix-functions/perror.texi (perror): Likewise.
16588         * doc/posix-functions/printf.texi (printf): Likewise.
16589         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
16590         * doc/posix-functions/psignal.texi (psignal): Likewise.
16591         * doc/posix-functions/putc.texi (putc): Likewise.
16592         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
16593         Likewise.
16594         * doc/posix-functions/putchar.texi (putchar): Likewise.
16595         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
16596         Likewise.
16597         * doc/posix-functions/puts.texi (puts): Likewise.
16598         * doc/posix-functions/putwc.texi (putwc): Likewise.
16599         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
16600         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
16601         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
16602         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
16603         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
16604         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
16605         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
16606         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
16607
16608 2011-05-22  Bruno Haible  <bruno@clisp.org>
16609
16610         strerror: Move AC_LIBOBJ invocations to module description.
16611         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
16612         gl_PREREQ_STRERROR invocations from here...
16613         * modules/strerror (configure.ac): ... to here.
16614
16615 2011-05-21  Bruno Haible  <bruno@clisp.org>
16616
16617         perror: Use common idiom.
16618         * modules/perror (configure.ac): Reorder statements.
16619
16620 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
16621
16622         tests: fix usage message in 'mktempd_'
16623         * tests/init.sh (mktempd_): In the usage message, use literal
16624         'mktempd_', not '$ME' (which is even undefined), as the name of
16625         the subroutine.
16626
16627 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
16628
16629         tests init: new function 'fatal_', for hard errors
16630         Before this patch, the only way offered by tests/init.sh to
16631         properly signal a hard error was the `framework_failure_'
16632         function.  But the error message issued by that function,
16633         as its name would suggest, refers to a set-up failure in the
16634         testsuite, while hard errors can obviously also be due to
16635         other reasons.  The best way to fix this inconsistency is to
16636         introduce a new function with a more general error message.
16637         * tests/init.sh (fatal_): New function.
16638
16639 2011-06-06  Eric Blake  <eblake@redhat.com>
16640
16641         canonicalize-lgpl: use common idiom
16642         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
16643         over newer POSIX -Rf.
16644         Reported by Bruno Haible.
16645
16646         canonicalize-lgpl: work around AIX realpath bug
16647         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
16648         * doc/posix-functions/realpath.texi (realpath): Document it.
16649         Reported by Bruno Haible.
16650
16651         strerror: work around FreeBSD bug
16652         * lib/strerror.c (strerror): Special case 0.
16653         Reported by Bruno Haible.
16654
16655         strerror-override: avoid bloating errno module
16656         * modules/errno (Files, configure.ac): Move replacement strings...
16657         * modules/strerror-override: ...to new module.
16658         * modules/strerror (Depends-on): Add strerror-override.
16659         * modules/strerror_r-posix (Depends-on): Likewise.
16660         * MODULES.html.sh: Document new module.
16661         Reported by Bruno Haible.
16662
16663 2011-06-06  Bruno Haible  <bruno@clisp.org>
16664
16665         spawn-pipe tests: Rename program.
16666         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
16667         * tests/test-spawn-pipe-child.c: Update comment.
16668         * tests/test-spawn-pipe.sh: Update.
16669         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
16670
16671         spawn-pipe tests: Link the child program only against libc.
16672         * tests/test-spawn-pipe-child.c: New file, extracted from
16673         tests/test-spawn-pipe.c.
16674         (main): Expect only one argument.
16675         (is_open): New function, copied from tests/test-pipe.c.
16676         * tests/test-spawn-pipe.c: Don't include <errno.h>.
16677         (child_main): Remove function.
16678         (test_pipe): Pass only one argument to the child program.
16679         (main): Remove child process code. Expect the child program's name as
16680         first argument.
16681         * tests/test-spawn-pipe.sh: Pass the child program's name as first
16682         argument.
16683         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
16684         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
16685         test-spawn-pipe-child against no libraries.
16686
16687 2011-06-06  Bruno Haible  <bruno@clisp.org>
16688
16689         careadlinkat: Avoid mismatch between ssize_t and int.
16690         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
16691         * lib/careadlinkat.c (careadlinkatcwd): Define always.
16692
16693 2011-06-06  Jim Meyering  <meyering@redhat.com>
16694
16695         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
16696         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
16697         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
16698
16699 2011-06-05  Bruno Haible  <bruno@clisp.org>
16700
16701         ansi-c++-opt: Interoperability with libtool.
16702         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
16703         set the variable to "no", not to ":".
16704         * NEWS: Mention the change.
16705
16706 2011-06-05  Bruno Haible  <bruno@clisp.org>
16707
16708         acl: Fix test failure on AIX 7.
16709         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
16710         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
16711
16712 2011-06-05  Bruno Haible  <bruno@clisp.org>
16713
16714         pipe-filter-ii: Fix test failure on AIX and IRIX.
16715         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
16716         with EAGAIN, retry with a smaller buffer size.
16717
16718 2011-06-05  Bruno Haible  <bruno@clisp.org>
16719
16720         localename: Fix link dependencies.
16721         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
16722         * modules/localename-tests (Makefile.am): Link test-localename with
16723         $(LIBTHREAD).
16724
16725 2011-06-05  Bruno Haible  <bruno@clisp.org>
16726
16727         error: Avoid gcc warning.
16728         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
16729
16730 2011-06-05  Bruno Haible  <bruno@clisp.org>
16731
16732         unsetenv: Avoid gcc warning.
16733         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
16734
16735 2011-06-05  Bruno Haible  <bruno@clisp.org>
16736
16737         setenv: Avoid gcc warning.
16738         * lib/setenv.c (setenv): Provide declaration if system lacks it.
16739
16740 2011-06-05  Bruno Haible  <bruno@clisp.org>
16741
16742         sys_select: Ensure memset is declared also on AIX 7.
16743         * lib/sys_select.in.h: Include <string.h> also on AIX.
16744         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
16745         self-contained also on AIX 7.1.
16746
16747 2011-06-04  Jim Meyering  <meyering@redhat.com>
16748
16749         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
16750         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
16751         function name, "error".
16752         (_gl_translatable_diag_func_re): New configurable variable.
16753
16754 2011-06-04  Bruno Haible  <bruno@clisp.org>
16755
16756         getopt: Avoid gcc warning.
16757         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
16758
16759 2011-06-04  Bruno Haible  <bruno@clisp.org>
16760
16761         strerror_r: Fix comments.
16762         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
16763         commit.
16764
16765 2011-06-04  Bruno Haible  <bruno@clisp.org>
16766
16767         perror: Fix compilation error.
16768         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
16769         Undefine fprintf, not sprintf.
16770         * modules/perror (Depends-on): Remove intprops, verify.
16771
16772 2011-06-04  Bruno Haible  <bruno@clisp.org>
16773
16774         setlocale: Enable replacement on Cygwin 1.5.
16775         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
16776         Cygwin 1.5.x.
16777         * doc/posix-functions/setlocale.texi: Mention that the problem with the
16778         LC_CTYPE category also exists on Cygwin 1.5.x.
16779
16780 2011-06-04  Bruno Haible  <bruno@clisp.org>
16781
16782         strerror-override: Don't disable symbol renamings.
16783         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
16784         * lib/strerror-override.c: Include config.h.
16785         (strerror_override): Don't undefine.
16786
16787 2011-06-03  Bruno Haible  <bruno@clisp.org>
16788
16789         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
16790         * lib/localename.h: Update copyright header.
16791         * lib/localename.c: Likewise.
16792         * lib/relocatable.h: Likewise.
16793         * lib/relocatable.c: Likewise.
16794
16795 2011-06-02  Bruno Haible  <bruno@clisp.org>
16796
16797         doc: Fix a module name.
16798         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
16799
16800 2011-06-02  Bruno Haible  <bruno@clisp.org>
16801
16802         pipe2: Remove dependency on 'nonblocking' module.
16803         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
16804         O_NONBLOCK is defined by gnulib.
16805         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
16806         is zero.
16807         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
16808         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
16809         defined by gnulib.
16810         (get_nonblocking_flag): New function.
16811         (main): Test O_NONBLOCK flag only if it is nonzero.
16812         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
16813
16814 2011-06-03  Jim Meyering  <meyering@redhat.com>
16815
16816         maint: three new prohibit-header-without-use rules
16817         Prohibit use of cloexec.h, posixver.h, same.h without use.
16818         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
16819         (sc_prohibit_posixver_without_use): Likewise.
16820         (sc_prohibit_same_without_use): Likewise.
16821
16822 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
16823
16824         allocator: 'die' routine is now given requested size
16825         * lib/allocator.h (struct allocator.die): New size arg.
16826         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
16827         If the actual problem is an ssize_t limitation, not a size_t or
16828         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
16829
16830 2011-06-01  Eric Blake  <eblake@redhat.com>
16831
16832         strerror: drop strerror_r dependency
16833         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
16834         * lib/strerror-override.c (strerror_override): ...to new file.
16835         * lib/strerror-override.h: Add prototype.
16836         * lib/strerror-impl.h: Delete.
16837         * lib/strerror.c (strerror): New implementation.
16838         * modules/errno (Files): Add new files.
16839         (configure.ac): Compile new file as appropriate.
16840         * modules/strerror (Files): Drop unused file.
16841         (Depends-on): Drop strerror_r-posix.
16842         * MODULES.html.sh: Document strerror_r-posix.
16843         Requested by Sam Steingold.
16844
16845         perror: call strerror_r directly
16846         * modules/perror (Files): Drop strerror-impl.h.
16847         * lib/perror.c (perror): Use our own stack buffer, rather than
16848         calling a wrapper that uses static storage.
16849         * doc/posix-functions/perror.texi (perror): Document a limitation
16850         of our replacement.
16851
16852         strerror_r: fix includes for FreeBSD
16853         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
16854         since we use abort on some platforms.
16855         Reported by Matthias Bolte.
16856
16857 2011-05-31  Bruno Haible  <bruno@clisp.org>
16858
16859         Fix link errors in tests: openat-die uses gettext-h.
16860         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
16861         against $(LIBINTL).
16862         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
16863         against $(LIBINTL).
16864         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
16865         $(LIBINTL).
16866         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
16867         against $(LIBINTL).
16868         * modules/linkat-tests (Makefile.am): Link test-linkat against
16869         $(LIBINTL).
16870         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
16871         $(LIBINTL).
16872         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
16873         against $(LIBINTL).
16874         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
16875         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
16876         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
16877         $(LIBINTL).
16878         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
16879         $(LIBINTL).
16880         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
16881         $(LIBINTL).
16882         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16883
16884 2011-05-31  Bruno Haible  <bruno@clisp.org>
16885
16886         Fix link errors in tests: wait-process uses gettext-h.
16887         * modules/nonblocking-pipe-tests (Makefile.am): Set
16888         test_nonblocking_pipe_main_LDADD.
16889         * modules/nonblocking-socket-tests (Makefile.am): Link
16890         test-nonblocking-socket-main against $(LIBINTL).
16891         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16892
16893 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
16894
16895         assert-h: work around 'verify' incompatibility
16896         * lib/verify.h: Use @...@ directives, not ifdef.
16897         * modules/assert-h (assert.h): Implement the directives.
16898         (assert.h): Substitute the symbol-prefix more consistently.
16899
16900 2011-05-29  Jim Meyering  <meyering@redhat.com>
16901
16902         trim: remove three superfluous assignments
16903         * lib/trim.c (trim2): Remove three superfluous assignments
16904         and correct brace positioning.
16905
16906 2011-05-29  Bruno Haible  <bruno@clisp.org>
16907
16908         wctype-h: Avoid namespace pollution on Solaris 2.6.
16909         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
16910         identifiers.
16911         * doc/posix-headers/wctype.texi: Mention the problem.
16912         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16913
16914 2011-05-28  Jim Meyering  <meyering@redhat.com>
16915
16916         parse-datetime.y: accommodate -Wstrict-overflow
16917         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
16918         placate -Wstrict-overflow.
16919
16920         trim: avoid a warning from -O2 -Wstrict-overflow
16921         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
16922
16923 2011-05-29  Bruno Haible  <bruno@clisp.org>
16924
16925         gnulib-tool: Fix bug in yesterday's commit.
16926         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
16927         twice.
16928
16929 2011-05-29  Bruno Haible  <bruno@clisp.org>
16930
16931         Allow multiple gnulib generated include files to be combined.
16932         * gnulib-tool (func_compute_include_guard_prefix): New function.
16933         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
16934         ${gl_include_guard_prefix} references.
16935         (func_import, func_create_testdir): Invoke
16936         func_compute_include_guard_prefix.
16937         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
16938         * lib/ctype.in.h: Likewise.
16939         * lib/dirent.in.h: Likewise.
16940         * lib/errno.in.h: Likewise.
16941         * lib/fcntl.in.h: Likewise.
16942         * lib/float.in.h: Likewise.
16943         * lib/getopt.in.h: Likewise.
16944         * lib/iconv.in.h: Likewise.
16945         * lib/langinfo.in.h: Likewise.
16946         * lib/locale.in.h: Likewise.
16947         * lib/math.in.h: Likewise.
16948         * lib/netdb.in.h: Likewise.
16949         * lib/netinet_in.in.h: Likewise.
16950         * lib/poll.in.h: Likewise.
16951         * lib/pthread.in.h: Likewise.
16952         * lib/pty.in.h: Likewise.
16953         * lib/sched.in.h: Likewise.
16954         * lib/se-selinux.in.h: Likewise.
16955         * lib/search.in.h: Likewise.
16956         * lib/signal.in.h: Likewise.
16957         * lib/spawn.in.h: Likewise.
16958         * lib/stdarg.in.h: Likewise.
16959         * lib/stddef.in.h: Likewise.
16960         * lib/stdint.in.h: Likewise.
16961         * lib/stdio.in.h: Likewise.
16962         * lib/stdlib.in.h: Likewise.
16963         * lib/string.in.h: Likewise.
16964         * lib/strings.in.h: Likewise.
16965         * lib/sys_file.in.h: Likewise.
16966         * lib/sys_ioctl.in.h: Likewise.
16967         * lib/sys_select.in.h: Likewise.
16968         * lib/sys_socket.in.h: Likewise.
16969         * lib/sys_stat.in.h: Likewise.
16970         * lib/sys_time.in.h: Likewise.
16971         * lib/sys_times.in.h: Likewise.
16972         * lib/sys_uio.in.h: Likewise.
16973         * lib/sys_utsname.in.h: Likewise.
16974         * lib/sys_wait.in.h: Likewise.
16975         * lib/sysexits.in.h: Likewise.
16976         * lib/termios.in.h: Likewise.
16977         * lib/time.in.h: Likewise.
16978         * lib/unistd.in.h: Likewise.
16979         * lib/wchar.in.h: Likewise.
16980         * lib/wctype.in.h: Likewise.
16981         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
16982         * modules/ctype (Makefile.am): Likewise.
16983         * modules/dirent (Makefile.am): Likewise.
16984         * modules/errno (Makefile.am): Likewise.
16985         * modules/fcntl-h (Makefile.am): Likewise.
16986         * modules/float (Makefile.am): Likewise.
16987         * modules/getopt-posix (Makefile.am): Likewise.
16988         * modules/iconv-h (Makefile.am): Likewise.
16989         * modules/langinfo (Makefile.am): Likewise.
16990         * modules/locale (Makefile.am): Likewise.
16991         * modules/math (Makefile.am): Likewise.
16992         * modules/netdb (Makefile.am): Likewise.
16993         * modules/netinet_in (Makefile.am): Likewise.
16994         * modules/poll-h (Makefile.am): Likewise.
16995         * modules/pthread (Makefile.am): Likewise.
16996         * modules/pty (Makefile.am): Likewise.
16997         * modules/sched (Makefile.am): Likewise.
16998         * modules/search (Makefile.am): Likewise.
16999         * modules/selinux-h (Makefile.am): Likewise.
17000         * modules/signal (Makefile.am): Likewise.
17001         * modules/spawn (Makefile.am): Likewise.
17002         * modules/stdarg (Makefile.am): Likewise.
17003         * modules/stddef (Makefile.am): Likewise.
17004         * modules/stdint (Makefile.am): Likewise.
17005         * modules/stdio (Makefile.am): Likewise.
17006         * modules/stdlib (Makefile.am): Likewise.
17007         * modules/string (Makefile.am): Likewise.
17008         * modules/strings (Makefile.am): Likewise.
17009         * modules/sys_file (Makefile.am): Likewise.
17010         * modules/sys_ioctl (Makefile.am): Likewise.
17011         * modules/sys_select (Makefile.am): Likewise.
17012         * modules/sys_socket (Makefile.am): Likewise.
17013         * modules/sys_stat (Makefile.am): Likewise.
17014         * modules/sys_time (Makefile.am): Likewise.
17015         * modules/sys_times (Makefile.am): Likewise.
17016         * modules/sys_uio (Makefile.am): Likewise.
17017         * modules/sys_utsname (Makefile.am): Likewise.
17018         * modules/sys_wait (Makefile.am): Likewise.
17019         * modules/sysexits (Makefile.am): Likewise.
17020         * modules/termios (Makefile.am): Likewise.
17021         * modules/time (Makefile.am): Likewise.
17022         * modules/unistd (Makefile.am): Likewise.
17023         * modules/wchar (Makefile.am): Likewise.
17024         * modules/wctype-h (Makefile.am): Likewise.
17025         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
17026
17027 2011-05-29  Bruno Haible  <bruno@clisp.org>
17028
17029         assert-h: Allow multiple gnulib generated replacements to coexist.
17030         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
17031
17032 2011-05-29  Bruno Haible  <bruno@clisp.org>
17033
17034         argp: Allow coexistence with strerror_r-posix module.
17035         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
17036         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
17037         by gnulib's <string.h> replacement), assume it has the POSIX signature,
17038         not the glibc signature.
17039
17040 2011-05-28  Bruno Haible  <bruno@clisp.org>
17041
17042         gnulib-tool: Alternative structure of testdirs, similar to --import.
17043         * gnulib-tool: New option --single-configure.
17044         (func_usage): Document it.
17045         (single_configure): New variable.
17046         (func_modules_transitive_closure_separately,
17047         func_modules_transitive_closure_separately,
17048         func_determine_use_libtests, func_modules_add_dummy_separately,
17049         func_modules_to_filelist_separately): New functions, extracted from
17050         func_import.
17051         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
17052         (func_import): Use the new functions.
17053         (func_create_testdir): Set final_modules. Handle $single_configure =
17054         true case.
17055
17056 2011-05-28  Bruno Haible  <bruno@clisp.org>
17057
17058         getloadavg: Remove an unreliable safety check.
17059         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
17060         getloadavg.c is in place.
17061         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
17062         Reported by Sam Steingold <sds@gnu.org>.
17063
17064 2011-05-28  Bruno Haible  <bruno@clisp.org>
17065
17066         doc: Cleanup yet another file produced by texinfo.tex.
17067         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
17068
17069 2011-05-28  Bruno Haible  <bruno@clisp.org>
17070
17071         Finish the conditional dependencies mechanism.
17072         * gnulib-tool: New option --no-conditional-dependencies.
17073         (func_usage): Document it. Don't mark --conditional-dependencies as
17074         experimental.
17075         (cond_dependencies): The possible values can now be true, false, empty.
17076         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
17077         (func_import): Store setting in gnulib-cache.m4 and read it from there.
17078         * doc/gnulib-tool.texi (Conditional dependencies): New section.
17079
17080 2011-05-28  Bruno Haible  <bruno@clisp.org>
17081
17082         doc: Use a recent texinfo.tex.
17083         * doc/Makefile (tex_opts): New variable.
17084         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
17085
17086 2011-05-28  Jim Meyering  <meyering@redhat.com>
17087
17088         intprops.h: adjust comment to match code change
17089         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
17090         only once, it *may* have side effects.  Also fix an unrelated typo.
17091         (_GL_INT_SIGNED): Likewise.
17092
17093 2011-05-26  Simon Josefsson  <simon@josefsson.org>
17094
17095         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
17096
17097 2011-05-26  Bruno Haible  <bruno@clisp.org>
17098
17099         mbsrchr: Avoid collision with system function on Interix.
17100         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
17101         Reported by Markus Duft <mduft@gentoo.org>.
17102
17103 2011-05-15  James Youngman  <jay@gnu.org>
17104
17105         getopt: for ambiguous options, enumerate the possibilities.
17106         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
17107         the ambiguous options when an ambiguous prefix is given. This was
17108         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
17109         glibc change was
17110         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
17111
17112 2011-05-25  Eric Blake  <eblake@redhat.com>
17113
17114         getcwd: work around mingw bug
17115         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
17116         * doc/posix-functions/getcwd.texi (getcwd): Document it.
17117         Reported by Matthias Bolte.
17118
17119 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
17120
17121         test-intprops: disable -Wtype-limits diagnostics
17122         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
17123         diagnostics.  Otherwise, the integer overflow macros generate many
17124         diagnostics.  Reported by Jim Meyering in
17125         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
17126
17127         intprops: shorten, to pacify gcc -Woverlength-strings
17128         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
17129         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
17130         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
17131         likely to run afoul of C compiler limits for string constant lengths.
17132         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
17133
17134 2011-05-24  Eric Blake  <eblake@redhat.com>
17135
17136         docs: document recently fixed glibc printf bug
17137         * doc/posix-functions/fprintf.texi (fprintf): Document it.
17138         * doc/posix-functions/printf.texi (printf): Likewise.
17139         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
17140         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
17141
17142         closein-tests: convert to init.sh
17143         * modules/closein-tests (Files): Add init.sh
17144         * tests/test-closein.sh Use it.
17145
17146         yesno-tests: convert to init.sh
17147         * modules/yesno-tests (Files): Add init.sh.
17148         * tests/test-yesno.sh: Use it.
17149
17150         atexit-tests: ensure reliable exit status
17151         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
17152         Reported by Bruno Haible.
17153
17154 2011-05-24  Bruno Haible  <bruno@clisp.org>
17155
17156         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
17157         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
17158         gl_PREREQ_STRERROR_R invocations from here...
17159         * modules/strerror_r-posix (configure.ac): ... to here.
17160
17161 2011-05-24  Eric Blake  <eblake@redhat.com>
17162
17163         strerror_r: fix missing header
17164         * lib/strerror_r.c: Avoid compiler warning about snprintf.
17165
17166         strerror_r: fix AIX test failures
17167         * lib/strerror_r.c (strerror_r): Convert silent truncation to
17168         ERANGE failure.
17169
17170         strerror_r: fix Solaris test failures
17171         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
17172         failures.
17173         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
17174
17175         strerror_r: enforce POSIX recommendations
17176         * lib/strerror_r.c (safe_copy): New helper method.
17177         (strerror_r): Guarantee a non-empty string.
17178         * tests/test-strerror_r.c (main): Enhance tests to incorporate
17179         recent POSIX rulings and to match our strerror guarantees.
17180         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
17181
17182 2011-05-24  Jim Meyering  <meyering@redhat.com>
17183
17184         test-perror2.c: avoid warning about unused variable
17185         * tests/test-perror2.c (main): Remove declaration of unused "fp".
17186
17187 2011-05-24  Eric Blake  <eblake@redhat.com>
17188
17189         perror: avoid spurious test failure on HP-UX
17190         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
17191
17192         tests: fix logic bug in init.sh
17193         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
17194         shell.
17195
17196 2011-05-24  Jim Meyering  <meyering@redhat.com>
17197
17198         utimensat: do not reference an out-of-scope buffer
17199         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
17200         declared in an inner scope, yet "times" would be dereferenced outside
17201         the scope in which "ts" was valid.
17202         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
17203         of ts[2] "out/up", so that the use of aliased "times" (via
17204         "times = ts;") does not end up referencing an out-of-scope "ts"
17205
17206         opendir-safer.c: don't clobber errno; don't close negative FD
17207         * lib/opendir-safer.c (opendir_safer):
17208         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
17209         file descriptor, and more importantly, don't clobber the
17210         offending errno value with EINVAL.  Before, upon failure
17211         of dup_safer, we would pass the negative file descriptor to
17212         fdopendir, which would clobber errno.
17213
17214 2011-05-23  Bruno Haible  <bruno@clisp.org>
17215
17216         idcache: Fix module description.
17217         * modules/idcache (Include): Set to "idcache.h".
17218
17219 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
17220
17221         gnulib-tool: fix portability problem with MacOS sed
17222         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
17223         before the "}".  Problem reported by Leo in
17224         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
17225         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
17226         sed_extract_condition1, sed_extract_condition2.
17227
17228 2011-05-23  Bruno Haible  <bruno@clisp.org>
17229
17230         hash: Simplify autoconf macro.
17231         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
17232
17233 2011-05-23  Bruno Haible  <bruno@clisp.org>
17234
17235         getugroups: Fix module description.
17236         * modules/getugroups (Include): Set to "getugroups.h".
17237
17238 2011-05-23  Bruno Haible  <bruno@clisp.org>
17239
17240         linkat: Simplify autoconf macro.
17241         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
17242
17243 2011-05-23  Bruno Haible  <bruno@clisp.org>
17244             Eric Blake  <eblake@redhat.com>
17245
17246         linkat, renameat: Update dependencies.
17247         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
17248         * modules/linkat (Depends-on): Likewise. Remove also readlink,
17249         symlinkat.
17250
17251 2011-05-23  Jim Meyering  <meyering@redhat.com>
17252
17253         maint.mk: more tight_scope improvements
17254         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
17255         (_gl_TS_headers): Define only in if-0'd block.
17256         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
17257         sometimes we must *not* use it.  Adjust uses accordingly.
17258         (sc_tight_scope): Use much simpler grep-based test to determine
17259         whether we skip this rule.
17260
17261         maint.mk: generalize/improve the tight-scope rule
17262         * top/maint.mk: Emit a warning when the test is skipped.
17263         (_gl_TS_dir): Add $(srcdir)/ prefix.
17264         (_gl_TS_function_match): Simplify, rather than trying
17265         to enumerate common types.  Otherwise, it would fail to match an
17266         "extern unsigned char const *" declaration in idutils.
17267         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
17268         a way to support use of that type of macro.
17269         (_gl_TS_var_match): Simplify regexp.
17270         (_gl_TS_obj_files): New configurable variable.
17271         (_gl_TS_headers): Likewise.
17272
17273 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
17274
17275         verify: fix bug when gnulib <assert.h> is also included
17276         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
17277         is defined, not if _GL_STATIC_ASSERT_H is not defined.
17278         Perhaps there's a better way, but this fixes the immediate problem.
17279         Problem reported by Bruno Haible in
17280         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
17281
17282 2011-05-22  Bruno Haible  <bruno@clisp.org>
17283
17284         xgetcwd: Simplify autoconf macro.
17285         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
17286
17287 2011-05-22  Bruno Haible  <bruno@clisp.org>
17288
17289         New module 'mktime-internal'.
17290         * modules/mktime-internal: New file.
17291         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
17292         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
17293         mktime_internal as a C macro if libc has __mktime_internal.
17294         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
17295         conditions.
17296         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
17297
17298 2011-05-22  Bruno Haible  <bruno@clisp.org>
17299
17300         timegm: Correct mktime replacement statements.
17301         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
17302         defining mktime as a C macro. This completes a 2009-07-28 commit.
17303
17304 2011-05-22  Bruno Haible  <bruno@clisp.org>
17305
17306         timegm: Simplify autoconf macro.
17307         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
17308
17309 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
17310
17311         clock-time: change to LGPLv2+.
17312         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
17313         BSD-like but we have no mark for that; this is good enough for now.
17314
17315 2011-05-21  Bruno Haible  <bruno@clisp.org>
17316
17317         strerror_r: Fix comments.
17318         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
17319
17320 2011-05-21  Bruno Haible  <bruno@clisp.org>
17321
17322         relocatable-prog-wrapper: Fix possible link error.
17323         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
17324         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
17325         (gl_FUNC_SETENV): ... to here.
17326         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
17327         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
17328
17329 2011-05-21  Bruno Haible  <bruno@clisp.org>
17330
17331         relocatable-prog-wrapper: Assume strerror() exists.
17332         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
17333         m4/strerror.m4.
17334         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
17335         * lib/relocwrapper.c: Remove mention of strerror module.
17336         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
17337         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
17338         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
17339         C macro.
17340
17341 2011-05-21  Bruno Haible  <bruno@clisp.org>
17342
17343         select: Simplify replacement idiom.
17344         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
17345         Win32 platforms.
17346         * lib/sys_select.in.h (select): Simplify accordingly.
17347         * modules/select (Depends-on): Likewise.
17348
17349 2011-05-21  Bruno Haible  <bruno@clisp.org>
17350
17351         mkdir-p: Simplify autoconf macro.
17352         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
17353         gl_FUNC_LCHOWN.
17354
17355 2011-05-21  Eric Blake  <eblake@redhat.com>
17356
17357         strerror_r: avoid clobbering strerror on cygwin
17358         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
17359         fall back instead to sys_errlist.
17360         * modules/strerror (configure.ac): Add witness.
17361         * tests/test-strerror_r.c (main): Enhance test.
17362         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
17363         * tests/test-perror2.c (main): Free memory before exit.
17364
17365 2011-05-21  Bruno Haible  <bruno@clisp.org>
17366
17367         mkdtemp: Use gnulib naming conventions.
17368         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
17369         * modules/mkdtemp (configure.ac): Update.
17370
17371 2011-05-20  Eric Blake  <eblake@redhat.com>
17372
17373         strerror_r: avoid corrupting errno on Solaris
17374         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
17375         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
17376
17377         strerror_r: avoid compiler warning
17378         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
17379
17380         strerror_r: simplify AIX code
17381         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
17382
17383         test-perror: avoid spurious failure on FreeBSD
17384         * modules/perror-tests (Depends-on): Add strerror, now that
17385         strerror_r no longer pulls it in.
17386
17387 2011-05-20  Bruno Haible  <bruno@clisp.org>
17388
17389         strerror_r-posix: Remove unused dependencies.
17390         * modules/strerror_r-posix (Depends-on): Remove strerror.
17391         Reported by Eric Blake.
17392
17393 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
17394
17395         intprops: remove assumption about A|B representation
17396         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
17397         is a valid integer if both A and B are.  Although this is true for
17398         all known practical hosts, the C standard doesn't guarantee it,
17399         and the code need not assume it.  Also, this change may work around
17400         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
17401         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
17402
17403 2011-05-20  Eric Blake  <eblake@redhat.com>
17404
17405         perror: work around FreeBSD bug
17406         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
17407         is broken.  Move AC_LIBOBJ...
17408         * modules/perror (configure.ac): Here.
17409         * doc/posix-functions/perror.texi (perror): Document this.
17410         * tests/test-perror2.c (main): Enhance test.
17411
17412         test-perror: check for strerror interactions
17413         * tests/macros.h (STREQ): Add macro.
17414         * modules/perror-tests (Files): Add second test.
17415         * tests/test-perror2.c (main): New file.
17416         * doc/posix-functions/perror.texi (perror): Document glibc bug.
17417
17418         test-perror: rewrite to use init script
17419         * modules/perror-tests (Files): Add init.sh.
17420         * tests/test-perror.sh: Use temporary directory.
17421
17422 2011-05-20  Jim Meyering  <meyering@redhat.com>
17423
17424         maint: replace misused "a" with "an"
17425         * doc/intprops.texi: "a integer"
17426         * doc/regex.texi: "a explanation"
17427         * lib/alignof.h: "a object"
17428         * lib/argmatch.h: "a explanation"
17429         * lib/argp-help.c: "a option" and "a OPTION_DOC"
17430         * lib/stdint.in.h: "a integer"
17431         * lib/userspec.c: "a owner"
17432         * doc/gnulib.texi: Fix "a idea", and reword.
17433
17434 2011-05-19  Jim Meyering  <meyering@redhat.com>
17435
17436         maint: correct misuse of "a" and "an"
17437         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
17438         * lib/argp-help.c: "an docum...": s/an/a/
17439         * lib/argp-parse.c: "An vector": s/An/A/
17440         * lib/execute.c: "an native": s/an/a/
17441         * lib/spawn-pipe.c: Likewise.
17442         * lib/gc.h: "an Gc_rc": s/an/a/
17443         * lib/unigbrk.in.h: "an grapheme": s/an/a/
17444         * lib/fts.c: "an stat.st_dev": s/an/a/
17445
17446 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
17447
17448         intprops-tests: work around HP-UX 11.23 cc bug with constants
17449         * tests/test-intprops.c (VERIFY): New macro.
17450         (main): Use it, instead of verify, to work around the compiler bug; see
17451         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
17452
17453         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
17454         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
17455         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
17456         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
17457         (_GL_REMAINDER_OVERFLOW): Use it.
17458
17459         intprops-tests: revert unsigned part of previous change
17460         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
17461         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
17462         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
17463         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
17464
17465 2011-05-19  Bruno Haible  <bruno@clisp.org>
17466
17467         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
17468         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
17469         strerror_r() returned without filling the buffer.
17470         Reported by Eric Blake.
17471
17472 2011-05-19  Eric Blake  <eblake@redhat.com>
17473
17474         strerror_r: guarantee unchanged errno
17475         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
17476         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
17477         failure.
17478         * tests/test-strerror_r.c (main): Enhance test.
17479
17480 2011-05-19  Bruno Haible  <bruno@clisp.org>
17481
17482         strerror_r: Reorder #if blocks.
17483         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
17484         for consistency with the previous commit.
17485
17486 2011-05-19  Bruno Haible  <bruno@clisp.org>
17487
17488         perror: Avoid clobbering the strerror buffer when possible.
17489         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
17490         * lib/strerror.c: Include it.
17491         * modules/strerror (Files): Add lib/strerror-impl.h.
17492         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
17493         (my_strerror): New function, defined through lib/strerror-impl.h.
17494         (perror): Use it instead of strerror.
17495         * modules/perror (Files): Add lib/strerror-impl.h.
17496         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
17497
17498 2011-05-19  Eric Blake  <eblake@redhat.com>
17499
17500         strerror_r: fix on newer cygwin
17501         * lib/strerror_r.c (strerror_r): Cygwin now has
17502         __xpg_strerror_r, use it.
17503
17504 2011-05-19  Bruno Haible  <bruno@clisp.org>
17505
17506         strerror_r: Avoid clobbering the strerror buffer when possible.
17507         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
17508         (sys_nerr, sys_errlist): New declarations.
17509         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
17510         HP-UX, native Win32, IRIX, and 32-bit Solaris.
17511         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
17512
17513 2011-05-19  Bruno Haible  <bruno@clisp.org>
17514
17515         strerror_r: Fix test failure on mingw.
17516         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
17517         EXTEND_STRERROR_R.
17518         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
17519         macros from errno.in.h instead.
17520
17521 2011-05-19  Eric Blake  <eblake@redhat.com>
17522
17523         strerror: relax test for Solaris
17524         * tests/test-strerror.c (main): Permit Solaris behavior.
17525         * tests/test-strerror_r.c (main): Likewise.
17526
17527         strerror: enforce POSIX ruling on strerror(0)
17528         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
17529         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
17530         * lib/strerror_r.c (rpl_strerror_r): Work around it.
17531         * doc/posix-functions/strerror.texi (strerror): Document it.
17532         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
17533         * tests/test-strerror.c (main): Strengthen test.
17534         * tests/test-strerror_r.c (main): Likewise.
17535
17536 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
17537
17538         intprop-tests: port to older and more-pedantic compilers
17539         * modules/intprops-tests (Files): Add tests/macros.h.
17540         * tests/test-intprops.c: Include macros.h.
17541         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
17542         it's no longer documented to expand to an integer constant expression.
17543         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
17544         argument is floating point, as it's no longer documented to expand
17545         to an integer constant expression in that case.
17546         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
17547         compiler bugs reported by Bruno Haible.  See
17548         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
17549         (U0, U1): New constants, to work around the same bugs.  Also,
17550         in tests, use e.g., "(unsigned int) 39" rather than "39u".
17551
17552         intprops: work around C compiler bugs
17553         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
17554         bug in Sun C 5.11 2010/08/13 and other compilers; see
17555         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
17556
17557         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
17558         * doc/intprops.texi (Integer Type Determination): Fix
17559         documentation for TYPE_IS_INTEGER: it returns an constant
17560         expression, not an integer constant expression.  Fix doc for
17561         TYPE_SIGNED: it returns an integer constant expression only if its
17562         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
17563         hardly worth documented that way....)
17564
17565 2011-05-18  Bruno Haible  <bruno@clisp.org>
17566
17567         strerror_r: Avoid clobbering the strerror buffer when possible.
17568         * lib/strerror_r.c (strerror_r): Merge the three implementations.
17569         Handle gnulib defined errno values here. When strerror() returns NULL
17570         or an empty string, return EINVAL.
17571         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
17572         gnulib defined errno values here.
17573         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
17574
17575 2011-05-18  Eric Blake  <eblake@redhat.com>
17576
17577         fnmatch: avoid compiler warning
17578         * lib/fnmatch_loop.c (FCT): Use correct type.
17579         Reported by Matthias Bolte.
17580
17581 2011-05-13  Jim Meyering  <meyering@redhat.com>
17582
17583         maint.mk: three new prohibit_<HDR>_without_use rules
17584         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
17585         (sc_prohibit_stdio-safer_without_use): Likewise.
17586         (sc_prohibit_xfreopen_without_use): Likewise.
17587
17588 2011-05-17  Jim Meyering  <meyering@redhat.com>
17589
17590         announce-gen: fail if the NEWS delta is empty
17591         If there's nothing noteworthy in NEWS, then either you forgot
17592         or you shouldn't be releasing.
17593         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
17594
17595 2011-05-17  Pádraig Brady <P@draigBrady.com>
17596
17597         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
17598         reserved symbols starting with double underscore from the check.
17599
17600 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
17601
17602         intprops: add doc
17603         * doc/intprops.texi: New file, documenting intprops.
17604         * doc/gnulib.texi (Particular Modules): Include it.
17605
17606         verify: add doc to gnulib manual and fix example
17607         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
17608         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
17609         (Compile-time Assertions): Fix example so it can't overflow.
17610
17611 2011-05-17  Jim Meyering  <meyering@redhat.com>
17612
17613         warnings.m4: don't usurp save_CPPFLAGS variable name
17614         * m4/warnings.m4: Prefix local temporary variable name with gl_.
17615
17616         doc: fix typo
17617         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
17618
17619 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
17620             Bruno Haible  <bruno@clisp.org>
17621
17622         doc: Tweak recent change.
17623         * README (Portability guidelines): Tweak new text.
17624         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
17625         Interix 6.1.
17626
17627 2011-05-16  Eric Blake  <eblake@redhat.com>
17628
17629         inttypes: avoid autoconf warning
17630         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
17631         * m4/stdint.m4 (gl_STDINT_H): Likewise.
17632
17633 2011-05-16  Sam Steingold <sds@gnu.org>
17634         and Eric Blake  <eblake@redhat.com>
17635
17636         vc-list-files: accept multiple directory operands
17637         * build-aux/vc-list-files: Iterate over all remaining operands.
17638
17639 2011-05-16  Bruno Haible  <bruno@clisp.org>
17640
17641         Fix confusion regarding deprecated modules.
17642         * modules/calloc (Status, Notice): Mark module as deprecated, not
17643         obsolete.
17644         * modules/fnmatch-posix (Status, Notice): Likewise.
17645         * modules/getdate (Status, Notice): Likewise.
17646         * modules/getopt (Status, Notice): Likewise.
17647         * modules/malloc (Status, Notice): Likewise.
17648         * modules/pipe (Status, Notice): Likewise.
17649         * modules/realloc (Status, Notice): Likewise.
17650         * modules/rename-dest-slash (Status, Notice): Likewise.
17651         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
17652         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
17653         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
17654         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
17655         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
17656
17657 2011-05-16  Bruno Haible  <bruno@clisp.org>
17658
17659         doc: List the target platforms.
17660         * doc/gnulib-intro.texi (Target Platforms): New section.
17661         * doc/gnulib.texi (Introduction): Update menu.
17662         * README (Portability guidelines): Refer to the new section. Update
17663         statement about oldest supported environment. Remove rationale why
17664         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
17665         unportable C89 function.
17666         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
17667         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
17668
17669 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
17670
17671         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
17672
17673 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
17674
17675         intprops-tests: new module
17676         * modules/intprops-tests, tests/test-intprops.c: New files.
17677
17678         intprops: add safe, portable integer overflow checking
17679         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
17680         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
17681         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
17682         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
17683         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
17684         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
17685         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
17686         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
17687         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
17688         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
17689         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
17690
17691 2011-05-12  James Youngman  <jay@gnu.org>
17692
17693         Add a test for glibc's Bugzilla bug #12378.
17694         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
17695         doesn't allow the literal matching of a lone "[" (which is
17696         required by POSIX).
17697         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
17698
17699 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
17700
17701         Sync glibc change fixing Bugzilla bug #12378.
17702         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
17703         beginning and fall back to matching as normal character if the
17704         string ends before the matching ']' is found.  This is what POSIX
17705         requires.
17706
17707 2011-05-13  Eric Blake  <eblake@redhat.com>
17708
17709         getcwd-lgpl: relax test for FreeBSD
17710         * doc/posix-functions/getcwd.texi (getcwd): Document portability
17711         issue.
17712         * tests/test-getcwd-lgpl.c (main): Relax test.
17713         Reported by Matthias Bolte.
17714
17715 2011-05-11  Eric Blake  <eblake@redhat.com>
17716
17717         test-fflush: silence compiler warning
17718         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
17719
17720 2011-05-11  Bruno Haible  <bruno@clisp.org>
17721
17722         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
17723         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
17724         * modules/canonicalize (Depends-on): Add 'nocrash'.
17725         * modules/canonicalize-lgpl (Depends-on): Likewise.
17726         * doc/posix-functions/realpath.texi: Update platforms list.
17727         Reported by Ryan Schmidt <ryandesign@macports.org>.
17728
17729 2011-05-11  Bruno Haible  <bruno@clisp.org>
17730
17731         group-member: Declare function in <unistd.h>.
17732         * lib/unistd.in.h (group_member): New declaration.
17733         * lib/group-member.h: Remove file.
17734         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
17735         * tests/test-unistd-c++.cc: Check signature of group_member.
17736         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
17737         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
17738         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
17739         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
17740         HAVE_GROUP_MEMBER.
17741         * modules/group-member (Files): Remove lib/group-member.h.
17742         (Depends-on): Add unistd. Specify conditions.
17743         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17744         (Include): Change to <unistd.h>.
17745         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
17746         HAVE_GROUP_MEMBER.
17747         * NEWS: Mention the change.
17748         * lib/euidaccess.c: Don't include group-member.h.
17749
17750 2011-05-11  Bruno Haible  <bruno@clisp.org>
17751
17752         group-member: Document module.
17753         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
17754         module.
17755
17756 2011-05-11  Bruno Haible  <bruno@clisp.org>
17757
17758         fclose: Fix mistake earlier today.
17759         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
17760
17761 2011-05-11  Eric Blake  <eblake@redhat.com>
17762
17763         fclose: preserve fflush errors
17764         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
17765         Reported by Jim Meyering.
17766
17767         bootstrap: support a prereq of 'rpcgen -' on RHEL5
17768         * build-aux/bootstrap (check_versions): When no specific version
17769         is required, merely check that the app produces an exit status
17770         that indicates its existence.
17771
17772         maint.mk: drop redundant check
17773         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
17774         the same but better.
17775
17776 2011-05-11  Bruno Haible  <bruno@clisp.org>
17777
17778         fclose: Fix possible link error.
17779         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
17780         unregister_shadow_fd. Improve comments.
17781         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
17782         Eric Blake.
17783
17784 2011-05-11  Jim Meyering  <meyering@redhat.com>
17785
17786         maint.mk: improve "can not" detection and generalize rule name
17787         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
17788         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
17789         Use the same technique as in sc_prohibit_doubled_word, so that
17790         we recognize "can not" also when the words are separated by a newline.
17791         Suggested by Eric Blake.
17792         (perl_filename_lineno_text_): Define.  Factored out of...
17793         (prohibit_doubled_word_): ...here.  Use the new definition.
17794         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
17795         (prohibit_undesirable_word_seq_RE_): New overridable variable.
17796         (ignore_undesirable_word_sequence_RE_): New overridable variable.
17797
17798 2011-05-10  Eric Blake  <eblake@redhat.com>
17799
17800         fclose: avoid double close race when possible
17801         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
17802         all but WINDOWS_SOCKETS.
17803
17804 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
17805
17806         openat: correct new comment
17807         * lib/openat-proc.c (openat_proc_name): Correct the comment.
17808
17809 2011-05-10  Jim Meyering  <meyering@redhat.com>
17810
17811         openat: add comments
17812         * lib/openat-proc.c (openat_proc_name): Add comments,
17813         mostly from Eric Blake.
17814
17815 2011-05-09  Eric Blake  <eblake@redhat.com>
17816
17817         openat: reduce syscalls in first probe of /proc
17818         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
17819         be a directory.  Simplify the probe for .. bugs.
17820         * modules/openat (Depends-on): Drop same-inode.
17821         Reported by Bastien ROUCARIES.
17822
17823 2011-05-09  Jim Meyering  <meyering@redhat.com>
17824
17825         maint.mk: change semantics/name of tight_scope variables
17826         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
17827         Rename variables to align with semantics that make them more useful.
17828
17829         maint.mk: tweak new rule's name not to impinge
17830         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
17831         (sc_tight_scope): Use new rule name rather than $@-0.
17832
17833         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
17834         * top/maint.mk (sc_tight_scope): New rule.
17835         (sc_tight_scope-0): New rule, ifdef'd out.
17836         (_gl_TS_dir): Default.
17837         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
17838         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
17839
17840 2011-05-09  Simon Josefsson  <simon@josefsson.org>
17841
17842         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
17843         Haible <bruno@clisp.org>.
17844
17845 2011-05-08  Bruno Haible  <bruno@clisp.org>
17846
17847         Comments.
17848         * m4/isnanf.m4: Add comment.
17849         * m4/isnanl.m4: Likewise.
17850
17851 2011-05-08  Bruno Haible  <bruno@clisp.org>
17852
17853         glob: Remove obsolete macro.
17854         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
17855
17856 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
17857
17858         intprops: Sun C 5.11 supports __typeof__
17859         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
17860         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
17861         which is new.
17862         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
17863
17864         intprops: switch to usual gnulib indenting and naming
17865         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
17866         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
17867
17868         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
17869
17870 2011-05-08  Jim Meyering  <meyering@redhat.com>
17871
17872         maint.mk: suppress "Entering/Leaving directory" diag in announcement
17873         * top/maint.mk (release-prep): Use make's --no-print-directory
17874         option when generating the announcement.  This eliminates the
17875         pesky "make[2]: Entering/Leaving directory" diagnostics in the
17876         generated announcement template.
17877
17878 2011-05-08  Bruno Haible  <bruno@clisp.org>
17879
17880         tzset: Fix gettimeofday wrapper on Solaris 2.6.
17881         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
17882         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
17883
17884 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
17885
17886         ignore-value, verify: Omit include files from lib_SOURCES.
17887         * modules/ignore-value, modules/verify (Makefile.am):
17888         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
17889         that leads Automake to duplicate use of am__objects_... variables
17890         in Makefile.in.  See
17891         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
17892
17893 2011-05-07  Bruno Haible  <bruno@clisp.org>
17894
17895         fclose: Simplify autoconf macro.
17896         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
17897         defined.
17898
17899 2011-05-07  Bruno Haible  <bruno@clisp.org>
17900
17901         canonicalize-lgpl: Fix autoconf macro ordering bug.
17902         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
17903         gl_STDLIB_H_DEFAULTS.
17904
17905 2011-05-06  Eric Blake  <eblake@redhat.com>
17906
17907         maintainer-makefile: make sc_po_check easier to tune
17908         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
17909         to probe for strings, such as an alternate location for gnulib.
17910
17911         fclose: guarantee behavior on seekable stdin
17912         * modules/fclose (Depends-on): Add fflush.
17913         * doc/posix-functions/fclose.texi (fclose): Document this.
17914         * tests/test-fclose.c (main): Make test for this unconditional.
17915
17916 2011-05-06  Bruno Haible  <bruno@clisp.org>
17917
17918         fflush, fpurge: Relicense under LGPLv2+.
17919         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
17920         * modules/fpurge (License): Likewise.
17921         With permission from Eric Blake and Jim Meyering.
17922         Suggested by Eric Blake.
17923
17924 2011-05-06  Karl Berry  <karl@gnu.org>
17925
17926         * MODULES.html.sh (func_all_modules): remove exit.
17927
17928 2011-05-06  Jim Meyering  <meyering@redhat.com>
17929
17930         maint.mk: use info-gnu@ as the default only for a stable release
17931         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
17932         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
17933         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
17934         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
17935
17936 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
17937
17938         assert-h: new module, which supports C1X-style static_assert
17939         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
17940         * lib/verify.h: Revamp so that this can be copied into assert.h,
17941         while retaining the ability to use it standalone as before.
17942         Rename private identifiers so as not to encroach on the
17943         standard C namespace, since this is now used by assert.h.
17944         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
17945         the old verify_true.
17946         (_GL_VERIFY_TRUE): New macro, with much of the contents of
17947         the old verify_true.  Use _GL_VERIFY_TYPE.
17948         (_GL_VERIFY): New macro, with much of the contents of the old verify.
17949         (static_assert): New macro, if _GL_STATIC_ASSERT_H
17950         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
17951         defined when this file is copied into the replacement assert.h.
17952         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
17953         and _Static_assert is not built in.
17954         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
17955         defined, and use the new macros mentioned above.
17956         * doc/posix-headers/assert.texi: Document this.
17957
17958 2011-05-05  Bruno Haible  <bruno@clisp.org>
17959
17960         fclose, fflush: Respect rules for use of AC_LIBOBJ.
17961         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
17962         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
17963         gl_REPLACE_FCLOSE here.
17964         * modules/fflush (Depends-on): Remove fclose.
17965         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
17966         combination with module 'fclose'.
17967
17968 2011-05-05  Bruno Haible  <bruno@clisp.org>
17969
17970         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
17971         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
17972         gl_FUNC_FFLUSH.
17973         (gl_FUNC_FFLUSH): Use it.
17974         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
17975         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
17976         gl_REPLACE_FSEEKO here.
17977
17978 2011-05-05  Bruno Haible  <bruno@clisp.org>
17979
17980         tzset: Relicense under LGPL.
17981         * modules/tzset (License): Change to LGPL.
17982         No agreement needed; it's a no-op.
17983
17984         strtoimax, strtoumax: Relicense under LGPL.
17985         * modules/strtoimax (License): Change to LGPL.
17986         * modules/strtoumax (License): Likewise.
17987         With permission from Jim Meyering, Paul Eggert:
17988         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
17989         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
17990
17991         getgroups: Relicense under LGPL.
17992         * modules/getgroups (License): Change to LGPL.
17993         With permission from Jim Meyering, Paul Eggert, Eric Blake:
17994         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
17995         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
17996         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
17997
17998         nanosleep: Relicense under LGPL.
17999         * modules/nanosleep (License): Change to LGPL.
18000         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
18001         Haible:
18002         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
18003         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
18004         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
18005         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
18006
18007         futimens: Relicense under LGPL.
18008         * modules/futimens (License): Change to LGPL.
18009         With permission from Eric Blake:
18010         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
18011
18012         fflush: Relicense under LGPL.
18013         * modules/fflush (License): Change to LGPL.
18014         With permission from Eric Blake, Bruno Haible, Jim Meyering:
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         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
18018
18019         tmpfile: Relicense under LGPL.
18020         * modules/tmpfile (License): Change to LGPL.
18021         With permission from Ben Pfaff:
18022         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
18023
18024         isfinite: Relicense under LGPL.
18025         * modules/isfinite (License): Change to LGPL.
18026         With permission from Ben Pfaff, Bruno Haible:
18027         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
18028         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
18029
18030         acosl..tanl: Relicense under LGPL.
18031         * modules/acosl (License): Change to LGPL.
18032         * modules/asinl (License): Likewise.
18033         * modules/atanl (License): Likewise.
18034         * modules/cosl (License): Likewise.
18035         * modules/expl (License): Likewise.
18036         * modules/logl (License): Likewise.
18037         * modules/sinl (License): Likewise.
18038         * modules/sqrtl (License): Likewise.
18039         * modules/tanl (License): Likewise.
18040         Source code originally from glibc and Paolo Bonzini. Agreements:
18041         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
18042         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
18043
18044 2011-05-05  Bruno Haible  <bruno@clisp.org>
18045
18046         signal: Define sighandler_t.
18047         * lib/signal.in.h (sighandler_t): New type.
18048         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
18049         whether sighandler_t is defined.
18050         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
18051         * modules/signal (Depends-on): Add extensions.
18052         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
18053         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
18054         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
18055
18056 2011-05-05  Eric Blake  <eblake@redhat.com>
18057
18058         maint: remove useless REPLACE_*_H macros
18059         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
18060         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
18061         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
18062         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
18063         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
18064         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
18065         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
18066         * m4/btowc.m4: Update callers.
18067         * m4/dirfd.m4: Likewise.
18068         * m4/duplocale.m4: Likewise.
18069         * m4/fchdir.m4: Likewise.
18070         * m4/fdopendir.m4: Likewise.
18071         * m4/inet_ntop.m4: Likewise.
18072         * m4/inet_pton.m4: Likewise.
18073         * m4/ioctl.m4: Likewise.
18074         * m4/mbrlen.m4: Likewise.
18075         * m4/mbrtowc.m4: Likewise.
18076         * m4/mbsinit.m4: Likewise.
18077         * m4/mbsnrtowcs.m4: Likewise.
18078         * m4/mbsrtowcs.m4: Likewise.
18079         * m4/poll.m4: Likewise.
18080         * m4/setlocale.m4: Likewise.
18081         * m4/wcrtomb.m4: Likewise.
18082         * m4/wcsnrtombs.m4: Likewise.
18083         * m4/wcsrtombs.m4: Likewise.
18084         * m4/wctob.m4: Likewise.
18085         * m4/wcwidth.m4: Likewise.
18086         * modules/posix_spawn: Likewise.
18087         * modules/posix_spawn_file_actions_addclose: Likewise.
18088         * modules/posix_spawn_file_actions_adddup2: Likewise.
18089         * modules/posix_spawn_file_actions_addopen: Likewise.
18090         * modules/posix_spawn_file_actions_destroy: Likewise.
18091         * modules/posix_spawn_file_actions_init: Likewise.
18092         * modules/posix_spawnattr_destroy: Likewise.
18093         * modules/posix_spawnattr_getflags: Likewise.
18094         * modules/posix_spawnattr_getpgroup: Likewise.
18095         * modules/posix_spawnattr_getschedparam: Likewise.
18096         * modules/posix_spawnattr_getschedpolicy: Likewise.
18097         * modules/posix_spawnattr_getsigdefault: Likewise.
18098         * modules/posix_spawnattr_getsigmask: Likewise.
18099         * modules/posix_spawnattr_init: Likewise.
18100         * modules/posix_spawnattr_setflags: Likewise.
18101         * modules/posix_spawnattr_setpgroup: Likewise.
18102         * modules/posix_spawnattr_setschedparam: Likewise.
18103         * modules/posix_spawnattr_setschedpolicy: Likewise.
18104         * modules/posix_spawnattr_setsigdefault: Likewise.
18105         * modules/posix_spawnattr_setsigmask: Likewise.
18106         * modules/posix_spawnp: Likewise.
18107
18108 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
18109
18110         Add option to do-release-commit-and-tag to specify branch.
18111         * build-aux/do-release-commit-and-tag: Add --branch.
18112
18113 2011-05-03  Bruno Haible  <bruno@clisp.org>
18114
18115         Avoid unnecessary compilation units, through conditional dependencies.
18116         * modules/accept (Depends-on): Add conditions to the dependencies.
18117         * modules/acosl (Depends-on): Likewise.
18118         * modules/argz (Depends-on): Likewise.
18119         * modules/asinl (Depends-on): Likewise.
18120         * modules/atanl (Depends-on): Likewise.
18121         * modules/atoll (Depends-on): Likewise.
18122         * modules/bind (Depends-on): Likewise.
18123         * modules/btowc (Depends-on): Likewise.
18124         * modules/canonicalize-lgpl (Depends-on): Likewise.
18125         * modules/ceil (Depends-on): Likewise.
18126         * modules/ceilf (Depends-on): Likewise.
18127         * modules/ceill (Depends-on): Likewise.
18128         * modules/chdir-long (Depends-on): Likewise.
18129         * modules/chown (Depends-on): Likewise.
18130         * modules/close (Depends-on): Likewise.
18131         * modules/connect (Depends-on): Likewise.
18132         * modules/cosl (Depends-on): Likewise.
18133         * modules/dirfd (Depends-on): Likewise.
18134         * modules/dprintf (Depends-on): Likewise.
18135         * modules/dprintf-posix (Depends-on): Likewise.
18136         * modules/error (Depends-on): Likewise.
18137         * modules/euidaccess (Depends-on): Likewise.
18138         * modules/expl (Depends-on): Likewise.
18139         * modules/faccessat (Depends-on): Likewise.
18140         * modules/fchdir (Depends-on): Likewise.
18141         * modules/fclose (Depends-on): Likewise.
18142         * modules/fcntl (Depends-on): Likewise.
18143         * modules/fdopendir (Depends-on): Likewise.
18144         * modules/fflush (Depends-on): Likewise.
18145         * modules/floor (Depends-on): Likewise.
18146         * modules/floorf (Depends-on): Likewise.
18147         * modules/floorl (Depends-on): Likewise.
18148         * modules/fnmatch (Depends-on): Likewise.
18149         * modules/fopen (Depends-on): Likewise.
18150         * modules/fprintf-posix (Depends-on): Likewise.
18151         * modules/frexp (Depends-on): Likewise.
18152         * modules/frexp-nolibm (Depends-on): Likewise.
18153         * modules/frexpl (Depends-on): Likewise.
18154         * modules/frexpl-nolibm (Depends-on): Likewise.
18155         * modules/fseek (Depends-on): Likewise.
18156         * modules/fsusage (Depends-on): Likewise.
18157         * modules/ftell (Depends-on): Likewise.
18158         * modules/ftello (Depends-on): Likewise.
18159         * modules/futimens (Depends-on): Likewise.
18160         * modules/getcwd (Depends-on): Likewise.
18161         * modules/getcwd-lgpl (Depends-on): Likewise.
18162         * modules/getdelim (Depends-on): Likewise.
18163         * modules/getdomainname (Depends-on): Likewise.
18164         * modules/getgroups (Depends-on): Likewise.
18165         * modules/gethostname (Depends-on): Likewise.
18166         * modules/getline (Depends-on): Likewise.
18167         * modules/getlogin_r (Depends-on): Likewise.
18168         * modules/getopt-posix (Depends-on): Likewise.
18169         * modules/getpeername (Depends-on): Likewise.
18170         * modules/getsockname (Depends-on): Likewise.
18171         * modules/getsockopt (Depends-on): Likewise.
18172         * modules/getsubopt (Depends-on): Likewise.
18173         * modules/getusershell (Depends-on): Likewise.
18174         * modules/glob (Depends-on): Likewise.
18175         * modules/grantpt (Depends-on): Likewise.
18176         * modules/iconv_open (Depends-on): Likewise.
18177         * modules/iconv_open-utf (Depends-on): Likewise.
18178         * modules/inet_ntop (Depends-on): Likewise.
18179         * modules/inet_pton (Depends-on): Likewise.
18180         * modules/ioctl (Depends-on): Likewise.
18181         * modules/isapipe (Depends-on): Likewise.
18182         * modules/isfinite (Depends-on): Likewise.
18183         * modules/isinf (Depends-on): Likewise.
18184         * modules/lchown (Depends-on): Likewise.
18185         * modules/ldexpl (Depends-on): Likewise.
18186         * modules/link (Depends-on): Likewise.
18187         * modules/linkat (Depends-on): Likewise.
18188         * modules/listen (Depends-on): Likewise.
18189         * modules/logl (Depends-on): Likewise.
18190         * modules/lstat (Depends-on): Likewise.
18191         * modules/mbrlen (Depends-on): Likewise.
18192         * modules/mbrtowc (Depends-on): Likewise.
18193         * modules/mbsinit (Depends-on): Likewise.
18194         * modules/mbsnrtowcs (Depends-on): Likewise.
18195         * modules/mbsrtowcs (Depends-on): Likewise.
18196         * modules/mbtowc (Depends-on): Likewise.
18197         * modules/memcmp (Depends-on): Likewise.
18198         * modules/mkdir (Depends-on): Likewise.
18199         * modules/mkdtemp (Depends-on): Likewise.
18200         * modules/mkfifo (Depends-on): Likewise.
18201         * modules/mkfifoat (Depends-on): Likewise.
18202         * modules/mknod (Depends-on): Likewise.
18203         * modules/mkostemp (Depends-on): Likewise.
18204         * modules/mkostemps (Depends-on): Likewise.
18205         * modules/mkstemp (Depends-on): Likewise.
18206         * modules/mkstemps (Depends-on): Likewise.
18207         * modules/mktime (Depends-on): Likewise.
18208         * modules/nanosleep (Depends-on): Likewise.
18209         * modules/open (Depends-on): Likewise.
18210         * modules/openat (Depends-on): Likewise.
18211         * modules/perror (Depends-on): Likewise.
18212         * modules/poll (Depends-on): Likewise.
18213         * modules/popen (Depends-on): Likewise.
18214         * modules/posix_spawn (Depends-on): Likewise.
18215         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
18216         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
18217         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
18218         * modules/posix_spawnp (Depends-on): Likewise.
18219         * modules/pread (Depends-on): Likewise.
18220         * modules/printf-posix (Depends-on): Likewise.
18221         * modules/ptsname (Depends-on): Likewise.
18222         * modules/putenv (Depends-on): Likewise.
18223         * modules/pwrite (Depends-on): Likewise.
18224         * modules/readline (Depends-on): Likewise.
18225         * modules/readlink (Depends-on): Likewise.
18226         * modules/readlinkat (Depends-on): Likewise.
18227         * modules/recv (Depends-on): Likewise.
18228         * modules/recvfrom (Depends-on): Likewise.
18229         * modules/regex (Depends-on): Likewise.
18230         * modules/remove (Depends-on): Likewise.
18231         * modules/rename (Depends-on): Likewise.
18232         * modules/renameat (Depends-on): Likewise.
18233         * modules/rmdir (Depends-on): Likewise.
18234         * modules/round (Depends-on): Likewise.
18235         * modules/roundf (Depends-on): Likewise.
18236         * modules/roundl (Depends-on): Likewise.
18237         * modules/rpmatch (Depends-on): Likewise.
18238         * modules/select (Depends-on): Likewise.
18239         * modules/send (Depends-on): Likewise.
18240         * modules/sendto (Depends-on): Likewise.
18241         * modules/setenv (Depends-on): Likewise.
18242         * modules/setlocale (Depends-on): Likewise.
18243         * modules/setsockopt (Depends-on): Likewise.
18244         * modules/shutdown (Depends-on): Likewise.
18245         * modules/sigaction (Depends-on): Likewise.
18246         * modules/signbit (Depends-on): Likewise.
18247         * modules/sigprocmask (Depends-on): Likewise.
18248         * modules/sinl (Depends-on): Likewise.
18249         * modules/sleep (Depends-on): Likewise.
18250         * modules/snprintf (Depends-on): Likewise.
18251         * modules/snprintf-posix (Depends-on): Likewise.
18252         * modules/socket (Depends-on): Likewise.
18253         * modules/sprintf-posix (Depends-on): Likewise.
18254         * modules/sqrtl (Depends-on): Likewise.
18255         * modules/stat (Depends-on): Likewise.
18256         * modules/strchrnul (Depends-on): Likewise.
18257         * modules/strdup-posix (Depends-on): Likewise.
18258         * modules/strerror (Depends-on): Likewise.
18259         * modules/strerror_r-posix (Depends-on): Likewise.
18260         * modules/strndup (Depends-on): Likewise.
18261         * modules/strnlen (Depends-on): Likewise.
18262         * modules/strptime (Depends-on): Likewise.
18263         * modules/strsep (Depends-on): Likewise.
18264         * modules/strsignal (Depends-on): Likewise.
18265         * modules/strstr-simple (Depends-on): Likewise.
18266         * modules/strtod (Depends-on): Likewise.
18267         * modules/strtoimax (Depends-on): Likewise.
18268         * modules/strtok_r (Depends-on): Likewise.
18269         * modules/strtoumax (Depends-on): Likewise.
18270         * modules/symlink (Depends-on): Likewise.
18271         * modules/symlinkat (Depends-on): Likewise.
18272         * modules/tanl (Depends-on): Likewise.
18273         * modules/tcgetsid (Depends-on): Likewise.
18274         * modules/tmpfile (Depends-on): Likewise.
18275         * modules/trunc (Depends-on): Likewise.
18276         * modules/truncf (Depends-on): Likewise.
18277         * modules/truncl (Depends-on): Likewise.
18278         * modules/uname (Depends-on): Likewise.
18279         * modules/unlink (Depends-on): Likewise.
18280         * modules/unlockpt (Depends-on): Likewise.
18281         * modules/unsetenv (Depends-on): Likewise.
18282         * modules/usleep (Depends-on): Likewise.
18283         * modules/utimensat (Depends-on): Likewise.
18284         * modules/vasprintf (Depends-on): Likewise.
18285         * modules/vdprintf (Depends-on): Likewise.
18286         * modules/vdprintf-posix (Depends-on): Likewise.
18287         * modules/vfprintf-posix (Depends-on): Likewise.
18288         * modules/vprintf-posix (Depends-on): Likewise.
18289         * modules/vsnprintf (Depends-on): Likewise.
18290         * modules/vsnprintf-posix (Depends-on): Likewise.
18291         * modules/vsprintf-posix (Depends-on): Likewise.
18292         * modules/wcrtomb (Depends-on): Likewise.
18293         * modules/wcscasecmp (Depends-on): Likewise.
18294         * modules/wcscspn (Depends-on): Likewise.
18295         * modules/wcsdup (Depends-on): Likewise.
18296         * modules/wcsncasecmp (Depends-on): Likewise.
18297         * modules/wcsnrtombs (Depends-on): Likewise.
18298         * modules/wcspbrk (Depends-on): Likewise.
18299         * modules/wcsrtombs (Depends-on): Likewise.
18300         * modules/wcsspn (Depends-on): Likewise.
18301         * modules/wcsstr (Depends-on): Likewise.
18302         * modules/wcstok (Depends-on): Likewise.
18303         * modules/wcswidth (Depends-on): Likewise.
18304         * modules/wctob (Depends-on): Likewise.
18305         * modules/wctomb (Depends-on): Likewise.
18306         * modules/wctype (Depends-on): Likewise.
18307         * modules/wcwidth (Depends-on): Likewise.
18308         * modules/write (Depends-on): Likewise.
18309
18310 2011-05-03  Bruno Haible  <bruno@clisp.org>
18311
18312         Support for conditional dependencies.
18313         * doc/gnulib.texi (Module description): Document the syntax of
18314         conditional dependencies.
18315         * gnulib-tool: New option --conditional-dependencies.
18316         (func_usage): Document it.
18317         (cond_dependencies): New variable.
18318         (func_get_automake_snippet_conditional,
18319         func_get_automake_snippet_unconditional): New functions, extracted from
18320         func_get_automake_snippet.
18321         (func_get_automake_snippet): Use them.
18322         (sed_first_32_chars): New variable.
18323         (func_module_shellfunc_name): New function.
18324         (func_module_shellvar_name): New function.
18325         (func_module_conditional_name): New function.
18326         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
18327         func_cond_module_condition): New functions.
18328         (func_modules_transitive_closure): Add support for conditional
18329         dependencies.
18330         (func_emit_lib_Makefile_am): For a conditional module, enclose the
18331         conditional automake snippet in an automake conditional.
18332         (func_emit_autoconf_snippets): Emit shell functions that contain the
18333         code for conditional modules.
18334         (func_import, func_create_testdir): Update specification.
18335
18336 2011-05-03  Eric Blake  <eblake@redhat.com>
18337
18338         test-getaddrinfo: report error information
18339         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
18340
18341 2011-05-03  Jim Meyering  <meyering@redhat.com>
18342
18343         bootstrap: avoid build failure when $GZIP is set
18344         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
18345         program name.  If defined at all, it is supposed to list gzip options.
18346         Reported by Alan Curry in http://debbugs.gnu.org/8609
18347
18348 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
18349
18350         readme-release: new module with release instructions
18351         * modules/readme-release: New module.
18352         * top/README-release: New file, from coreutils, grep, diffutils.
18353         * MODULES.html.sh (Support for maintaining and releasing): Add it.
18354
18355 2011-05-02  Eric Blake  <eblake@redhat.com>
18356
18357         fflush: also replace fclose when fixing fflush
18358         * modules/fflush (Depends-on): Add fclose.
18359         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
18360         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
18361         memstreams with no backing fd.
18362         * doc/posix-functions/fclose.texi (fclose): Document the use of
18363         fflush module to fix the bug.
18364         * tests/test-fclose.c (main): Relax test when fclose is used in
18365         isolation.
18366
18367         fclose: add some tests
18368         * modules/fclose-tests: New test module.
18369         * tests/test-fclose.c: New file.
18370         * doc/posix-functions/fclose.texi (fclose): Document the bug.
18371
18372         fclose: reduced dependencies
18373         * modules/fclose (Depends-on): Switch from fflush/fseeko to
18374         simpler lseek.
18375         * lib/fclose.c (rpl_fclose): Likewise.
18376         Reported by Simon Josefsson.
18377
18378         exit: drop remaining clients
18379         * modules/argmatch (Depends-on): Replace exit with stdlib.
18380         * modules/copy-file (Depends-on): Likewise.
18381         * modules/execute (Depends-on): Likewise.
18382         * modules/exitfail (Depends-on): Likewise.
18383         * modules/obstack (Depends-on): Likewise.
18384         * modules/pagealign_alloc (Depends-on): Likewise.
18385         * modules/pipe-filter-gi (Depends-on): Likewise.
18386         * modules/pipe-filter-ii (Depends-on): Likewise.
18387         * modules/savewd (Depends-on): Likewise.
18388         * modules/spawn-pipe (Depends-on): Likewise.
18389         * modules/wait-process (Depends-on): Likewise.
18390         * modules/xsetenv (Depends-on): Likewise.
18391         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
18392         * modules/git-merge-changelog (Depends-on): Likewise.
18393         * modules/long-options (Depends-on): Likewise.
18394         * modules/pt_chown (Depends-on): Likewise.
18395         * modules/sysexits (Depends-on): Likewise.
18396
18397         freading: relax license from LGPLv3+ to LGPLv2+
18398         * modules/freading (License): Relax LGPL version.
18399
18400 2011-05-02  Bruno Haible  <bruno@clisp.org>
18401
18402         fchdir: Remove unused dependencies.
18403         * modules/fchdir (Depends-on): Remove include_next.
18404
18405 2011-05-02  Bruno Haible  <bruno@clisp.org>
18406
18407         gnulib-tool: Refactor.
18408         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
18409         from func_emit_autoconf_snippets.
18410         (func_emit_autoconf_snippets): Use it.
18411
18412 2011-05-02  Simon Josefsson  <simon@josefsson.org>
18413
18414         * NEWS: Document removal of 'exit'.
18415         * modules/exit: Remove file.
18416
18417 2011-05-01  Bruno Haible  <bruno@clisp.org>
18418
18419         Update DEPENDENCIES.
18420         * DEPENDENCIES (gettext): Recommend the newest release.
18421         Reported by Simon Josefsson.
18422
18423 2011-05-01  Bruno Haible  <bruno@clisp.org>
18424
18425         gnulib-tool: Reduce code duplication.
18426         * gnulib-tool (func_emit_autoconf_snippets): New function.
18427         (func_import, func_create_testdir): Use it.
18428
18429 2011-04-30  Eric Blake  <eblake@redhat.com>
18430
18431         fclose: don't fail on non-seekable input stream
18432         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
18433         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
18434         since fflush is allowed to fail in that case.
18435
18436 2011-04-30  Bruno Haible  <bruno@clisp.org>
18437
18438         dup3: cleanup
18439         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
18440
18441 2011-04-30  Bruno Haible  <bruno@clisp.org>
18442
18443         netdb: Make it work in C++ mode.
18444         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
18445         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
18446         module.
18447         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
18448         gl_MODULE_INDICATOR_FOR_TESTS.
18449         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
18450         * modules/netdb-c++-tests: New file.
18451         * tests/test-netdb-c++.cc: New file.
18452
18453 2011-04-30  Bruno Haible  <bruno@clisp.org>
18454
18455         New modules 'vfscanf', 'vscanf'.
18456         * modules/vfscanf: New file.
18457         * modules/vscanf: New file.
18458         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
18459         here.
18460         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
18461         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
18462
18463 2011-04-30  Bruno Haible  <bruno@clisp.org>
18464
18465         passfd: Add comments.
18466         * lib/passfd.c: Add comments about platforms.
18467
18468 2011-04-30  Bruno Haible  <bruno@clisp.org>
18469
18470         sys_uio: Make <sys/uio.h> self-contained.
18471         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
18472         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
18473
18474 2011-04-30  Bruno Haible  <bruno@clisp.org>
18475
18476         sys_socket: Ensure 'struct iovec' definition.
18477         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
18478         <sys/socket.h>.
18479         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
18480
18481 2011-04-30  Bruno Haible  <bruno@clisp.org>
18482
18483         sys_uio: Protect definition of 'struct iovec'.
18484         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
18485         it as a C struct.
18486
18487 2011-04-30  Bruno Haible  <bruno@clisp.org>
18488
18489         manywarnings: fix indentation
18490         * m4/manywarnings.m4: Indent by 2 spaces consistently.
18491
18492 2011-04-30  Pádraig Brady <P@draigBrady.com>
18493
18494         manywarnings: add -Wno-missing-field-initializers if needed.
18495         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
18496         option if it's needed to allow initialization with { 0, }
18497
18498 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
18499
18500         announce-gen: cosmetic improvement
18501         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
18502
18503 2011-04-29  Jim Meyering  <meyering@redhat.com>
18504
18505         vc-list-files: indent with spaces, not TABs
18506         * build-aux/vc-list-files: Convert leading TABs to spaces,
18507         to match the style of most other files in gnulib.
18508
18509         announce-gen: indent with spaces, not TABs
18510         * build-aux/announce-gen: Convert all TABs to spaces, to match
18511         the style of most other files in gnulib.
18512
18513 2011-04-29  Eric Blake  <eblake@redhat.com>
18514
18515         quotearg: avoid uninitialized variable use
18516         * lib/quotearg.c (quoting_options_from_style): Initialize
18517         remaining fields, and ensure that custom styles are only used via
18518         quoting_options rather than quoting_style.
18519
18520 2011-04-29  Jim Meyering  <meyering@redhat.com>
18521
18522         maint.mk: remove unused VC-tag variable
18523         * top/maint.mk (VC-tag): Remove unused variable.
18524
18525 2011-04-29  Bruno Haible  <bruno@clisp.org>
18526
18527         netdb: fix gai_strerror replacements
18528         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
18529         * modules/netdb: Substitute it.
18530
18531 2011-04-29  Jim Meyering  <meyering@redhat.com>
18532
18533         test-getcwd.c: avoid new set-but-not-used warning
18534         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
18535         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
18536         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
18537         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
18538
18539         test-hash.c: avoid a new shadowing warning
18540         * tests/test-hash.c (main): Don't shadow "dup".
18541
18542 2011-04-28  Eric Blake  <eblake@redhat.com>
18543
18544         getaddrinfo: fix gai_strerror signature
18545         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
18546         and work around mingw with UNICODE defined.
18547         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
18548         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
18549         * modules/netdb (Makefile.am): Substitute it.
18550         * lib/netdb.in.h (gai_strerror): Declare replacement.
18551         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
18552         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
18553         the fix.
18554
18555         getsockopt: avoid compiler warning
18556         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
18557         Reported by Matthias Bolte.
18558
18559         tests: drop unused link dependency
18560         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
18561         * modules/dirent-safer-tests (Makefile.am): Likewise.
18562         * modules/fdopendir-tests (Makefile.am): Likewise.
18563         * modules/mkfifoat-tests (Makefile.am): Likewise.
18564         * modules/openat-safer-tests (Makefile.am): Likewise.
18565         * modules/openat-tests (Makefile.am): Likewise.
18566         * modules/readlinkat-tests (Makefile.am): Likewise.
18567         * modules/symlinkat-tests (Makefile.am): Likewise.
18568         * modules/linkat-tests (Makefile.am): Likewise.
18569         (Depends-on): Switch to filenamecat-lgpl.
18570         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
18571         LIBINTL.
18572         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
18573         * tests/test-linkat.c (main): Don't require xalloc.
18574
18575         hash, mgetgroups: drop xalloc dependency
18576         * lib/hash.c (includes): Adjust includes.
18577         * lib/mgetgroups.c (includes): Likewise.
18578         (xgetgroups): Move...
18579         * lib/xgetgroups.c: ...to new file.
18580         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
18581         * modules/xgetgroups: New file, split from...
18582         * modules/mgetgroups: ...here.
18583         (Depends-on): Add xalloc-oversized.
18584         * modules/hash (Depends-on): Likewise.
18585         * modules/hash-tests (Depends-on): Drop xalloc.
18586         (test_hash_LDADD): Drop unused library.
18587         * tests/test-hash.c (main): Break xalloc dependency.
18588         (includes): Drop unused include.
18589
18590         xalloc-oversized: new module
18591         * modules/xalloc-oversized: New module.
18592         * modules/xalloc (Depends-on): Add it.
18593         * lib/xalloc.h (xalloc_oversized): Move...
18594         * lib/xalloc-oversized.h: ...into new file.
18595
18596         utimecmp: drop dependency on xmalloc
18597         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
18598         due to memory pressure.
18599         * modules/utimecmp (Depends-on): Drop xalloc.
18600
18601 2011-04-27  Eric Blake  <eblake@redhat.com>
18602
18603         getcwd: fix mingw bugs
18604         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
18605         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
18606         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
18607
18608 2011-04-27  Bruno Haible  <bruno@clisp.org>
18609
18610         mkstemps: Ensure declaration on MacOS X 10.5.
18611         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
18612         * doc/glibc-functions/mkstemps.texi: Document header file problem on
18613         MacOS X.
18614
18615 2011-04-27  Bruno Haible  <bruno@clisp.org>
18616
18617         mkstemp: More documentation.
18618         * doc/posix-functions/mkstemp.texi: Document header file problem on
18619         MacOS X.
18620
18621 2011-04-27  Bruno Haible  <bruno@clisp.org>
18622
18623         mkstemp: Tweak configure message when cross-compiling.
18624         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
18625         result as a guess.
18626
18627 2011-04-27  Bruno Haible  <bruno@clisp.org>
18628
18629         clean-temp: Clarify what it does.
18630         * lib/clean-temp.h: Add more comments.
18631         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
18632         module.
18633         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
18634         * doc/glibc-functions/mkstemps.texi: Likewise.
18635         * doc/glibc-functions/mkostemps.texi: Likewise.
18636
18637 2011-04-27  Eric Blake  <eblake@redhat.com>
18638
18639         fchdir: avoid extra chdir and fix test
18640         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
18641         getcwd-lgpl.
18642         * lib/fchdir.c (get_name): Any absolute name will do; it does not
18643         have to be canonical.
18644         (canonicalize_file_name): Drop unused macro.
18645         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
18646
18647         filenamecat-lgpl: fix licence
18648         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
18649         when it was first created.
18650
18651         linkat, renameat: add missing dependency
18652         * modules/linkat (Depends-on): Require getcwd-lgpl.
18653         * modules/renameat (Depends-on): Likewise.
18654
18655         tests: reduce dependencies
18656         * tests/test-linkat.c (main): Use lighter-weight getcwd.
18657         * tests/test-renameat.c (main): Likewise.
18658         * modules/linkat-tests (Depends-on): Relax dependency.
18659         * modules/renameat-tests (Depends-on): Likewise.
18660         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
18661         dependency explicit.
18662
18663         save-cwd: reduce default dependency
18664         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
18665         * lib/save-cwd.c: Update comments.
18666         * NEWS: Document the semantic change.
18667
18668         getcwd: enhance tests
18669         * tests/test-getcwd-lgpl.c: New file, taken from...
18670         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
18671         repeat long path stress tests from m4 probe.
18672         * modules/getcwd-lgpl-tests: New module.
18673         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
18674         * m4/getcwd-abort-bug.m4: Update comment.
18675         * m4/getcwd-path-max.m4: Likewise.
18676
18677         getcwd-lgpl: new module
18678         * modules/getcwd-lgpl: New module.
18679         * lib/getcwd-lgpl.c: New file.
18680         * doc/posix-functions/getcwd.texi (getcwd): Document it.
18681         * MODULES.html.sh (lacking POSIX:2008): Likewise.
18682         * modules/getcwd (configure.ac): Set C witness.
18683         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
18684
18685         getcwd: tweak comments
18686         * m4/getcwd-abort-bug.m4: Fix comments.
18687         * m4/getcwd-path-max.m4: Likewise.
18688         * m4/getcwd.m4: Likewise.
18689
18690 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
18691         and Eric Blake  <eblake@redhat.com>
18692
18693         mkstemp: replace if system version uses wrong permissions
18694         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
18695         read/write mode bits set in file created by mkstemp.
18696         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
18697
18698 2011-04-27  Eric Blake  <eblake@redhat.com>
18699
18700         passfd: avoid compiler warning
18701         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
18702         Reported by Laine Stump.
18703
18704 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
18705
18706         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
18707         required by the NetBSD (and perhaps other 4.4BSD derived) join.
18708
18709 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
18710         and Eric Blake  <eblake@redhat.com>
18711
18712         mkstemp: mention clean-temp module
18713         * lib/mkstemp.c: Add comment.
18714         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
18715
18716 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
18717
18718         inttypes: also provide default values for 32-bit tests
18719         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
18720         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
18721
18722 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
18723
18724         strtoumax: remove dependency on strtoimax
18725         This is like the strtoull change of yesterday.
18726         * modules/strtoumax (Files): Add lib/strtoimax.c.
18727         (Depends-on): Remove strtoimax and add verify.
18728
18729         inttypes-incomplete: new module
18730         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
18731         all but the PRI* and SCN* parts of gl_INTTYPES_H.
18732         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
18733         of gl_INTTYPES_H.
18734         (gl_INTTYPES_H): Rewrite in terms of these new macros.
18735         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
18736         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
18737         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
18738         * modules/strtoumax, modules/xstrtol (Depends-on):
18739         Depend on inttypes-incomplete, not inttypes.
18740         * modules/inttypes-incomplete: New module, containing the contents
18741         of the old modules/inttypes module, except that the Files: section
18742         omits m4/inttypes-pri.m4, and the configure.ac section invokes
18743         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
18744         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
18745         (Depends-on): Depend only on inttypes-incomplete.
18746         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
18747
18748         inttypes: omit now-redundant strtoimax and strtoumax work
18749         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
18750         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
18751
18752         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
18753         This supports apps that need pointers to strtoimax and strtoumax,
18754         and ports to HP-UX 11.00 64.bit, which has macros that expand to
18755         nonexistent functions.  See
18756         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
18757         et seq.
18758         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
18759         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
18760         a macro.
18761         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
18762
18763 2011-04-25  Simon Josefsson  <simon@josefsson.org>
18764
18765         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
18766
18767 2011-04-25  Bruno Haible  <bruno@clisp.org>
18768
18769         strtol, strtoul: Mark modules as obsolete.
18770         * modules/strtol (Status, Notice): New sections.
18771         * modules/strtoul (Status, Notice): New sections.
18772
18773 2011-04-25  Bruno Haible  <bruno@clisp.org>
18774
18775         strtod: Remove check for strtod, unless supporting old platforms.
18776         * modules/strtod-obsolete: New file.
18777         * m4/strtod-obsolete.m4: New file.
18778         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
18779         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
18780         * modules/strtod (Depends-on): Add strtod-obsolete.
18781         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
18782
18783 2011-04-25  Bruno Haible  <bruno@clisp.org>
18784
18785         strcase: Make module obsolete.
18786         * modules/strcase (Status, Notice): New sections.
18787
18788 2011-04-25  Bruno Haible  <bruno@clisp.org>
18789
18790         dup2: Remove check for dup2, unless supporting old obsolete platforms.
18791         * modules/dup2-obsolete: New file.
18792         * m4/dup2-obsolete.m4: New file.
18793         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
18794         gl_FUNC_DUP2_OBSOLETE is not also defined.
18795         * modules/dup2 (Depends-on): Add dup2-obsolete.
18796         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
18797
18798 2011-04-25  Bruno Haible  <bruno@clisp.org>
18799
18800         strnlen: Avoid memchr related link error on old obsolete platforms.
18801         * modules/memchr-obsolete: New file.
18802         * m4/memchr-obsolete.m4: New file.
18803         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
18804         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
18805         * modules/memchr (Depends-on): Add memchr-obsolete.
18806         * modules/strnlen (Depends-on): Likewise.
18807         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
18808
18809 2011-04-25  Jim Meyering  <meyering@redhat.com>
18810
18811         maint.mk: makefile_at_at_check extend and clean up
18812         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
18813         in addition to */Makefile.am.
18814         Exempt legitimate uses of @VAR@ notation, e.g.,
18815         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
18816         Remove obsolete coreutils-specific comment.
18817         Prompted by discussion here:
18818         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
18819
18820 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
18821
18822         strtoul: remove dependency on strtol
18823         This is so that 'configure' need not check for strtol merely because
18824         the application needs strtoul.
18825         * modules/strtoul (Files): Add lib/strtol.c.
18826         (Depends-on): Remove strtol.
18827
18828         strtoull: remove dependency on strtoul
18829         This is like the strtoll change.
18830         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
18831         (Depends-on): Remove strtoul.
18832
18833         strtoll: remove dependency on strtol
18834         This is so that 'configure' need not check for strtol merely because
18835         the application needs strtoll.
18836         * modules/strtoll (Files): Add lib/strtol.c.
18837         (Depends-on): Remove strtol.
18838
18839 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
18840
18841         inttypes: Move some configure check to module 'imaxdiv'.
18842         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
18843         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
18844         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
18845
18846 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
18847
18848         inttypes: Move some configure check to module 'imaxabs'.
18849         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
18850         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
18851         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
18852
18853 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
18854
18855         inttypes: Remove configure tests that are not needed since 2009-12-31.
18856         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
18857         gl_cv_header_working_inttypes_h.
18858
18859 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
18860
18861         * modules/strnlen (Depends-on): Remove memchr.
18862         The strnlen implementation doesn't need the memchr module's fixes; see
18863         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
18864
18865         strtol: remove dependency on wchar
18866         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
18867         * modules/strtol (Depends-on): Remove wchar.
18868
18869 2011-04-21  Eric Blake  <eblake@redhat.com>
18870
18871         passfd: fix test regression on Linux
18872         * modules/passfd-tests (configure.ac): Correct socketpair check.
18873
18874         passfd: speed up configure and drop unused code
18875         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
18876         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
18877         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
18878         Instead of probing at configure for unix_scm_rights_bsd44_way,
18879         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
18880         check to a struct member probe.
18881         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
18882         (sendfd, recvfd): Update preprocessor checks.
18883         * modules/passfd (Files): Reflect rename, and drop unused file.
18884         (Depends-on): Drop unused dependency.
18885
18886         passfd: allow compilation on mingw
18887         * modules/sys_socket (Depends-on): Add sys_uio.
18888         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
18889         iovec and a minimal struct msghdr.
18890         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
18891         * tests/test-sys_socket.c (main): Enhance test.
18892         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
18893         guaranteed to provide what we need.
18894         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
18895         * modules/passfd-tests (Depends-on): Add sys_wait.
18896         * tests/test-passfd.c (main): Skip test on mingw, for now.
18897         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
18898         partial 'struct msghdr' implementation.
18899
18900         sys_uio: new module
18901         * modules/sys_uio: New module.
18902         * modules/sys_uio-tests: Likewise.
18903         * lib/sys_uio.in.h: New file.
18904         * m4/sys_uio_h.m4: Likewise.
18905         * tests/test-sys_uio.c: Likewise.
18906         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
18907         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
18908
18909 2011-04-20  Jim Meyering  <meyering@redhat.com>
18910
18911         useless-if-before-free: avoid false-positive
18912         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
18913         disjunct so that it too requires a terminating ";".  Without that,
18914         this script would identify as useless one statement from gcc that
18915         was not:
18916           if (aligned_ptr)
18917             free (((void **) aligned_ptr) [-1]);
18918
18919 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
18920
18921         doc: update users.txt.
18922         * users.txt: Add barcode.
18923
18924 2011-04-19  Bruno Haible  <bruno@clisp.org>
18925
18926         ioctl: Remove link dependency on native Windows.
18927         * lib/fd-hook.h: Renamed from lib/close-hook.h.
18928         (gl_close_fn, gl_ioctl_fn): New types.
18929         (struct fd_hook): Renamed from struct close_hook. Change type of
18930         private_close_fn field. Add private_ioctl_fn field.
18931         (close_hook_fn): Add parameter for primary close method.
18932         (execute_close_hooks, execute_all_close_hooks): Likewise.
18933         (ioctl_hook_fn): New type.
18934         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
18935         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
18936         argument.
18937         (unregister_fd_hook): Renamed from unregister_close_hook.
18938         * lib/fd-hook.c: Renamed from lib/close-hook.c.
18939         Don't include <unistd.h>.
18940         (close): Remove undef.
18941         (anchor): Update.
18942         (execute_close_hooks): Add argument for primary close method.
18943         (execute_all_close_hooks): Likewise.
18944         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
18945         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
18946         argument. Allow each argument to be NULL.
18947         (unregister_fd_hook): Renamed from unregister_close_hook.
18948         * lib/close.c (rpl_close): Pass 'close' function pointer to
18949         execute_all_close_hooks.
18950         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
18951         (primary_ioctl): New function.
18952         (ioctl): Don't call ioctlsocket here. Instead, call
18953         execute_all_ioctl_hooks.
18954         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
18955         close method.
18956         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
18957         (fd_sockets_hook): Renamed from close_sockets_hook.
18958         (gl_sockets_startup, gl_sockets_cleanup): Update.
18959         * modules/fd-hook: Renamed from modules/close-hook. Update.
18960         * modules/close (Depends-on): Add fd-hook, remove close-hook.
18961         * modules/sockets (Depends-on): Likewise.
18962         * modules/ioctl (Depends-on): Add fd-hook.
18963         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
18964         GNULIB_SOCKET.
18965
18966 2011-04-19  Bruno Haible  <bruno@clisp.org>
18967
18968         Move the support of O_NONBLOCK in open() to the 'open' module.
18969         * modules/nonblocking (Depends-on): Remove 'open'.
18970         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
18971         gl_cv_have_open_O_NONBLOCK.
18972         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
18973         O_NONBLOCK support.
18974         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
18975
18976 2011-04-17  Bruno Haible  <bruno@clisp.org>
18977
18978         pipe2: Simplify code.
18979         * lib/pipe2.c (pipe2): Reduce code duplication.
18980
18981 2011-04-17  Bruno Haible  <bruno@clisp.org>
18982
18983         nonblocking: Add comment.
18984         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
18985
18986 2011-04-17  Bruno Haible  <bruno@clisp.org>
18987
18988         nonblocking: Add tests for sockets.
18989         * tests/test-nonblocking-socket.sh: New file.
18990         * tests/test-nonblocking-socket-main.c: New file.
18991         * tests/test-nonblocking-socket-child.c: New file.
18992         * tests/test-nonblocking-socket.h: New file.
18993         * tests/socket-server.h: New file.
18994         * tests/socket-client.h: New file.
18995         * modules/nonblocking-socket-tests: New file.
18996         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
18997
18998 2011-04-17  Bruno Haible  <bruno@clisp.org>
18999
19000         nonblocking: Add tests for pipes.
19001         * tests/test-nonblocking-pipe.sh: New file.
19002         * tests/test-nonblocking-pipe-main.c: New file.
19003         * tests/test-nonblocking-pipe-child.c: New file.
19004         * tests/test-nonblocking-pipe.h: New file.
19005         * tests/test-nonblocking-writer.h: New file.
19006         * tests/test-nonblocking-reader.h: New file.
19007         * tests/test-nonblocking-misc.h: New file.
19008         * modules/nonblocking-pipe-tests: New file.
19009         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
19010
19011 2011-04-16  Bruno Haible  <bruno@clisp.org>
19012
19013         gettext: Clarify the needed programmer actions.
19014         * modules/gettext (Notice): New field.
19015         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
19016
19017 2011-04-16  Bruno Haible  <bruno@clisp.org>
19018
19019         strchrnul: Tweak last commit.
19020         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
19021         bug.
19022         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
19023         as in _GL_FUNCDECL_SYS.
19024         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
19025         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
19026
19027 2011-04-15  Eric Blake  <eblake@redhat.com>
19028
19029         strchrnul: work around cygwin bug
19030         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
19031         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
19032         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
19033         * modules/string (Makefile.am): Substitute it.
19034         * lib/string.in.h (strchrnul): Use it.
19035
19036 2011-04-15  Bruno Haible  <bruno@clisp.org>
19037
19038         Don't require lib/stdio-write.c when only module 'stdio' is used.
19039         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
19040         invocation.
19041         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
19042
19043 2011-04-14  Bruno Haible  <bruno@clisp.org>
19044
19045         Support non-blocking pipe I/O in read() on native Windows.
19046         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
19047         (read): New declaration.
19048         * lib/read.c: New file.
19049         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
19050         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
19051         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
19052         vscanf): New declarations.
19053         * lib/stdio-read.c: New file.
19054         * m4/read.m4: New file.
19055         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
19056         REPLACE_READ.
19057         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
19058         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
19059         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
19060         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
19061         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
19062         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
19063         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
19064         * modules/read: New file.
19065         * modules/nonblocking (Files): Add lib/stdio-read.c.
19066         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
19067         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
19068         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
19069         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
19070         * modules/pread (Depends-on): Add read.
19071         * modules/safe-read (Depends-on): Likewise.
19072         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
19073         gets, scanf, vfscanf, vscanf): Verify signatures.
19074         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
19075         problem with non-blocking pipes.
19076         * doc/posix-functions/fgetc.texi: Likewise.
19077         * doc/posix-functions/fgets.texi: Likewise.
19078         * doc/posix-functions/fread.texi: Likewise.
19079         * doc/posix-functions/fscanf.texi: Likewise.
19080         * doc/posix-functions/getc.texi: Likewise.
19081         * doc/posix-functions/getchar.texi: Likewise.
19082         * doc/posix-functions/gets.texi: Likewise.
19083         * doc/posix-functions/scanf.texi: Likewise.
19084         * doc/posix-functions/vfscanf.texi: Likewise.
19085         * doc/posix-functions/vscanf.texi: Likewise.
19086
19087 2011-04-14  Bruno Haible  <bruno@clisp.org>
19088
19089         Support non-blocking pipe I/O in write() on native Windows.
19090         * lib/write.c (rpl_write): Split a write request that failed merely
19091         because the byte count was larger than the pipe buffer's size.
19092         * doc/posix-functions/write.texi: Mention the problem with large byte
19093         counts.
19094
19095 2011-04-14  Bruno Haible  <bruno@clisp.org>
19096
19097         wchar: Ensure that wchar_t gets defined on uClibc.
19098         * lib/wchar.in.h: On uClibc, include <stddef.h>.
19099         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
19100
19101 2011-04-13  Bruno Haible  <bruno@clisp.org>
19102
19103         safe-write, full-read: Avoid unnecessary compilation units.
19104         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
19105         (Depends-on): Remove safe-read. Add ssize_t.
19106         * modules/full-read (Files): Add lib/full-write.c.
19107         (Depends-on): Add full-write.
19108
19109 2011-04-13  Bruno Haible  <bruno@clisp.org>
19110
19111         Support non-blocking pipe I/O and SIGPIPE in pwrite().
19112         * modules/pwrite (Depends-on): Add 'write'.
19113
19114 2011-04-13  Bruno Haible  <bruno@clisp.org>
19115
19116         Support non-blocking pipe I/O in write() on native Windows.
19117         * lib/unistd.in.h (write): Enable replacement also if
19118         GNULIB_UNISTD_H_NONBLOCKING is 1.
19119         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
19120         (rpl_write): When failing to write on a non-blocking pipe, change
19121         errno from ENOSPC to EAGAIN.
19122         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
19123         putchar, puts, vfprintf, vprintf): Enable replacement also if
19124         GNULIB_STDIO_H_NONBLOCKING is 1.
19125         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
19126         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
19127         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
19128         CALL_WITH_SIGPIPE_EMULATION.
19129         (CALL_WITH_SIGPIPE_EMULATION): Use them.
19130         * m4/nonblocking.m4: New file.
19131         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
19132         for non-blocking I/O support.
19133         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19134         GNULIB_UNISTD_H_NONBLOCKING.
19135         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
19136         required for non-blocking I/O support.
19137         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
19138         * modules/nonblocking (Files): Add m4/nonblocking.m4,
19139         lib/stdio-write.c, m4/asm-underscore.m4.
19140         (Depends-on): Add stdio, unistd.
19141         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
19142         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
19143         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
19144         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
19145         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
19146         problem with non-blocking pipes.
19147         * doc/posix-functions/fputc.texi: Likewise.
19148         * doc/posix-functions/fputs.texi: Likewise.
19149         * doc/posix-functions/fwrite.texi: Likewise.
19150         * doc/posix-functions/printf.texi: Likewise.
19151         * doc/posix-functions/putc.texi: Likewise.
19152         * doc/posix-functions/putchar.texi: Likewise.
19153         * doc/posix-functions/puts.texi: Likewise.
19154         * doc/posix-functions/vfprintf.texi: Likewise.
19155         * doc/posix-functions/vprintf.texi: Likewise.
19156         * doc/posix-functions/write.texi: Likewise.
19157
19158 2011-04-10  Jim Meyering  <meyering@redhat.com>
19159
19160         maint.mk: prohibit doubled words
19161         Detect them also when they're separated by a newline.
19162         There are 3 ways to customize it:
19163           - disable the test on a per file basis, as usual with rules using
19164             $(VC_LIST_EXCEPT)
19165           - replace the default doubled-word-selecting regexp (affects all files)
19166           - ignore a particular file-vs-doubled-word match
19167         I nearly used that last one to ignore the "is is" match in
19168         coreutils' NEWS file, since the text was "ls -is is ..."
19169         To do that, I would have added this line to cfg.mk:
19170           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
19171         but it would have ignored any "is is" match in NEWS.
19172         Low probability, but still...
19173         Instead, I changed the text, slightly:
19174           -  ls -is is now consistent with ls -lis in ignoring values returned
19175           +  "ls -is" is now consistent with ls -lis in ignoring values returned
19176         * top/maint.mk (prohibit_double_word_RE_): Provide default.
19177         (prohibit_doubled_word_): Define.
19178         (sc_prohibit_doubled_word): New rule.
19179         (sc_prohibit_the_the): Remove.  Subsumed by the above.
19180
19181 2011-04-10  Jim Meyering  <meyering@redhat.com>
19182
19183         maint: fix doubled-word typo in comment
19184         * m4/gethostname.m4: s/is is/it is/
19185         * m4/getdomainname.m4: Likewise.
19186
19187 2011-04-10  Jim Meyering  <meyering@redhat.com>
19188
19189         maint: remove doubled word: s/it it/it/
19190         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
19191
19192 2011-04-10  Jim Meyering  <meyering@redhat.com>
19193
19194         maint.mk: remove useless semicolon and backslash
19195         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
19196         semicolon and backslash.
19197
19198 2011-04-10  Bruno Haible  <bruno@clisp.org>
19199
19200         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
19201         * modules/stdint-tests (Depends-on): Add wchar.
19202
19203 2011-04-10  Jim Meyering  <meyering@redhat.com>
19204
19205         maint: remove doubled words in comments, e.g., s/a a/a/
19206         * lib/strptime.c (day_of_the_week): s/the the/the/
19207         * tests/test-chown.h (test_chown): s/a a/a/
19208
19209         test-chown.h: correct a cast
19210         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
19211         when the destination is a stat.st_gid.
19212
19213 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
19214
19215         getaddrinfo: Fix test for sa_len member.
19216         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
19217         include <sys/types.h> before <sys/socket.h>.
19218
19219 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
19220
19221         maint: change "can not" to "cannot"
19222         * doc/posix-functions/iconv.texi (iconv): This one crossed line
19223         boundaries.
19224
19225 2011-04-09  Jim Meyering  <meyering@redhat.com>
19226
19227         maint: change "a a" to "a"
19228         * tests/test-lchown.h (test_lchown): s/a a/a/
19229
19230         maint.mk: prohibit \<the the\>
19231         * top/maint.mk (sc_prohibit_the_the): New rule.
19232
19233         maint: fix "the the" in comment
19234         * lib/count-one-bits.h: s/the the/the/
19235
19236         maint: change "can not" to "cannot"
19237         But do not change the occurrences in maintain.texi or in
19238         build-aux/po/Makefile.in.in, which I presume comes from gettext.
19239         * doc/gnulib-tool.texi: s/can not/cannot/
19240         * doc/posix-functions/accept.texi (accept): Likewise.
19241         * doc/posix-functions/socket.texi (socket): Likewise.
19242         * lib/mbrtowc.c: Likewise.
19243
19244         maint.mk: prohibit use of "can not"
19245         * top/maint.mk (sc_prohibit_can_not): New rule.
19246         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
19247
19248 2011-04-09  Bruno Haible  <bruno@clisp.org>
19249
19250         careadlinkat: Guard against misuse of careadlinkatcwd.
19251         * lib/careadlinkat.c: Include <stdlib.h>.
19252         (careadlinkatcwd): Check that the fd argument is as expected.
19253
19254 2011-04-09  Bruno Haible  <bruno@clisp.org>
19255
19256         careadlinkat: Use common coding style.
19257         * lib/careadlinkat.c: Move gnulib includes after system includes.
19258
19259 2011-04-09  Bruno Haible  <bruno@clisp.org>
19260
19261         careadlinkat: Clarify specification.
19262         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
19263         (careadlinkatcwd): Add comment.
19264         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
19265
19266 2011-04-09  Bruno Haible  <bruno@clisp.org>
19267
19268         areadlinkat: Avoid link error on many platforms.
19269         * modules/areadlinkat (Depends-on): Add areadlink.
19270
19271 2011-04-09  Bruno Haible  <bruno@clisp.org>
19272
19273         allocator, careadlinkat: Fix double-inclusion guard.
19274         * lib/allocator.h: Fix double-inclusion guard.
19275         * lib/careadlinkat.h: Likewise.
19276
19277 2011-04-09  Bruno Haible  <bruno@clisp.org>
19278
19279         relocatable-prog-wrapper: Update after module 'areadlink' changed.
19280         * lib/relocwrapper.c: Update dependencies hierarchy.
19281         * build-aux/install-reloc: Update list of files to be compiled.
19282         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
19283         lib/allocator.[hc].
19284
19285 2011-04-08  Eric Blake  <eblake@redhat.com>
19286
19287         strftime: silence gnulib-tool warning
19288         * modules/strftime-tests (Depends-on): Drop automatic dependency.
19289
19290 2011-04-08  Bruno Haible  <bruno@clisp.org>
19291
19292         verify: Fix syntax error with GCC 4.6 in C++ mode.
19293         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
19294         (HAVE_STATIC_ASSERT): New macro.
19295         (verify_true, verify): Use 'static_assert' if it is supported and
19296         '_Static_assert' is not supported.
19297
19298 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
19299
19300         allocator: New module.
19301         * modules/allocator, lib/allocator.c: New files.
19302         * lib/allocator.h (stdlib_allocator): New decl.
19303         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
19304         Remove.  Do not include <stdlib.h>.
19305         (careadlinkat): Use stdlib_allocator instead of rolling our own.
19306         * modules/careadlinkat (Files): Remove lib/allocator.h.
19307         (Depends-on): Add allocator.
19308
19309         stdlib: let modules use system malloc, realloc
19310         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
19311         if !_GL_USE_STDLIB_ALLOC.
19312         (malloc, realloc): Limit this change to a smaller scope.
19313
19314         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
19315         (malloc, realloc): Don't #undef; no longer needed.
19316         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
19317         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
19318         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
19319         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
19320         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
19321         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
19322         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
19323         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
19324
19325         careadlinkat: rename members to avoid problem
19326         * lib/allocator.h (struct allocator): Rename members from
19327         malloc/realloc to allocate/reallocate, to avoid problems if malloc
19328         and realloc are #define'd.  Reported by Eric Blake in
19329         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
19330         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
19331
19332 2011-04-08  Eric Blake  <eblake@redhat.com>
19333
19334         nonblocking: reduce dependency
19335         * tests/test-nonblocking.c: Only test sockets when in use.
19336         * modules/nonblocking-tests (Depends-on): Drop socket.
19337         (Makefile.am): Link even if sockets are not present.
19338         * modules/pipe2-tests (Makefile.am): Likewise.
19339         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
19340
19341         pipe2: fix O_NONBLOCK support on mingw
19342         * modules/pipe2 (Depends-on): Add nonblocking.
19343         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
19344         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
19345         * tests/test-nonblocking.c (main): Likewise.
19346         * modules/pipe2-tests (Makefile.am): Avoid link failure.
19347
19348         fcntl-h: fix O_ACCMODE on cygwin
19349         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
19350         * lib/fcntl.in.h (O_ACCMODE): Fix it.
19351
19352         pipe-filter: drop O_NONBLOCK workarounds
19353         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
19354         * modules/pipe-filter-ii (Depends-on): Likewise.
19355         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
19356
19357         nonblocking: provide O_NONBLOCK for mingw
19358         * modules/nonblocking (Depends-on): Add open.
19359         (configure.ac): Set new witness macro.
19360         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
19361         * modules/fcntl-h (Makefile.am): Substitute it.
19362         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
19363         nonblocking module is in use.
19364         * lib/nonblocking.c: Adjust portability test.
19365         * lib/open.c (open): Don't let native open see gnulib flag.
19366         * tests/test-fcntl-h.c (main): Enhance test.
19367         * tests/test-open.h (test_open): Likewise.
19368         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
19369
19370         careadlinkat: fix compilation error on mingw
19371         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
19372         within struct allocator.
19373
19374 2011-04-06  Eric Blake  <eblake@redhat.com>
19375
19376         binary-io: relicense under LGPLv2+
19377         * modules/binary-io (License): Relax to LGPLv2+.
19378         Requested for libvirt, and required by pipe2.
19379
19380 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
19381
19382         verify: use _Static_assert if available
19383         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
19384         (verify_true, verify): Use it if available.  This generates better
19385         diagnostics with GCC 4.6.0 and later.
19386
19387 2011-04-05  Bruno Haible  <bruno@clisp.org>
19388
19389         Remove leftover generated .h files after config.status changed.
19390
19391         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
19392         GL_GENERATE_ALLOCA_H.
19393         * modules/alloca-opt (Makefile.am): Remove alloca.h if
19394         GL_GENERATE_ALLOCA_H evaluates to false.
19395
19396         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
19397         GL_GENERATE_ARGZ_H.
19398         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
19399         evaluates to false.
19400
19401         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
19402         GL_GENERATE_BYTESWAP_H.
19403         * modules/byteswap (Makefile.am): Remove byteswap.h if
19404         GL_GENERATE_BYTESWAP_H evaluates to false.
19405
19406         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
19407         GL_GENERATE_ERRNO_H.
19408         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
19409         evaluates to false.
19410
19411         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
19412         GL_GENERATE_FLOAT_H.
19413         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
19414         evaluates to false.
19415
19416         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
19417         GL_GENERATE_FNMATCH_H.
19418         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
19419         GL_GENERATE_FNMATCH_H evaluates to false.
19420
19421         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
19422         GL_GENERATE_GLOB_H.
19423         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
19424         evaluates to false.
19425
19426         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
19427         automake conditional GL_GENERATE_ICONV_H.
19428         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
19429         evaluates to false.
19430
19431         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
19432         GL_GENERATE_NETINET_IN_H.
19433         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
19434         GL_GENERATE_NETINET_IN_H evaluates to false.
19435
19436         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
19437         conditional GL_GENERATE_PTHREAD_H.
19438         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
19439         * modules/pthread (Makefile.am): Remove pthread.h if
19440         GL_GENERATE_PTHREAD_H evaluates to false.
19441
19442         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
19443         GL_GENERATE_SCHED_H.
19444         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
19445         evaluates to false.
19446
19447         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
19448         conditional GL_GENERATE_SELINUX_CONTEXT_H.
19449         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
19450         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
19451
19452         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
19453         GL_GENERATE_STDARG_H.
19454         * modules/stdarg (Makefile.am): Remove stdarg.h if
19455         GL_GENERATE_STDARG_H evaluates to false.
19456
19457         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
19458         GL_GENERATE_STDBOOL_H.
19459         * modules/stdbool (Makefile.am): Remove stdbool.h if
19460         GL_GENERATE_STDBOOL_H evaluates to false.
19461
19462         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
19463         conditional GL_GENERATE_STDDEF_H.
19464         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
19465         * modules/stddef (Makefile.am): Remove stddef.h if
19466         GL_GENERATE_STDDEF_H evaluates to false.
19467
19468         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
19469         GL_GENERATE_STDINT_H.
19470         * modules/stdint (Makefile.am): Remove stdint.h if
19471         GL_GENERATE_STDINT_H evaluates to false.
19472
19473         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
19474         GL_GENERATE_SYSEXITS_H.
19475         * modules/sysexits (Makefile.am): Remove sysexits.h if
19476         GL_GENERATE_SYSEXITS_H evaluates to false.
19477
19478         Reported by Karl Berry and Ralf Wildenhues.
19479
19480 2011-04-05  Bruno Haible  <bruno@clisp.org>
19481
19482         Ensure to rebuild generated .h files when config.status has changed.
19483         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
19484         config.status.
19485         * modules/ctype (Makefile.am): Likewise.
19486         * modules/dirent (Makefile.am): Likewise.
19487         * modules/errno (Makefile.am): Likewise.
19488         * modules/fcntl-h (Makefile.am): Likewise.
19489         * modules/float (Makefile.am): Likewise.
19490         * modules/getopt-posix (Makefile.am): Likewise.
19491         * modules/glob (Makefile.am): Likewise.
19492         * modules/iconv-h (Makefile.am): Likewise.
19493         * modules/inttypes (Makefile.am): Likewise.
19494         * modules/langinfo (Makefile.am): Likewise.
19495         * modules/locale (Makefile.am): Likewise.
19496         * modules/math (Makefile.am): Likewise.
19497         * modules/netdb (Makefile.am): Likewise.
19498         * modules/netinet_in (Makefile.am): Likewise.
19499         * modules/poll-h (Makefile.am): Likewise.
19500         * modules/pthread (Makefile.am): Likewise.
19501         * modules/pty (Makefile.am): Likewise.
19502         * modules/sched (Makefile.am): Likewise.
19503         * modules/search (Makefile.am): Likewise.
19504         * modules/selinux-h (Makefile.am): Likewise.
19505         * modules/signal (Makefile.am): Likewise.
19506         * modules/spawn (Makefile.am): Likewise.
19507         * modules/stdarg (Makefile.am): Likewise.
19508         * modules/stdbool (Makefile.am): Likewise.
19509         * modules/stddef (Makefile.am): Likewise.
19510         * modules/stdint (Makefile.am): Likewise.
19511         * modules/stdio (Makefile.am): Likewise.
19512         * modules/stdlib (Makefile.am): Likewise.
19513         * modules/string (Makefile.am): Likewise.
19514         * modules/strings (Makefile.am): Likewise.
19515         * modules/sys_file (Makefile.am): Likewise.
19516         * modules/sys_ioctl (Makefile.am): Likewise.
19517         * modules/sys_select (Makefile.am): Likewise.
19518         * modules/sys_socket (Makefile.am): Likewise.
19519         * modules/sys_stat (Makefile.am): Likewise.
19520         * modules/sys_time (Makefile.am): Likewise.
19521         * modules/sys_times (Makefile.am): Likewise.
19522         * modules/sys_utsname (Makefile.am): Likewise.
19523         * modules/sys_wait (Makefile.am): Likewise.
19524         * modules/sysexits (Makefile.am): Likewise.
19525         * modules/termios (Makefile.am): Likewise.
19526         * modules/time (Makefile.am): Likewise.
19527         * modules/unistd (Makefile.am): Likewise.
19528         * modules/wchar (Makefile.am): Likewise.
19529         * modules/wctype-h (Makefile.am): Likewise.
19530         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
19531
19532 2011-04-05  Bruno Haible  <bruno@clisp.org>
19533
19534         pipe2: Relicense under LGPLv2+.
19535         * modules/pipe2 (License): Change to LGPLv2+.
19536         Requested by Eric Blake, for libvirt.
19537
19538 2011-04-05  Bruce Korb  <bkorb@gnu.org>
19539
19540         bootstrap: compute gnulib_extra_files after updating build_aux
19541         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
19542         change build_aux or also supply gnulib_extra_files.  Handle correctly.
19543
19544 2011-04-05  Eric Blake  <eblake@redhat.com>
19545
19546         bootstrap: preserve git whitelist item sorting
19547         * build-aux/bootstrap (sort_patterns): New function.
19548         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
19549
19550 2011-04-05  Simon Josefsson  <simon@josefsson.org>
19551
19552         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
19553         sc_space_tab check.
19554
19555 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
19556
19557         areadlink, areadlinkat: rewrite in terms of careadlinkat
19558         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
19559         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
19560         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
19561         (malloc, realloc): Remove #undefs.
19562         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
19563         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
19564         readlink, ssize_t, stdint, unistd.
19565         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
19566         areadlink, stdint.
19567
19568         careadlinkat: new module
19569         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
19570         * modules/careadlinkat: New files, written by me with
19571         a review and feedback from Ben Pfaff in
19572         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
19573
19574 2011-04-01  Bruno Haible  <bruno@clisp.org>
19575
19576         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
19577         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
19578         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
19579         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
19580         Reported by Bruce Korb <bruce.korb@gmail.com>.
19581
19582 2011-04-01  Bruno Haible  <bruno@clisp.org>
19583
19584         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
19585         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
19586         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
19587         * modules/wcpcpy (Depends-on): Add extensions.
19588         * modules/wcpncpy (Depends-on): Likewise.
19589         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
19590         systems.
19591         * doc/posix-functions/wcpncpy.texi: Likewise.
19592         * doc/posix-functions/wcwidth.texi: Likewise.
19593
19594 2011-03-31  Eric Blake  <eblake@redhat.com>
19595
19596         nonblocking: fix mingw test failures
19597         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
19598         non-blocking flag on regular file.
19599         (get_nonblocking_flag): Set errno on invalid fd.
19600         * tests/test-nonblocking.c (main): Avoid test failure on
19601         directories if fchdir is not active.
19602         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
19603
19604 2011-03-31  Bruno Haible  <bruno@clisp.org>
19605
19606         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
19607         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
19608         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
19609         Reported by Simon Josefsson <simon@josefsson.org>.
19610
19611 2011-03-31  Bruno Haible  <bruno@clisp.org>
19612         and Eric Blake  <eblake@redhat.com>
19613
19614         nonblocking: new module
19615         * modules/nonblocking: New module.
19616         * modules/nonblocking-tests: Likewise.
19617         * lib/nonblocking.h: New file.
19618         * lib/nonblocking.c: Likewise.
19619         * tests/test-nonblocking.c: New test.
19620         * lib/ioctl.c (ioctl) [mingw]: Update comment.
19621
19622 2011-03-30  Bruno Haible  <bruno@clisp.org>
19623
19624         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
19625         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
19626         instead of 'printf' format for GCC >= 4.4.
19627         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
19628         (fprintf, printf, vfprintf, vprintf): Declare with
19629         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
19630         the system's vfprintf() function.
19631         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
19632
19633 2011-03-30  Eric Blake  <eblake@redhat.com>
19634
19635         passfd: fix scoping bug
19636         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
19637         before sendmsg/recvmsg.
19638
19639         passfd: standardize coding conventions
19640         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
19641         can be learned at compile time.
19642         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
19643         ifdefs.
19644         (sendfd, recvfd): Follow gnulib code conventions.
19645
19646         passfd: fix incorrect sendmsg arguments
19647         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
19648         incorrect msg_controllen value.
19649         * modules/passfd-tests (Depends-on): Check for alarm.
19650         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
19651         Reported by Bastien ROUCARIES.
19652
19653 2011-03-30  Bruno Haible  <bruno@clisp.org>
19654
19655         c-strcasestr: Relicense under LGPLv2+.
19656         * modules/c-strcasestr (License): Change to LGPLv2+.
19657         Requested by Eric Blake, for libvirt.
19658
19659 2011-03-30  Simon Josefsson  <simon@josefsson.org>
19660
19661         * users.txt: Add libidn2.  Fix libtasn1 link.
19662
19663 2011-03-30  Jim Meyering  <meyering@redhat.com>
19664
19665         tests: readlink* ("",... fails with EINVAL on newer kernels
19666         readlink and readlinkat have typically failed with ENOENT for
19667         the invalid, empty file name,  "".  However, with the advent
19668         of linux-2.6.39, they fail with EINVAL.
19669         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
19670         when operating on the empty file name.
19671         * tests/test-readlink.h (test_readlink): Likewise.
19672
19673 2011-03-29  Bruno Haible  <bruno@clisp.org>
19674
19675         Relicense some modules under LGPLv2+, for libidn2.
19676         * modules/array-mergesort (License): Change to LGPLv2+.
19677         * modules/c-strcaseeq (License): Likewise.
19678         * modules/striconveh (License): Likewise.
19679         * modules/striconveha (License): Likewise.
19680         * modules/uniconv/base (License): Likewise.
19681         * modules/uniconv/u8-conv-from-enc (License): Likewise.
19682         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
19683         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
19684         * modules/unictype/base (License): Likewise.
19685         * modules/unictype/bidiclass-of (License): Likewise.
19686         * modules/unictype/category-M (License): Likewise.
19687         * modules/unictype/category-none (License): Likewise.
19688         * modules/unictype/category-of (License): Likewise.
19689         * modules/unictype/category-test (License): Likewise.
19690         * modules/unictype/category-test-withtable (License): Likewise.
19691         * modules/unictype/combining-class (License): Likewise.
19692         * modules/unictype/joiningtype-of (License): Likewise.
19693         * modules/unictype/scripts (License): Likewise.
19694         * modules/uninorm/base (License): Likewise.
19695         * modules/uninorm/canonical-decomposition (License): Likewise.
19696         * modules/uninorm/composition (License): Likewise.
19697         * modules/uninorm/decompose-internal (License): Likewise.
19698         * modules/uninorm/decomposition-table (License): Likewise.
19699         * modules/uninorm/nfc (License): Likewise.
19700         * modules/uninorm/nfd (License): Likewise.
19701         * modules/uninorm/u32-normalize (License): Likewise.
19702         * modules/unistr/base (License): Likewise.
19703         * modules/unistr/u32-cpy (License): Likewise.
19704         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
19705         * modules/unistr/u32-to-u8 (License): Likewise.
19706         * modules/unistr/u32-uctomb (License): Likewise.
19707         * modules/unistr/u8-check (License): Likewise.
19708         * modules/unistr/u8-mblen (License): Likewise.
19709         * modules/unistr/u8-mbtouc (License): Likewise.
19710         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
19711         * modules/unistr/u8-mbtoucr (License): Likewise.
19712         * modules/unistr/u8-prev (License): Likewise.
19713         * modules/unistr/u8-strlen (License): Likewise.
19714         * modules/unistr/u8-to-u32 (License): Likewise.
19715         * modules/unistr/u8-uctomb (License): Likewise.
19716         * modules/unitypes (License): Likewise.
19717         Requested by Simon Josefsson.
19718
19719 2011-03-29  Simon Josefsson  <simon@josefsson.org>
19720
19721         lib-symbol-visibility: Add a notice.
19722         * modules/lib-symbol-visibility (Notice): New field.
19723
19724 2011-03-29  Bruno Haible  <bruno@clisp.org>
19725
19726         getaddrinfo: Doc fix.
19727         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
19728         section "fixed in Gnulib".
19729
19730 2011-03-28  Simon Josefsson  <simon@josefsson.org>
19731
19732         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
19733         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
19734
19735 2011-03-26  Bruno Haible  <bruno@clisp.org>
19736
19737         unictype/property-byname: Reduce the number of load-time relocations.
19738         * lib/unictype/pr_byname.c: Include <stdlib.h>.
19739         (UC_PROPERTY_INDEX_*): New enumeration values.
19740         (uc_property_byname): Convert an index from the lookup table to an
19741         uc_property_t.
19742         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
19743         values.
19744
19745 2011-03-26  Bruno Haible  <bruno@clisp.org>
19746
19747         unictype/property-byname: Allow omitted word separators and aliases.
19748         * lib/unictype/pr_byname.gperf: Add property names without word
19749         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
19750         for 'space'.
19751
19752 2011-03-26  Bruno Haible  <bruno@clisp.org>
19753
19754         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
19755         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
19756         also hyphens to space.
19757         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
19758         without spaces.
19759         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
19760
19761 2011-03-26  Bruno Haible  <bruno@clisp.org>
19762
19763         unictype/joiningtype-byname: Recognize long names as well.
19764         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
19765         a long name.
19766         * lib/unictype/joiningtype_byname.c: Include <string.h>,
19767         unictype/joiningtype_byname.h.
19768         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
19769         * lib/unictype/joiningtype_byname.gperf: New file.
19770         * modules/unictype/joiningtype-byname (Files): Add
19771         lib/unictype/joiningtype_byname.gperf.
19772         (Depends-on): Add gperf.
19773         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
19774         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
19775         long names.
19776
19777         Tests for module 'unictype/joiningtype-longname'.
19778         * modules/unictype/joiningtype-longname-tests: New file.
19779         * tests/unictype/test-joiningtype_longname.c: New file.
19780
19781         New module 'unictype/joiningtype-longname'.
19782         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
19783         * lib/unictype/joiningtype_longname.c: New file.
19784         * modules/unictype/joiningtype-longname: New file.
19785         * modules/unictype/joiningtype-all (Depends-on): Add
19786         unictype/joiningtype-longname.
19787
19788 2011-03-26  Bruno Haible  <bruno@clisp.org>
19789
19790         unictype/bidiclass-byname: Recognize long names as well.
19791         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
19792         name.
19793         * lib/unictype/bidi_byname.c: Include <string.h>,
19794         unictype/bidi_byname.h.
19795         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
19796         * lib/unictype/bidi_byname.gperf: New file.
19797         * modules/unictype/bidiclass-byname (Files): Add
19798         lib/unictype/bidi_byname.gperf.
19799         (Depends-on): Add gperf.
19800         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
19801         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
19802         long names.
19803
19804         Tests for module 'unictype/bidiclass-longname'.
19805         * modules/unictype/bidiclass-longname-tests: New file.
19806         * tests/unictype/test-bidi_longname.c: New file.
19807
19808         New module 'unictype/bidiclass-longname'.
19809         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
19810         * lib/unictype/bidi_longname.c: New file.
19811         * modules/unictype/bidiclass-longname: New file.
19812         * modules/unictype/bidiclass-all (Depends-on): Add
19813         unictype/bidiclass-longname.
19814
19815 2011-03-26  Bruno Haible  <bruno@clisp.org>
19816
19817         unictype/bidi*: Rename modules.
19818         * modules/unictype/bidiclass-all: Renamed from
19819         modules/unictype/bidicategory-all.
19820         * modules/unictype/bidiclass-name: Renamed from
19821         modules/unictype/bidiclass-name.
19822         (Description): Update.
19823         * modules/unictype/bidiclass-name-tests: Renamed from
19824         modules/unictype/bidicategory-name-tests.
19825         * modules/unictype/bidiclass-byname: Renamed from
19826         modules/unictype/bidicategory-byname.
19827         (Description): Update.
19828         * modules/unictype/bidiclass-byname-tests: Renamed from
19829         modules/unictype/bidicategory-byname-tests.
19830         * modules/unictype/bidiclass-of: Renamed from
19831         modules/unictype/bidicategory-of.
19832         (Description): Update.
19833         * modules/unictype/bidiclass-of-tests: Renamed from
19834         modules/unictype/bidicategory-of-tests.
19835         * modules/unictype/bidiclass-test: Renamed from
19836         modules/unictype/bidicategory-test.
19837         (Description): Update.
19838         * modules/unictype/bidiclass-test-tests: Renamed from
19839         modules/unictype/bidicategory-test-tests.
19840         * modules/unictype/bidicategory-all: New file, a simple redirection.
19841         * modules/unictype/bidicategory-name: Likewise.
19842         * modules/unictype/bidicategory-byname: Likewise.
19843         * modules/unictype/bidicategory-of: Likewise.
19844         * modules/unictype/bidicategory-test: Likewise.
19845         * modules/unictype/property-bidi-* (Dependencies): Update.
19846         * lib/unictype/bidi_*.c: Update comment.
19847
19848 2011-03-26  Bruno Haible  <bruno@clisp.org>
19849
19850         unictype/bidi*: Rename functions, part 2.
19851         * modules/unictype/bidicategory-name (configure.ac): Update required
19852         libunistring version.
19853         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
19854
19855 2011-03-25  Bruno Haible  <bruno@clisp.org>
19856
19857         New module 'unictype/combining-class-all'.
19858         * modules/unictype/combining-class-all: New file.
19859
19860         Tests for module 'unictype/combining-class-byname'.
19861         * modules/unictype/combining-class-byname-tests: New file.
19862         * tests/unictype/test-combiningclass_byname.c: New file.
19863
19864         New module 'unictype/combining-class-byname'.
19865         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
19866         * lib/unictype/combiningclass_byname.c: New file.
19867         * lib/unictype/combiningclass_byname.gperf: New file.
19868         * modules/unictype/combining-class-byname: New file.
19869
19870         Tests for module 'unictype/combining-class-longname'.
19871         * modules/unictype/combining-class-longname-tests: New file.
19872         * tests/unictype/test-combiningclass_longname.c: New file.
19873
19874         New module 'unictype/combining-class-longname'.
19875         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
19876         * lib/unictype/combiningclass_longname.c: New file.
19877         * modules/unictype/combining-class-longname: New file.
19878
19879         Tests for module 'unictype/combining-class-name'.
19880         * modules/unictype/combining-class-name-tests: New file.
19881         * tests/unictype/test-combiningclass_name.c: New file.
19882
19883         New module 'unictype/combining-class-name'.
19884         * lib/unictype.in.h (uc_combining_class_name): New declaration.
19885         * lib/unictype/combiningclass_name.c: New file.
19886         * modules/unictype/combining-class-name: New file.
19887
19888 2011-03-25  Bruno Haible  <bruno@clisp.org>
19889
19890         unictype/combining-class: Rename source files.
19891         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
19892         of unictype/combining.h.
19893         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
19894         Update.
19895         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
19896         * modules/unictype/combining-class (Description): Fix.
19897         (Files, Makefile.am): Update.
19898         * tests/unictype/test-combiningclass.c: Renamed from
19899         tests/unictype/test-combining.c.
19900         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
19901
19902 2011-03-25  Bruno Haible  <bruno@clisp.org>
19903
19904         unictype: Update list of canonical combining classes.
19905         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
19906
19907 2011-03-25  Bruno Haible  <bruno@clisp.org>
19908
19909         unictype/category-byname: Recognize long names as well.
19910         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
19911         a long name.
19912         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
19913         unictype/categ_byname.h.
19914         (UC_CATEGORY_INDEX_*): New enumeration values.
19915         (uc_general_category_byname): Use uc_general_category_lookup and
19916         convert from index to value.
19917         * lib/unictype/categ_byname.gperf: New file.
19918         * modules/unictype/category-byname (Files): Add
19919         lib/unictype/categ_byname.gperf.
19920         (Depends-on): Add gperf.
19921         (Makefile.am): Add rule for generating unictype/categ_byname.h.
19922         * tests/unictype/test-categ_byname.c (main): Test the recognition of
19923         long names.
19924
19925         Tests for module 'unictype/category-longname'.
19926         * modules/unictype/category-longname-tests: New file.
19927         * tests/unictype/test-categ_longname.c: New file.
19928
19929         New module 'unictype/category-longname'.
19930         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
19931         * lib/unictype/categ_longname.c: New file.
19932         * modules/unictype/category-longname: New file.
19933         * modules/unictype/category-all (Depends-on): Add it.
19934
19935 2011-03-25  Bruno Haible  <bruno@clisp.org>
19936
19937         Tests for module 'unictype/category-LC'.
19938         * modules/unictype/category-LC-tests: New file.
19939         * tests/unictype/test-categ_LC.c: New file, automatically generated.
19940
19941         New module 'unictype/category-LC'.
19942         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
19943         (UC_CATEGORY_LC): New declaration.
19944         (UC_CASED_LETTER): New macro.
19945         * lib/gen-uni-tables.c (is_category_LC): New function.
19946         (output_categories): Also handle category LC.
19947         (UC_CATEGORY_MASK_LC): New enumeration value.
19948         (general_category_byname): Also handle category LC.
19949         * lib/unictype/categ_LC.c: New file.
19950         * lib/unictype/categ_LC.h: New file, automatically generated.
19951         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
19952         category LC.
19953         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
19954         * modules/unictype/category-LC: New file.
19955         * modules/unictype/category-byname (Depends-on): Add
19956         unictype/category-LC.
19957         * modules/unictype/category-all (Depends-on): Likewise.
19958
19959 2011-03-25  Eric Blake  <eblake@redhat.com>
19960
19961         xmalloc: revert yesterday's regression
19962         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
19963         realloc's underlying behavior (allowing allocation of zero-size
19964         objects, especially if malloc-gnu is also in use).
19965
19966 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
19967
19968         maint.mk: add missing version to VC-tag
19969         * top/maint.mk: git tag was missing actual tag name; add it.
19970
19971         valgrind: do leak checking, and exit with code 1 on error (not 0)
19972         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
19973         to VALGRIND.
19974
19975 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
19976
19977         posix-modules: say what it does.
19978         * posix-modules: Add a line to the --help output saying what it does.
19979
19980 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
19981
19982         xmalloc: Do not leak if underlying realloc is C99 compatible.
19983         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
19984         This avoids a leak on C99-based systems.  See
19985         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
19986
19987 2011-03-24  Eric Blake  <eblake@redhat.com>
19988
19989         realloc: document portability problem
19990         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
19991         passing 0 size to realloc.
19992
19993 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
19994
19995         doc: update users.txt
19996         * users.txt: Add cvsps, tmpwatch
19997
19998 2011-03-23  Matt Rice  <ratmice@gmail.com>
19999
20000         doc: update users.txt
20001         * users.txt: Add gdb.
20002
20003 2011-03-23  Jim Meyering  <meyering@redhat.com>
20004
20005         doc: update users.txt
20006         Looking through matches up to the following URL (there are still
20007         several more pages), I found several projects that use gnulib:
20008         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
20009         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
20010         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
20011
20012 2011-03-22  Bruno Haible  <bruno@clisp.org>
20013
20014         unictype/bidi*: Rename functions.
20015         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
20016         uc_bidi_class, uc_is_bidi_class): New declarations.
20017         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
20018         uc_bidi_category_byname.
20019         (uc_bidi_category_byname): New function.
20020         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
20021         u_bidi_category_name.
20022         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
20023         (uc_bidi_category_name): New function.
20024         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
20025         uc_bidi_category.
20026         (uc_bidi_category): New function.
20027         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
20028         uc_is_bidi_category. Invoke uc_bidi_class.
20029         (uc_is_bidi_category): New function.
20030         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
20031         instead of uc_bidi_category_byname.
20032         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
20033         instead of uc_bidi_category_name.
20034         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
20035         uc_bidi_category.
20036         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
20037         instead of uc_is_bidi_category.
20038
20039 2011-03-21  Bruno Haible  <bruno@clisp.org>
20040
20041         New module 'unictype/joininggroup-all'.
20042         * modules/unictype/joininggroup-all: New file.
20043
20044         Tests for module 'unictype/joininggroup-of'.
20045         * modules/unictype/joininggroup-of-tests: New file.
20046         * tests/unictype/test-joininggroup_of.c: New file.
20047         * tests/unictype/test-joininggroup_of.h: New file, automatically
20048         generated by gen-uni-tables.
20049
20050         New module 'unictype/joininggroup-of'.
20051         * modules/unictype/joininggroup-of: New file.
20052         * lib/unictype/joininggroup_of.c: New file.
20053         * lib/unictype/joininggroup_of.h: New file, automatically generated by
20054         gen-uni-tables.
20055
20056         Tests for module 'unictype/joininggroup-byname'.
20057         * modules/unictype/joininggroup-byname-tests: New file.
20058         * tests/unictype/test-joininggroup_byname.c: New file.
20059
20060         New module 'unictype/joininggroup-byname'.
20061         * modules/unictype/joininggroup-byname: New file.
20062         * lib/unictype/joininggroup_byname.c: New file.
20063         * lib/unictype/joininggroup_byname.gperf: New file.
20064
20065         Tests for module 'unictype/joininggroup-name'.
20066         * modules/unictype/joininggroup-name-tests: New file.
20067         * tests/unictype/test-joininggroup_name.c: New file.
20068
20069         New module 'unictype/joininggroup-name'.
20070         * modules/unictype/joininggroup-name: New file.
20071         * lib/unictype/joininggroup_name.c: New file.
20072         * lib/unictype/joininggroup_name.h: New file.
20073
20074         New module 'unictype/joiningtype-all'.
20075         * modules/unictype/joiningtype-all: New file.
20076
20077         Tests for module 'unictype/joiningtype-of'.
20078         * modules/unictype/joiningtype-of-tests: New file.
20079         * tests/unictype/test-joiningtype_of.c: New file.
20080         * tests/unictype/test-joiningtype_of.h: New file, automatically
20081         generated by gen-uni-tables.
20082
20083         New module 'unictype/joiningtype-of'.
20084         * modules/unictype/joiningtype-of: New file.
20085         * lib/unictype/joiningtype_of.c: New file.
20086         * lib/unictype/joiningtype_of.h: New file, automatically generated by
20087         gen-uni-tables.
20088
20089         Tests for module 'unictype/joiningtype-byname'.
20090         * modules/unictype/joiningtype-byname-tests: New file.
20091         * tests/unictype/test-joiningtype_byname.c: New file.
20092
20093         New module 'unictype/joiningtype-byname'.
20094         * modules/unictype/joiningtype-byname: New file.
20095         * lib/unictype/joiningtype_byname.c: New file.
20096
20097         Tests for module 'unictype/joiningtype-name'.
20098         * modules/unictype/joiningtype-name-tests: New file.
20099         * tests/unictype/test-joiningtype_name.c: New file.
20100
20101         New module 'unictype/joiningtype-name'.
20102         * modules/unictype/joiningtype-name: New file.
20103         * lib/unictype/joiningtype_name.c: New file.
20104
20105         unictype: Add support for Arabic shaping properties.
20106         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
20107         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
20108         declarations.
20109         (UC_JOINING_GROUP_*): New enumeration values.
20110         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
20111         declarations.
20112         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
20113         (unicode_joining_type): New variable.
20114         (UC_JOINING_GROUP_*): New enumeration values.
20115         (unicode_joining_group): New variable.
20116         (fill_arabicshaping, joining_type_as_c_identifier,
20117         output_joining_type_test, output_joining_type,
20118         joining_group_as_c_identifier, output_joining_group_test,
20119         output_joining_group): New functions.
20120         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
20121         fill_arabicshaping and output_joining_type_test, output_joining_type,
20122         output_joining_group_test, output_joining_group.
20123         Reported by Simon Josefsson.
20124
20125 2011-03-21  Jim Meyering  <meyering@redhat.com>
20126
20127         strftime: fix a bug in yesterday's change
20128         * lib/strftime.c (add): Accommodate width's initial value of -1.
20129         Otherwise, nstrftime would copy uninitialized data into
20130         the result buffer.
20131
20132 2011-03-21  Jim Meyering  <meyering@redhat.com>
20133
20134         tests: add strftime-tests module
20135         * tests/test-strftime.c: New file.
20136         * modules/strftime-tests: New module.
20137
20138 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
20139
20140         strftime: don't assume a byte count fits in 'int'
20141         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
20142         found this problem by static analysis, using gcc -Wstrict-overflow
20143         (GCC 4.5.2, x86-64).  This reported an optimization that depended
20144         on an integer overflow having undefined behavior, but it turns out
20145         that the argument is a size, which might not fit in 'int' anyway,
20146
20147 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
20148
20149         stdio: don't require ignore_value around fwrite
20150
20151         This patch works around libc bug 11959
20152         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
20153         Without this patch, applications must often write
20154         ignore_value (fwrite (...)) even though the ignore_value is
20155         not helpful here.  It's common to write many objects, using
20156         fwrite/printf/etc., and then use ferror to detect output error.
20157
20158         I considered making this patch optional, but decided against it,
20159         because libc is obviously being inconsistent here: there is no
20160         reason libc should insist that user code must inspect fwrite
20161         return's value without also insisting that it inspect printf's,
20162         putchar's, etc.  If user code wants to have a strict style where
20163         all these functions' values are checked (so that ferror need not
20164         be checked), we could add support for that style in a new gnulib
20165         module, but in the meantime it's better to be consistent and to
20166         support common usage.
20167
20168         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
20169         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
20170         that we are compiling in checking mode, and if not C++, and
20171         if not already wrapping fwrite for some other reason.
20172         (fwrite): #define to rpl_fwrite if the latter is defined.
20173
20174 2011-03-20  Bruno Haible  <bruno@clisp.org>
20175
20176         verror: Fix compilation error introduced on 2011-02-13.
20177         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
20178         instead of __attribute__.
20179         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20180
20181 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
20182             Bruno Haible  <bruno@clisp.org>
20183
20184         socklen: do not depend on sys_socket
20185         While trying to modify Emacs to use gnulib's socklen module,
20186         I discovered a circular dependency: socklen depends on sys_socket
20187         and vice versa.  Emacs can use socklen, but it does not need
20188         sys_socket because it has its own substitute for sys/socket.h.
20189         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
20190         gl_TYPE_SOCKLEN_T.
20191         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
20192         gl_PREREQ_SYS_H_SOCKET.
20193         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
20194         gl_PREREQ_SYS_H_SOCKET.
20195         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
20196         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
20197         * modules/socklen (Depends-on): Do not depend on sys_socket.
20198         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
20199
20200 2011-03-20  Jim Meyering  <meyering@redhat.com>
20201
20202         maint.mk: sort file names *after* new transformation
20203         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
20204         prefix would have led to an unwarranted failure in GNU parted.
20205         Sort after that transformation.
20206
20207 2011-03-19  Jim Meyering  <meyering@redhat.com>
20208
20209         maint.mk: fix po-file syntax-check rule
20210         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
20211         Patch by Bruno Haible.
20212
20213 2011-03-19  Bruno Haible  <bruno@clisp.org>
20214
20215         socklen: Update comment.
20216         * m4/socklen.m4: Update comment about platforms.
20217
20218 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
20219             Bruno Haible  <bruno@clisp.org>
20220
20221         inet_ntop, inet_pton: Simplify.
20222         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
20223         documented to provide socklen_t and we already depend on sys_socket.
20224         * modules/inet_pton (Depends-on): Likewise.
20225         * lib/arpa_inet.in.h: Adjust comment.
20226
20227 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
20228             Bruno Haible  <bruno@clisp.org>
20229
20230         netdb: Simplify.
20231         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
20232         documented to provide socklen_t and we already depend on sys_socket.
20233         * lib/netdb.in.h: Adjust comment.
20234
20235 2011-03-19  Bruno Haible  <bruno@clisp.org>
20236
20237         sys_socket, netdb: Document problem with socklen_t.
20238         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
20239         platforms.
20240         * doc/posix-headers/netdb.texi: Likewise.
20241
20242 2011-03-18  Eric Blake  <eblake@redhat.com>
20243
20244         maint.mk: let po check work in VPATH build
20245         * top/maint.mk (po_file): Allow cfg.mk override.
20246         (sc_po_check): Allow VPATH use.
20247         Reported by Jiri Denemark.
20248
20249 2011-03-16  Jim Meyering  <meyering@redhat.com>
20250
20251         maint.mk: allow fine-grained syntax-check exclusion via Make variables
20252         Before, you would have had to create one .x-sc_ file per rule in order
20253         to exempt offending files.  Now, you may instead use a Make variable --
20254         usually defined in cfg.mk -- whose name identifies the affected rule.
20255         * top/maint.mk (_sc_excl): Define.
20256         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
20257         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
20258
20259 2011-03-13  Bruno Haible  <bruno@clisp.org>
20260
20261         ignore-value tests: Avoid warnings.
20262         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
20263         empty for gcc < 3.4.
20264
20265 2011-03-13  Bruno Haible  <bruno@clisp.org>
20266
20267         passfd: Fix link error on Solaris.
20268         * modules/passfd (Description): Correct.
20269         (Depends-on): Add socketlib.
20270         (Link): New section.
20271         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
20272
20273 2011-03-13  Bruno Haible  <bruno@clisp.org>
20274
20275         passfd: Fix link error on AIX 5.2.
20276         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
20277
20278 2011-03-13  Bruno Haible  <bruno@clisp.org>
20279
20280         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
20281         * lib/sys_socket.in.h: Include <stddef.h>.
20282         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
20283         CMSG_FIRSTHDR. Remove unused variable.
20284
20285 2011-03-13  Bruno Haible  <bruno@clisp.org>
20286
20287         passfd: Fix compilation error on OpenBSD.
20288         * lib/passfd.c: Include <sys/uio.h>.
20289
20290 2011-03-13  Bruno Haible  <bruno@clisp.org>
20291
20292         passfd test: Fix warnings.
20293         * tests/test-passfd.c: Include <sys/wait.h>.
20294         (main): Fix typo.
20295
20296 2011-03-13  Bruno Haible  <bruno@clisp.org>
20297
20298         passfd module, part 4, tweaks.
20299         * tests/test-passfd.c: Reorder includes.
20300         (main): Fix perror and printf calls.
20301
20302 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
20303
20304         passfd module, part 4.
20305         * modules/passfd-tests: New file.
20306         * tests/test-passfd.c: New file.
20307
20308 2011-03-13  Jim Meyering  <meyering@redhat.com>
20309
20310         Makefile: rely on GNU make; derive syntax-check rule names
20311         Rather than requiring that each sc_ rule be listed as a dependent
20312         of "check", use features of GNU make to derive the list.
20313         * Makefile (syntax-check-rules): Define.
20314         (check): Depend on the new variable, not the hard-coded list.
20315
20316 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
20317             Bruno Haible  <bruno@clisp.org>
20318
20319         passfd module, part 3.
20320         * lib/passfd.h (recvfd): Add a flags argument.
20321         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
20322         (recvfd): Add a flags argument.
20323         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
20324         exists.
20325         * modules/passfd (Depends-on): Add cloexec.
20326         Suggested by Eric Blake.
20327
20328 2011-03-13  Bruno Haible  <bruno@clisp.org>
20329
20330         passfd module, part 2, tweaks.
20331         * modules/passfd (Files): Reorder.
20332         (Depends-on): Remove errno.
20333         (Include): Remove <sys/socket.h>, <sys/un.h>.
20334         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
20335         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
20336         specification header. Include <sys/socket.h> always. Don't include
20337         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
20338         (sendfd): Clarify that it sets errno when it fails.
20339         (recvfd): Fix specification.
20340
20341 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
20342
20343         passfd module, part 2.
20344         * modules/passfd: New file.
20345         * lib/passfd.h: New file.
20346         * lib/passfd.c: New file.
20347
20348 2011-03-12  Bruno Haible  <bruno@clisp.org>
20349
20350         wcswidth, mbswidth: Avoid integer overflow.
20351         * lib/wcswidth.c: Include <limits.h>.
20352         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
20353         * lib/mbswidth.c: Include <limits.h>.
20354         (mbsnwidth): Avoid 'int' overflow.
20355         Reported by Jim Meyering.
20356
20357 2011-03-12  Bruno Haible  <bruno@clisp.org>
20358
20359         futimens, utimensat: Avoid endless recursion on Solaris 10.
20360         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
20361         Solaris.
20362         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
20363         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
20364
20365 2011-03-11  Jim Meyering  <meyering@redhat.com>
20366
20367         maint.mk: relax a regexp to accommodate other formatting styles
20368         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
20369         between "ngettext" and the following "(".
20370
20371 2011-03-11  Pádraig Brady <P@draigBrady.com>
20372
20373         maint.mk: suppress a false positive warning
20374         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
20375         diagnostics are marked with ngettext.
20376
20377 2011-03-10  Eric Blake  <eblake@redhat.com>
20378
20379         wchar: add explicit dependencies, for Tru64
20380         * modules/mbmemcasecoll (Depends-on): Add wchar.
20381         * modules/mbtowc (Depends-on): Likewise.
20382         * modules/vasnprintf (Depends-on): Likewise.
20383         * modules/unistdio/u-printf-args (Depends-on): Likewise.
20384         * modules/wctomb (Depends-on): Likewise.
20385         Reported by Peter O'Gorman.
20386
20387 2011-03-08  Bruno Haible  <bruno@clisp.org>
20388
20389         passfd module, part 1, tweaks.
20390         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
20391         Improve indentation. Improve AC_MSG_CHECKING messages.
20392         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
20393         gl_SOCKET_FAMILIES.
20394
20395 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
20396
20397         passfd module, part 1.
20398         * m4/afunix.m4: New file.
20399         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
20400         sockets.
20401
20402 2011-03-08  Bruno Haible  <bruno@clisp.org>
20403
20404         regex-quote: New API.
20405         * lib/regex-quote.h: Include <stdbool.h>.
20406         (struct regex_quote_spec): New type.
20407         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
20408         New declarations.
20409         (regex_quote_length, regex_quote_copy, regex_quote): Take a
20410         'const struct regex_quote_spec *' argument.
20411         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
20412         (pcre_special): New constant.
20413         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
20414         New functions.
20415         (regex_quote_length, regex_quote_copy, regex_quote): Take a
20416         'const struct regex_quote_spec *' argument.
20417         * modules/regex-quote (Depends-on): Add stdbool.
20418         * tests/test-regex-quote.c (check): Update for new API. Add test for
20419         anchored results.
20420         * NEWS: Mention the API change.
20421         Reported by Reuben Thomas and Eric Blake.
20422
20423 2011-03-06  Bruno Haible  <bruno@clisp.org>
20424
20425         regex-quote: Fix creation of POSIX extended regular expressions.
20426         * lib/regex-quote.c (ere_special): Add grouping and alternation
20427         operators.
20428
20429 2011-03-05  Bruno Haible  <bruno@clisp.org>
20430
20431         doc: Improve doc regarding autopoint vs. gnulib.
20432         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
20433         disable autopoint while running autoreconf.
20434         Suggested by Ralf Wildenhues.
20435
20436 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20437
20438         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
20439         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
20440
20441 2011-03-03  Bruce Korb  <bkorb@gnu.org>
20442
20443         parse-duration: remove xalloc.h dependency
20444         * lib/parse-duration.c (parse_period): handle NULL return from
20445         strdup instead of calling xstrdup().
20446         * modules/parse-duration: remove "xalloc" dependency
20447
20448 2011-03-03  Matthew Booth  <mbooth@redhat.com>
20449
20450         bootstrap: honor m4_base when running aclocal
20451         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
20452
20453 2011-03-02  Jim Meyering  <meyering@redhat.com>
20454
20455         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
20456         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
20457         on request from Matt Booth.
20458
20459 2011-03-01  Eric Blake  <eblake@redhat.com>
20460
20461         test-link: work on Hurd
20462         * tests/test-link.h (test_link): Hurd rejects linking directories
20463         with EISDIR instead of the POSIX-mandated EPERM.
20464
20465 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
20466
20467         stdio: simplify by moving files to printf-posix, sigpipe
20468         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
20469         since this symbol is needed only if printf is replaced.
20470         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
20471         Require gl_ASM_SYMBOL_PREFIX.
20472         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
20473         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
20474         (Depends-on): Add 'raise'.
20475         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
20476         * modules/stdio (Files): Remove lib/stdio-write.c,
20477         m4/asm-underscore.m4.
20478         (Depends-on): Remove 'raise'.
20479
20480         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
20481         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
20482         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
20483         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
20484
20485 2011-02-28  Bruno Haible  <bruno@clisp.org>
20486
20487         localcharset: Assume ANSI C behaviour of free().
20488         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
20489         calling free().
20490         Suggested by Simon Josefsson <simon@josefsson.org>.
20491
20492 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
20493             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
20494             Bruno Haible  <bruno@clisp.org>  (tiny change)
20495
20496         On Cygwin, use /proc file system instead of win32 API.
20497         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
20498         Win32 file names.
20499         (DllMain): Simplify by removing Cygwin specific code.
20500         (find_shared_library_fullname): Use Linux specific implementation also
20501         for Cygwin.
20502         (get_shared_library_fullname): Update accordingly.
20503         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
20504         Win32 file names.
20505         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
20506         Cygwin specific code.
20507
20508 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
20509             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
20510
20511         Fix OpenMP flag detection for various Fortran compilers.
20512         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
20513         OpenMP-conditional compilation construct, to force compile
20514         failure with missing OpenMP flag.
20515         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
20516
20517 2011-02-25  Eric Blake  <eblake@redhat.com>
20518
20519         strstr: expand test coverage
20520         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
20521         compilation.
20522         * tests/test-memmem.c (main): Duplicate tests.
20523         * tests/test-strcasestr.c (main): Likewise.
20524         * tests/test-c-strcasestr.c (main): Likewise.
20525
20526 2011-02-25  Jim Meyering  <meyering@redhat.com>
20527
20528         maint.mk: detect missing-NL-at-EOF, too
20529         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
20530         it also detects when a file lacks a newline at EOF.
20531         (require_exactly_one_NL_at_EOF_): Renamed from
20532         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
20533         since people may well have .x-sc_... file names tied to the
20534         existing name.  Suggested by Eric Blake.
20535
20536 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
20537
20538         dirname: move m4/dos.m4 functionality into lib/dosname.h
20539
20540         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
20541         extracts symbols from it, puts them into config.h; but it's much
20542         easier to use the symbols directly.  filename.h already does this,
20543         but it disagrees with dos.m4 in some respects.  This patch
20544         introduces a different include file dosname.h that packages up
20545         dos.m4, and then later we can work on merging filename.h and
20546         dosname.h.  Applications that need only the easy-to-configure
20547         symbols should consider including dosname.h rather than dirname.h.
20548         * NEWS: Mention incompatible changes.
20549         * m4/dos.m4: Remove.
20550         * lib/dosname.h, modules/dosname: New files.
20551         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
20552         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
20553         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
20554         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
20555         Include dosname.h, not dirname.h.
20556         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
20557         Include dosname.h, for definitions of symbols like ISSLASH
20558         that used to be in config.h.
20559         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
20560         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
20561         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
20562         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
20563         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
20564         * modules/rmdir (Files): Likewise.
20565         * modules/stat (Files): Likewise.
20566         * modules/unlink (Files): Likewise.
20567         * modules/dirname-lgpl (Depends-on): Add dosname.
20568         * modules/lstat (Depends-on): Likewise.
20569         * modules/openat (Depends-on): Likewise.
20570         * modules/rmdir (Depends-on): Likewise.
20571         * modules/savewd (Depends-on): Likewise.
20572         * modules/stat (Depends-on): Likewise.
20573         * modules/unlink (Depends-on): Likewise.
20574         * modules/openat (Depends-on): Remove dirname-lgpl.
20575         * modules/savewd (Depends-on): Likewise.
20576         * tests/test-dirname.c: Do not use removed symbols like
20577         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
20578         the remaining symbols, e.g., ISSLASH ('\\').
20579
20580 2011-02-25  Eric Blake  <eblake@redhat.com>
20581
20582         strstr: revert patches that introduced bug and pessimization
20583         * lib/str-two-way.h: Add another reference.
20584         (two_way_short_needle, two_way_long_needle): Revert changes from
20585         2011-02-24; they pessimize search speed.
20586         (critical_factorization): Partially revert changes from
20587         2010-06-22; they violate the requirement that the left half of the
20588         needle be smaller than the period of the needle.
20589
20590 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
20591
20592         filenamecat: remove unnecessary dependency on dirname-lgpl
20593         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
20594         is no direct dependency, just an indirect one via filenamecat-lgpl.
20595
20596         remove: remove unnecessary use of m4/dos.m4
20597         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
20598         * modules/remove (FILES): Remove m4/dos.m4.
20599
20600         * lib/openat-proc.c: Don't include dirname.h; not needed.
20601
20602         backupfile: remove unnecessary use of m4/dos.m4
20603         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
20604         of its symbols are used by the backupfile code.  backupfile.c does
20605         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
20606         for the rare case of programs that want all their backup file
20607         names to live within 8+3 limits, and dos.m4 doesn't address that.
20608         * modules/backupfile (Files): Remove m4/dos.m4.
20609
20610 2011-02-24  Jim Meyering  <meyering@redhat.com>
20611
20612         strstr: fix a bug whereby strstr would mistakenly return NULL
20613         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
20614         in period calculation.
20615         (two_way_long_needle): Likewise.
20616         The original problem was reported by Mike Stump in
20617         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
20618         Ralf Wildenhues provided the short needle and haystack.
20619         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
20620         Add a more involved test to trigger the bug in two_way_long_needle.
20621
20622 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
20623
20624         gnulib-tool: remove use of bold display in help screen
20625         * gnulib-tool (func_usage): Do not use bold display anymore in the
20626         help screen.  That was just meant to be a temporary emphasis for a
20627         backward-incompatible change.
20628
20629 2011-02-23  Bruno Haible  <bruno@clisp.org>
20630
20631         Fix misindentation of preprocessor directives.
20632         * lib/argp-namefrob.h: Reindent preprocessor directives.
20633         * lib/getopt_int.h (struct _getopt_data): Likewise.
20634         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
20635         * lib/vasnprintf.c (decode_long_double): Likewise.
20636         * tests/test-argmatch.c: Insert blank lines, for clarity.
20637         * tests/test-exclude.c: Likewise.
20638
20639 2011-02-22  Bruno Haible  <bruno@clisp.org>
20640
20641         ioctl: Fix for MacOS X in 64-bit mode.
20642         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
20643         value.
20644         Suggested by Eric Blake.
20645         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
20646
20647 2011-02-22  Jim Meyering  <meyering@redhat.com>
20648
20649         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
20650         * Makefile (sc_cpp_indent_check): Don't limit the check to files
20651         in lib/.
20652
20653 2011-02-22  Eric Blake  <eblake@redhat.com>
20654
20655         maint: avoid any CDPATH issue
20656         * Makefile (sc_cpp_indent_check): Anchor cd argument.
20657
20658         maint: adjust cpp indentation for my modules, as well
20659         * Makefile (sc_cpp_indent_check): Add my name.
20660         * lib/fbufmode.c: Filter through cppi.
20661         * lib/fpurge.c: Likewise.
20662         * lib/freadable.c: Likewise.
20663         * lib/freading.c: Likewise.
20664         * lib/fwritable.c: Likewise.
20665         * lib/fwriting.c: Likewise.
20666         * lib/sigaction.c: Likewise.
20667
20668 2011-02-22  Jim Meyering  <meyering@redhat.com>
20669
20670         maint: adjust cpp indentation to reflect nesting depth
20671         I.e., in a block of code that begins with an unnested "#if",
20672         put one space between the "#" in column 1 and following token.
20673         For example,
20674         -#include <sys/vfs.h>
20675         +# include <sys/vfs.h>
20676         Do this only in .c files that are part of a module I maintain.
20677         * lib/linkat.c: Filter through cppi.
20678         * lib/nanosleep.c: Likewise.
20679         * lib/openat.c: Likewise.
20680         * lib/openat-die.c: Likewise.
20681         * lib/dup3.c: Likewise.
20682         * lib/fchownat.c: Likewise.
20683         * lib/flock.c: Likewise.
20684         * lib/fsync.c: Likewise.
20685         * lib/fts.c: Likewise.
20686         * lib/getpass.c: Likewise.
20687         * lib/gettimeofday.c: Likewise.
20688         * lib/userspec.c: Likewise.
20689         * Makefile (sc_cpp_indent_check): New rule, to check this.
20690
20691 2011-02-22  Bruno Haible  <bruno@clisp.org>
20692
20693         New module 'wctomb'.
20694         * lib/stdlib.in.h (wctomb): New declaration.
20695         * lib/wctomb.c: New file.
20696         * lib/wctomb-impl.h: New file.
20697         * m4/wctomb.m4: New file.
20698         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
20699         REPLACE_WCTOMB.
20700         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
20701         REPLACE_WCTOMB.
20702         * modules/wctomb: New file.
20703         * tests/test-stdlib-c++.cc: Test signature of wctomb.
20704         * doc/posix-functions/wctomb.texi: Mention the new module.
20705         * modules/wctob (Depends-on): Add wctomb.
20706
20707 2011-02-22  Bruno Haible  <bruno@clisp.org>
20708
20709         New module 'mbtowc'.
20710         * lib/stdlib.in.h (mbtowc): New declaration.
20711         * lib/mbtowc.c: New file.
20712         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
20713         * m4/mbtowc.m4: New file.
20714         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
20715         REPLACE_MBTOWC.
20716         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
20717         REPLACE_MBTOWC.
20718         * modules/mbtowc: New file.
20719         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
20720         * doc/posix-functions/mbtowc.texi: Mention the new module.
20721         * modules/btowc (Depends-on): Add mbtowc.
20722
20723 2011-02-22  Bruno Haible  <bruno@clisp.org>
20724
20725         wcrtomb: Add more tests for native Windows platforms.
20726         * tests/test-wcrtomb-w32-1.sh: New file.
20727         * tests/test-wcrtomb-w32-2.sh: New file.
20728         * tests/test-wcrtomb-w32-3.sh: New file.
20729         * tests/test-wcrtomb-w32-4.sh: New file.
20730         * tests/test-wcrtomb-w32-5.sh: New file.
20731         * tests/test-wcrtomb-w32.c: New file.
20732         * modules/wcrtomb-tests (Files): Add them.
20733         (Makefile.am): Arrange to run these tests.
20734         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
20735         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
20736
20737 2011-02-20  Bruno Haible  <bruno@clisp.org>
20738
20739         wcrtomb: Enhance test.
20740         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
20741
20742 2011-02-20  Bruno Haible  <bruno@clisp.org>
20743
20744         mbrtowc: Tiny optimization.
20745         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
20746
20747 2011-02-20  Jim Meyering  <meyering@redhat.com>
20748
20749         test-exclude.c: remove unmatched #endif
20750         * tests/test-exclude.c: Remove stray #endif, left over from
20751         the change of a week ago.
20752
20753 2011-02-19  Jim Meyering  <meyering@redhat.com>
20754
20755         git-version-gen: skip "-dirty" check when appropriate
20756         * build-aux/git-version-gen: Don't run any git commands when the
20757         version string comes from .tarball-version.  Prior to this, we
20758         would run git update-index --refresh even from a just-unpacked
20759         tarball directory, and that could affect a .git/ directory in a
20760         parent of the build directory.  Reported by Mike Frysinger.
20761
20762 2011-02-19  Bruno Haible  <bruno@clisp.org>
20763
20764         unictype/property-byname: Reduce the size of the 'data' segment.
20765         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
20766
20767 2011-02-19  Bruno Haible  <bruno@clisp.org>
20768
20769         unictype/scripts: Reduce the size of the 'data' segment.
20770         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
20771         '%pic'.
20772         * lib/unictype/scripts_byname.gperf: Regenerated.
20773
20774 2011-02-19  Bruno Haible  <bruno@clisp.org>
20775
20776         stdint: Update documentation.
20777         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
20778
20779 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
20780
20781         stdint: omit redundant check for wchar.h
20782         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
20783         always tests whether wchar.h exists, so remove the now-redundant test.
20784
20785 2011-02-18  Bruno Haible  <bruno@clisp.org>
20786
20787         stdint: Cut dependency to module 'wchar'.
20788         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
20789         include the necessary prerequisites.
20790         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
20791         * modules/stdint (Depends-on): Remove wchar.
20792         (Makefile.am): Substitute HAVE_WCHAR_H.
20793         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
20794
20795 2011-02-18  Eric Blake  <eblake@redhat.com>
20796
20797         longlong: skip, rather than fail, on cross-compilation
20798         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
20799         when cross-compiling; regression from 2011-02-16.
20800
20801 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
20802
20803         * NEWS: Mention 2011-02-08 change to stdlib.
20804
20805 2011-02-17  Bruno Haible  <bruno@clisp.org>
20806
20807         getloadavg: Add comments about platforms.
20808         * m4/getloadavg.m4: Add comment.
20809         * lib/getloadavg.c: Likewise.
20810
20811 2011-02-17  Bruno Haible  <bruno@clisp.org>
20812
20813         getloadavg: Fix link error on Solaris 2.6.
20814         * modules/getloadavg (Link): New section.
20815         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
20816         linking test-getloadavg.
20817         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
20818         getloadavg.
20819
20820 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
20821
20822         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
20823         It was 'int', but this doesn't match the IRIX 6.5 manual.
20824         Suggested by Bruno Haible in
20825         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
20826
20827 2011-02-17  Bruno Haible  <bruno@clisp.org>
20828
20829         havelib: Fix comments.
20830         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
20831         change.
20832
20833 2011-02-17  Bruno Haible  <bruno@clisp.org>
20834
20835         havelib: Update config.rpath.
20836         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
20837
20838 2011-02-17  Bruno Haible  <bruno@clisp.org>
20839
20840         getloadavg test: Add some plausibility checks.
20841         * tests/test-getloadavg.c (check_avg): Print a warning when the value
20842         is improbable.
20843
20844 2011-02-16  Eric Blake  <eblake@redhat.com>
20845
20846         maintainer-makefile: make syntax-check a no-op from tarballs
20847         * top/maint.mk (no-vc-detected): New rule.
20848         (local-checks-available): Use it to avoid hanging if someone tries
20849         'make syntax-check' from a tarball.  Also append to any non-syntax
20850         checks already defined in cfg.mk.
20851
20852 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
20853
20854         longlong: tune, particularly for common case of c99
20855
20856         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
20857         or running anything if c99, or if unsigned long long int does not
20858         work.  In either case, we know the answer without further tests.
20859         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
20860         it at most once, and use its results for both long long int and
20861         unsigned long long int.  This is more likely to be efficient in
20862         the common case where the program wants to check for both long
20863         long int and unsigned long long int.
20864         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
20865         since the answer is already known.
20866
20867 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
20868
20869         getloadavg: set errno
20870         * lib/getloadavg.c: Set errno when returning -1.  If no other
20871         error number looks appropriate, set it to ENOSYS if the getloadavg
20872         looks like it can't possibly ever work, ENOTSUP otherwise.
20873         Suggested by Bruno Haible in
20874         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
20875
20876         getloadavg: trim unused parts and speed up 'configure'
20877         * NEWS: Document this.
20878         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
20879         always compiled if getloadavg is absent.
20880         Move test code to ...
20881         * tests/test-getloadavg.c: New file, containing previous
20882         contents of test from lib/getloadavg.c.  It also contains
20883         suggestions by Bruno Haible in
20884         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
20885         * modules/getloadavg-tests: New file.
20886         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
20887         Do tests in the same order as they're needed for getloadavg.c.
20888         Omit setgid-related tests that generate symbols KMEM_GROUP,
20889         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
20890         Do only the tests that are needed to see whether the system has
20891         getloadavg, moving the other tests into ...
20892         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
20893         NLIST_NAME_UNION; nobody should be using it.  Do not define
20894         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
20895         relevant, as the user of this module shouldn't care how getloadavg
20896         is implemented.
20897
20898         getloadavg: omit unused var
20899         * lib/getloadavg.c (getloadavg): Omit unused local variable.
20900
20901 2011-02-15  Jim Meyering  <meyering@redhat.com>
20902
20903         doc: update users.txt
20904         * users.txt: Update iwhd's URL.
20905
20906 2011-02-13  Bruno Haible  <bruno@clisp.org>
20907
20908         Consistent macro naming for macros that use GCC __attribute__.
20909         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
20910         _ATTRIBUTE_NONNULL_.
20911         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
20912         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
20913         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
20914         ATTRIBUTE_DEPRECATED.
20915         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
20916         ATTRIBUTE_NORETURN.
20917         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
20918         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
20919         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
20920         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
20921         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
20922         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
20923         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
20924         ATTRIBUTE_SENTINEL.
20925         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
20926         ATTRIBUTE_RETURN_CHECK.
20927         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
20928         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
20929         ATTRIBUTE_NORETURN.
20930         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
20931         Reported by Paul Eggert.
20932
20933 2011-02-13  Bruno Haible  <bruno@clisp.org>
20934
20935         Don't interfere with a program's definition of __attribute__.
20936         * lib/argp.h (__attribute__): Remove definition.
20937         (_GL_ATTRIBUTE_FORMAT): New macro.
20938         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
20939         * lib/argp-fmtstream.h (__attribute__): Remove definition.
20940         (_GL_ATTRIBUTE_FORMAT): New macro.
20941         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
20942         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
20943         GCC 3 or newer.
20944         * lib/error.h (__attribute__): Remove definition.
20945         (_GL_ATTRIBUTE_FORMAT): New macro.
20946         (error, error_at_line): Use it.
20947         * lib/hash.h (__attribute__): Remove definition.
20948         (ATTRIBUTE_WUR): Update definition. Define always.
20949         * lib/openat.h (__attribute__): Remove definition.
20950         (ATTRIBUTE_NORETURN): Update definition. Define always.
20951         * lib/sigpipe-die.h (__attribute__): Remove definition.
20952         (ATTRIBUTE_NORETURN): Update definition. Define always.
20953         * lib/vasnprintf.h (__attribute__): Remove definition.
20954         (_GL_ATTRIBUTE_FORMAT): New macro.
20955         (asnprintf, vasnprintf): Use it.
20956         * lib/xalloc.h (__attribute__): Remove definition.
20957         (ATTRIBUTE_NORETURN): Update definition. Define always.
20958         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
20959         * lib/xmemdup0.h (__attribute__): Remove definition.
20960         (ATTRIBUTE_NORETURN): Update definition. Define always.
20961         * lib/xprintf.h (__attribute__): Remove definition.
20962         (_GL_ATTRIBUTE_FORMAT): New macro.
20963         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
20964         * lib/xstrtol.h (__attribute__): Remove definition.
20965         (ATTRIBUTE_NORETURN): Update definition. Define always.
20966         * lib/xvasprintf.h (__attribute__): Remove definition.
20967         (_GL_ATTRIBUTE_FORMAT): New macro.
20968         (xasprintf, xvasprintf): Use it.
20969         * tests/test-argmatch.c (__attribute__): Remove definition.
20970         (ATTRIBUTE_NORETURN): Update definition. Define always.
20971         * tests/test-exclude.c (__attribute__): Remove definition.
20972         (ATTRIBUTE_NORETURN): Update definition. Define always.
20973         Reported by Paul Eggert.
20974
20975 2011-02-13  Bruno Haible  <bruno@clisp.org>
20976
20977         mbrtowc: Add more tests for native Windows platforms.
20978         * tests/test-mbrtowc-w32-1.sh: New file.
20979         * tests/test-mbrtowc-w32-2.sh: New file.
20980         * tests/test-mbrtowc-w32-3.sh: New file.
20981         * tests/test-mbrtowc-w32-4.sh: New file.
20982         * tests/test-mbrtowc-w32-5.sh: New file.
20983         * tests/test-mbrtowc-w32.c: New file.
20984         * modules/mbrtowc-tests (Files): Add them.
20985         (Makefile.am): Arrange to run these tests.
20986         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
20987         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
20988
20989 2011-02-13  Bruno Haible  <bruno@clisp.org>
20990
20991         mbrtowc: Work around native Windows bug.
20992         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
20993         guess when no suitable locale for testing was found.
20994         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
20995
20996 2011-02-13  Bruno Haible  <bruno@clisp.org>
20997
20998         mbsinit: Work around mingw bug.
20999         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
21000         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
21001         Windows.
21002         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
21003
21004 2011-02-13  Bruno Haible  <bruno@clisp.org>
21005
21006         mbsinit: Don't crash for a NULL argument.
21007         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
21008         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
21009
21010 2011-02-13  Bruno Haible  <bruno@clisp.org>
21011
21012         Don't interfere with a program's definition of __attribute__.
21013         * lib/stdio.in.h (__attribute__): Remove definition.
21014         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
21015         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
21016         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
21017         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
21018         * lib/string.in.h (__attribute__): Remove definition.
21019         Reported by Paul Eggert.
21020
21021 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
21022
21023         stdlib: don't get in the way of non-GCC __attribute__
21024         See thread starting at
21025         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
21026         Revert previous stdlib change, installing the following instead:
21027         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
21028         to get in the way of a non-GCC compiler that supports __attribute__.
21029         (_GL_ATTRIBUTE_RETURN): New macro.
21030         (_Exit): Use it instead of __attribute__.
21031
21032 2011-02-12  Bruno Haible  <bruno@clisp.org>
21033
21034         quotearg test: Avoid test failure on mingw.
21035         * tests/test-quotearg.sh: Convert the locale identifier from native
21036         Windows syntax to Unix syntax.
21037
21038 2011-02-12  Bruno Haible  <bruno@clisp.org>
21039
21040         setlocale: Prefer gnulib's override over libintl's override.
21041         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
21042         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
21043         GNULIB_defined_setlocale is set.
21044
21045 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
21046
21047         stdlib: support non-GCC __attribute__
21048
21049         Fix a serious and tricky problem encountered when attempting to
21050         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
21051         5.5, but it crashed due to memory corruption on Solaris 10 with
21052         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
21053         bits that are otherwise zero.  This tagging is optional inside
21054         Emacs but is preferred and is used when __attribute__ ((__aligned
21055         (8))) works, as it does with both recent-enough GCC and with Sun C
21056         5.11.  However, Sun C 5.11 is not GCC and does not #define
21057         __GNUC__ and __GNUC_MINOR__.
21058
21059         When I added the getloadavg module to Emacs, it brought in
21060         stdlib.in.h, which contained this fragment:
21061
21062            #ifndef __attribute__
21063            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
21064            #  define __attribute__(Spec)   /* empty */
21065            # endif
21066            #endif
21067
21068         When files that include <stdlib.h> were compiled with Sun C 5.11,
21069         the above code disabled __attribute__ ((__aligned (8))), which
21070         caused variables to not be properly aligned, which eventually led
21071         to the pointer corruption mentioned above.  (This was a bit hard
21072         to diagnose, unfortunately.)
21073
21074         Several "#define __attribute__(X) /* empty */" code snippets need
21075         to be eradicated from Gnulib to work with non-GCC compilers that
21076         support __attribute__.  The Autoconf way to do this is to test for
21077         each kind of attribute that we want support for, and selectively
21078         enable that in source code.
21079
21080         Fix this problem just for stdlib.h, by adding a test for the
21081         __noreturn__ attribute, and change stdlib.in.h to use that test
21082         when needed.  This technique can be easily generalized to the
21083         other *.in.h files and attributes, and a similar technique can be
21084         used for *.h and *.c files.  This patch is enough to solve the
21085         problem for Emacs + getloadavg, and I thought I'd publish it for
21086         feedback before undertaking further, similar fixes in other
21087         modules.
21088
21089         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
21090         because it's not needed for stdlib.h.  It merely substitutes the
21091         value directly into stdlib.h.  We may well need to #define it, or
21092         similar symbols, for other modules, but it's nice to also have an
21093         option to not #define it for applications like Emacs that do not
21094         need it.
21095
21096         * lib/stdlib.in.h (__attribute__): Do not #define.
21097         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
21098         be defined only if the _Exit module is also used.
21099         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
21100         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
21101         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
21102         platforms.
21103         * modules/_Exit (Files): Add m4/attribute.m4.
21104         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
21105         * m4/attribute.m4: New file.
21106
21107 2011-02-12  Bruno Haible  <bruno@clisp.org>
21108
21109         wcsrtombs: Work around bug on native Windows.
21110         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
21111         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
21112         instead of len.
21113         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
21114
21115 2011-02-12  Bruno Haible  <bruno@clisp.org>
21116
21117         mbsrtowcs: Work around bug on native Windows.
21118         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
21119         against mingw bug.
21120         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
21121
21122 2011-02-12  Bruno Haible  <bruno@clisp.org>
21123
21124         Avoid setlocale bugs in tests.
21125         * modules/btowc (Dependencies): Add setlocale.
21126         * modules/c-strcase (Dependencies): Likewise.
21127         * modules/mbmemcasecmp (Dependencies): Likewise.
21128         * modules/mbmemcasecoll (Dependencies): Likewise.
21129         * modules/mbrtowc (Dependencies): Likewise.
21130         * modules/mbscasecmp (Dependencies): Likewise.
21131         * modules/mbscasestr (Dependencies): Likewise.
21132         * modules/mbschr (Dependencies): Likewise.
21133         * modules/mbscspn (Dependencies): Likewise.
21134         * modules/mbsinit (Dependencies): Likewise.
21135         * modules/mbsncasecmp (Dependencies): Likewise.
21136         * modules/mbsnrtowcs (Dependencies): Likewise.
21137         * modules/mbspbrk (Dependencies): Likewise.
21138         * modules/mbspcasecmp (Dependencies): Likewise.
21139         * modules/mbsrchr (Dependencies): Likewise.
21140         * modules/mbsrtowcs (Dependencies): Likewise.
21141         * modules/mbsspn (Dependencies): Likewise.
21142         * modules/mbsstr (Dependencies): Likewise.
21143         * modules/nl_langinfo (Dependencies): Likewise.
21144         * modules/quotearg (Dependencies): Likewise.
21145         * modules/unicase/locale-language (Dependencies): Likewise.
21146         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
21147         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
21148         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
21149         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
21150         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
21151         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
21152         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
21153         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
21154         * modules/vasnprintf-posix (Dependencies): Likewise.
21155         * modules/wcrtomb (Dependencies): Likewise.
21156         * modules/wcsnrtombs (Dependencies): Likewise.
21157         * modules/wcsrtombs (Dependencies): Likewise.
21158
21159 2011-02-12  Bruno Haible  <bruno@clisp.org>
21160
21161         setlocale: Workaround native Windows bug.
21162         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
21163         succeeds but sets LC_CTYPE to "C", report a failure.
21164         * tests/test-setlocale2.sh: New file.
21165         * tests/test-setlocale2.c: New file.
21166         * modules/setlocale-tests (Files): Add the new files.
21167         (Makefile.am): Enable test-setlocale2.sh test.
21168         * doc/posix-functions/setlocale.texi: Mention workaround.
21169
21170 2011-02-11  Bruno Haible  <bruno@clisp.org>
21171
21172         Tests for module 'setlocale'.
21173         * modules/setlocale-tests: New file.
21174         * tests/test-setlocale1.sh: New file.
21175         * tests/test-setlocale1.c: New file.
21176
21177         New module 'setlocale'.
21178         * lib/locale.in.h (setlocale): New declaration.
21179         * lib/setlocale.c: New file, based on
21180         gettext/gettext-runtime/intl/setlocale.c.
21181         * m4/setlocale.m4: New file.
21182         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
21183         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
21184         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
21185         REPLACE_SETLOCALE.
21186         * modules/setlocale: New file.
21187         * tests/test-locale-c++.cc: Test the declaration of setlocale.
21188         * doc/posix-functions/setlocale.texi: Mention the new module.
21189
21190 2011-02-11  Bruno Haible  <bruno@clisp.org>
21191
21192         Prepare for locale dependent tests on mingw.
21193         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
21194         because it has the wrong locale encoding.
21195         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
21196         French_France.1252 instead of "fr".
21197         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
21198         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
21199         because it has the wrong locale encoding.
21200         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
21201         native Windows, try Turkish_Turkey.65001.
21202         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
21203         Chinese_China.54936.
21204
21205         Prepare for locale dependent tests on mingw.
21206         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
21207         differently.
21208         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
21209         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
21210         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
21211         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
21212
21213 2011-02-11  Eric Blake  <eblake@redhat.com>
21214
21215         strptime: avoid compiler warnings
21216         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
21217         compiler warnings about dead code.
21218         Reported by Daniel P. Berrange.
21219
21220 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
21221
21222         doc: update users.txt
21223         * users.txt: Add rcs.
21224
21225 2011-02-10  John W. Eaton  <jwe@gnu.org>
21226
21227         doc: update users.txt
21228         * users.txt: Add octave.
21229
21230 2011-02-10  Jim Meyering  <meyering@redhat.com>
21231
21232         doc: update users.txt
21233         * users.txt: Add iwhd.
21234
21235 2011-02-09  Bruno Haible  <bruno@clisp.org>
21236
21237         gnulib-tool: Make copyright notice adjustment more robust.
21238         * gnulib-tool (func_import): In sed_transform_main_lib_file,
21239         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
21240         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
21241         License".
21242         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
21243
21244 2011-02-06  Bruno Haible  <bruno@clisp.org>
21245
21246         New module 'towctrans'.
21247         * modules/towctrans: New file.
21248         * lib/wctype.in.h (towctrans): New declaration.
21249         * lib/towctrans.c: New file.
21250         * lib/towctrans-impl.h: New file.
21251         * m4/towctrans.m4: New file.
21252         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
21253         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
21254         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
21255         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
21256         * doc/posix-functions/towctrans.texi: Mention the new module.
21257
21258 2011-02-06  Bruno Haible  <bruno@clisp.org>
21259
21260         New module 'wctrans'.
21261         * modules/wctrans: New file.
21262         * lib/wctype.in.h (wctrans): New declaration.
21263         * lib/wctrans.c: New file.
21264         * lib/wctrans-impl.h: New file.
21265         * m4/wctrans.m4: New file.
21266         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
21267         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
21268         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
21269         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
21270         * doc/posix-functions/wctrans.texi: Mention the new module.
21271
21272 2011-02-06  Bruno Haible  <bruno@clisp.org>
21273
21274         New module 'iswctype'.
21275         * modules/iswctype: New file.
21276         * lib/wctype.in.h (iswctype): New declaration.
21277         * lib/iswctype.c: New file.
21278         * lib/iswctype-impl.h: New file.
21279         * m4/iswctype.m4: New file.
21280         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
21281         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
21282         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
21283         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
21284         * doc/posix-functions/iswctype.texi: Mention the new module and the
21285         HP-UX 11.00 problem.
21286
21287 2011-02-06  Bruno Haible  <bruno@clisp.org>
21288
21289         New module 'wctype'.
21290         * modules/wctype: Change to represent the wctype() substitute.
21291         * lib/wctype.in.h (wctype): New declaration.
21292         * lib/wctype.c: New file.
21293         * lib/wctype-impl.h: New file.
21294         * m4/wctype.m4: New file.
21295         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
21296         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
21297         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
21298         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
21299         * doc/posix-functions/wctype.texi: Mention the new module and the
21300         HP-UX 11.00 problem.
21301
21302 2011-02-06  Bruno Haible  <bruno@clisp.org>
21303
21304         wctype-h: Ensure wctype_t and wctrans_t are defined.
21305         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
21306         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
21307         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
21308         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
21309         HAVE_WCTRANS_T.
21310         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
21311
21312 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
21313
21314         flock: fix license typo
21315
21316         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
21317         omitted.
21318
21319 2011-02-08  Bruno Haible  <bruno@clisp.org>
21320
21321         Split large sed scripts, for HP-UX sed.
21322         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
21323         to avoid HP-UX limit of 99 commands, in the near future.
21324         * modules/stdlib (Makefile.am): Likewise.
21325         * modules/unistd (Makefile.am): Likewise.
21326         * modules/wchar (Makefile.am): Likewise.
21327         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
21328         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
21329         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
21330
21331 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
21332             Bruno Haible  <bruno@clisp.org>
21333
21334         stdlib: improve random_r modularization
21335         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
21336         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
21337         you also need the random_r module to get this material right.
21338         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
21339         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
21340         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
21341
21342 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
21343
21344         stdlib: don't depend on stdint
21345         * lib/stdlib.in.h: Don't include <stdint.h> merely because
21346         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
21347         be independent of whether stdint.h is needed.
21348         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
21349         here, instead of ...
21350         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
21351         struct random_data should be using the random_r module, not just
21352         the stdlib module (which wouldn't make sense: what package needs
21353         just struct random_data without also needing random_r?).
21354         * modules/stdlib (Depends-on): Remove stdint.
21355
21356         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
21357         See the thread rooted at
21358         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
21359         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
21360         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
21361         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
21362         __VMS)); previously it was always included (via fcntl--.h).
21363         (getloadavg): Do not use c_strtod.  Instead, approximate it by
21364         hand; this is good enough for load averages.  Also, do not use
21365         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
21366         flags directly if available and don't bother otherwise.  (Packages
21367         that need the extra reliability should use the modules that define
21368         these flags on older platforms that lack them.)
21369         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
21370         fcntl-safer.
21371
21372 2011-02-08  Jim Meyering  <meyering@redhat.com>
21373
21374         di-set.h, ino-map.h: add multiple-inclusion guard
21375         Technically, the guard is required only for ino-map.h, due to its
21376         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
21377         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
21378         * lib/ino-map.h: Likewise.
21379
21380 2011-02-06  Bruno Haible  <bruno@clisp.org>
21381
21382         iswblank: Ensure declaration on glibc systems.
21383         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
21384         * modules/iswblank (Dependencies): Add 'extensions'.
21385         * doc/posix-functions/iswblank.texi: Document the glibc problem.
21386
21387 2011-02-06  Bruno Haible  <bruno@clisp.org>
21388
21389         New module 'iswblank'.
21390         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
21391         * modules/iswblank: New file.
21392         * modules/wctype-h (Files): Remove lib/iswblank.c.
21393         (Makefile.am): Substitute GNULIB_ISWBLANK.
21394         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
21395         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
21396         (gl_WCTYPE_H_DEFAULTS): New macro.
21397         (gl_WCTYPE_H): Require it. Remove iswblank related code.
21398         * modules/iswblank-tests: New file.
21399         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
21400         * tests/test-wctype-h.c (main): Remove iswblank tests.
21401         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
21402         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
21403         of 'wctype-h'.
21404         * NEWS: Mention the change.
21405         * modules/mbchar (Depends-on): Add iswblank.
21406
21407 2011-02-08  Bruno Haible  <bruno@clisp.org>
21408
21409         di-set tests: Refactor.
21410         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
21411         unnecessary includes.
21412         (ASSERT): Remove macro.
21413         (main): Make C90 compliant by avoiding variable declaration after
21414         statement.
21415         * modules/di-set-tests (Files): Add tests/macros.h.
21416
21417 2011-02-08  Bruno Haible  <bruno@clisp.org>
21418
21419         ino-map tests: Refactor.
21420         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
21421         unnecessary includes.
21422         (ASSERT): Remove macro.
21423         (main): Make C90 compliant by avoiding variable declaration after
21424         statement.
21425         * modules/ino-map-tests (Files): Add tests/macros.h.
21426
21427 2011-02-08  Jim Meyering  <meyering@redhat.com>
21428
21429         di-set: add "const" to a cast
21430         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
21431         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
21432
21433 2011-02-06  Bruno Haible  <bruno@clisp.org>
21434
21435         Rename module 'wctype' to 'wctype-h'.
21436         * modules/wctype-h: Renamed from modules/wctype.
21437         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
21438         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
21439         (Files, Depends-on, Makefile.am): Update.
21440         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
21441         (Files, Makefile.am): Update.
21442         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
21443         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
21444         * doc/posix-headers/wctype.texi: Update.
21445         * doc/posix-functions/iswalnum.texi: Update.
21446         * doc/posix-functions/iswalpha.texi: Update.
21447         * doc/posix-functions/iswblank.texi: Update.
21448         * doc/posix-functions/iswcntrl.texi: Update.
21449         * doc/posix-functions/iswdigit.texi: Update.
21450         * doc/posix-functions/iswgraph.texi: Update.
21451         * doc/posix-functions/iswlower.texi: Update.
21452         * doc/posix-functions/iswprint.texi: Update.
21453         * doc/posix-functions/iswpunct.texi: Update.
21454         * doc/posix-functions/iswspace.texi: Update.
21455         * doc/posix-functions/iswupper.texi: Update.
21456         * doc/posix-functions/iswxdigit.texi: Update.
21457         * doc/posix-functions/towlower.texi: Update.
21458         * doc/posix-functions/towupper.texi: Update.
21459         * NEWS: Mention the change.
21460         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
21461         * modules/mbchar (Dependencies): Likewise.
21462         * modules/mbswidth (Dependencies): Likewise.
21463         * modules/quotearg (Dependencies): Likewise.
21464         * modules/regex (Dependencies): Likewise.
21465         * modules/wcscasecmp (Dependencies): Likewise.
21466         * modules/wcsncasecmp (Dependencies): Likewise.
21467         * modules/wcwidth (Dependencies): Likewise.
21468
21469 2011-02-06  Bruno Haible  <bruno@clisp.org>
21470
21471         New module 'wcswidth'.
21472         * modules/wcswidth: New file.
21473         * lib/wchar.in.h (wcswidth): New declaration.
21474         * lib/wcswidth.c: New file.
21475         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
21476         * m4/wcswidth.m4: New file.
21477         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
21478         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
21479         REPLACE_WCSWIDTH.
21480         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
21481         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
21482         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
21483         * doc/posix-functions/wcswidth.texi: Mention the new module.
21484
21485 2011-02-06  Bruno Haible  <bruno@clisp.org>
21486
21487         New module 'wcstok'.
21488         * modules/wcstok: New file.
21489         * lib/wchar.in.h (wcstok): New declaration.
21490         * lib/wcstok.c: New file.
21491         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
21492         * m4/wcstok.m4: New file.
21493         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
21494         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
21495         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
21496         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
21497         * doc/posix-functions/wcstok.texi: Mention the new module.
21498
21499 2011-02-06  Bruno Haible  <bruno@clisp.org>
21500
21501         New module 'wcsstr'.
21502         * modules/wcsstr: New file.
21503         * lib/wchar.in.h (wcsstr): New declaration.
21504         * lib/wcsstr.c: New file.
21505         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
21506         * m4/wcsstr.m4: New file.
21507         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
21508         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
21509         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
21510         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
21511         * doc/posix-functions/wcsstr.texi: Mention the new module.
21512
21513 2011-02-06  Bruno Haible  <bruno@clisp.org>
21514
21515         New module 'wcspbrk'.
21516         * modules/wcspbrk: New file.
21517         * lib/wchar.in.h (wcspbrk): New declaration.
21518         * lib/wcspbrk.c: New file.
21519         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
21520         * m4/wcspbrk.m4: New file.
21521         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
21522         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
21523         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
21524         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
21525         * doc/posix-functions/wcspbrk.texi: Mention the new module.
21526
21527 2011-02-06  Bruno Haible  <bruno@clisp.org>
21528
21529         New module 'wcsspn'.
21530         * modules/wcsspn: New file.
21531         * lib/wchar.in.h (wcsspn): New declaration.
21532         * lib/wcsspn.c: New file.
21533         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
21534         * m4/wcsspn.m4: New file.
21535         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
21536         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
21537         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
21538         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
21539         * doc/posix-functions/wcsspn.texi: Mention the new module.
21540
21541 2011-02-06  Bruno Haible  <bruno@clisp.org>
21542
21543         New module 'wcscspn'.
21544         * modules/wcscspn: New file.
21545         * lib/wchar.in.h (wcscspn): New declaration.
21546         * lib/wcscspn.c: New file.
21547         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
21548         * m4/wcscspn.m4: New file.
21549         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
21550         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
21551         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
21552         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
21553         * doc/posix-functions/wcscspn.texi: Mention the new module.
21554
21555 2011-02-06  Bruno Haible  <bruno@clisp.org>
21556
21557         New module 'wcsrchr'.
21558         * modules/wcsrchr: New file.
21559         * lib/wchar.in.h (wcsrchr): New declaration.
21560         * lib/wcsrchr.c: New file.
21561         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
21562         * m4/wcsrchr.m4: New file.
21563         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
21564         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
21565         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
21566         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
21567         * doc/posix-functions/wcsrchr.texi: Mention the new module.
21568
21569 2011-02-06  Bruno Haible  <bruno@clisp.org>
21570
21571         New module 'wcschr'.
21572         * modules/wcschr: New file.
21573         * lib/wchar.in.h (wcschr): New declaration.
21574         * lib/wcschr.c: New file.
21575         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
21576         * m4/wcschr.m4: New file.
21577         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
21578         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
21579         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
21580         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
21581         * doc/posix-functions/wcschr.texi: Mention the new module.
21582
21583 2011-02-06  Bruno Haible  <bruno@clisp.org>
21584
21585         New module 'wcsdup'.
21586         * modules/wcsdup: New file.
21587         * lib/wchar.in.h (wcsdup): New declaration.
21588         * lib/wcsdup.c: New file.
21589         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
21590         * m4/wcsdup.m4: New file.
21591         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
21592         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
21593         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
21594         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
21595         * doc/posix-functions/wcsdup.texi: Mention the new module.
21596
21597 2011-02-06  Bruno Haible  <bruno@clisp.org>
21598
21599         New module 'wcsxfrm'.
21600         * modules/wcsxfrm: New file.
21601         * lib/wchar.in.h (wcsxfrm): New declaration.
21602         * lib/wcsxfrm.c: New file.
21603         * lib/wcsxfrm-impl.h: New file.
21604         * m4/wcsxfrm.m4: New file.
21605         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
21606         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
21607         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
21608         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
21609         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
21610
21611 2011-02-06  Bruno Haible  <bruno@clisp.org>
21612
21613         New module 'wcscoll'.
21614         * modules/wcscoll: New file.
21615         * lib/wchar.in.h (wcscoll): New declaration.
21616         * lib/wcscoll.c: New file.
21617         * lib/wcscoll-impl.h: New file.
21618         * m4/wcscoll.m4: New file.
21619         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
21620         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
21621         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
21622         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
21623         * doc/posix-functions/wcscoll.texi: Mention the new module.
21624
21625 2011-02-06  Bruno Haible  <bruno@clisp.org>
21626
21627         New module 'wcsncasecmp'.
21628         * modules/wcsncasecmp: New file.
21629         * lib/wchar.in.h (wcsncasecmp): New declaration.
21630         * lib/wcsncasecmp.c: New file.
21631         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
21632         * m4/wcsncasecmp.m4: New file.
21633         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
21634         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
21635         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
21636         HAVE_WCSNCASECMP.
21637         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
21638         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
21639
21640 2011-02-06  Bruno Haible  <bruno@clisp.org>
21641
21642         New module 'wcscasecmp'.
21643         * modules/wcscasecmp: New file.
21644         * lib/wchar.in.h (wcscasecmp): New declaration.
21645         * lib/wcscasecmp.c: New file.
21646         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
21647         * m4/wcscasecmp.m4: New file.
21648         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
21649         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
21650         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
21651         HAVE_WCSCASECMP.
21652         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
21653         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
21654
21655 2011-02-05  Bruno Haible  <bruno@clisp.org>
21656
21657         New module 'wcsncmp'.
21658         * modules/wcsncmp: New file.
21659         * lib/wchar.in.h (wcsncmp): New declaration.
21660         * lib/wcsncmp.c: New file.
21661         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
21662         * m4/wcsncmp.m4: New file.
21663         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
21664         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
21665         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
21666         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
21667         * doc/posix-functions/wcsncmp.texi: Mention the new module.
21668
21669 2011-02-05  Bruno Haible  <bruno@clisp.org>
21670
21671         New module 'wcscmp'.
21672         * modules/wcscmp: New file.
21673         * lib/wchar.in.h (wcscmp): New declaration.
21674         * lib/wcscmp.c: New file.
21675         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
21676         * m4/wcscmp.m4: New file.
21677         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
21678         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
21679         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
21680         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
21681         * doc/posix-functions/wcscmp.texi: Mention the new module.
21682
21683 2011-02-05  Bruno Haible  <bruno@clisp.org>
21684
21685         New module 'wcsncat'.
21686         * modules/wcsncat: New file.
21687         * lib/wchar.in.h (wcsncat): New declaration.
21688         * lib/wcsncat.c: New file.
21689         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
21690         * m4/wcsncat.m4: New file.
21691         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
21692         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
21693         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
21694         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
21695         * doc/posix-functions/wcsncat.texi: Mention the new module.
21696
21697 2011-02-05  Bruno Haible  <bruno@clisp.org>
21698
21699         New module 'wcscat'.
21700         * modules/wcscat: New file.
21701         * lib/wchar.in.h (wcscat): New declaration.
21702         * lib/wcscat.c: New file.
21703         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
21704         * m4/wcscat.m4: New file.
21705         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
21706         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
21707         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
21708         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
21709         * doc/posix-functions/wcscat.texi: Mention the new module.
21710
21711 2011-02-05  Bruno Haible  <bruno@clisp.org>
21712
21713         New module 'wcpncpy'.
21714         * modules/wcpncpy: New file.
21715         * lib/wchar.in.h (wcpncpy): New declaration.
21716         * lib/wcpncpy.c: New file.
21717         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
21718         * m4/wcpncpy.m4: New file.
21719         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
21720         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
21721         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
21722         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
21723         * doc/posix-functions/wcpncpy.texi: Mention the new module.
21724
21725 2011-02-05  Bruno Haible  <bruno@clisp.org>
21726
21727         New module 'wcsncpy'.
21728         * modules/wcsncpy: New file.
21729         * lib/wchar.in.h (wcsncpy): New declaration.
21730         * lib/wcsncpy.c: New file.
21731         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
21732         * m4/wcsncpy.m4: New file.
21733         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
21734         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
21735         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
21736         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
21737         * doc/posix-functions/wcsncpy.texi: Mention the new module.
21738
21739 2011-02-05  Bruno Haible  <bruno@clisp.org>
21740
21741         New module 'wcpcpy'.
21742         * modules/wcpcpy: New file.
21743         * lib/wchar.in.h (wcpcpy): New declaration.
21744         * lib/wcpcpy.c: New file.
21745         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
21746         * m4/wcpcpy.m4: New file.
21747         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
21748         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
21749         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
21750         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
21751         * doc/posix-functions/wcpcpy.texi: Mention the new module.
21752
21753 2011-02-05  Bruno Haible  <bruno@clisp.org>
21754
21755         New module 'wcscpy'.
21756         * modules/wcscpy: New file.
21757         * lib/wchar.in.h (wcscpy): New declaration.
21758         * lib/wcscpy.c: New file.
21759         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
21760         * m4/wcscpy.m4: New file.
21761         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
21762         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
21763         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
21764         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
21765         * doc/posix-functions/wcscpy.texi: Mention the new module.
21766
21767 2011-02-05  Bruno Haible  <bruno@clisp.org>
21768
21769         New module 'wcsnlen'.
21770         * modules/wcsnlen: New file.
21771         * lib/wchar.in.h (wcsnlen): New declaration.
21772         * lib/wcsnlen.c: New file.
21773         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
21774         * m4/wcsnlen.m4: New file.
21775         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
21776         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
21777         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
21778         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
21779         * doc/posix-functions/wcsnlen.texi: Mention the new module.
21780
21781 2011-02-05  Bruno Haible  <bruno@clisp.org>
21782
21783         New module 'wcslen'.
21784         * modules/wcslen: New file.
21785         * lib/wchar.in.h (wcslen): New declaration.
21786         * lib/wcslen.c: New file.
21787         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
21788         * m4/wcslen.m4: New file.
21789         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
21790         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
21791         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
21792         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
21793         * doc/posix-functions/wcslen.texi: Mention the new module.
21794
21795 2011-02-05  Bruno Haible  <bruno@clisp.org>
21796
21797         New module 'wmemset'.
21798         * modules/wmemset: New file.
21799         * lib/wchar.in.h (wmemset): New declaration.
21800         * lib/wmemset.c: New file.
21801         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
21802         * m4/wmemset.m4: New file.
21803         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
21804         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
21805         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
21806         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
21807         * doc/posix-functions/wmemset.texi: Mention the new module.
21808
21809 2011-02-05  Bruno Haible  <bruno@clisp.org>
21810
21811         New module 'wmemmove'.
21812         * modules/wmemmove: New file.
21813         * lib/wchar.in.h (wmemmove): New declaration.
21814         * lib/wmemmove.c: New file.
21815         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
21816         * m4/wmemmove.m4: New file.
21817         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
21818         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
21819         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
21820         HAVE_WMEMMOVE.
21821         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
21822         * doc/posix-functions/wmemmove.texi: Mention the new module.
21823
21824 2011-02-05  Bruno Haible  <bruno@clisp.org>
21825
21826         New module 'wmemcpy'.
21827         * modules/wmemcpy: New file.
21828         * lib/wchar.in.h (wmemcpy): New declaration.
21829         * lib/wmemcpy.c: New file.
21830         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
21831         * m4/wmemcpy.m4: New file.
21832         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
21833         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
21834         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
21835         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
21836         * doc/posix-functions/wmemcpy.texi: Mention the new module.
21837
21838 2011-02-05  Bruno Haible  <bruno@clisp.org>
21839
21840         New module 'wmemcmp'.
21841         * modules/wmemcmp: New file.
21842         * lib/wchar.in.h (wmemcmp): New declaration.
21843         * lib/wmemcmp.c: New file.
21844         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
21845         * m4/wmemcmp.m4: New file.
21846         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
21847         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
21848         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
21849         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
21850         * doc/posix-functions/wmemcmp.texi: Mention the new module.
21851
21852 2011-02-07  Jim Meyering  <meyering@redhat.com>
21853
21854         di-set, ino-map: new modules, from coreutils
21855         * lib/di-set.c: New file.
21856         * lib/di-set.h: Likewise.
21857         * lib/ino-map.c: Likewise.
21858         * lib/ino-map.h: Likewise.
21859         * modules/di-set: Likewise.
21860         * modules/di-set-tests: Likewise.
21861         * modules/ino-map: Likewise.
21862         * modules/ino-map-tests: Likewise.
21863         * tests/test-di-set.c: Likewise.
21864         * tests/test-ino-map.c: Likewise.
21865
21866 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
21867
21868         getloadavg: merge minor changes from Emacs
21869
21870         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
21871         (getloadavg): Use memset, not bzero.
21872
21873         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
21874         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
21875         clash (bug#86).
21876
21877 2010-11-14  Bruno Haible  <bruno@clisp.org>
21878
21879         Allow multiple gnulib generated replacements to coexist.
21880         * lib/getopt.in.h (struct option): Avoid identical redefinition.
21881         * lib/inttypes.in.h (imaxdiv_t): Likewise.
21882         * lib/langinfo.in.h (nl_item): Likewise.
21883         * lib/math.in.h (_NaN, NAN): Likewise.
21884         * lib/netdb.in.h (struct addrinfo): Likewise.
21885         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
21886         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
21887         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
21888         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
21889         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
21890         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
21891         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
21892         pthread_mutexattr_init, pthread_mutexattr_settype,
21893         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
21894         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
21895         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
21896         pthread_spin_trylock, pthread_spin_unlock): Likewise.
21897         * lib/sched.in.h (struct sched_param): Likewise.
21898         * lib/se-selinux.in.h (security_class_t, security_context_t,
21899         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
21900         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
21901         lsetfilecon, fsetfilecon, security_check_context,
21902         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
21903         Likewise.
21904         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
21905         Likewise.
21906         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
21907         _gl_function_taking_int_returning_void_t, union sigval,
21908         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
21909         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
21910         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
21911         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
21912         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
21913         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
21914         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
21915         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
21916         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
21917         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
21918         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
21919         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
21920         socklen_t, rpl_fd_isset): Likewise.
21921         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
21922         * lib/sys_time.in.h (struct timeval): Likewise.
21923         * lib/sys_times.in.h (struct tms): Likewise.
21924         * lib/sys_utsname.in.h (struct utsname):
21925         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
21926         * lib/unistd.in.h (getpagesize): Likewise.
21927         * lib/wchar.in.h (mbstate_t): Likewise.
21928         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
21929         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
21930         towlower, towupper): Likewise.
21931         Reported by Sam Steingold <sds@gnu.org>.
21932
21933 2011-02-05  Eric Blake  <eblake@redhat.com>
21934
21935         unsetenv: work around Haiku issues
21936         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
21937         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
21938
21939 2010-12-30  Bruce Korb  <bkorb@gnu.org>
21940
21941         libposix: avoid calling error() within libposix
21942         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
21943         is defined.
21944
21945 2011-02-05  Eric Blake  <eblake@redhat.com>
21946
21947         strerror_r-posix: port to cygwin
21948         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
21949         implementation.
21950         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
21951         * tests/test-strerror_r.c (main): Fix test.
21952         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
21953         issue.
21954
21955 2011-02-05  Bruno Haible  <bruno@clisp.org>
21956
21957         New module 'wmemchr'.
21958         * modules/wmemchr: New file.
21959         * lib/wchar.in.h (wmemchr): New declaration.
21960         * lib/wmemchr.c: New file.
21961         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
21962         * m4/wmemchr.m4: New file.
21963         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
21964         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
21965         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
21966         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
21967         * doc/posix-functions/wmemchr.texi: Mention the new module.
21968
21969 2011-02-04  Eric Blake  <eblake@redhat.com>
21970
21971         fdopendir: detect FreeBSD bug
21972         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
21973         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
21974
21975 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
21976
21977         stdbool: do not define HAVE_STDBOOL_H
21978         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
21979         AC_HEADER_STDBOOL.  All uses changed.  Do not define
21980         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
21981         imported from the latest Autoconf git.  It was motivated by Emacs,
21982         which uses gnulib but does not need HAVE_STDBOOL_H.
21983
21984 2011-02-04  Bruno Haible  <bruno@clisp.org>
21985
21986         wcsnrtombs: Prepare for new module wwcsnrtombs.
21987         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
21988         * lib/wcsnrtombs.c: Include it.
21989         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
21990
21991         wcsrtombs: Prepare for new module wwcsrtombs.
21992         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
21993         * lib/wcsrtombs.c: Include it.
21994         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
21995
21996         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
21997         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
21998         * lib/mbsnrtowcs.c: Include it.
21999         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
22000
22001         mbsrtowcs: Prepare for new module mbsrtowwcs.
22002         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
22003         * lib/mbsrtowcs.c: Include it.
22004         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
22005
22006 2011-02-04  Bruno Haible  <bruno@clisp.org>
22007
22008         vasnprintf: Reduce use of malloc for small format strings.
22009         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
22010         (arguments): Add room for the first 7 arguments.
22011         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
22012         (char_directives, u8_directives, u16_directives, u32_directives): Add
22013         room for the first 7 directives.
22014         * lib/printf-parse.c: Include <string.h>.
22015         (PRINTF_PARSE): Change memory handling code so that it uses the first
22016         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
22017         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
22018         Reported by Pádraig Brady <P@draigbrady.com>.
22019
22020 2011-01-31  Eric Blake  <eblake@redhat.com>
22021
22022         dup2: work around Haiku bug
22023         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
22024         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
22025         * doc/posix-functions/dup2.texi (dup2): Document the bug.
22026         * tests/test-dup2.c (main): Enhance test.
22027
22028 2011-01-31  Simon Josefsson  <simon@josefsson.org>
22029
22030         doc: off_t is not available in eglibc 2.11.2 stdio.h.
22031         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
22032         declared by eglibc 2.11.2.
22033         * lib/stdio.in.h: Likewise.
22034
22035 2011-01-31  Eric Blake  <eblake@redhat.com>
22036
22037         ignore-value: add missing test dependency
22038         * tests/test-ignore-value.c: Revert previous change; stdio.h
22039         provides off_t.
22040         * modules/ignore-value-tests (Depends-on): Add missing dependency.
22041
22042 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
22043
22044         mktime: clarify long_int width checking
22045         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
22046         the top level, to make it clearer that the assumption about
22047         long_int width is being checked.  See
22048         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
22049
22050 2011-01-30  Simon Josefsson  <simon@josefsson.org>
22051
22052         ignore-value: Fix self-test.
22053         * tests/test-ignore-value.c: Include sys/types.h for off_t.
22054
22055 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
22056
22057         TYPE_MAXIMUM: avoid theoretically undefined behavior
22058         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
22059         negative number, which the C Standard says has undefined behavior.
22060         In practice this is not a problem, but might as well do it by the book.
22061         Reported by Rich Felker and Eric Blake; see
22062         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
22063         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
22064         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
22065         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
22066         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
22067         * m4/stdint.m4 (gl_STDINT_H): Likewise.
22068         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
22069
22070         mktime: #undef mktime before #defining it
22071         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
22072
22073         mktime: systematically normalize tm_isdst comparisons
22074         * lib/mktime.c (isdst_differ): New function.
22075         (__mktime_internal): Use it systematically for all isdst comparisons.
22076         This completes the fix for libc BZ #6723, and removes the need for
22077         normalizing tm_isdst.  See
22078         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
22079         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
22080
22081         mktime: fix some integer overflow issues and sidestep the rest
22082
22083         This was prompted by a bug report by Benjamin Lindner for MinGW
22084         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
22085         His bug is due to signed integer overflow (0 - INT_MIN), and I
22086         I scanned through mktime.c looking for other integer overflow
22087         problems, fixing all the bugs I found.
22088
22089         Although the C Standard says the resulting code is still not safe
22090         in the presence of integer overflow, in practice it should be good
22091         enough for all real-world two's-complement implementations, except
22092         for debugging environments that deliberately trap on integer
22093         overflow (e.g., gcc -ftrapv).
22094
22095         * lib/mktime.c (WRAPV): New macro.
22096         (SHR): Also check that long_int and time_t shift right in the
22097         usual way, before using the fast-but-unportable method.
22098         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
22099         used.  The code already assumed two's complement, so there's
22100         no need to test for alternatives.  All uses removed.
22101         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
22102         the C standard.  Problem reported by Rich Felker in
22103         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
22104         (twos_complement_arithmetic): Also check long_int and time_t.
22105         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
22106         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
22107         (__mktime_internal): Avoid integer overflow with unary subtraction
22108         in two instances where -1 - X is an adequate replacement for -X,
22109         since the calculations are approximate.
22110
22111 2011-01-29  Eric Blake  <eblake@redhat.com>
22112
22113         mktime: avoid infinite loop
22114         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
22115         type; behavior is still undefined but portable to all known targets.
22116         Reported by Rich Felker.
22117
22118 2011-01-29  Simon Josefsson  <simon@josefsson.org>
22119
22120         rename, unlink, same-inode: Relicense.
22121         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
22122         * modules/unlink (License): Likewise.
22123         * modules/same-inode (License): Likewise.
22124
22125 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
22126
22127         mktime: avoid problems on NetBSD 5 / i386
22128         * lib/mktime.c (long_int): New type.  This works around a problem
22129         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
22130         but time_t is 64 bits, and where I expect the existing code is
22131         wrong in some cases.
22132         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
22133         (ydhms_diff): Bring back the compile-time check for wide-enough
22134         year and yday.
22135
22136         mktime: fix misspelling in comment
22137         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
22138         This merges all recent glibc changes of importance.
22139
22140 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22141
22142         move-if-change: cope with concurrent mv of identical file.
22143         * build-aux/move-if-change (CMPPROG): Accept environment
22144         variable as an override for `cmp'.
22145         (usage): Document CMPPROG.
22146         Adjust comparison to drop stdout.  Cope with failure of mv if
22147         the target file exists and is identical to the source, for
22148         parallel builds.
22149         Report from H.J. Lu against binutils in PR binutils/12283.
22150
22151 2011-01-28  Bruce Korb  <bkorb@gnu.org>
22152
22153         * users.txt: Mention sharutils.
22154
22155 2011-01-28  Simon Josefsson  <simon@josefsson.org>
22156
22157         * users.txt: Mention OATH Toolkit.
22158
22159 2011-01-27  Bruno Haible  <bruno@clisp.org>
22160
22161         Prepare for supporting FreeBSD 10.
22162         * build-aux/config.libpath: Remove handling of freebsd1*.
22163
22164 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
22165
22166         Prepare for supporting FreeBSD 10.
22167         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
22168         match FreeBSD 10.0.
22169
22170 2011-01-27  Bruno Haible  <bruno@clisp.org>
22171
22172         vma-iter, get-rusage-as: Add OpenBSD support.
22173         * modules/vma-iter (configure.ac): Test for mquery.
22174         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
22175         * lib/vma-iter.c: Include <sys/mman.h>.
22176         (vma_iterate): Add an implementation based on mquery().
22177         * lib/resource-ext.h (get_rusage_as): Update comments.
22178         * lib/get-rusage-as.c: Likewise.
22179         * lib/get-rusage-data.c: Likewise.
22180
22181 2011-01-26  Karl Berry  <karl@gnu.org>
22182
22183         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
22184         variables to make it easier to override the makeinfo program used.
22185
22186 2011-01-26  Eric Blake  <eblake@redhat.com>
22187
22188         fcntl: work around Haiku F_DUPFD bugs
22189         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
22190         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
22191         cloexec bit on duplication.
22192         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
22193
22194 2011-01-26  Bruno Haible  <bruno@clisp.org>
22195
22196         Enable memory leak tests on AIX.
22197         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
22198         * tests/test-fprintf-posix3.c (main): Likewise.
22199
22200 2011-01-26  Bruno Haible  <bruno@clisp.org>
22201
22202         Tests for module 'get-rusage-data'.
22203         * modules/get-rusage-data-tests: New file.
22204         * tests/test-get-rusage-data.c: New file.
22205
22206         New module 'get-rusage-data'.
22207         * lib/resource-ext.h (get_rusage_data): New declaration.
22208         * lib/get-rusage-data.c: New file.
22209         * modules/get-rusage-data: New file.
22210
22211 2011-01-25  Bruno Haible  <bruno@clisp.org>
22212
22213         get-rusage-as: Allow for easier testing.
22214         * lib/resource-ext.h (get_rusage_as): Add comment.
22215         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
22216         (main): New function for interactive testing.
22217
22218 2011-01-25  Bruno Haible  <bruno@clisp.org>
22219
22220         vma-iter: Treat Haiku like BeOS.
22221         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
22222         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
22223
22224 2011-01-25  Eric Blake  <eblake@redhat.com>
22225
22226         c-stack: fix regression on cygwin when libsigsegv is present
22227         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
22228
22229 2011-01-24  Bruno Haible  <bruno@clisp.org>
22230
22231         vma-iter: Avoid empty intervals.
22232         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
22233         on an empty interval.
22234
22235 2011-01-24  Jim Meyering  <meyering@redhat.com>
22236
22237         u64: remove unnecessary #include
22238         * lib/u64.h: Don't include <stddef.h>.  It was not used.
22239
22240 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
22241
22242         Allow the user to avoid the HAVE_RAW_DECL_* macros.
22243         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
22244
22245 2011-01-23  Bruno Haible  <bruno@clisp.org>
22246
22247         New module 'vma-iter'.
22248         * lib/vma-iter.h: New file.
22249         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
22250         * modules/vma-iter: New file.
22251         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
22252         for get_rusage_as_via_iterator.
22253         (vma_iterate_callback): New function.
22254         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
22255         * modules/get-rusage-as (Depends-on): Add vma-iter.
22256
22257 2011-01-23  Bruno Haible  <bruno@clisp.org>
22258
22259         uninorm: Tweak includes.
22260         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
22261         Reported by Jim Meyering.
22262
22263 2011-01-23  Bruno Haible  <bruno@clisp.org>
22264
22265         get-rusage-as: Improve on NetBSD.
22266         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
22267         /proc, like on FreeBSD.
22268
22269 2011-01-23  Jim Meyering  <meyering@redhat.com>
22270
22271         xreadlink.h: remove unnecessary #include
22272         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
22273
22274         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
22275         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
22276
22277 2011-01-23  Bruno Haible  <bruno@clisp.org>
22278
22279         get-rusage-as: Fix bug.
22280         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
22281         original limit when aborting the first loop.
22282
22283 2011-01-23  Bruno Haible  <bruno@clisp.org>
22284
22285         wctype: Ensure valid C syntax.
22286         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
22287         unconditionally, instead of gl_NEXT_HEADERS conditionally.
22288
22289 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
22290
22291         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
22292         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
22293         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
22294         as they are needed only for configure's test case.
22295         This removes two unnecessary symbols from config.h.
22296
22297         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
22298         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
22299         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
22300         AC_CHECK_HEADERS_ONCE on a header that we also invoke
22301         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
22302         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
22303         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
22304         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
22305         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
22306         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
22307         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
22308         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
22309         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
22310         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
22311         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
22312         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
22313         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
22314         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
22315
22316 2011-01-21  Eric Blake  <eblake@redhat.com>
22317
22318         maintainer-makefile: work with older git for submodule check
22319         * top/maint.mk (public-submodule-commit): Rewrite to avoid
22320         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
22321         Reported by Matthias Bolte.
22322
22323         bootstrap: minor portability fixes
22324         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
22325         (usage): Omit leading capital and trailing . on help phrases, per
22326         GNU Coding Standards.
22327         (check_versions, top level): Prefix messages with script name.
22328
22329 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
22330
22331         bootstrap: support --no-git option
22332         * build-aux/bootstrap: Add --no-git option, to be used when
22333         --gnulib-srcdir points to the exact desired checkout.
22334
22335 2011-01-21  Eric Blake  <eblake@redhat.com>
22336
22337         strerror_r-posix: work with glibc 2.13
22338         * lib/strerror_r.c (strerror_r): Fix return type.
22339
22340 2011-01-21  Pádraig Brady  <P@draigBrady.com>
22341             Bruno Haible  <bruno@clisp.org>
22342
22343         uN_strstr: New unit tests.
22344         * modules/unistr/u8-strstr-tests: New file.
22345         * modules/unistr/u16-strstr-tests: New file.
22346         * modules/unistr/u32-strstr-tests: New file.
22347         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
22348         * tests/unistr/test-u8-strstr.c: New file.
22349         * tests/unistr/test-u16-strstr.c: New file.
22350         * tests/unistr/test-u32-strstr.c: New file.
22351
22352 2011-01-21  Pádraig Brady  <P@draigBrady.com>
22353             Bruno Haible  <bruno@clisp.org>
22354
22355         Make uN_strstr functions O(n) worst-case.
22356         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
22357         16-bit and 32-bit unit cases, use the unibyte algorithm from
22358         lib/mbsstr.c.
22359         * lib/unistr/u8-strstr.c: Include <string.h>.
22360         (UNIT_IS_UINT8_T): New macro.
22361         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
22362         (U_STRLEN, U_STRNLEN): New macros.
22363         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
22364         (U_STRLEN, U_STRNLEN): New macros.
22365         * modules/unistr/u8-strstr (Depends-on): Add strstr.
22366         (configure.ac): Update required libunistring version.
22367         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
22368         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
22369         malloca.
22370         (configure.ac): Update required libunistring version.
22371         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
22372         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
22373         malloca.
22374         (configure.ac): Update required libunistring version.
22375
22376 2011-01-21  Pádraig Brady  <P@draigBrady.com>
22377             Bruno Haible  <bruno@clisp.org>
22378
22379         Prepare for faster uN_strstr functions.
22380         * lib/str-kmp.h: Support definable UNITs.
22381         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
22382         needle_len argument.
22383         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
22384         * lib/mbscasestr.c (mbscasestr): Likewise.
22385
22386 2011-01-21  Pádraig Brady <P@draigBrady.com>
22387
22388         malloca-tests: make faster by unsetting MALLOC_PERTURB_
22389         * tests/test-malloca.c (main): Unset the environment variable
22390         to greatly speed up the test.
22391         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
22392         * modules/malloca-tests: Depend on unsetenv.
22393
22394 2011-01-21  Pádraig Brady <P@draigBrady.com>
22395
22396         ignore-value: remove stdint dependency
22397         * lib/ignore-value.h: Remove <stdint.h>
22398         * modules/ignore-value: Remove stdint dependency.
22399
22400 2011-01-21  Jim Meyering  <meyering@redhat.com>
22401
22402         maint.mk: adjust variable name to be consistent with other gl_ vars
22403         * top/maint.mk (gl_public_submodule_commit): Rename the variable
22404         to be lower case.
22405
22406 2011-01-20  Jim Meyering  <meyering@redhat.com>
22407
22408         maint.mk: make "check" depend on public-submodule-commit by default
22409         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
22410
22411 2011-01-20  Bruno Haible  <bruno@clisp.org>
22412
22413         mbfile, mbiter: Complete change from 2008-12-21.
22414         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
22415         * m4/mbiter.m4 (gl_MBITER): Likewise.
22416
22417 2011-01-20  Jim Meyering  <meyering@redhat.com>
22418
22419         init.sh: insert space between each function name and "()"
22420         * tests/init.sh: Make it a little easier to see that a function's
22421         name is "warn_", and not "warn" when looking at the first part of
22422         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
22423
22424 2011-01-20  Jim Meyering  <meyering@redhat.com>
22425
22426         mountlist: clean up code formatting
22427         * lib/mountlist.c (read_file_system_list): Split a long line,
22428         correct bracing style, use NULL in place of "(struct statfs *)0",
22429         don't parenthesize return value, add spaces around "=" and after
22430         ";-in-for-stmt".
22431
22432 2011-01-14  Markus Duft <mduft@gentoo.org>
22433
22434         mountlist: add support for Interix
22435         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
22436         Apply statvfs to all entries of /dev/fs.
22437         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
22438         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
22439
22440 2011-01-20  Jim Meyering  <meyering@redhat.com>
22441
22442         maint.mk: improve the public-submodule-commit rule
22443         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
22444         to suppress printing of its commands... unless V=1.
22445         Add git submodule's --quiet option to suppress printing of e.g.,
22446         "Entering gnulib" output.
22447         "cd" into $(srcdir) before running git submodule.
22448
22449 2011-01-20  Bruno Haible  <bruno@clisp.org>
22450
22451         include_next: Fix bug introduced on 2011-01-18.
22452         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
22453         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
22454         ac_cv_header_... variable if the second argument is not 'check'.
22455         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
22456         gl_NEXT_HEADERS_INTERNAL.
22457
22458 2011-01-20  Bruno Haible  <bruno@clisp.org>
22459
22460         Allow the user to avoid the GNULIB_TEST_* macros.
22461         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
22462         Suggested by Paul Eggert.
22463
22464 2011-01-14  Jim Meyering  <meyering@redhat.com>
22465
22466         bootstrap: avoid failure when there is no .gitmodules file
22467         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
22468         has been assigned to, even when its value is the empty string.
22469         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
22470         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
22471         Reported by John W. Eaton <jwe@gnu.org>.
22472
22473 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
22474
22475         assume <ctype.h>, ..., <time.h> exist
22476         For years gnulib has been assuming the existence of the headers
22477         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
22478         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
22479         them, since they don't appear to be needed.
22480         * README (Portability guidelines): Document this.
22481         * lib/flock.c: Assume <fcntl.h> exists.
22482         * lib/regex_internal.h: Assume <locale.h> exists.
22483         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
22484         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
22485         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
22486         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
22487         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
22488         * m4/regex.m4 (gl_REGEX): Likewise.
22489         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
22490         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
22491         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
22492         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
22493         * tests/test-argp.c: Likewise.
22494         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
22495
22496         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
22497         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
22498         AA_APPLE_UNIVERSAL_BUILD.  See
22499         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
22500         * NEWS: Document this.
22501
22502 2011-01-19  Eric Blake  <eblake@redhat.com>
22503
22504         c-stack: assume stack overflow if SA_SIGINFO unsupported
22505         * lib/c-stack.c (SIGACTION_WORKS): Rename...
22506         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
22507         sigaction will work.
22508         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
22509         behavior match Linux.
22510         * tests/test-c-stack.c (main): Prefer NULL for pointers.
22511
22512         stdbool-tests: accommodate Haiku
22513         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
22514
22515         binary-io: fix O_TEXT on Haiku
22516         * modules/binary-io (Depends-on): Add fcntl-h.
22517         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
22518         than blindly undefining O_TEXT.
22519         Reported by Scott McCreary.
22520
22521 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
22522
22523         include_next: do not check for standard headers like stddef.h
22524
22525         I found this problem when modifying Emacs to use gnulib.
22526         I noticed that it added HAVE_STDDEF_H to config.h, even though
22527         gnulib always assumes <stddef.h> exists as per README and this
22528         symbol is unnecessary.
22529         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
22530         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
22531         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
22532         faster for headers like stddef.h that are known to exist.
22533         (gl_CHECK_NEXT_HEADERS): Use it.
22534         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
22535         rather than gl_CHECK_NEXT_HEADERS.
22536         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
22537         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
22538
22539 2011-01-18  Eric Blake  <eblake@redhat.com>
22540
22541         ansi-c++-opt: skip C++ dependency style if C++ is unused
22542         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
22543         tests when we know C++ compilation is not desired.
22544         Reported by Scott McCreary.
22545
22546 2011-01-18  Bruno Haible  <bruno@clisp.org>
22547
22548         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
22549         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
22550         (main): Perform test also when getrlimit and setrlimit don't exist or
22551         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
22552         limiting the address space size using setrlimit, compare the address
22553         space size before and after the the test.
22554         * tests/test-dprintf-posix2.c: Likewise.
22555         * tests/test-fprintf-posix3.sh: Update skip messages.
22556         * tests/test-dprintf-posix2.sh: Likewise.
22557         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
22558         * modules/dprintf-posix-tests (Depends-on): Likewise.
22559         Reported by Bruce Korb <bkorb@gnu.org> and
22560         Gary V. Vaughan <gary@gnu.org>.
22561
22562 2011-01-18  Bruno Haible  <bruno@clisp.org>
22563
22564         get-rusage-as: Improvement for Cygwin.
22565         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
22566         areas that are merely reserved.
22567
22568 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
22569
22570         strftime: remove dependencies on multibyte modules
22571
22572         strftime depended on mbrlen, mbsinit, and wchar, but these modules
22573         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
22574         only if __osf__ is defined, and I suspect OSF doesn't need these
22575         other modules.  If my guess is wrong, we'll need to come up with a
22576         variant of strftime that doesn't need the multibyte modules.
22577
22578         I discovered this problem when attempting modify Emacs to use the
22579         strftime module.  With the previous gnulib, this caused Emacs to
22580         need 31 new files, ranging from lib/config.charset to
22581         m4/wint_t.m4.  This was overkill and I expect would be offputting
22582         to the Emacs maintainers.  After this change, only 6 new files are
22583         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
22584         stdbool.m4, and tm_gmtoff.m4.
22585
22586         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
22587         Suggested by Bruno Haible in
22588         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
22589         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
22590         and do not check for wchar.h.
22591         * modules/strftime (Files): Remove m4/mbstate_t.m4.
22592         (Depends-on): Remove mbrlen, mbsinit, wchar.
22593
22594 2011-01-18  Bruno Haible  <bruno@clisp.org>
22595
22596         Tests for module 'get-rusage-as'.
22597         * modules/get-rusage-as-tests: New file.
22598         * tests/test-get-rusage-as.c: New file.
22599
22600         New module 'get-rusage-as'.
22601         * modules/get-rusage-as: New file.
22602         * lib/resource-ext.h: New file.
22603         * lib/get-rusage-as.c: New file.
22604
22605 2011-01-17  Eric Blake  <eblake@redhat.com>
22606
22607         sigaction: relax license from LGPLv3+ to LGPLv2+
22608         * modules/sigaction (License): Relax to LGPLv2+.
22609
22610 2011-01-14  Bruno Haible  <bruno@clisp.org>
22611
22612         filemode: Make function declarations usable in C++ mode.
22613         * lib/filemode.h: Enclose function declarations in extern "C" block.
22614         Reported by John W. Eaton <jwe@gnu.org>.
22615
22616 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
22617
22618         save-cwd: no longer include "xgetcwd.h"
22619         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
22620         This avoids a compilation failure in projects that use save-cwd
22621         without also using the xgetcwd module.
22622
22623 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
22624
22625         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
22626         This is so that a program like Emacs, which needs only dtoastr,
22627         does not have to bother with distributing and compiling ftoastr
22628         and ldtoastr.
22629         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
22630         * modules/dtoastr, modules/ldtoastr: New files.
22631         * modules/ftoastr: Now works just for 'float'.
22632         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
22633         (Makefile.am): Remove ftoastr.h (not needed and no effect),
22634         dtoastr.c, ldtoastr.c.
22635
22636 2011-01-11  Jim Meyering  <meyering@redhat.com>
22637
22638         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
22639         There is no need to work around the lack of the fchdir function,
22640         since gnulib can now provide a replacement when required.
22641         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
22642         * modules/save-cwd (Depends-on): Add fchdir.
22643
22644 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
22645
22646         openat, save-cwd: avoid xmalloc
22647
22648         This removes a direct (but undocumented) dependency of openat on
22649         xalloc, along with an indirect dependency via save-cwd.  It also
22650         removes a dependency of save-cwd on xgetcwd, and thereby
22651         indirectly on xalloc.  This change causes the openat substitute
22652         to fall back on save_cwd when memory is tight, and for save_cwd to
22653         fail instead of dying when memory is tight, but that's good enough.
22654         Problem and initial idea for fix reported by Bastien Roucaries in
22655         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
22656
22657         * lib/openat-proc.c: Include stdlib.h (for malloc), not
22658         xalloc.h (for xmalloc).
22659         (openat_proc_name): Use malloc, not xmalloc.
22660         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
22661         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
22662
22663         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
22664         This avoids heap allocation for file names whose lengths are in
22665         the range 512..1023, with the upper bound increasing to at most
22666         4031 depending on the platform's PATH_MAX.  (We do not want
22667         pathmax.h here as it might supply a non-constant PATH_MAX.)
22668         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
22669         Perhaps they should be moved to malloca.h?
22670         (OPENAT_BUFFER_SIZE): Use them.
22671
22672 2011-01-10  Bruno Haible  <bruno@clisp.org>
22673
22674         doc: Update users.txt.
22675         * users.txt: Add recutils.
22676
22677 2011-01-09  Karl Berry  <karl@gnu.org>
22678
22679         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
22680
22681         * doc/configmake.texi: New file.
22682         * doc/gnulib.texi: Include it.
22683         * modules/configmake: Move documentation from here.
22684
22685 2011-01-09  Bruno Haible  <bruno@clisp.org>
22686
22687         Update to Unicode 6.0.0.
22688         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
22689         (get_lbp): Update for Unicode 6.0.0.
22690         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
22691         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
22692         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
22693         U+11001, U+11038..U+11046. Remove U+06DE.
22694         (uc_width): Fix bounds of planes.
22695         * tests/uniwidth/test-uc_width2.sh: Same updates as in
22696         lib/uniwidth/width.c.
22697         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
22698         trailing whitespace removed.
22699         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
22700         without comments, but with the original copyright notice.
22701         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
22702         * lib/unicase/ignorable.h: Likewise.
22703         * lib/unicase/tocasefold.h: Likewise.
22704         * lib/unicase/tolower.h: Likewise.
22705         * lib/unicase/totitle.h: Likewise.
22706         * lib/unicase/toupper.h: Likewise.
22707         * lib/unictype/bidi_of.h: Likewise.
22708         * lib/unictype/blocks.h: Likewise.
22709         * lib/unictype/categ_C.h: Likewise.
22710         * lib/unictype/categ_Cn.h: Likewise.
22711         * lib/unictype/categ_L.h: Likewise.
22712         * lib/unictype/categ_Ll.h: Likewise.
22713         * lib/unictype/categ_Lm.h: Likewise.
22714         * lib/unictype/categ_Lo.h: Likewise.
22715         * lib/unictype/categ_Lu.h: Likewise.
22716         * lib/unictype/categ_M.h: Likewise.
22717         * lib/unictype/categ_Mc.h: Likewise.
22718         * lib/unictype/categ_Me.h: Likewise.
22719         * lib/unictype/categ_Mn.h: Likewise.
22720         * lib/unictype/categ_N.h: Likewise.
22721         * lib/unictype/categ_Nd.h: Likewise.
22722         * lib/unictype/categ_No.h: Likewise.
22723         * lib/unictype/categ_P.h: Likewise.
22724         * lib/unictype/categ_Po.h: Likewise.
22725         * lib/unictype/categ_S.h: Likewise.
22726         * lib/unictype/categ_Sc.h: Likewise.
22727         * lib/unictype/categ_Sk.h: Likewise.
22728         * lib/unictype/categ_Sm.h: Likewise.
22729         * lib/unictype/categ_So.h: Likewise.
22730         * lib/unictype/categ_of.h: Likewise.
22731         * lib/unictype/combining.h: Likewise.
22732         * lib/unictype/ctype_alnum.h: Likewise.
22733         * lib/unictype/ctype_alpha.h: Likewise.
22734         * lib/unictype/ctype_graph.h: Likewise.
22735         * lib/unictype/ctype_lower.h: Likewise.
22736         * lib/unictype/ctype_print.h: Likewise.
22737         * lib/unictype/ctype_punct.h: Likewise.
22738         * lib/unictype/ctype_upper.h: Likewise.
22739         * lib/unictype/decdigit.h: Likewise.
22740         * lib/unictype/digit.h: Likewise.
22741         * lib/unictype/numeric.h: Likewise.
22742         * lib/unictype/pr_alphabetic.h: Likewise.
22743         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
22744         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
22745         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
22746         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
22747         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
22748         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
22749         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
22750         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
22751         * lib/unictype/pr_case_ignorable.h: Likewise.
22752         * lib/unictype/pr_cased.h: Likewise.
22753         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
22754         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
22755         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
22756         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
22757         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
22758         * lib/unictype/pr_combining.h: Likewise.
22759         * lib/unictype/pr_composite.h: Likewise.
22760         * lib/unictype/pr_currency_symbol.h: Likewise.
22761         * lib/unictype/pr_decimal_digit.h: Likewise.
22762         * lib/unictype/pr_deprecated.h: Likewise.
22763         * lib/unictype/pr_format_control.h: Likewise.
22764         * lib/unictype/pr_grapheme_base.h: Likewise.
22765         * lib/unictype/pr_grapheme_extend.h: Likewise.
22766         * lib/unictype/pr_grapheme_link.h: Likewise.
22767         * lib/unictype/pr_id_continue.h: Likewise.
22768         * lib/unictype/pr_id_start.h: Likewise.
22769         * lib/unictype/pr_ideographic.h: Likewise.
22770         * lib/unictype/pr_lowercase.h: Likewise.
22771         * lib/unictype/pr_math.h: Likewise.
22772         * lib/unictype/pr_numeric.h: Likewise.
22773         * lib/unictype/pr_other_alphabetic.h: Likewise.
22774         * lib/unictype/pr_other_id_continue.h: Likewise.
22775         * lib/unictype/pr_other_math.h: Likewise.
22776         * lib/unictype/pr_punctuation.h: Likewise.
22777         * lib/unictype/pr_sentence_terminal.h: Likewise.
22778         * lib/unictype/pr_terminal_punctuation.h: Likewise.
22779         * lib/unictype/pr_unassigned_code_value.h: Likewise.
22780         * lib/unictype/pr_unified_ideograph.h: Likewise.
22781         * lib/unictype/pr_uppercase.h: Likewise.
22782         * lib/unictype/pr_xid_continue.h: Likewise.
22783         * lib/unictype/pr_xid_start.h: Likewise.
22784         * lib/unictype/scripts.h: Likewise.
22785         * lib/unictype/scripts_byname.gperf: Likewise.
22786         * lib/unictype/sy_java_ident.h: Likewise.
22787         * lib/unigbrk/gbrkprop.h: Likewise.
22788         * lib/unilbrk/lbrkprop1.h: Likewise.
22789         * lib/unilbrk/lbrkprop2.h: Likewise.
22790         * lib/uninorm/decomposition-table2.h: Likewise.
22791         * lib/uniwbrk/wbrkprop.h: Likewise.
22792         * tests/unicase/test-cased.c: Likewise.
22793         * tests/unicase/test-ignorable.c: Likewise.
22794         * tests/unicase/test-uc_tolower.c: Likewise.
22795         * tests/unicase/test-uc_totitle.c: Likewise.
22796         * tests/unicase/test-uc_toupper.c: Likewise.
22797         * tests/unictype/test-categ_C.c: Likewise.
22798         * tests/unictype/test-categ_Cn.c: Likewise.
22799         * tests/unictype/test-categ_L.c: Likewise.
22800         * tests/unictype/test-categ_Ll.c: Likewise.
22801         * tests/unictype/test-categ_Lm.c: Likewise.
22802         * tests/unictype/test-categ_Lo.c: Likewise.
22803         * tests/unictype/test-categ_Lu.c: Likewise.
22804         * tests/unictype/test-categ_M.c: Likewise.
22805         * tests/unictype/test-categ_Mc.c: Likewise.
22806         * tests/unictype/test-categ_Me.c: Likewise.
22807         * tests/unictype/test-categ_Mn.c: Likewise.
22808         * tests/unictype/test-categ_N.c: Likewise.
22809         * tests/unictype/test-categ_Nd.c: Likewise.
22810         * tests/unictype/test-categ_No.c: Likewise.
22811         * tests/unictype/test-categ_P.c: Likewise.
22812         * tests/unictype/test-categ_Po.c: Likewise.
22813         * tests/unictype/test-categ_S.c: Likewise.
22814         * tests/unictype/test-categ_Sc.c: Likewise.
22815         * tests/unictype/test-categ_Sk.c: Likewise.
22816         * tests/unictype/test-categ_Sm.c: Likewise.
22817         * tests/unictype/test-categ_So.c: Likewise.
22818         * tests/unictype/test-ctype_alnum.c: Likewise.
22819         * tests/unictype/test-ctype_alpha.c: Likewise.
22820         * tests/unictype/test-ctype_graph.c: Likewise.
22821         * tests/unictype/test-ctype_lower.c: Likewise.
22822         * tests/unictype/test-ctype_print.c: Likewise.
22823         * tests/unictype/test-ctype_punct.c: Likewise.
22824         * tests/unictype/test-ctype_upper.c: Likewise.
22825         * tests/unictype/test-decdigit.h: Likewise.
22826         * tests/unictype/test-digit.h: Likewise.
22827         * tests/unictype/test-numeric.h: Likewise.
22828         * tests/unictype/test-pr_alphabetic.c: Likewise.
22829         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
22830         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
22831         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
22832         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
22833         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
22834         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
22835         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
22836         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
22837         * tests/unictype/test-pr_case_ignorable.c: Likewise.
22838         * tests/unictype/test-pr_cased.c: Likewise.
22839         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
22840         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
22841         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
22842         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
22843         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
22844         * tests/unictype/test-pr_combining.c: Likewise.
22845         * tests/unictype/test-pr_composite.c: Likewise.
22846         * tests/unictype/test-pr_currency_symbol.c: Likewise.
22847         * tests/unictype/test-pr_decimal_digit.c: Likewise.
22848         * tests/unictype/test-pr_deprecated.c: Likewise.
22849         * tests/unictype/test-pr_format_control.c: Likewise.
22850         * tests/unictype/test-pr_grapheme_base.c: Likewise.
22851         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
22852         * tests/unictype/test-pr_grapheme_link.c: Likewise.
22853         * tests/unictype/test-pr_id_continue.c: Likewise.
22854         * tests/unictype/test-pr_id_start.c: Likewise.
22855         * tests/unictype/test-pr_ideographic.c: Likewise.
22856         * tests/unictype/test-pr_lowercase.c: Likewise.
22857         * tests/unictype/test-pr_math.c: Likewise.
22858         * tests/unictype/test-pr_numeric.c: Likewise.
22859         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
22860         * tests/unictype/test-pr_other_id_continue.c: Likewise.
22861         * tests/unictype/test-pr_other_math.c: Likewise.
22862         * tests/unictype/test-pr_punctuation.c: Likewise.
22863         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
22864         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
22865         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
22866         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
22867         * tests/unictype/test-pr_uppercase.c: Likewise.
22868         * tests/unictype/test-pr_xid_continue.c: Likewise.
22869         * tests/unictype/test-pr_xid_start.c: Likewise.
22870         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
22871         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
22872         changes.
22873         * lib/unictype/categ_Cc.h: Likewise.
22874         * lib/unictype/categ_Cf.h: Likewise.
22875         * lib/unictype/categ_Co.h: Likewise.
22876         * lib/unictype/categ_Cs.h: Likewise.
22877         * lib/unictype/categ_Lt.h: Likewise.
22878         * lib/unictype/categ_Nl.h: Likewise.
22879         * lib/unictype/categ_Pc.h: Likewise.
22880         * lib/unictype/categ_Pd.h: Likewise.
22881         * lib/unictype/categ_Pe.h: Likewise.
22882         * lib/unictype/categ_Pf.h: Likewise.
22883         * lib/unictype/categ_Pi.h: Likewise.
22884         * lib/unictype/categ_Ps.h: Likewise.
22885         * lib/unictype/categ_Z.h: Likewise.
22886         * lib/unictype/categ_Zl.h: Likewise.
22887         * lib/unictype/categ_Zp.h: Likewise.
22888         * lib/unictype/categ_Zs.h: Likewise.
22889         * lib/unictype/ctype_blank.h: Likewise.
22890         * lib/unictype/ctype_cntrl.h: Likewise.
22891         * lib/unictype/ctype_digit.h: Likewise.
22892         * lib/unictype/ctype_space.h: Likewise.
22893         * lib/unictype/ctype_xdigit.h: Likewise.
22894         * lib/unictype/mirror.h: Likewise.
22895         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
22896         * lib/unictype/pr_bidi_block_separator.h: Likewise.
22897         * lib/unictype/pr_bidi_common_separator.h: Likewise.
22898         * lib/unictype/pr_bidi_control.h: Likewise.
22899         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
22900         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
22901         * lib/unictype/pr_bidi_european_digit.h: Likewise.
22902         * lib/unictype/pr_bidi_pdf.h: Likewise.
22903         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
22904         * lib/unictype/pr_bidi_whitespace.h: Likewise.
22905         * lib/unictype/pr_dash.h: Likewise.
22906         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
22907         * lib/unictype/pr_diacritic.h: Likewise.
22908         * lib/unictype/pr_extender.h: Likewise.
22909         * lib/unictype/pr_hex_digit.h: Likewise.
22910         * lib/unictype/pr_hyphen.h: Likewise.
22911         * lib/unictype/pr_ids_binary_operator.h: Likewise.
22912         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
22913         * lib/unictype/pr_ignorable_control.h: Likewise.
22914         * lib/unictype/pr_iso_control.h: Likewise.
22915         * lib/unictype/pr_join_control.h: Likewise.
22916         * lib/unictype/pr_left_of_pair.h: Likewise.
22917         * lib/unictype/pr_line_separator.h: Likewise.
22918         * lib/unictype/pr_logical_order_exception.h: Likewise.
22919         * lib/unictype/pr_non_break.h: Likewise.
22920         * lib/unictype/pr_not_a_character.h: Likewise.
22921         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
22922         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
22923         * lib/unictype/pr_other_id_start.h: Likewise.
22924         * lib/unictype/pr_other_lowercase.h: Likewise.
22925         * lib/unictype/pr_other_uppercase.h: Likewise.
22926         * lib/unictype/pr_paired_punctuation.h: Likewise.
22927         * lib/unictype/pr_paragraph_separator.h: Likewise.
22928         * lib/unictype/pr_pattern_syntax.h: Likewise.
22929         * lib/unictype/pr_pattern_white_space.h: Likewise.
22930         * lib/unictype/pr_private_use.h: Likewise.
22931         * lib/unictype/pr_quotation_mark.h: Likewise.
22932         * lib/unictype/pr_radical.h: Likewise.
22933         * lib/unictype/pr_soft_dotted.h: Likewise.
22934         * lib/unictype/pr_space.h: Likewise.
22935         * lib/unictype/pr_titlecase.h: Likewise.
22936         * lib/unictype/pr_variation_selector.h: Likewise.
22937         * lib/unictype/pr_white_space.h: Likewise.
22938         * lib/unictype/pr_zero_width.h: Likewise.
22939         * lib/unictype/sy_c_ident.h: Likewise.
22940         * lib/unictype/sy_c_whitespace.h: Likewise.
22941         * lib/unictype/sy_java_whitespace.h: Likewise.
22942         * lib/uninorm/composition-table.gperf: Likewise.
22943         * lib/uninorm/decomposition-table1.h: Likewise.
22944         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
22945         LB8.
22946         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
22947         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
22948         * modules/unictype/*: Bump version number of expected libunistring
22949         version.
22950
22951 2011-01-09  Bruno Haible  <bruno@clisp.org>
22952
22953         Update to Unicode 5.2.0.
22954         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
22955         trailing whitespace removed.
22956
22957 2011-01-09  Bruno Haible  <bruno@clisp.org>
22958
22959         New Unicode character properties, from Unicode 5.2.0.
22960         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
22961         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
22962         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
22963         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
22964         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
22965         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
22966         uc_is_property_cased, uc_is_property_case_ignorable,
22967         uc_is_property_changes_when_lowercased,
22968         uc_is_property_changes_when_uppercased,
22969         uc_is_property_changes_when_titlecased,
22970         uc_is_property_changes_when_casefolded,
22971         uc_is_property_changes_when_casemapped): New declarations.
22972         * lib/unictype/pr_byname.gperf: Add the new properties.
22973         * modules/unictype/property-byname (Depends-on): Depend on the new
22974         properties modules.
22975         * modules/unictype/property-all (Depends-on): Likewise.
22976         * MODULES.html.sh (Unicode string functions): Add
22977         unictype/property-case-ignorable, unictype/property-cased,
22978         unictype/property-changes-when-casefolded,
22979         unictype/property-changes-when-casemapped,
22980         unictype/property-changes-when-lowercased,
22981         unictype/property-changes-when-titlecased,
22982         unictype/property-changes-when-uppercased.
22983
22984         New module 'unictype/property-changes-when-casemapped'.
22985         * modules/unictype/property-changes-when-casemapped: New file.
22986         * lib/unictype/pr_changes_when_casemapped.c: New file.
22987         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
22988         generated by gen-uni-tables.
22989         * modules/unictype/property-changes-when-casemapped-tests: New file.
22990         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
22991         automatically generated by gen-uni-tables.
22992
22993         New module 'unictype/property-changes-when-casefolded'.
22994         * modules/unictype/property-changes-when-casefolded: New file.
22995         * lib/unictype/pr_changes_when_casefolded.c: New file.
22996         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
22997         generated by gen-uni-tables.
22998         * modules/unictype/property-changes-when-casefolded-tests: New file.
22999         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
23000         automatically generated by gen-uni-tables.
23001
23002         New module 'unictype/property-changes-when-titlecased'.
23003         * modules/unictype/property-changes-when-titlecased: New file.
23004         * lib/unictype/pr_changes_when_titlecased.c: New file.
23005         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
23006         generated by gen-uni-tables.
23007         * modules/unictype/property-changes-when-titlecased-tests: New file.
23008         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
23009         automatically generated by gen-uni-tables.
23010
23011         New module 'unictype/property-changes-when-uppercased'.
23012         * modules/unictype/property-changes-when-uppercased: New file.
23013         * lib/unictype/pr_changes_when_uppercased.c: New file.
23014         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
23015         generated by gen-uni-tables.
23016         * modules/unictype/property-changes-when-uppercased-tests: New file.
23017         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
23018         automatically generated by gen-uni-tables.
23019
23020         New module 'unictype/property-changes-when-lowercased'.
23021         * modules/unictype/property-changes-when-lowercased: New file.
23022         * lib/unictype/pr_changes_when_lowercased.c: New file.
23023         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
23024         generated by gen-uni-tables.
23025         * modules/unictype/property-changes-when-lowercased-tests: New file.
23026         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
23027         automatically generated by gen-uni-tables.
23028
23029         New module 'unictype/property-case-ignorable'.
23030         * modules/unictype/property-case-ignorable: New file.
23031         * lib/unictype/pr_case_ignorable.c: New file.
23032         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
23033         by gen-uni-tables.
23034         * modules/unictype/property-case-ignorable-tests: New file.
23035         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
23036         generated by gen-uni-tables.
23037
23038         New module 'unictype/property-cased'.
23039         * modules/unictype/property-cased: New file.
23040         * lib/unictype/pr_cased.c: New file.
23041         * lib/unictype/pr_cased.h: New file, automatically generated by
23042         gen-uni-tables.
23043         * modules/unictype/property-cased-tests: New file.
23044         * tests/unictype/test-pr_cased.c: New file, automatically generated by
23045         gen-uni-tables.
23046
23047 2011-01-09  Bruno Haible  <bruno@clisp.org>
23048
23049         Update to Unicode 5.2.0.
23050         * lib/gen-uni-tables.c (output_predicate, output_category,
23051         output_combclass, output_bidi_category, output_decimal_digit_test,
23052         output_decimal_digit, output_digit_test, output_digit,
23053         output_numeric_test, output_numeric, output_mirror, output_scripts,
23054         output_scripts_byname, output_blocks, output_ident_category): Fix
23055         comment header.
23056         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
23057         get_wbp.
23058         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
23059         items.
23060         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
23061         Changes_When_Lowercased, Changes_When_Uppercased,
23062         Changes_When_Titlecased, Changes_When_Casefolded,
23063         Changes_When_Casemapped.
23064         (is_property_alphabetic, is_property_default_ignorable_code_point):
23065         Update for Unicode 5.2.0.
23066         (is_property_cased, is_property_case_ignorable,
23067         is_property_changes_when_lowercased,
23068         is_property_changes_when_uppercased,
23069         is_property_changes_when_titlecased,
23070         is_property_changes_when_casefolded,
23071         is_property_changes_when_casemapped): New functions.
23072         (output_properties): Output also the properties cased, case_ignorable,
23073         changes_when_lowercased, changes_when_uppercased,
23074         changes_when_titlecased, changes_when_casefolded,
23075         changes_when_casemapped.
23076         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
23077         Unicode TR#11 revision 17 -> 19.
23078         (LBP_CP): New enumeration value.
23079         (LBP_*): Adjust values accordingly.
23080         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
23081         TR#14 revision 22 -> 24.
23082         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
23083         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
23084         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
23085         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
23086         is_WBP_MIDLETTER.
23087         (output_composition_tables): Allow for 24 bits instead of 16 bits in
23088         the code1 and code2 of each composition rule.
23089         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
23090         * lib/unicase/ignorable.h: Likewise.
23091         * lib/unicase/tocasefold.h: Likewise.
23092         * lib/unicase/tolower.h: Likewise.
23093         * lib/unicase/totitle.h: Likewise.
23094         * lib/unicase/toupper.h: Likewise.
23095         * lib/unictype/bidi_of.h: Likewise.
23096         * lib/unictype/blocks.h: Likewise.
23097         * lib/unictype/categ_C.h: Likewise.
23098         * lib/unictype/categ_Cf.h: Likewise.
23099         * lib/unictype/categ_Cn.h: Likewise.
23100         * lib/unictype/categ_L.h: Likewise.
23101         * lib/unictype/categ_Ll.h: Likewise.
23102         * lib/unictype/categ_Lm.h: Likewise.
23103         * lib/unictype/categ_Lo.h: Likewise.
23104         * lib/unictype/categ_Lu.h: Likewise.
23105         * lib/unictype/categ_M.h: Likewise.
23106         * lib/unictype/categ_Mc.h: Likewise.
23107         * lib/unictype/categ_Mn.h: Likewise.
23108         * lib/unictype/categ_N.h: Likewise.
23109         * lib/unictype/categ_Nd.h: Likewise.
23110         * lib/unictype/categ_Nl.h: Likewise.
23111         * lib/unictype/categ_No.h: Likewise.
23112         * lib/unictype/categ_P.h: Likewise.
23113         * lib/unictype/categ_Pd.h: Likewise.
23114         * lib/unictype/categ_Po.h: Likewise.
23115         * lib/unictype/categ_S.h: Likewise.
23116         * lib/unictype/categ_Sc.h: Likewise.
23117         * lib/unictype/categ_So.h: Likewise.
23118         * lib/unictype/categ_of.h: Likewise.
23119         * lib/unictype/combining.h: Likewise.
23120         * lib/unictype/ctype_alnum.h: Likewise.
23121         * lib/unictype/ctype_alpha.h: Likewise.
23122         * lib/unictype/ctype_graph.h: Likewise.
23123         * lib/unictype/ctype_lower.h: Likewise.
23124         * lib/unictype/ctype_print.h: Likewise.
23125         * lib/unictype/ctype_punct.h: Likewise.
23126         * lib/unictype/ctype_upper.h: Likewise.
23127         * lib/unictype/decdigit.h: Likewise.
23128         * lib/unictype/digit.h: Likewise.
23129         * lib/unictype/numeric.h: Likewise.
23130         * lib/unictype/pr_alphabetic.h: Likewise.
23131         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
23132         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
23133         * lib/unictype/pr_bidi_european_digit.h: Likewise.
23134         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
23135         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
23136         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
23137         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
23138         * lib/unictype/pr_combining.h: Likewise.
23139         * lib/unictype/pr_composite.h: Likewise.
23140         * lib/unictype/pr_currency_symbol.h: Likewise.
23141         * lib/unictype/pr_dash.h: Likewise.
23142         * lib/unictype/pr_decimal_digit.h: Likewise.
23143         * lib/unictype/pr_deprecated.h: Likewise.
23144         * lib/unictype/pr_diacritic.h: Likewise.
23145         * lib/unictype/pr_extender.h: Likewise.
23146         * lib/unictype/pr_grapheme_base.h: Likewise.
23147         * lib/unictype/pr_grapheme_extend.h: Likewise.
23148         * lib/unictype/pr_grapheme_link.h: Likewise.
23149         * lib/unictype/pr_id_continue.h: Likewise.
23150         * lib/unictype/pr_id_start.h: Likewise.
23151         * lib/unictype/pr_ideographic.h: Likewise.
23152         * lib/unictype/pr_ignorable_control.h: Likewise.
23153         * lib/unictype/pr_logical_order_exception.h: Likewise.
23154         * lib/unictype/pr_lowercase.h: Likewise.
23155         * lib/unictype/pr_numeric.h: Likewise.
23156         * lib/unictype/pr_other_alphabetic.h: Likewise.
23157         * lib/unictype/pr_punctuation.h: Likewise.
23158         * lib/unictype/pr_sentence_terminal.h: Likewise.
23159         * lib/unictype/pr_terminal_punctuation.h: Likewise.
23160         * lib/unictype/pr_unassigned_code_value.h: Likewise.
23161         * lib/unictype/pr_unified_ideograph.h: Likewise.
23162         * lib/unictype/pr_uppercase.h: Likewise.
23163         * lib/unictype/pr_xid_continue.h: Likewise.
23164         * lib/unictype/pr_xid_start.h: Likewise.
23165         * lib/unictype/pr_zero_width.h: Likewise.
23166         * lib/unictype/scripts.h: Likewise.
23167         * lib/unictype/scripts_byname.gperf: Likewise.
23168         * lib/unictype/sy_java_ident.h: Likewise.
23169         * lib/unigbrk/gbrkprop.h: Likewise.
23170         * lib/unilbrk/lbrkprop1.h: Likewise.
23171         * lib/unilbrk/lbrkprop2.h: Likewise.
23172         * lib/unilbrk/lbrktables.h: Likewise.
23173         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
23174         LBP_CP. Implement rule LB30.
23175         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
23176         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
23177         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
23178         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
23179         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
23180         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
23181         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
23182         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
23183         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
23184         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
23185         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
23186         bits instead of 16 bits in the code1 and code2 of each composition
23187         rule.
23188         (uc_composition): Update for Unicode 5.2.0.
23189         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
23190         * lib/uninorm/decomposition-table2.h: Likewise.
23191         * lib/uniwbrk/wbrkprop.h: Likewise.
23192         * tests/unicase/test-cased.c: Likewise.
23193         * tests/unicase/test-ignorable.c: Likewise.
23194         * tests/unicase/test-uc_tolower.c: Likewise.
23195         * tests/unicase/test-uc_totitle.c: Likewise.
23196         * tests/unicase/test-uc_toupper.c: Likewise.
23197         * tests/unictype/test-categ_C.c: Likewise.
23198         * tests/unictype/test-categ_Cf.c: Likewise.
23199         * tests/unictype/test-categ_Cn.c: Likewise.
23200         * tests/unictype/test-categ_L.c: Likewise.
23201         * tests/unictype/test-categ_Ll.c: Likewise.
23202         * tests/unictype/test-categ_Lm.c: Likewise.
23203         * tests/unictype/test-categ_Lo.c: Likewise.
23204         * tests/unictype/test-categ_Lu.c: Likewise.
23205         * tests/unictype/test-categ_M.c: Likewise.
23206         * tests/unictype/test-categ_Mc.c: Likewise.
23207         * tests/unictype/test-categ_Mn.c: Likewise.
23208         * tests/unictype/test-categ_N.c: Likewise.
23209         * tests/unictype/test-categ_Nd.c: Likewise.
23210         * tests/unictype/test-categ_Nl.c: Likewise.
23211         * tests/unictype/test-categ_No.c: Likewise.
23212         * tests/unictype/test-categ_P.c: Likewise.
23213         * tests/unictype/test-categ_Pd.c: Likewise.
23214         * tests/unictype/test-categ_Po.c: Likewise.
23215         * tests/unictype/test-categ_S.c: Likewise.
23216         * tests/unictype/test-categ_Sc.c: Likewise.
23217         * tests/unictype/test-categ_So.c: Likewise.
23218         * tests/unictype/test-ctype_alnum.c: Likewise.
23219         * tests/unictype/test-ctype_alpha.c: Likewise.
23220         * tests/unictype/test-ctype_graph.c: Likewise.
23221         * tests/unictype/test-ctype_lower.c: Likewise.
23222         * tests/unictype/test-ctype_print.c: Likewise.
23223         * tests/unictype/test-ctype_punct.c: Likewise.
23224         * tests/unictype/test-ctype_upper.c: Likewise.
23225         * tests/unictype/test-decdigit.h: Likewise.
23226         * tests/unictype/test-digit.h: Likewise.
23227         * tests/unictype/test-numeric.h: Likewise.
23228         * tests/unictype/test-pr_alphabetic.c: Likewise.
23229         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
23230         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
23231         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
23232         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
23233         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
23234         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
23235         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
23236         * tests/unictype/test-pr_combining.c: Likewise.
23237         * tests/unictype/test-pr_composite.c: Likewise.
23238         * tests/unictype/test-pr_currency_symbol.c: Likewise.
23239         * tests/unictype/test-pr_dash.c: Likewise.
23240         * tests/unictype/test-pr_decimal_digit.c: Likewise.
23241         * tests/unictype/test-pr_deprecated.c: Likewise.
23242         * tests/unictype/test-pr_diacritic.c: Likewise.
23243         * tests/unictype/test-pr_extender.c: Likewise.
23244         * tests/unictype/test-pr_grapheme_base.c: Likewise.
23245         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
23246         * tests/unictype/test-pr_grapheme_link.c: Likewise.
23247         * tests/unictype/test-pr_id_continue.c: Likewise.
23248         * tests/unictype/test-pr_id_start.c: Likewise.
23249         * tests/unictype/test-pr_ideographic.c: Likewise.
23250         * tests/unictype/test-pr_ignorable_control.c: Likewise.
23251         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
23252         * tests/unictype/test-pr_lowercase.c: Likewise.
23253         * tests/unictype/test-pr_numeric.c: Likewise.
23254         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
23255         * tests/unictype/test-pr_punctuation.c: Likewise.
23256         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
23257         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
23258         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
23259         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
23260         * tests/unictype/test-pr_uppercase.c: Likewise.
23261         * tests/unictype/test-pr_xid_continue.c: Likewise.
23262         * tests/unictype/test-pr_xid_start.c: Likewise.
23263         * tests/unictype/test-pr_zero_width.c: Likewise.
23264         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
23265         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
23266         changed behaviour: line breaking is now disallowed between a letter
23267         or '=' and '('.
23268         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
23269         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
23270         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
23271         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
23272         * tests/uniwidth/test-uc_width2.sh: Same updates as in
23273         lib/uniwidth/width.c.
23274         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
23275         without comments, but with the original copyright notice.
23276         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
23277         changes.
23278         * lib/unictype/categ_Cc.h: Likewise.
23279         * lib/unictype/categ_Co.h: Likewise.
23280         * lib/unictype/categ_Cs.h: Likewise.
23281         * lib/unictype/categ_Lt.h: Likewise.
23282         * lib/unictype/categ_Me.h: Likewise.
23283         * lib/unictype/categ_Pc.h: Likewise.
23284         * lib/unictype/categ_Pe.h: Likewise.
23285         * lib/unictype/categ_Pf.h: Likewise.
23286         * lib/unictype/categ_Pi.h: Likewise.
23287         * lib/unictype/categ_Ps.h: Likewise.
23288         * lib/unictype/categ_Sk.h: Likewise.
23289         * lib/unictype/categ_Sm.h: Likewise.
23290         * lib/unictype/categ_Z.h: Likewise.
23291         * lib/unictype/categ_Zl.h: Likewise.
23292         * lib/unictype/categ_Zp.h: Likewise.
23293         * lib/unictype/categ_Zs.h: Likewise.
23294         * lib/unictype/ctype_blank.h: Likewise.
23295         * lib/unictype/ctype_cntrl.h: Likewise.
23296         * lib/unictype/ctype_digit.h: Likewise.
23297         * lib/unictype/ctype_space.h: Likewise.
23298         * lib/unictype/ctype_xdigit.h: Likewise.
23299         * lib/unictype/mirror.h: Likewise.
23300         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
23301         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
23302         * lib/unictype/pr_bidi_block_separator.h: Likewise.
23303         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
23304         * lib/unictype/pr_bidi_common_separator.h: Likewise.
23305         * lib/unictype/pr_bidi_control.h: Likewise.
23306         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
23307         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
23308         * lib/unictype/pr_bidi_pdf.h: Likewise.
23309         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
23310         * lib/unictype/pr_bidi_whitespace.h: Likewise.
23311         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
23312         * lib/unictype/pr_format_control.h: Likewise.
23313         * lib/unictype/pr_hex_digit.h: Likewise.
23314         * lib/unictype/pr_hyphen.h: Likewise.
23315         * lib/unictype/pr_ids_binary_operator.h: Likewise.
23316         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
23317         * lib/unictype/pr_iso_control.h: Likewise.
23318         * lib/unictype/pr_join_control.h: Likewise.
23319         * lib/unictype/pr_left_of_pair.h: Likewise.
23320         * lib/unictype/pr_line_separator.h: Likewise.
23321         * lib/unictype/pr_math.h: Likewise.
23322         * lib/unictype/pr_non_break.h: Likewise.
23323         * lib/unictype/pr_not_a_character.h: Likewise.
23324         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
23325         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
23326         * lib/unictype/pr_other_id_continue.h: Likewise.
23327         * lib/unictype/pr_other_id_start.h: Likewise.
23328         * lib/unictype/pr_other_lowercase.h: Likewise.
23329         * lib/unictype/pr_other_math.h: Likewise.
23330         * lib/unictype/pr_other_uppercase.h: Likewise.
23331         * lib/unictype/pr_paired_punctuation.h: Likewise.
23332         * lib/unictype/pr_paragraph_separator.h: Likewise.
23333         * lib/unictype/pr_pattern_syntax.h: Likewise.
23334         * lib/unictype/pr_pattern_white_space.h: Likewise.
23335         * lib/unictype/pr_private_use.h: Likewise.
23336         * lib/unictype/pr_quotation_mark.h: Likewise.
23337         * lib/unictype/pr_radical.h: Likewise.
23338         * lib/unictype/pr_soft_dotted.h: Likewise.
23339         * lib/unictype/pr_space.h: Likewise.
23340         * lib/unictype/pr_titlecase.h: Likewise.
23341         * lib/unictype/pr_variation_selector.h: Likewise.
23342         * lib/unictype/pr_white_space.h: Likewise.
23343         * lib/unictype/sy_c_ident.h: Likewise.
23344         * lib/unictype/sy_c_whitespace.h: Likewise.
23345         * lib/unictype/sy_java_whitespace.h: Likewise.
23346         * modules/uni*/*: Bump version number of expected libunistring version.
23347         Reported by Simon Josefsson.
23348
23349 2011-01-09  Karl Heuer  <kwzh@gnu.org>
23350
23351         useless-if-before-free: fix typo in --help and make the internal,
23352         automatic version date update process work once again.
23353         --help output contained a NUL character instead of the
23354         backslash-zero that was intended.  Also, the "must lie within
23355         the first 8 lines" line is on line 9, and hence not getting
23356         automatically updated.
23357         * build-aux/useless-if-before-free: Fix the former by adding a
23358         backslash, and the latter by condensing the three lines of what-it-does
23359         to a single line, leaving one line of slack for the future.
23360
23361 2011-01-09  Bruno Haible  <bruno@clisp.org>
23362
23363         uniwidth/width: Fix width of U+1D173..U+1D17A.
23364         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
23365         symbolic_width, output_width_property_test): New functions.
23366         (main): Invoke output_nonspacing_property, output_width_property_test.
23367         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
23368         U+1D173..U+1D17A.
23369         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
23370         1.
23371         * modules/uniwidth/*: Bump version number of expected libunistring
23372         version.
23373         * modules/unilbrk/*: Likewise.
23374
23375 2011-01-08  Bruno Haible  <bruno@clisp.org>
23376
23377         uninorm tests: Preserve copyright of Unicode data file.
23378         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
23379         Mention modifications.
23380
23381 2011-01-08  Bruno Haible  <bruno@clisp.org>
23382
23383         gen-uni-tables: Prepare for Unicode 5.2.0.
23384         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
23385         (debug_output_lbp, output_lbp): Update.
23386
23387 2011-01-08  Bruno Haible  <bruno@clisp.org>
23388
23389         unilbrk: Clarify gen-uni-tables.c code.
23390         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
23391         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
23392         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
23393
23394 2011-01-07  Bruno Haible  <bruno@clisp.org>
23395
23396         strtod: Restore errno when successfully parsing Infinity or NaN.
23397         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
23398         restore the original errno.
23399
23400 2011-01-07  Bruno Haible  <bruno@clisp.org>
23401
23402         remove test: Avoid failure on HP-UX 11.
23403         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
23404
23405 2011-01-07  Bruno Haible  <bruno@clisp.org>
23406
23407         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
23408         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
23409         error code.
23410
23411 2011-01-07  Pádraig Brady <P@draigBrady.com>
23412
23413         ignore-value: fixup comments, and add Eric Blake
23414         as an author since he rewrote the macros.
23415         * lib/ignore-value.h (ignore_value):  State that
23416         we now support aggregates.  Also specify exactly
23417         when the GCC warn_unused_result feature was added.
23418
23419 2011-01-06  Eric Blake  <eblake@redhat.com>
23420
23421         ignore-value: support aggregate types
23422         * lib/ignore-value.h (ignore_value): Provide separate gcc
23423         definition.
23424         * modules/ignore-value-tests: New test module.
23425         * tests/test-ignore-value.c: New test.
23426
23427         maint.mk: improve sc_prohibit_strcmp regex
23428         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
23429         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
23430         definition of STRNEQ.
23431
23432         signal: work around Haiku issue with SIGBUS
23433         * lib/siglist.h: Add comment.
23434         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
23435         strsignal's favoring of SIGSEGV.
23436         * tests/test-signal.c (main): Avoid test failure.
23437         * doc/posix-headers/signal.texi (signal.h): Document the issue.
23438         Reported by Scott McCreary.
23439
23440         maint.mk: add pre-release check to ensure submodule commits are public
23441         * top/maint.mk (public-submodule-commit): New rule.
23442         (submodule-checks): New variable.
23443         (alpha beta stable): Depend on the variable.
23444
23445 2011-01-05  Pádraig Brady <P@draigBrady.com>
23446         and Jim Meyering  <meyering@redhat.com>
23447
23448         ignore-value: make ignore_value more generic; deprecate ignore_ptr
23449         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
23450         (ATTRIBUTE_DEPRECATED): Define.
23451         (_ignore_case): New function.
23452         (ignore_value): New macro, to replace the old function.
23453         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
23454         * modules/ignore-value (Depends-on): Add stdint.
23455
23456 2011-01-04  Eric Blake  <eblake@redhat.com>
23457
23458         doc: regenerate INSTALL
23459         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
23460         @firstparagraphindent support, now that autoconf dropped it.
23461         (INSTALL_PRELUDE): Reinstate old macro.
23462         * doc/install.texi: Resync from autoconf.
23463         * doc/INSTALL: Reflect recent autoconf update.
23464         * doc/INSTALL.ISO: Likewise.
23465         * doc/INSTALL.UTF-8: Likewise.
23466         Reported by Karl Berry.
23467
23468 2011-01-04  Bruce Korb  <address@hidden>
23469
23470         git-version-gen: avoid a sub-shell
23471         * build-aux/git-version-gen: Redirect stderr in `...` via
23472         "exec 2>...", rather than via an added sub-shell.
23473
23474 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
23475
23476         git-version-gen: use (...) rather than sh -c '...'
23477         * build-aux/git-version-gen: Rather than hard-coding a shell's name
23478         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
23479
23480 2011-01-03  Jim Meyering  <meyering@redhat.com>
23481
23482         git-version-gen: convert leading TABs to spaces
23483         * build-aux/git-version-gen: Expand leading TABs.
23484
23485         git-version-gen: handle failed "git rev-list"
23486         * build-aux/git-version-gen: Rather than leaking a "fatal" error
23487         from git and proceeding as if it had succeeded but printed no SHA1
23488         checksums, suppress the diagnostic and handle the failure.
23489         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
23490
23491         git-version-gen: include command name in one more diagnostic
23492         * build-aux/git-version-gen: When the required .tarball-version file
23493         was missing or unreadable, you might see the diagnostic from "cat",
23494         but no trace of the name of the invoking script.  Now, you still see
23495         the diagnostic from cat, but also get one from "git-version-gen: ".
23496         Inspired by a patch from Bruce Korb.
23497
23498         update-copyright: adjust test to match changed code
23499         * tests/test-update-copyright.sh: Change test's expected output
23500         to match new actual output.
23501
23502 2011-01-02  Bruno Haible  <bruno@clisp.org>
23503
23504         getlogin_r: Avoid test failure on HP-UX 11.
23505         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
23506         ERANGE when the second argument is zero.
23507         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
23508         portability problem.
23509
23510 2011-01-02  Bruce Korb  <bkorb@gnu.org>
23511
23512         * build-aux/update-copyright: doc Simon's changes
23513
23514 2011-01-02  Simon Josefsson  <simon@josefsson.org>
23515
23516         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
23517         environment variable.
23518
23519 2011-01-02  Bruno Haible  <bruno@clisp.org>
23520
23521         unigbrk: Avoid gcc warnings.
23522         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
23523         unused variable.
23524         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
23525         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
23526         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
23527         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
23528         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
23529         Change type of first argument to 'const char *'.
23530         (main): Remove unused variable.
23531         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
23532         type of first argument to 'const char *'.
23533         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
23534         Likewise.
23535         (main): Change type of variable 's'.
23536         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
23537         to 'int'.
23538
23539 2011-01-02  Bruno Haible  <bruno@clisp.org>
23540
23541         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
23542         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
23543         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
23544         bug.
23545         * lib/pwrite.c: Undo 2010-12-31 patch.
23546         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
23547
23548 2011-01-02  Bruno Haible  <bruno@clisp.org>
23549
23550         pread: Fix test whether it works.
23551         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
23552
23553 2011-01-02  Bruno Haible  <bruno@clisp.org>
23554
23555         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
23556         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
23557         ends in "6". Don't require a specific month name. Try also the locale
23558         names found on HP-UX 11 and Solaris 7.
23559
23560 2011-01-02  Bruno Haible  <bruno@clisp.org>
23561
23562         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
23563         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
23564         C linkage.
23565         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
23566
23567 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
23568
23569         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
23570         for consistency, since the "cluster" term is not used elsewhere.
23571         * lib/unigbrk.in.h: Update name.
23572         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
23573         * lib/unigbrk/u16-grapheme-next.c: Update name.
23574         * lib/unigbrk/u16-grapheme-prev.c: Update name.
23575         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
23576         * lib/unigbrk/u32-grapheme-next.c: Update name.
23577         * lib/unigbrk/u32-grapheme-prev.c: Update name.
23578         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
23579         * lib/unigbrk/u8-grapheme-next.c: Update name.
23580         * lib/unigbrk/u8-grapheme-prev.c: Update name.
23581         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
23582         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
23583         Suggested by Bruno Haible.
23584
23585 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
23586
23587         Remove module 'u8-grapheme-len' as too redundant with
23588         'u8-grapheme-next'.
23589         * modules/unigbrk/u8-grapheme-len: Delete file.
23590         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
23591         * lib/unigbrk.in.h: Remove prototype for deleted function.
23592         * lib/unigbrk/u8-grapheme-len.c: Delete file.
23593         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
23594
23595         Remove module 'u16-grapheme-len' as too redundant with
23596         'u16-grapheme-next'.
23597         * modules/unigbrk/u16-grapheme-len: Delete file.
23598         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
23599         * lib/unigbrk.in.h: Remove prototype for deleted function.
23600         * lib/unigbrk/u16-grapheme-len.c: Delete file.
23601         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
23602
23603         Remove module 'u32-grapheme-len' as too redundant with
23604         'u32-grapheme-next'.
23605         * modules/unigbrk/u32-grapheme-len: Delete file.
23606         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
23607         * lib/unigbrk.in.h: Remove prototype for deleted function.
23608         * lib/unigbrk/u32-grapheme-len.c: Delete file.
23609         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
23610
23611         Suggested by Bruno Haible.
23612
23613 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
23614
23615         * unigbrk.in.h: Fix typo: "ben" => "been".
23616         Reported by Bruno Haible.
23617
23618 2011-01-01  Jim Meyering  <meyering@redhat.com>
23619
23620         maint: update almost all copyright ranges to include 2011
23621         Run the new "make update-copyright" rule.
23622
23623 2011-01-01  Jim Meyering  <meyering@redhat.com>
23624
23625         maint: update-copyright: exempt doc/INSTALL*
23626         * Makefile (update-copyright): Also exclude doc/INSTALL*,
23627         since they are generated.  Suggested by Bruno Haible.
23628
23629 2011-01-01  Jim Meyering  <meyering@redhat.com>
23630
23631         maint: refine the update-copyright rule
23632         * Makefile (update-copyright): Also exclude any file that includes
23633         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
23634         code that merely generates the comment.
23635
23636 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
23637
23638         New module 'u8-grapheme-len'.
23639         * modules/unigbrk/u8-grapheme-len: New file.
23640         * modules/unigbrk/u8-grapheme-len-tests: New file.
23641         * lib/unigbrk.in.h: Add prototype for new function.
23642         * lib/unigbrk/u8-grapheme-len.c: New file.
23643         * tests/unigbrk/test-u8-grapheme-len.c: New file.
23644
23645         New module 'u16-grapheme-len'.
23646         * modules/unigbrk/u16-grapheme-len: New file.
23647         * modules/unigbrk/u16-grapheme-len-tests: New file.
23648         * lib/unigbrk.in.h: Add prototype for new function.
23649         * lib/unigbrk/u16-grapheme-len.c: New file.
23650         * tests/unigbrk/test-u16-grapheme-len.c: New file.
23651
23652         New module 'u32-grapheme-len'.
23653         * modules/unigbrk/u32-grapheme-len: New file.
23654         * modules/unigbrk/u32-grapheme-len-tests: New file.
23655         * lib/unigbrk.in.h: Add prototype for new function.
23656         * lib/unigbrk/u32-grapheme-len.c: New file.
23657         * tests/unigbrk/test-u32-grapheme-len.c: New file.
23658
23659         New module 'u8-grapheme-next'.
23660         * modules/unigbrk/u8-grapheme-next: New file.
23661         * modules/unigbrk/u8-grapheme-next-tests: New file.
23662         * lib/unigbrk.in.h: Add prototype for new function.
23663         * lib/unigbrk/u8-grapheme-next.c: New file.
23664         * tests/unigbrk/test-u8-grapheme-next.c: New file.
23665
23666         New module 'u16-grapheme-next'.
23667         * modules/unigbrk/u16-grapheme-next: New file.
23668         * modules/unigbrk/u16-grapheme-next-tests: New file.
23669         * lib/unigbrk.in.h: Add prototype for new function.
23670         * lib/unigbrk/u16-grapheme-next.c: New file.
23671         * tests/unigbrk/test-u16-grapheme-next.c: New file.
23672
23673         New module 'u32-grapheme-next'.
23674         * modules/unigbrk/u32-grapheme-next: New file.
23675         * modules/unigbrk/u32-grapheme-next-tests: New file.
23676         * lib/unigbrk.in.h: Add prototype for new function.
23677         * lib/unigbrk/u32-grapheme-next.c: New file.
23678         * tests/unigbrk/test-u32-grapheme-next.c: New file.
23679
23680         New module 'u8-grapheme-prev'.
23681         * modules/unigbrk/u8-grapheme-prev: New file.
23682         * modules/unigbrk/u8-grapheme-prev-tests: New file.
23683         * lib/unigbrk.in.h: Add prototype for new function.
23684         * lib/unigbrk/u8-grapheme-prev.c: New file.
23685         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
23686
23687         New module 'u16-grapheme-prev'.
23688         * modules/unigbrk/u16-grapheme-prev: New file.
23689         * modules/unigbrk/u16-grapheme-prev-tests: New file.
23690         * lib/unigbrk.in.h: Add prototype for new function.
23691         * lib/unigbrk/u16-grapheme-prev.c: New file.
23692         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
23693
23694         New module 'u32-grapheme-prev'.
23695         * modules/unigbrk/u32-grapheme-prev: New file.
23696         * modules/unigbrk/u32-grapheme-prev-tests: New file.
23697         * lib/unigbrk.in.h: Add prototype for new function.
23698         * lib/unigbrk/u32-grapheme-prev.c: New file.
23699         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
23700
23701         New module 'u8-grapheme-breaks'.
23702         * modules/unigbrk/u8-grapheme-breaks: New file.
23703         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
23704         * lib/unigbrk.in.h: Add prototype for new function.
23705         * lib/unigbrk/u8-grapheme-breaks.c: New file.
23706         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
23707
23708         New module 'u16-grapheme-breaks'.
23709         * modules/unigbrk/u16-grapheme-breaks: New file.
23710         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
23711         * lib/unigbrk.in.h: Add prototype for new function.
23712         * lib/unigbrk/u16-grapheme-breaks.c: New file.
23713         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
23714
23715         New module 'u32-grapheme-breaks'.
23716         * modules/unigbrk/u32-grapheme-breaks: New file.
23717         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
23718         * lib/unigbrk.in.h: Add prototype for new function.
23719         * lib/unigbrk/u32-grapheme-breaks.c: New file.
23720         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
23721
23722         New module 'ulc-grapheme-breaks'.
23723         * modules/unigbrk/ulc-grapheme-breaks: New file.
23724         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
23725         * m4/locale-ar.m4: New file.
23726         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
23727         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
23728         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
23729
23730 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
23731
23732         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
23733         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
23734         modified how this file was generated before I initially submitted
23735         the module, but failed to regenerate it.  This meant that several
23736         of the level2 entries were wrong.
23737         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
23738         Remove the division-by-2 that is folded into the table now that
23739         gbrkprop.h has been regenerated properly.  Now -1 entries are
23740         handled correctly.
23741
23742         New module 'unigbrk/uc-gbrk-prop-tests'.
23743         * modules/unigbrk/uc-gbrk-prop-tests: New file.
23744         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
23745         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
23746         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
23747
23748 2011-01-01  Bruno Haible  <bruno@clisp.org>
23749
23750         Avoid use of hexadecimal escapes.
23751         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
23752         instead of hexadecimal escapes.
23753
23754 2011-01-01  Jim Meyering  <meyering@redhat.com>
23755
23756         maint: new rule to update copyright year ranges
23757         * Makefile (update-copyright): New rule.
23758
23759         maint: indent with TABs in Makefile
23760         * Makefile: Expand leading sequences of spaces to TABs
23761
23762         version-etc: update the copyright year it reports
23763         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
23764
23765 2010-12-31  Bruno Haible  <bruno@clisp.org>
23766
23767         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
23768         * lib/isfinite.c (zerof, zerod, zerol): New variables.
23769         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
23770         zero.
23771
23772 2010-12-31  Bruno Haible  <bruno@clisp.org>
23773
23774         pwrite: Work around HP-UX 11.11 bug.
23775         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
23776         works and set REPLACE_PWRITE if not.
23777         * lib/pwrite.c (pwrite): Add an implementation that uses the system
23778         function.
23779         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
23780
23781 2010-12-31  Bruno Haible  <bruno@clisp.org>
23782
23783         pread: Work around HP-UX 11 bugs.
23784         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
23785         and set REPLACE_PREAD if not.
23786         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
23787
23788 2010-12-31  Eric Blake  <eblake@redhat.com>
23789
23790         nl_langinfo: fix YESEXPR on Irix 6.5
23791         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
23792         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
23793         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
23794         it.
23795
23796 2010-12-31  Bruno Haible  <bruno@clisp.org>
23797
23798         iconv: Document HP-UX 11 bug.
23799         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
23800
23801 2010-12-31  Bruno Haible  <bruno@clisp.org>
23802
23803         ldexpl: Fix link error on HP-UX 11.
23804         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
23805         LDEXPL_LIBM, using $ISNANL_LIBM.
23806
23807 2010-12-31  Eric Blake  <eblake@redhat.com>
23808
23809         ftello: avoid compilation failure with SunStudio c89
23810         * lib/ftello.c (ftello): Use lseek, not llseek.
23811
23812         tests: avoid failing coreutils tests on cygwin
23813         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
23814         (create_exe_shims_): Return 0 when skipping.
23815
23816 2010-12-31  Bruno Haible  <bruno@clisp.org>
23817
23818         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
23819         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
23820
23821 2010-12-31  Bruno Haible  <bruno@clisp.org>
23822
23823         waitpid: Fix link error in C++ mode.
23824         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
23825
23826 2010-12-31  Bruno Haible  <bruno@clisp.org>
23827
23828         isnan: Use GCC built-ins when possible.
23829         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
23830         __builtin_isnan.
23831         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
23832         (isnan): Define using GCC built-ins for GCC >= 4.0.
23833
23834 2010-12-31  Bruno Haible  <bruno@clisp.org>
23835
23836         isnand: Fix mistake.
23837         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
23838         __builtin_isnand.
23839
23840 2010-12-31  Bruno Haible  <bruno@clisp.org>
23841
23842         open: Avoid C++ error on HP-UX 11.
23843         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
23844
23845 2010-12-31  Bruno Haible  <bruno@clisp.org>
23846
23847         time_r: Add missing declarations on HP-UX 11.
23848         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
23849         instead of HAVE_LOCALTIME_R.
23850         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
23851         HAVE_LOCALTIME_R always.
23852         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
23853         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
23854         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
23855         HAVE_LOCALTIME_R.
23856         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
23857         * doc/posix-functions/localtime_r.texi: Likewise.
23858
23859 2010-12-29  Eric Blake  <eblake@redhat.com>
23860
23861         mountlist: tweak previous commit
23862         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
23863         Reported by Paul Eggert.
23864
23865         mountlist: fix local drive detection on cygwin
23866         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
23867         that works for cygwin.
23868
23869 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
23870
23871         ftoastr, snprintf: ftoastr + snprintf module
23872         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
23873         since the snprintf module now should be good enough here.
23874         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
23875         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
23876         and gl_MODULE_INDICATOR([snprintf]), but the former enables
23877         GNULIB_SNPRINTF only for the test directory, and the latter
23878         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
23879         seems to suffice by itself.
23880
23881 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
23882
23883         alloca: one step towards thread-safety
23884         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
23885         need for a static variable.  All callers changed.  This does not
23886         make the alloca replacement thread-safe, but it's one step.
23887
23888         tests: minor indenting change
23889         * tests/init.sh: Sync from coreutils housekeeping patch
23890         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
23891         to keep lines within 80 columns.
23892
23893 2010-12-28  Jim Meyering  <meyering@redhat.com>
23894
23895         regex: don't infloop on persistent failing calloc
23896         * lib/regexec.c (build_trtable): Return failure indication upon
23897         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
23898         In glibc, this was fixed for version 2.13:
23899         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
23900
23901 2010-12-28  Bruno Haible  <bruno@clisp.org>
23902             Paul Eggert <eggert@cs.ucla.edu>
23903
23904         linkat: Make implementation robust against system behaviour variations.
23905         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
23906         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
23907         way, and to -2 if it needs a generic runtime test.
23908         * lib/linkat.c (solaris_optimized_link_immediate,
23909         solaris_optimized_link_follow): New functions.
23910         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
23911         (check_same_link): Use it.
23912
23913 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
23914
23915         New module 'unigbrk/base'.
23916         * modules/unigbrk/base: New file.
23917         * lib/unigbrk.in.h: New file.
23918
23919         New module 'unigbrk/uc-gbrk-prop'.
23920         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
23921         * modules/unigbrk/uc-gbrk-prop: New file.
23922         * lib/unigbrk/gbrkprop.h: New file.
23923         * lib/unigbrk/uc-gbrk-prop.c: New file.
23924
23925         New module 'unigbrk/uc-is-grapheme-break'.
23926         * modules/unigbrk/uc-is-grapheme-break: New file.
23927         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
23928         * lib/unigbrk/uc-is-grapheme-break.c: New file.
23929         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
23930         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
23931         * tests/unigbrk/GraphemeBreakTest.txt: New file.
23932
23933         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
23934
23935 2010-12-27  Bruno Haible  <bruno@clisp.org>
23936
23937         linkat test: Avoid failure on Solaris 11 2010-11.
23938         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
23939
23940 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
23941
23942         utimens: work around glibc rounding bug on more platforms
23943         * lib/utimens.c (fdutimens): Work around rounding bug even if
23944         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
23945         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
23946
23947 2010-12-27  Bruno Haible  <bruno@clisp.org>
23948
23949         select tests: Improve comments.
23950         * tests/test-select.c (do_select): Add comments.
23951
23952 2010-12-27  Bruno Haible  <bruno@clisp.org>
23953
23954         select tests: Safer way of handling timeout.
23955         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
23956         at every invocation.
23957
23958 2010-12-27  Bruno Haible  <bruno@clisp.org>
23959
23960         select tests: Use 'bool' where appropriate.
23961         * tests/test-select.c (connect_to_socket): Change argument type to
23962         'bool'.
23963
23964 2010-12-27  Bruno Haible  <bruno@clisp.org>
23965
23966         select tests: Use existing modules.
23967         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
23968         (configure.ac): Don't test for unistd.h.
23969         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
23970         declared in <unistd.h>.
23971
23972 2010-12-27  Bruno Haible  <bruno@clisp.org>
23973
23974         mbrtowc: Work around a Solaris 7 bug.
23975         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
23976         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
23977         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
23978         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
23979         MBRTOWC_NULL_ARG1_BUG.
23980         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
23981         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
23982         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
23983         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
23984
23985 2010-12-27  Jim Meyering  <meyering@redhat.com>
23986
23987         read-file.c: tweak syntax
23988         * lib/read-file.c (fread_file): Remove space after "*" in function
23989         definitions.
23990
23991 2010-12-27  Bruno Haible  <bruno@clisp.org>
23992
23993         times test: Avoid gcc warnings on OSF/1.
23994         * tests/test-times.c (main): Cast printf arguments from clock_t to
23995         'long int'.
23996
23997 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
23998
23999         utimens: work around glibc rounding bug on older Linux kernels
24000         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
24001         on Linux with a glibc whose utimes might not work, then work
24002         around a longstanding glibc bug involving rounding rather than
24003         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
24004         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
24005
24006 2010-12-26  Bruno Haible  <bruno@clisp.org>
24007
24008         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
24009         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
24010         _GL_CXXALIAS_SYS.
24011         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24012
24013 2010-12-26  Bruno Haible  <bruno@clisp.org>
24014
24015         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
24016         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
24017         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
24018         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
24019         looking for the declaration.
24020         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
24021         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
24022         problem.
24023         * doc/posix-functions/inet_pton.texi: Likewise.
24024
24025 2010-12-26  Bruno Haible  <bruno@clisp.org>
24026
24027         arpa_inet: Use the common idioms with C++ support.
24028         * lib/arpa_inet.in.h: Include c++defs.h.
24029         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
24030         support.
24031         * modules/arpa_inet (Depends-on): Add c++defs.
24032         (Makefile.am): Substitute the contents of c++defs.h.
24033         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
24034         * modules/arpa_inet-c++-tests: New file.
24035         * tests/test-arpa_inet-c++.cc: New file.
24036
24037 2010-12-25  Bruno Haible  <bruno@clisp.org>
24038
24039         Fix more C++ link errors on Solaris 8.
24040         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
24041         $(LIB_EACCESS).
24042         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
24043         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
24044         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
24045         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
24046         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
24047
24048 2010-12-25  Bruno Haible  <bruno@clisp.org>
24049
24050         printf-posix: Fix link error when a non-GCC compiler is used.
24051         * lib/stdio.in.h (printf): When not using GCC, override printf
24052         correctly.
24053         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24054
24055 2010-12-25  Bruno Haible  <bruno@clisp.org>
24056
24057         strerror_r-posix: Update doc.
24058         * doc/posix-functions/strerror_r.texi: Update doc about the return
24059         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
24060
24061 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
24062
24063         utimens: simplify the logic of the previous change
24064         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
24065         This should not affect whether the test succeeds or fails.
24066
24067         utimens: configure better on hosts with NFS clock skew
24068         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
24069         uses the clock of the local host.  It might use the clock of the
24070         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
24071         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
24072
24073 2010-12-25  Bruno Haible  <bruno@clisp.org>
24074
24075         ptsname test: Avoid failure on Solaris.
24076         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
24077         open a pseudo-terminal; don't use BSD-style ptys.
24078         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
24079
24080 2010-12-25  Bruno Haible  <bruno@clisp.org>
24081
24082         ptsname: Avoid ERANGE failure on some systems.
24083         * lib/ptsname.c (buffer): Increase size.
24084
24085 2010-12-25  Bruno Haible  <bruno@clisp.org>
24086
24087         rename, renameat: Avoid test failures at NFS mounted locations.
24088         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
24089         so that subsequent mkdir calls succeed.
24090
24091 2010-12-25  Bruno Haible  <bruno@clisp.org>
24092
24093         iswblank: Fix C++ link error on Solaris 8.
24094         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
24095         _GL_FUNCDECL_SYS.
24096
24097 2010-12-25  Bruno Haible  <bruno@clisp.org>
24098
24099         unistd: Fix C++ link error on Solaris 8.
24100         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
24101
24102 2010-12-25  Bruno Haible  <bruno@clisp.org>
24103
24104         readlink doc: Mention an old glibc bug.
24105         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
24106
24107 2010-12-25  Bruno Haible  <bruno@clisp.org>
24108
24109         fcntl-h: Fix for use of C++ on glibc systems.
24110         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
24111         also on glibc systems in C++ mode.
24112         Reported by Gary V. Vaughan <gary@gnu.org>.
24113
24114 2010-12-25  Bruno Haible  <bruno@clisp.org>
24115
24116         roundl-ieee: Make it work on OSF/1 5.1 with cc.
24117         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
24118
24119 2010-12-25  Bruno Haible  <bruno@clisp.org>
24120
24121         truncl-ieee: Make it work on OSF/1 5.1 with cc.
24122         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
24123         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
24124         test whether truncl works according to ISO C 99 with IEC 60559.
24125         * m4/truncl-ieee.m4: New file.
24126         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
24127         m4/signbit.m4.
24128         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
24129
24130 2010-12-25  Bruno Haible  <bruno@clisp.org>
24131
24132         ceill-ieee: Make it work on OSF/1 5.1 with cc.
24133         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
24134         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
24135         test whether ceill works according to ISO C 99 with IEC 60559.
24136         * m4/ceill-ieee.m4: New file.
24137         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
24138         m4/signbit.m4.
24139         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
24140
24141 2010-12-25  Bruno Haible  <bruno@clisp.org>
24142
24143         Ensure all prerequisites of <wchar.h> are included.
24144         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
24145         before <wchar.h>.
24146         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
24147         gl_MBRLEN_NUL_RETVAL): Likewise.
24148         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
24149         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
24150         AC_FUNC_MBRTOWC): Likewise.
24151         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
24152         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
24153         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
24154         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
24155         Likewise.
24156         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
24157         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
24158         (gl_WCHAR_H): Improve comments.
24159         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
24160
24161 2010-12-25  Bruno Haible  <bruno@clisp.org>
24162
24163         strtok_r: Fix C syntax error in autoconf macro.
24164         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
24165         characters in test program.
24166
24167 2010-12-24  Bruno Haible  <bruno@clisp.org>
24168
24169         ceil, trunc, round: Fix gcc warnings.
24170         * lib/ceil.c (MIN): Undefine before redefining.
24171         * lib/trunc.c (MIN): Likewise.
24172         * lib/round.c (MIN): Likewise.
24173         Include <math.h> first.
24174
24175 2010-12-24  Bruno Haible  <bruno@clisp.org>
24176
24177         select tests: Avoid failures on OSF/1 5.1.
24178         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
24179         failure of closing the last socket; it may fail with ECONNRESET.
24180
24181 2010-12-24  Eric Blake  <eblake@redhat.com>
24182
24183         stdint: avoid HP-UX 10.20 preprocessor bug
24184         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
24185         than #if.
24186         * tests/test-floor2.c (main): Likewise.
24187         Reported by Peter O'Gorman.
24188
24189         pipe: make obsoletion transition easier
24190         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
24191         * modules/pipe (Files): Include revived file.
24192         (Include): Drop reference, to mirror getdate's behavior.
24193
24194 2010-12-24  Bruno Haible  <bruno@clisp.org>
24195
24196         sys_socket: Hide mismatch of declarations on NonStop Kernel.
24197         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
24198         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
24199         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24200
24201 2010-12-24  Bruno Haible  <bruno@clisp.org>
24202
24203         gethostname: Ensure declaration on NonStop Kernel.
24204         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
24205         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24206
24207 2010-12-24  Bruno Haible  <bruno@clisp.org>
24208
24209         sys_select: Ensure all necessary types on NonStop Kernel.
24210         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
24211         include <sys/time.h>.
24212         * doc/posix-headers/sys_select.texi: Mention that it's missing on
24213         NonStop Kernel.
24214         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24215
24216 2010-12-24  Bruno Haible  <bruno@clisp.org>
24217
24218         sys_select: Remove unneeded include.
24219         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
24220         have <sys/select.h>.
24221
24222 2010-12-24  Bruno Haible  <bruno@clisp.org>
24223
24224         gethostname: Provide a fallback for HOST_NAME_MAX.
24225         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
24226         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
24227         instead.
24228         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24229
24230 2010-12-24  Bruno Haible  <bruno@clisp.org>
24231
24232         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
24233         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
24234         (SA_RESTART): Likewise.
24235         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24236
24237 2010-12-24  Bruno Haible  <bruno@clisp.org>
24238
24239         signal: Define NSIG.
24240         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
24241         * tests/test-signal.c (nsig): New variable.
24242         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24243
24244 2010-12-24  Bruno Haible  <bruno@clisp.org>
24245
24246         rename, renameat: Avoid test failures on OSF/1 5.1.
24247         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
24248         alternative error codes.
24249         * tests/test-renameat.c (main): Likewise.
24250
24251 2010-12-24  Bruno Haible  <bruno@clisp.org>
24252
24253         *printf: Detect large precisions bug on Solaris 10/SPARC.
24254         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
24255         by Paul Eggert.
24256         * tests/test-snprintf-posix.h (test_function): Add this test code here
24257         too.
24258         * tests/test-sprintf-posix.h (test_function): Likewise.
24259         * tests/test-vasnprintf-posix.c (test_function): Likewise.
24260         * tests/test-vasprintf-posix.c (test_function): Likewise.
24261         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
24262         around by gnulib.
24263         * doc/posix-functions/printf.texi: Likewise.
24264         * doc/posix-functions/snprintf.texi: Likewise.
24265         * doc/posix-functions/sprintf.texi: Likewise.
24266         * doc/posix-functions/vfprintf.texi: Likewise.
24267         * doc/posix-functions/vprintf.texi: Likewise.
24268         * doc/posix-functions/vsnprintf.texi: Likewise.
24269         * doc/posix-functions/vsprintf.texi: Likewise.
24270         * doc/posix-functions/dprintf.texi: Undo last commit.
24271         * doc/posix-functions/vdprintf.texi: Likewise.
24272
24273 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
24274
24275         tests: port test-fdutimensat.c to Solaris 8
24276         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
24277         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
24278         On Solaris 8, it fails with errno == ENOSYS, because there is no
24279         futimens (so it can't use the fd), and there is no lutimens (so it
24280         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
24281
24282         vsnprintf: make more consistent with snprintf; doc fixes
24283
24284         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
24285         the byte count return problem was promoted from the snprintf-posix
24286         to the snprintf module.
24287         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
24288         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
24289         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
24290         * tests/test-snprintf.c (main): Check the byte count returned.
24291         * tests/test-vsnprintf.c (main): Likewise.
24292
24293 2010-12-23  Eric Blake  <eblake@redhat.com>
24294
24295         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
24296         * modules/sigpipe (License): Relax license.
24297
24298 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
24299
24300         doc: document Solaris printf bug with large float precisions
24301         * doc/posix-functions/dprintf.texi (dprintf):
24302         * doc/posix-functions/fprintf.texi (fprintf):
24303         * doc/posix-functions/printf.texi (printf):
24304         * doc/posix-functions/snprintf.texi (snprintf):
24305         * doc/posix-functions/sprintf.texi (sprintf):
24306         * doc/posix-functions/vdprintf.texi (vdprintf):
24307         * doc/posix-functions/vfprintf.texi (vfprintf):
24308         * doc/posix-functions/vprintf.texi (vprintf):
24309         * doc/posix-functions/vsnprintf.texi (vsnprintf):
24310         * doc/posix-functions/vsprintf.texi (vsprintf):
24311         Mention that these functions mishandle large floating point
24312         precisions on Solaris 10.  The same bug is also present in Solaris
24313         8, and I assume earlier.  This causes "cd gnulib-tests; make
24314         check" to fail on Solaris 8 (and I assume, later) when building
24315         the latest coreutils, in test-vasprintf-posix's call to
24316         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
24317         the wide flavors (e.g., wprintf) so this patch just updates the
24318         documentation for the narrow ones.
24319
24320         test-posixtm.c: add two tests
24321         * tests/test-posixtm.c: Add two tests, to highlight the
24322         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
24323         around this bug; this is merely to document it.
24324
24325 2010-12-22  Bruno Haible  <bruno@clisp.org>
24326
24327         getlogin_r: Work around portability problem on OSF/1.
24328         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
24329         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
24330         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
24331         test for a truncated result.
24332         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
24333         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
24334         * modules/getlogin_r (Depends-on): Add memchr.
24335         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
24336
24337 2010-12-22  Bruno Haible  <bruno@clisp.org>
24338
24339         ptsname: Avoid test failure on OSF/1 5.1.
24340         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
24341         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
24342         (same_slave): New function.
24343         (main): Use it to compare ptsname's result with the expected file name.
24344
24345 2010-12-22  Bruno Haible  <bruno@clisp.org>
24346
24347         Port extended stdio modules to HP NonStop Kernel.
24348         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
24349         macros.
24350         * lib/fbufmode.c: Update comments.
24351         * lib/fflush.c: Likewise.
24352         * lib/fpurge.c: Likewise.
24353         * lib/freadable.c: Likewise.
24354         * lib/freadahead.c: Likewise.
24355         * lib/freading.c: Likewise.
24356         * lib/freadptr.c: Likewise.
24357         * lib/freadseek.c: Likewise.
24358         * lib/fseeko.c: Likewise.
24359         * lib/fseterr.c: Likewise.
24360         * lib/fwritable.c: Likewise.
24361         * lib/fwriting.c: Likewise.
24362         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24363
24364 2010-12-22  Bruno Haible  <bruno@clisp.org>
24365
24366         ttyname_r: Work around bug on OSF/1 5.1.
24367         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
24368         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
24369         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
24370         present.
24371         * lib/ttyname_r.c (ttyname_r): Update comments.
24372
24373 2010-12-22  Bruno Haible  <bruno@clisp.org>
24374
24375         round: Implement result sign according to IEEE 754.
24376         * lib/round.c (MIN, MINUS_ZERO): New macros.
24377         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
24378         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
24379         * tests/test-round-ieee.c (main): Likewise.
24380         * tests/test-roundl-ieee.c (main): Likewise.
24381
24382         trunc: Implement result sign according to IEEE 754.
24383         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
24384         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
24385         * tests/test-trunc2.c: Include minus-zero.h.
24386         (MINUS_ZERO): New macro.
24387         (trunc_reference): Keep in sync with lib/trunc.c.
24388         * tests/test-truncf2.c: Include minus-zero.h.
24389         (MINUS_ZERO): New macro.
24390         (truncf_reference): Keep in sync with lib/trunc.c.
24391         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
24392         * tests/test-trunc-ieee.c (main): Likewise.
24393         * tests/test-truncl-ieee.c (main): Likewise.
24394
24395         ceil: Implement result sign according to IEEE 754.
24396         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
24397         (FUNC): Return -0.0 for -1 < x < 0.
24398         * tests/test-ceil2.c: Include minus-zero.h.
24399         (MINUS_ZERO): New macro.
24400         (ceil_reference): Keep in sync with lib/ceil.c.
24401         * tests/test-ceilf2.c: Include minus-zero.h.
24402         (MINUS_ZERO): New macro.
24403         (ceilf_reference): Keep in sync with lib/ceil.c.
24404         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
24405         * tests/test-ceil-ieee.c (main): Likewise.
24406         * tests/test-ceill-ieee.c (main): Likewise.
24407
24408         floor: Implement result sign according to IEEE 754.
24409         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
24410         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
24411         * tests/test-floorf2.c (floorf_reference): Likewise.
24412         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
24413         * tests/test-floor-ieee.c (main): Likewise.
24414         * tests/test-floorl-ieee.c (main): Likewise.
24415
24416 2010-12-22  Bruno Haible  <bruno@clisp.org>
24417
24418         getaddrinfo: Update doc.
24419         * doc/posix-functions/gai_strerror.texi: Return type is also different
24420         on AIX and HP-UX.
24421
24422 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
24423
24424         getaddrinfo, inet_ntop: Update doc for Solaris.
24425         * doc/posix-functions/gai_strerror.texi: Return type is also an
24426         issue on Solaris 9 and earlier.
24427         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
24428         on Solaris 10 and earlier.
24429
24430 2010-12-21  Bruno Haible  <bruno@clisp.org>
24431
24432         New module 'roundl-ieee'.
24433         * modules/roundl-ieee: New file.
24434         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
24435         test whether roundl works according to ISO C 99 with IEC 60559.
24436         * m4/roundl-ieee.m4: New file.
24437         * modules/roundl-ieee-tests: New file.
24438         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
24439         * tests/test-roundl.c (main): Remove signbit tests.
24440         * modules/roundl-tests (Depends-on): Remove signbit.
24441         * doc/posix-functions/roundl.texi: Mention the new module.
24442
24443 2010-12-21  Bruno Haible  <bruno@clisp.org>
24444
24445         New module 'truncl-ieee'.
24446         * modules/truncl-ieee: New file.
24447         * modules/truncl-ieee-tests: New file.
24448         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
24449         * tests/test-truncl.c (main): Remove signbit tests.
24450         * modules/truncl-tests (Depends-on): Remove signbit.
24451         * doc/posix-functions/truncl.texi: Mention the new module.
24452
24453 2010-12-21  Bruno Haible  <bruno@clisp.org>
24454
24455         New module 'ceill-ieee'.
24456         * modules/ceill-ieee: New file.
24457         * modules/ceill-ieee-tests: New file.
24458         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
24459         * tests/test-ceill.c (main): Remove signbit tests.
24460         * modules/ceill-tests (Depends-on): Remove signbit.
24461         * doc/posix-functions/ceill.texi: Mention the new module.
24462
24463 2010-12-21  Bruno Haible  <bruno@clisp.org>
24464
24465         New module 'floorl-ieee'.
24466         * modules/floorl-ieee: New file.
24467         * modules/floorl-ieee-tests: New file.
24468         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
24469         * tests/test-floorl.c (main): Remove signbit tests.
24470         * modules/floorl-tests (Depends-on): Remove signbit.
24471         * doc/posix-functions/floorl.texi: Mention the new module.
24472
24473 2010-12-21  Bruno Haible  <bruno@clisp.org>
24474
24475         New module 'round-ieee'.
24476         * modules/round-ieee: New file.
24477         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
24478         whether round works according to ISO C 99 with IEC 60559.
24479         * m4/round-ieee.m4: New file.
24480         * modules/round-ieee-tests: New file.
24481         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
24482         * tests/test-round1.c (main): Remove signbit tests.
24483         * modules/round-tests (Depends-on): Remove 'signbit'.
24484         * doc/posix-functions/round.texi: Mention the new module.
24485
24486 2010-12-21  Bruno Haible  <bruno@clisp.org>
24487
24488         New module 'trunc-ieee'.
24489         * modules/trunc-ieee: New file.
24490         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
24491         whether trunc works according to ISO C 99 with IEC 60559.
24492         * m4/trunc-ieee.m4: New file.
24493         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
24494         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
24495         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
24496         * modules/trunc-ieee-tests: New file.
24497         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
24498         * tests/test-trunc1.c (main): Remove signbit tests.
24499         * modules/trunc-tests (Depends-on): Remove 'signbit'.
24500         * doc/posix-functions/trunc.texi: Mention the new module.
24501
24502 2010-12-21  Bruno Haible  <bruno@clisp.org>
24503
24504         New module 'ceil-ieee'.
24505         * modules/ceil-ieee: New file.
24506         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
24507         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
24508         ISO C 99 with IEC 60559.
24509         * m4/ceil-ieee.m4: New file.
24510         * modules/ceil (Files): Add lib/ceil.c.
24511         (Depends-on): Add 'float'.
24512         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
24513         * lib/math.in.h (ceil): New declaration.
24514         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
24515         REPLACE_CEIL.
24516         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
24517         * modules/ceil-ieee-tests: New file.
24518         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
24519         * tests/test-math-c++.cc: Check the signature of 'ceil'.
24520         * doc/posix-functions/ceil.texi: Mention the new module.
24521
24522 2010-12-21  Bruno Haible  <bruno@clisp.org>
24523
24524         New module 'floor-ieee'.
24525         * modules/floor-ieee: New file.
24526         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
24527         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
24528         ISO C 99 with IEC 60559.
24529         * m4/floor-ieee.m4: New file.
24530         * modules/floor (Files): Add lib/floor.c.
24531         (Depends-on): Add 'float'.
24532         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
24533         * lib/math.in.h (floor): New declaration.
24534         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
24535         REPLACE_FLOOR.
24536         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
24537         * modules/floor-ieee-tests: New file.
24538         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
24539         * tests/test-math-c++.cc: Check the signature of 'floor'.
24540         * doc/posix-functions/floor.texi: Mention the new module.
24541
24542 2010-12-21  Bruno Haible  <bruno@clisp.org>
24543
24544         New module 'roundf-ieee'.
24545         * modules/roundf-ieee: New file.
24546         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
24547         test whether roundf works according to ISO C 99 with IEC 60559.
24548         * m4/roundf-ieee.m4: New file.
24549         * modules/roundf-ieee-tests: New file.
24550         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
24551         * tests/test-roundf1.c (main): Remove signbit tests.
24552         * modules/roundf-tests (Depends-on): Remove 'signbit'.
24553         * doc/posix-functions/roundf.texi: Mention the new module.
24554
24555 2010-12-21  Bruno Haible  <bruno@clisp.org>
24556
24557         New module 'truncf-ieee'.
24558         * modules/truncf-ieee: New file.
24559         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
24560         test whether truncf works according to ISO C 99 with IEC 60559.
24561         * m4/truncf-ieee.m4: New file.
24562         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
24563         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
24564         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
24565         * modules/truncf-ieee-tests: New file.
24566         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
24567         * tests/test-truncf1.c (main): Remove signbit tests.
24568         * modules/truncf-tests (Depends-on): Remove 'signbit'.
24569         * doc/posix-functions/truncf.texi: Mention the new module.
24570
24571 2010-12-21  Bruno Haible  <bruno@clisp.org>
24572
24573         New module 'ceilf-ieee'.
24574         * modules/ceilf-ieee: New file.
24575         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
24576         test whether ceilf works according to ISO C 99 with IEC 60559.
24577         * m4/ceilf-ieee.m4: New file.
24578         * modules/ceilf-ieee-tests: New file.
24579         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
24580         * tests/test-ceilf1.c (main): Remove signbit tests.
24581         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
24582         * doc/posix-functions/ceilf.texi: Mention the new module.
24583
24584 2010-12-21  Bruno Haible  <bruno@clisp.org>
24585
24586         New module 'floorf-ieee'.
24587         * modules/floorf-ieee: New file.
24588         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
24589         test whether floorf works according to ISO C 99 with IEC 60559.
24590         * m4/floorf-ieee.m4: New file.
24591         * modules/floorf-ieee-tests: New file.
24592         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
24593         * tests/test-floorf1.c (main): Remove signbit tests.
24594         * modules/floorf-tests (Depends-on): Remove 'signbit'.
24595         * doc/posix-functions/floorf.texi: Mention the new module.
24596
24597 2010-12-21  Bruno Haible  <bruno@clisp.org>
24598
24599         Support for minus zero in autoconf macros.
24600         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
24601         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
24602         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
24603         * tests/minus-zero.h: Update comments.
24604
24605 2010-12-21  Bruno Haible  <bruno@clisp.org>
24606
24607         Tests for module 'ceil'.
24608         * modules/ceil-tests: New file.
24609         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
24610         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
24611
24612 2010-12-21  Bruno Haible  <bruno@clisp.org>
24613
24614         Tests for module 'floor'.
24615         * modules/floor-tests: New file.
24616         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
24617         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
24618
24619 2010-12-21  Bruno Haible  <bruno@clisp.org>
24620
24621         math: Fix indentation.
24622         * lib/math.in.h (floorf): Fix indentation.
24623
24624 2010-12-21  Bruno Haible  <bruno@clisp.org>
24625
24626         Fix cross-compilation guesses on Solaris.
24627         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
24628         not match "solaris2.10".
24629         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
24630         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
24631         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
24632
24633 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
24634
24635         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
24636         This fixes a problem observed with the latest coreutils snapshot
24637         that caused a test to fail on Solaris 8.  src/csplit.c's call
24638         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
24639         earlier, instead of returning the number of bytes that would have
24640         been generated; this causes csplit to incorrectly report memory
24641         exhaustion.
24642         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
24643         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
24644         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
24645         comments to match.
24646         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
24647         Fix typo in matching older versions of Solaris: "solaris2.10"
24648         is matched by the shell pattern "solaris2.[0-9]*".  This matters
24649         only for guessing while cross-compiling.
24650         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
24651
24652 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
24653
24654         ftoastr: fix comment again
24655         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
24656         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
24657         Also, simplify example a bit by using flags = 0.
24658
24659 2010-12-20  Bruno Haible  <bruno@clisp.org>
24660
24661         round*, trunc*: Update documentation regarding glibc.
24662         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
24663         * doc/posix-functions/round.texi: Likewise.
24664         * doc/posix-functions/roundl.texi: Likewise.
24665         * doc/posix-functions/truncf.texi: Likewise.
24666         * doc/posix-functions/trunc.texi: Likewise.
24667         * doc/posix-functions/truncl.texi: Likewise.
24668
24669 2010-12-20  Bruno Haible  <bruno@clisp.org>
24670
24671         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
24672         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
24673         * doc/posix-functions/round.texi: Likewise.
24674         * doc/posix-functions/roundl.texi: Likewise.
24675
24676 2010-12-20  Bruno Haible  <bruno@clisp.org>
24677
24678         ttyname_r: Add missing declaration on HP-UX 11.
24679         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
24680         HAVE_TTYNAME_R.
24681         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
24682         declared. Set HAVE_TTYNAME_R always.
24683         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24684         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
24685         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
24686         HAVE_TTYNAME_R.
24687         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
24688
24689 2010-12-20  Bruno Haible  <bruno@clisp.org>
24690
24691         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
24692         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
24693         * doc/posix-functions/getlogin_r.texi: Likewise.
24694         * tests/test-getlogin.c: Include <errno.h>.
24695         (main): Avoid test failure on HP-UX 11.11.
24696         * tests/test-getlogin_r.c (main): Likewise.
24697
24698 2010-12-20  Bruno Haible  <bruno@clisp.org>
24699
24700         getlogin_r: Add missing declaration on HP-UX 11.
24701         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
24702         declared also when it exists as a function.
24703         * doc/posix-functions/getlogin_r.texi: Document this workaround.
24704
24705 2010-12-20  Bruno Haible  <bruno@clisp.org>
24706
24707         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
24708         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
24709         through wcrtomb.
24710
24711 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
24712
24713         ftoastr: fix comment
24714         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
24715         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
24716
24717 2010-12-19  Bruno Haible  <bruno@clisp.org>
24718
24719         isnan: Ensure it is a macro.
24720         * lib/math.in.h (isnan): Define as a macro if not already a macro.
24721         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
24722         Solaris.
24723
24724 2010-12-19  Bruno Haible  <bruno@clisp.org>
24725
24726         ldexpl test: Fix link error on OSF/1 5.1.
24727         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
24728
24729 2010-12-19  Bruno Haible  <bruno@clisp.org>
24730
24731         wctype: Make it work in C++ mode on OSF/1 5.1.
24732         * lib/wctype.in.h (iswblank): Declare but not define here.
24733         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
24734         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
24735         * modules/wctype (Files): Add lib/iswblank.c.
24736
24737 2010-12-19  Bruno Haible  <bruno@clisp.org>
24738
24739         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
24740         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
24741         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
24742
24743 2010-12-19  Bruno Haible  <bruno@clisp.org>
24744
24745         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
24746         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
24747         _POSIX_PII_SOCKET.
24748         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
24749         * doc/posix-functions/recvfrom.texi: Likewise.
24750         * doc/posix-functions/send.texi: Likewise.
24751         * doc/posix-functions/sendto.texi: Likewise.
24752
24753 2010-12-19  Bruno Haible  <bruno@clisp.org>
24754
24755         tcgetsid: Add missing declaration on OSF/1 5.1.
24756         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
24757         HAVE_TCGETSID.
24758         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
24759         Don't set HAVE_TCGETSID.
24760         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
24761         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
24762         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
24763         HAVE_TCGETSID.
24764         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
24765
24766 2010-12-19  Bruno Haible  <bruno@clisp.org>
24767
24768         stdio: Fix problem with popen() declaration on OSF/1 5.1.
24769         * lib/stdio.in.h: During the include_next statement, let recursive
24770         includes of this file include only the system header file.
24771
24772 2010-12-19  Bruno Haible  <bruno@clisp.org>
24773
24774         iconv_open: Fix regression from 2010-12-04.
24775         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
24776         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
24777
24778 2010-12-19  Bruno Haible  <bruno@clisp.org>
24779
24780         stdbool test: Avoid a gcc warning.
24781         * tests/test-stdbool.c (main): Fail if e1 is false.
24782         Reported by Jim Meyering.
24783
24784 2010-12-19  Jim Meyering  <meyering@redhat.com>
24785
24786         setenv: restore to working order
24787         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
24788         mistakenly removed.
24789         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
24790         HAVE_SETENV.
24791         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
24792         HAVE_SETENV.
24793
24794 2010-12-19  Bruno Haible  <bruno@clisp.org>
24795
24796         Document some different function declarations on OSF/1 5.1.
24797         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
24798         * doc/posix-functions/inet_ntop.texi: Likewise.
24799         * doc/posix-functions/gethostname.texi: Likewise.
24800         * lib/unistd.in.h (gethostname): Update comment.
24801
24802 2010-12-19  Bruno Haible  <bruno@clisp.org>
24803
24804         doc: Mention vasprintf-posix module.
24805         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
24806         the 'vasprintf-posix' module.
24807         * doc/glibc-functions/vasprintf.texi: Likewise.
24808
24809 2010-12-19  Bruno Haible  <bruno@clisp.org>
24810
24811         unsetenv: Add missing declaration on OSF/1 5.1.
24812         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
24813         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
24814         Don't set HAVE_UNSETENV. In the test program, set _BSD.
24815         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
24816         not HAVE_UNSETENV.
24817         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
24818         HAVE_UNSETENV.
24819         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
24820
24821 2010-12-19  Bruno Haible  <bruno@clisp.org>
24822
24823         setenv: Add missing declaration on OSF/1 5.1.
24824         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
24825         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
24826         declared. Don't set HAVE_SETENV.
24827         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
24828         not HAVE_SETENV.
24829         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
24830         HAVE_SETENV.
24831         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
24832
24833 2010-12-19  Bruno Haible  <bruno@clisp.org>
24834
24835         nl_langinfo tests: Avoid gcc warning.
24836         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
24837
24838 2010-12-19  Bruno Haible  <bruno@clisp.org>
24839
24840         mknod: Avoid error in C++ mode on OSF/1 with GCC.
24841         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
24842         _GL_CXXALIAS_SYS.
24843
24844 2010-12-19  Bruno Haible  <bruno@clisp.org>
24845
24846         stdbool: Relax test.
24847         * tests/test-stdbool.c (e): Don't require that casts from a variable's
24848         address to 'bool' work in static initializer, for compilers other than
24849         GCC.
24850
24851 2010-12-19  Bruno Haible  <bruno@clisp.org>
24852
24853         ftello: Add missing declaration on OSF/1 5.1.
24854         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
24855         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
24856         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
24857         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
24858         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
24859
24860 2010-12-19  Bruno Haible  <bruno@clisp.org>
24861
24862         fseeko: Add missing declaration on OSF/1 5.1.
24863         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
24864         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
24865         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
24866         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
24867         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
24868
24869 2010-12-19  Bruno Haible  <bruno@clisp.org>
24870
24871         fchdir: Add missing declaration on OSF/1 5.1.
24872         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
24873         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
24874         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
24875         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
24876         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
24877
24878 2010-12-19  Bruno Haible  <bruno@clisp.org>
24879
24880         relocatable-prog-wrapper: Separate from relocatable-prog.
24881         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
24882         uninstall-relocwrapper rule here.
24883         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
24884         Reported by Ian Beckwith <ianb@erislabs.net>.
24885
24886 2010-12-19  Bruno Haible  <bruno@clisp.org>
24887
24888         unistr/u8-mbsnlen: Add missing dependency.
24889         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
24890         Reported by Ian Beckwith <ianb@erislabs.net>.
24891
24892 2010-12-19  Bruno Haible  <bruno@clisp.org>
24893
24894         iconv: Make it possible again to use this module without 'iconv-h'.
24895         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
24896         if it is not defined.
24897         Reported by Ian Beckwith <ianb@erislabs.net>.
24898
24899 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
24900
24901         acl: port to Solaris 8 when copying from tmpfs to ufs
24902         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
24903         error number.  Problem observed on Solaris 8 with latest
24904         coreutils, with "mv A B", where A is on a tmpfs file system and B
24905         is on a ufs file system.  This caused coreutils' mv/part-symlink
24906         test to fail.
24907
24908         tests: set fail=0 at start
24909         * tests/init.sh (setup_): Move fail=0 initialization here ...
24910         (mktempd_): ... from here, so that tests can rely on fail being
24911         set to 0 initially.  This fixes a problem in coreutils; see:
24912         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
24913
24914 2010-12-18  Bruno Haible  <bruno@clisp.org>
24915
24916         memmem-simple: Stylistic changes.
24917         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
24918         Fix preprocessor directive indentation.
24919
24920 2010-12-15  Pádraig Brady <P@draigBrady.com>
24921
24922         memmem, memmem-simple: reorganize and expand empty needle check
24923         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
24924         functional checks to memmem-simple so that one has a fully functional
24925         memmem by using just this module.
24926         Restrict the performance only check to the memmem module.
24927         Also expand the empty needle check to ensure the correct
24928         pointer is returned, not just a non NULL pointer.
24929         * doc/glibc-functions/memmem.texi: Rearrange the portability
24930         documentation to correlate with the rearranged checks.
24931         Clarify exactly how the memmem and memmem-simple modules
24932         relate to each other.
24933
24934 2010-12-15  Pádraig Brady <P@draigBrady.com>
24935             Bruno Haible  <bruno@clisp.org>
24936
24937         Improve cross-compilation guesses for uClibc.
24938         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
24939         that uClibc does not have the glibc bug.
24940         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
24941         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
24942
24943 2010-12-14  Eric Blake  <eblake@redhat.com>
24944
24945         configmake: provide fallbacks for oldest supported autotools
24946         * m4/configmake.m4: New file.
24947         * modules/configmake (Files): Ship it.
24948         (configure.ac): Use it to guarantee fallbacks.
24949
24950 2010-12-13  Pádraig Brady <P@draigBrady.com>
24951
24952         read-file: Improve handling of large files
24953         * lib/read-file.c (fread_file): Minimize realloc()s
24954         for regular files, and better manage sizes around SIZE_MAX.
24955
24956 2010-12-13  Eric Blake  <eblake@redhat.com>
24957
24958         cloexec, fcntl: relax license
24959         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
24960         consent from all contributors.
24961         * modules/fcntl (License): Likewise.
24962
24963 2010-12-10  Bruno Haible  <bruno@clisp.org>
24964
24965         Tests for module 'pipe-posix'.
24966         * modules/pipe-posix-tests: New file.
24967         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
24968
24969 2010-12-10  Bruno Haible  <bruno@clisp.org>
24970
24971         pipe-posix: Make it work in C++ mode.
24972         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
24973         (pipe): Use common idiom, not a macro definition.
24974         * lib/pipe.c: New file.
24975         * m4/pipe.m4: New file.
24976         * modules/pipe-posix (Description): Enhance.
24977         (Files): Add lib/pipe.c, m4/pipe.m4.
24978         (configure.ac): Invoke gl_FUNC_PIPE.
24979         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
24980         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
24981         * tests/test-unistd-c++.cc: Check the signature of pipe.
24982
24983 2010-12-10  Bruno Haible  <bruno@clisp.org>
24984
24985         Rename module 'pipe' to 'spawn-pipe'.
24986         * modules/spawn-pipe: New file, renamed from modules/pipe.
24987         (Files, configure.ac, Makefile.am): Update.
24988         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
24989         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
24990         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
24991         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
24992         "spawn-pipe.h" instead of "pipe.h".
24993         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
24994         to gl_SPAWN_PIPE.
24995         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
24996         (Files, Makefile.am): Update.
24997         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
24998         Update.
24999         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
25000         Include "spawn-pipe.h" instead of "pipe.h".
25001         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
25002         * lib/javacomp.c: Likewise.
25003         * lib/javaversion.c: Likewise.
25004         * lib/pipe-filter-gi.c: Likewise.
25005         * lib/pipe-filter-ii.c: Likewise.
25006         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
25007         * modules/javacomp (Depends-on): Likewise.
25008         * modules/javaversion (Depends-on): Likewise.
25009         * modules/pipe-filter-gi (Depends-on): Likewise.
25010         * modules/pipe-filter-ii (Depends-on): Likewise.
25011         * MODULES.html.sh (Executing programs): Update.
25012         * NEWS: Mention the change.
25013
25014 2010-12-10  Eric Blake  <eblake@redhat.com>
25015
25016         pipe-posix: new module
25017         * modules/pipe-posix: New file.
25018         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
25019         (gl_UNISTD_H): Check for declaration.
25020         * modules/unistd (Makefile.am): Substitute it.
25021         * lib/unistd.in.h (pipe): Provide it for mingw.
25022         * doc/posix-functions/pipe.texi (pipe): Update documentation.
25023         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
25024
25025 2010-12-07  Bruno Haible  <bruno@clisp.org>
25026
25027         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
25028         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
25029         u8_strcmp_gnu.
25030         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
25031
25032 2010-12-06  Bruno Haible  <bruno@clisp.org>
25033
25034         Update internal documentation.
25035         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
25036
25037 2010-12-04  Bruno Haible  <bruno@clisp.org>
25038
25039         Put more information about failed tests into the test return codes.
25040         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
25041         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
25042         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
25043         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
25044         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
25045         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
25046         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
25047         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
25048         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
25049         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
25050         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
25051         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
25052         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
25053         * m4/stdint.m4 (gl_STDINT_H): Likewise.
25054         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
25055         returns a bit mask.
25056         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
25057         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
25058         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
25059         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
25060         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
25061         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
25062         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
25063         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
25064         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
25065         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
25066         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
25067         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
25068         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
25069         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
25070         * m4/link.m4 (gl_FUNC_LINK): Likewise.
25071         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
25072         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
25073         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
25074         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
25075         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
25076         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
25077         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
25078         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
25079         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
25080         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
25081         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
25082         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
25083         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
25084         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
25085         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
25086         gl_PRINTF_PRECISION): Likewise.
25087         * m4/regex.m4 (gl_REGEX): Likewise.
25088         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
25089         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
25090         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
25091         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
25092         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
25093         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
25094         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
25095         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
25096         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
25097         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
25098         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
25099         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
25100         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
25101         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
25102         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
25103         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
25104         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
25105         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
25106         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
25107         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
25108         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
25109         enumerated value.
25110         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
25111
25112 2010-12-04  Bruno Haible  <bruno@clisp.org>
25113
25114         Update for Solaris 11 2010-11.
25115         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
25116         Express, released in November 2010.
25117
25118 2010-12-04  Bruno Haible  <bruno@clisp.org>
25119
25120         nproc: Relax license.
25121         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
25122         and Paul Eggert.
25123         Requested by Ludovic Courtès <ludo@gnu.org>.
25124
25125 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
25126
25127         utimecmp: fine-grained src to nearby coarse-grained dest
25128
25129         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
25130         and the source is on a file system with higher-resolution time
25131         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
25132         not work, and the time stamps are close together, the algorithm to
25133         determine the exact resolution from the read-back mtime was buggy:
25134         it had a "!=" where it should have had an "==".  This bug has been
25135         in the code ever since it was introduced to gnulib.
25136         Problem reported by Dan Jacobson in
25137         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
25138
25139 2010-11-30  Bruno Haible  <bruno@clisp.org>
25140
25141         strerror_r-posix: Fix autoconf test.
25142         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
25143
25144 2010-11-28  Bruno Haible  <bruno@clisp.org>
25145             Paul Eggert  <eggert@cs.ucla.edu>
25146
25147         Tests for module 'getdomainname'.
25148         * modules/getdomainname-tests: New file.
25149         * tests/test-getdomainname.c: New file, based on
25150         tests/test-gethostname.c.
25151
25152 2010-11-28  Bruno Haible  <bruno@clisp.org>
25153             Paul Eggert  <eggert@cs.ucla.edu>
25154
25155         getdomainname: Use the system function when possible.
25156         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
25157         (getdomainname): Replace if needed. Provide the declaration if it is
25158         missing. Don't use _GL_CXXALIAS_SYS_CAST.
25159         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
25160         (getdomainname): When the system has getdomainname, call the system
25161         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
25162         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
25163         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
25164         found in libnsl. Look for the declaration also in <netdb.h>. Replace
25165         the function if its second argument is of type 'int' or if it is found
25166         in libnsl.
25167         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
25168         <sys/systeminfo.h> and sysinfo().
25169         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
25170         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25171         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
25172         HAVE_GETDOMAINNAME.
25173         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
25174         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
25175         * doc/glibc-functions/getdomainname.texi: Document the problems with
25176         the getdomainname declaration.
25177
25178 2010-11-28  Bruno Haible  <bruno@clisp.org>
25179
25180         sys_socket: Ensure ss_family field on AIX.
25181         * lib/sys_socket.in.h (ss_family): New macro definition.
25182         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
25183         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
25184         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
25185         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
25186         * modules/sys_socket (Makefile.am): Substitute
25187         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
25188         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
25189
25190 2010-11-27  Bruno Haible  <bruno@clisp.org>
25191
25192         readline: Improve configure output.
25193         * m4/readline.m4 (gl_FUNC_READLINE): Make the
25194         "checking for readline..." result understandable.
25195
25196 2010-11-27  Bruno Haible  <bruno@clisp.org>
25197
25198         *printf-posix: Detect a bug on Solaris 10/x86.
25199         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
25200         for floating-point output.
25201         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
25202         directive.
25203         * tests/test-snprintf-posix.h (test_function): Likewise.
25204         * tests/test-sprintf-posix.h (test_function): Likewise.
25205         * tests/test-vasprintf-posix.c (test_function): Likewise.
25206         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
25207         * doc/posix-functions/printf.texi: Likewise.
25208         * doc/posix-functions/snprintf.texi: Likewise.
25209         * doc/posix-functions/sprintf.texi: Likewise.
25210         * doc/posix-functions/vfprintf.texi: Likewise.
25211         * doc/posix-functions/vprintf.texi: Likewise.
25212         * doc/posix-functions/vsnprintf.texi: Likewise.
25213         * doc/posix-functions/vsprintf.texi: Likewise.
25214         * doc/glibc-functions/obstack_printf.texi: Likewise.
25215         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
25216
25217 2010-11-27  Bruno Haible  <bruno@clisp.org>
25218
25219         Fix link error when module libunistring-optional is in use.
25220         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
25221         * modules/striconveha-tests (Makefile.am): Likewise.
25222
25223 2010-11-27  Bruno Haible  <bruno@clisp.org>
25224
25225         regex: Mention link dependencies.
25226         * modules/regex (Link): New section.
25227         * modules/rpmatch (Link): Likewise.
25228         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
25229
25230 2010-11-27  Bruno Haible  <bruno@clisp.org>
25231
25232         ftoastr: Fix compilation error on Solaris.
25233         * lib/ftoastr.c: Include <config.h>.
25234
25235 2010-11-27  Bruno Haible  <bruno@clisp.org>
25236
25237         getloadavg: Update documentation.
25238         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
25239
25240 2010-11-27  Bruno Haible  <bruno@clisp.org>
25241
25242         sys_socket: Fix test whether the functions are declared.
25243         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
25244         not <sys/select.h>.
25245
25246 2010-11-27  Bruno Haible  <bruno@clisp.org>
25247
25248         getpass: Make sure to get system declaration on some platforms.
25249         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
25250         gl_USE_SYSTEM_EXTENSIONS.
25251         * modules/getpass (Depends-on): Add extensions.
25252
25253 2010-11-26  Bruno Haible  <bruno@clisp.org>
25254
25255         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
25256         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
25257         'iconv' module is present.
25258         (ICONV_CONST): New macro.
25259         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
25260         ICONV_CONST.
25261         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
25262         set ICONV_CONST.
25263         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
25264         here.
25265         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
25266         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
25267         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
25268         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
25269         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
25270         present.
25271
25272 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
25273
25274         ftoastr: comment fix
25275         * lib/ftoastr.c: "little" -> "little or no" in comment
25276
25277 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
25278
25279         stdint: port to GCC 4.3 + OSX + Octave
25280         On this platform, stdint.h is buggy and defines int64_t to long
25281         long int.  The replacement defined it to long int, causing
25282         problems with C++ style name mangling.  Instead, trust the system
25283         definition if INT64_MAX is defined, and likewise for the unsigned
25284         variant.   Problem reported by Jarno Rajahalme in
25285         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
25286         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
25287         and don't mess with int64_t and INT64_MAX in this case.
25288         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
25289
25290 2010-11-24  Bruno Haible  <bruno@clisp.org>
25291
25292         doc: Corrections regarding MacOS X 10.4 and 10.5.
25293         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
25294         MacOS X.
25295         Reported by Simon Josefsson.
25296
25297 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
25298
25299         Uninstall ".bin" files installed by relocwrapper.
25300         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
25301         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
25302         unless it is already there.
25303
25304 2010-11-21  Bruno Haible  <bruno@clisp.org>
25305
25306         Update for NetBSD 5.0.
25307         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
25308         NetBSD; the test fails on NetBSD 5.0.
25309         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
25310         about NetBSD.
25311
25312 2010-11-21  Bruno Haible  <bruno@clisp.org>
25313
25314         Update for HP-UX 11.23 and HP-UX 11.31.
25315         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
25316         HP-UX.
25317
25318 2010-11-21  Bruno Haible  <bruno@clisp.org>
25319
25320         Update for MacOS X 10.5.
25321         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
25322         MacOS X; the test fails on MacOS X 10.5.8.
25323         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
25324         about MacOS X.
25325
25326 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
25327
25328         bootstrap: add bootstrap_sync option.
25329         See discussion at
25330         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
25331         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
25332         * build-aux/bootstrap: Accept --bootstrap-sync to update
25333         bootstrap if it is not identical to the local gnulib's
25334         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
25335         enable this by default.  Accept --no-bootstrap-sync to disable
25336         it.
25337
25338 2010-11-20  Bruno Haible  <bruno@clisp.org>
25339
25340         Ensure that <features.h> is included before __GLIBC__ is tested.
25341         * lib/printf-parse.h: Include <features.h>.
25342         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
25343         Reported by Mike Frysinger <vapier@gentoo.org>.
25344
25345         Ensure that <features.h> is included before __GLIBC__ is tested.
25346         * lib/wchar.in.h: Include <features.h>.
25347         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
25348         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
25349         Reported by Mike Frysinger <vapier@gentoo.org>.
25350
25351         Ensure that <features.h> is included before __GLIBC__ is tested.
25352         * lib/arpa_inet.in.h: Include <features.h>.
25353         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
25354         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
25355         Reported by Mike Frysinger <vapier@gentoo.org>.
25356
25357         Ensure that <features.h> is included before __GLIBC__ is tested.
25358         * build-aux/link-warning.h: Include <features.h>.
25359         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
25360         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
25361         Reported by Mike Frysinger <vapier@gentoo.org>.
25362
25363         Ensure that <features.h> is included before __GLIBC__ is tested.
25364         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
25365         Reported by Mike Frysinger <vapier@gentoo.org>.
25366
25367 2010-11-20  Bruno Haible  <bruno@clisp.org>
25368
25369         memmem: Fix autoconf test.
25370         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
25371
25372 2010-11-20  Bruno Haible  <bruno@clisp.org>
25373
25374         Port to uClibc.
25375         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
25376         * lib/fcntl.in.h: Likewise.
25377         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
25378         * lib/mbrtowc.c (mbrtowc): Likewise.
25379         * lib/relocatable.c (find_shared_library_fullname): Likewise.
25380         * lib/strerror_r.c: Likewise.
25381         * lib/unistr/u8-strnlen.c: Likewise.
25382         * lib/vasnprintf.c (decimal_point_char): Likewise.
25383         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
25384         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
25385         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
25386         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
25387         * tests/test-sigaction.c (handler, main): Likewise.
25388         * lib/freading.h: Treat uClibc like a non-glibc platform.
25389         * lib/freading.c: Likewise.
25390         * lib/gettext.h: Likewise.
25391         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
25392         Likewise.
25393         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
25394         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
25395         * lib/propername.c (proper_name_utf8): Likewise.
25396         * lib/spawn.in.h: Likewise.
25397         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
25398         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
25399         mem_cd_iconveh_internal): Likewise.
25400         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
25401         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
25402         strstr, strcasestr): Likewise.
25403         * lib/unicodeio.c (unicode_to_mb): Likewise.
25404         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
25405         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
25406         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
25407         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
25408         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
25409         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
25410         * lib/unistr/u8-stpncpy.c: Likewise.
25411         * lib/vasnprintf.c (VASNPRINTF): Likewise.
25412         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
25413         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
25414         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
25415         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
25416         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
25417         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
25418         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
25419         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
25420         Likewise.
25421         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
25422         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
25423         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
25424         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25425         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
25426         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
25427         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
25428         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
25429         * tests/test-getopt.h (OPTIND_MIN): Likewise.
25430         * tests/test-striconveha.c (main): Likewise.
25431         * tests/test-vasnprintf-posix.c (test_function): Likewise.
25432         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
25433         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
25434         * doc/posix-functions/getline.texi: Likewise.
25435         Reported by Mike Frysinger <vapier@gentoo.org>.
25436
25437 2010-11-20  Bruno Haible  <bruno@clisp.org>
25438
25439         nproc: Fix condition.
25440         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
25441         HAVE_PTHREAD_AFFINITY_NP.
25442
25443 2010-11-20  Bruno Haible  <bruno@clisp.org>
25444
25445         Fix a comment.
25446         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
25447
25448 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
25449
25450         ftoastr: don't assume snprintf
25451         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
25452         Implement a subset of snprintf here, by using sprintf safely.
25453         * modules/ftoastr (Depends-on): Remove snprintf.
25454
25455 2010-11-19  Jim Meyering  <meyering@redhat.com>
25456
25457         test-rename.h: fix compilation failure
25458         * tests/test-rename.h (test_rename): Add omitted "}".
25459
25460 2010-11-17  Jim Meyering  <meyering@redhat.com>
25461
25462         maint.mk: add a URL discussing the no-@acronym policy
25463         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
25464
25465 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
25466
25467         ftoastr: depend on snprintf, improve comments
25468         * lib/ftoastr.c: Also mention Loitsch's draft.
25469         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
25470         needed in the current implementation, but it might simplify
25471         speeding up the code later.
25472         * modules/ftoastr: Depend on snprintf; this improves portability.
25473         Suggested by Bruno Haible in the same email.
25474
25475         ftoastr: port to hosts lacking strtof and strtold
25476         Problem reported by Bruno Haible in
25477         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
25478         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
25479         environment and strtold (and presumably strtof) are not available.
25480         * modules/ftoastr (Files): Add m4/c-strtod.m4.
25481         (configure.ac): Require gl_C99_STRTOLD.
25482
25483 2010-11-18  Bruno Haible  <bruno@clisp.org>
25484
25485         c-strtold: Avoid link error on AIX 7.
25486         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
25487         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
25488         (gl_C_STRTOLD): Test whether strtold_l exists.
25489         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
25490
25491 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
25492
25493         intprops: new macro INT_BITS_STRLEN_BOUND
25494         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
25495         ftoastr.h.  This exposes an internal of intprops.h that was formerly
25496         not exposed.  Also, it uses a slightly tighter bound than before;
25497         though this makes no practical difference, we might as well be as
25498         tight as we easily can.
25499
25500         ftoastr: new module, for lossless conversion of floats to short strings
25501         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
25502         * modules/ftoastr: New files.
25503
25504 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
25505
25506         bootstrap: port to Solaris sed
25507         * build-aux/bootstrap (get_version): Port to Solaris sed.
25508         See Ralf Wildenhues's note in
25509         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
25510
25511 2010-11-14  Jim Meyering  <meyering@redhat.com>
25512
25513         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
25514         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
25515         and move definition closer to sole use.
25516
25517 2010-11-13  Jim Meyering  <meyering@redhat.com>
25518
25519         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
25520         Now we require at least autoconf-2.59, which means the work-around
25521         is no longer needed.
25522         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
25523         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
25524         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
25525         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
25526         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
25527
25528 2010-11-13  Bruno Haible  <bruno@clisp.org>
25529
25530         rename, renameat: Avoid test failures at NFS mounted locations.
25531         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
25532         functions.
25533         (test_rename): Use assert_nonexistent.
25534         * tests/test-rename.c: Include <dirent.h>.
25535         * tests/test-renameat.c: Likewise.
25536         Reported by Gary V. Vaughan <gary@gnu.org>.
25537
25538         rename, renameat: Document Linux bug with NFS
25539         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
25540         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
25541         * doc/posix-functions/renameat.texi: Likewise.
25542         Suggested by Eric Blake.
25543
25544 2010-11-13  Bruno Haible  <bruno@clisp.org>
25545
25546         rename test: Add comments.
25547         * tests/test-rename.h (test_rename): Add structure and comments.
25548
25549 2010-11-13  Eric Blake  <eblake@redhat.com>
25550
25551         maintainer-makefile: cover a few more files
25552         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
25553         scripts generated within C files, for libvirt.
25554
25555 2010-11-13  Bruno Haible  <bruno@clisp.org>
25556
25557         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
25558         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
25559         character, return the number of bytes that belong together, not always
25560         1.
25561         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
25562         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
25563         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
25564         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
25565         number of bytes of an invalid character.
25566         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
25567         (main): Invoke it.
25568         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
25569         results.
25570         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
25571         malformed byte sequences.
25572         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
25573         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
25574         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
25575         Reported by Ben Pfaff and Paolo Bonzini.
25576
25577 2010-11-13  Bruno Haible  <bruno@clisp.org>
25578
25579         openat: Work around glibc bug with fchownat() and empty file names.
25580         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
25581         (gl_FUNC_FCHOWNAT): Invoke it.
25582         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
25583         * doc/posix-functions/fchownat.texi: Document the glibc bug.
25584         Reported by Gary V. Vaughan <gary@gnu.org>.
25585
25586 2010-11-13  Bruno Haible  <bruno@clisp.org>
25587
25588         openat: Ensure autoconf macro ordering.
25589         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
25590         gl_USE_SYSTEM_EXTENSIONS.
25591         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
25592
25593 2010-11-13  Bruno Haible  <bruno@clisp.org>
25594
25595         Update comments.
25596         * lib/unistr/u8-check.c: Update file name in comments.
25597         * lib/unistr/u8-mblen.c: Likewise.
25598         * lib/unistr/u8-prev.c: Likewise.
25599         * lib/unistr/u8-strmblen.c: Likewise.
25600         * lib/unistr/u8-strmbtouc.c: Likewise.
25601
25602 2010-11-13  Jim Meyering  <meyering@redhat.com>
25603
25604         tests: avoid test failure on Solaris 10 due to lack of PATH export
25605         * tests/test-update-copyright.sh: Don't forget to export PATH.
25606
25607         init.sh: ensure that IFS is defined, just in case...
25608         * tests/init.sh (setup_): Ensure that IFS is defined,
25609         so that saving and restoring it works as expected.  This
25610         appears to be useful at least for an old version of dash
25611         from a long time ago (RH 6).  See here for details:
25612         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
25613
25614         maint.mk: tighten "test a == b" check
25615         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
25616         test to files that contain something like #!/bin/sh.
25617         Without this, coreutils would get two false positives in
25618         the comments of C source files.
25619
25620 2010-11-12  Eric Blake  <eblake@redhat.com>
25621
25622         bootstrap: fix typo in previous attempt
25623         * build-aux/bootstrap (buildreq): Correct the grouping.
25624         Reported by Paul Eggert.
25625
25626         maintainer-makefile: prohibit test x == x
25627         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
25628         Based on a report by Matthias Bolte.
25629
25630         bootstrap: allow FreeBSD gzip
25631         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
25632         which has no '.' and goes to stderr.
25633         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
25634         Reported by Matthias Bolte.
25635
25636         maintainer-makefile: check for i18n setup
25637         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
25638         will likely work.
25639
25640 2010-11-12  Bruno Haible  <bruno@clisp.org>
25641
25642         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
25643         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
25644         * lib/nanosleep.c (nanosleep): Likewise.
25645
25646 2010-11-11  Bruno Haible  <bruno@clisp.org>
25647
25648         fcntl-h: Fix for use of C++ on glibc systems.
25649         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
25650         also on glibc systems in C++ mode.
25651         Reported by Gary V. Vaughan <gary@gnu.org>.
25652
25653 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
25654
25655         mknod: avoid false failure with dash
25656         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
25657
25658 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
25659
25660         unlink: Fix "is it should" typo in diagnostic.
25661         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
25662         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
25663
25664 2010-11-11  Bruno Haible  <bruno@clisp.org>
25665
25666         Tests for module 'strerror_r-posix'.
25667         * modules/strerror_r-posix-tests: New file.
25668         * tests/test-strerror_r.c: New file.
25669         * tests/test-string-c++.cc: Check the signature of strerror_r.
25670
25671         New module 'strerror_r-posix'.
25672         * lib/string.in.h (strerror_r): New declaration.
25673         * lib/strerror_r.c: New file.
25674         * m4/strerror_r.m4: New file.
25675         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
25676         of strerror_r.
25677         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
25678         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
25679         * modules/strerror_r-posix: New file.
25680         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
25681         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
25682         * doc/posix-functions/strerror_r.texi: Mention the new module and the
25683         portability problems.
25684
25685 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
25686
25687         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
25688         line is also considered for output. Quoted function name in shell
25689         command, so temporary files for functions like MyClass::operator()
25690         are removed correctly without errors.
25691
25692 2010-11-09  Bruno Haible  <bruno@clisp.org>
25693
25694         * doc/posix-functions/strerror.texi: List more failing platforms.
25695
25696         * doc/posix-functions/strerror.texi: Add a comment.
25697
25698 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
25699
25700         fdopendir: fix bug on MacOS X when low on file descriptors
25701
25702         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
25703         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
25704         All callers changed.
25705         (fdopendir): Invoke save_cwd at the top level, not after using
25706         multiple dup() calls to use up file descriptors.  Then retry
25707         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
25708         less than the maximum number of open file descriptors, because
25709         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
25710         on Mac OS X 10.6.4 for tar 1.24
25711         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
25712         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
25713         and for tar 1.25
25714         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
25715
25716 2010-11-07  Bruno Haible  <bruno@clisp.org>
25717
25718         vasnprintf: Support I flag on glibc systems.
25719         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
25720         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
25721         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
25722         snprintf function.
25723         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
25724         glibc systems.
25725         * tests/test-vasnprintf-posix3.c: New file.
25726         * modules/vasnprintf-posix-tests (Files): Add it.
25727         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
25728
25729 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
25730
25731         [html] Fix copy/paste bug: Use unique name for compiler warnings.
25732         * MODULES.html.sh: For compiler warnings, use name
25733         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
25734
25735 2010-11-05  Eric Blake  <eblake@redhat.com>
25736
25737         ceil, floor: avoid spurious failure with icc
25738         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
25739         [denormals-as-zero] when optimizing without -mieee-fp option.
25740         * tests/test-floorf2.c (floorf_reference): Likewise.
25741         * tests/test-ceilf1.c (dummy): New function.
25742         (main): Use it to outsmart icc's optimization.
25743         * tests/test-floorf1.c (dummy, main): Likewise.
25744
25745         tests: require working signbit
25746         * modules/ceilf-tests (Depends-on): Add signbit.
25747         * modules/ceill-tests (Depends-on): Likewise.
25748         * modules/floorf-tests (Depends-on): Likewise.
25749         * modules/floorl-tests (Depends-on): Likewise.
25750         * modules/round-tests (Depends-on): Likewise.
25751         * modules/roundf-tests (Depends-on): Likewise.
25752         * modules/roundl-tests (Depends-on): Likewise.
25753         * modules/trunc-tests (Depends-on): Likewise.
25754         * modules/truncf-tests (Depends-on): Likewise.
25755         * modules/truncl-tests (Depends-on): Likewise.
25756
25757         strtod: work around icc bug
25758         * lib/strtod.c (minus_zero): Define to working value.
25759         (strtod): Use it to avoid icc bug.
25760
25761         copysign: enhance tests
25762         * modules/copysign-tests (Files): Add minus-zero.h.
25763         * tests/test-copysign.c (main): Also test zeros.
25764
25765 2010-11-04  Eric Blake  <eblake@redhat.com>
25766
25767         ceil, floor, round, trunc: enhance tests of -0
25768         * tests/test-ceilf1.c (main): Ensure correct sign of result.
25769         * tests/test-ceill.c (main): Likewise.
25770         * tests/test-floorf1.c (main): Likewise.
25771         * tests/test-floorl.c (main): Likewise.
25772         * tests/test-round1.c (main): Likewise.
25773         * tests/test-roundf1.c (main): Likewise.
25774         * tests/test-roundl.c (main): Likewise.
25775         * tests/test-trunc1.c (main): Likewise.
25776         * tests/test-truncf1.c (main): Likewise.
25777         * tests/test-truncl.c (main): Likewise.
25778
25779 2010-11-04  Eric Blake  <eblake@redhat.com>
25780
25781         frexp, tests: work around ICC bug with -zero
25782         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
25783         works with more compilers.
25784         * tests/minus-zero.h: New file.
25785         * modules/ceilf-tests (Files): Include it.
25786         * modules/ceill-tests (Files): Likewise.
25787         * modules/floorf-tests (Files): Likewise.
25788         * modules/floorl-tests (Files): Likewise.
25789         * modules/frexp-nolibm-tests (Files): Likewise.
25790         * modules/frexp-tests (Files): Likewise.
25791         * modules/frexpl-nolibm-tests (Files): Likewise.
25792         * modules/frexpl-tests (Files): Likewise.
25793         * modules/isnan-tests (Files): Likewise.
25794         * modules/isnand-nolibm-tests (Files): Likewise.
25795         * modules/isnand-tests (Files): Likewise.
25796         * modules/isnanf-nolibm-tests (Files): Likewise.
25797         * modules/isnanf-tests (Files): Likewise.
25798         * modules/isnanl-nolibm-tests (Files): Likewise.
25799         * modules/isnanl-tests (Files): Likewise.
25800         * modules/round-tests (Files): Likewise.
25801         * modules/roundf-tests (Files): Likewise.
25802         * modules/roundl-tests (Files): Likewise.
25803         * modules/ldexpl-tests (Files): Likewise.
25804         * modules/signbit-tests (Files): Likewise.
25805         * modules/snprintf-posix-tests (Files): Likewise.
25806         * modules/sprintf-posix-tests (Files): Likewise.
25807         * modules/strtod-tests (Files): Likewise.
25808         * modules/trunc-tests (Files): Likewise.
25809         * modules/truncf-tests (Files): Likewise.
25810         * modules/truncl-tests (Files): Likewise.
25811         * modules/vsnprintf-posix-tests (Files): Likewise.
25812         * modules/vsprintf-posix-tests (Files): Likewise.
25813         * modules/vasnprintf-posix-tests (Files): Likewise.
25814         * modules/vasprintf-posix-tests (Files): Likewise.
25815         * tests/test-ceilf1.c (main): Use it.
25816         * tests/test-ceill.c (main): Likewise.
25817         * tests/test-floorf1.c (main): Likewise.
25818         * tests/test-floorl.c (main): Likewise.
25819         * tests/test-frexp.c (main): Likewise.
25820         * tests/test-frexpl.c (main): Likewise.
25821         * tests/test-isnan.c (main): Likewise.
25822         * tests/test-isnand.h (main): Likewise.
25823         * tests/test-isnanf.h (main): Likewise.
25824         * tests/test-isnanl.h (main): Likewise.
25825         * tests/test-ldexpl.c (main): Likewise.
25826         * tests/test-round.c (main): Likewise.
25827         * tests/test-roundf.c (main): Likewise.
25828         * tests/test-roundl.c (main): Likewise.
25829         * tests/test-signbit.c (test_signbitf, test_signbitd)
25830         (test_signbitl): Likewise.
25831         * tests/test-snprintf-posix.h (test_function): Likewise.
25832         * tests/test-sprintf-posix.h (test_function): Likewise.
25833         * tests/test-strtod.c (main): Likewise.
25834         * tests/test-trunc1.c (main): Likewise.
25835         * tests/test-truncf1.c (main): Likewise.
25836         * tests/test-truncl.c (main): Likewise.
25837
25838         isnanl: work around icc bug
25839         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
25840
25841 2010-11-03  Eric Blake  <eblake@redhat.com>
25842
25843         tests: fix compiler warnings
25844         * tests/test-getopt.h (test_getopt): Fix condition.
25845         * tests/test-getopt_long.h (test_getopt_long): Likewise.
25846         * tests/test-pipe2.c (main): Likewise.
25847         * tests/test-quotearg-simple.c (main): Avoid icc warning.
25848
25849         utimens: fix broken m4 test
25850         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
25851
25852 2010-10-28  Bruno Haible  <bruno@clisp.org>
25853
25854         posix_spawn*, getdtablesize: Relax license.
25855         * modules/posix_spawn (License): Change to LGPLv2+.
25856         * modules/posix_spawnp (License): Likewise.
25857         * modules/posix_spawn-internal (License): Likewise.
25858         * modules/posix_spawnattr_init (License): Likewise.
25859         * modules/posix_spawnattr_getflags (License): Likewise.
25860         * modules/posix_spawnattr_setflags (License): Likewise.
25861         * modules/posix_spawnattr_getpgroup (License): Likewise.
25862         * modules/posix_spawnattr_setpgroup (License): Likewise.
25863         * modules/posix_spawnattr_getschedparam (License): Likewise.
25864         * modules/posix_spawnattr_setschedparam (License): Likewise.
25865         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
25866         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
25867         * modules/posix_spawnattr_getsigdefault (License): Likewise.
25868         * modules/posix_spawnattr_setsigdefault (License): Likewise.
25869         * modules/posix_spawnattr_getsigmask (License): Likewise.
25870         * modules/posix_spawnattr_setsigmask (License): Likewise.
25871         * modules/posix_spawnattr_destroy (License): Likewise.
25872         * modules/posix_spawn_file_actions_init (License): Likewise.
25873         * modules/posix_spawn_file_actions_addclose (License): Likewise.
25874         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
25875         * modules/posix_spawn_file_actions_addopen (License): Likewise.
25876         * modules/posix_spawn_file_actions_destroy (License): Likewise.
25877         * modules/getdtablesize (License): Likewise.
25878         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
25879
25880 2010-10-26  Bruno Haible  <bruno@clisp.org>
25881
25882         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
25883         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
25884         Cygwin and mingw.
25885         Suggested by Eric Blake.
25886
25887 2010-10-26  Bruno Haible  <bruno@clisp.org>
25888
25889         stdio: Work around compilation error due to renameat() on Solaris 10.
25890         * lib/stdio.in.h: Include <unistd.h> on Solaris.
25891         * lib/renameat.c: Don't include <unistd.h> here.
25892         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
25893         Reported by Paul Eggert and Eric Blake.
25894
25895 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
25896
25897         renameat: port to Solaris 10, which declares renameat in unistd.h
25898
25899         * lib/renameat.c: Include unistd.h before stdio.h, because
25900         Solaris 10 declares renameat in unistd.h.  Problem encountered
25901         when building GNU tar 1.24 on Solaris 10.
25902
25903 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
25904
25905         fdopendir: fix C89 compilation
25906         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
25907         compilers.
25908
25909 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
25910
25911         inttostr: simplify by removing unnecessary redundancy
25912         * lib/anytostr.c: Don't include verify.h.
25913         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
25914         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
25915         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
25916         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
25917         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
25918         Likewise.
25919         * modules/inttostr (Depends-on): Remove 'verify'.
25920
25921 2010-10-23  Bruno Haible  <bruno@clisp.org>
25922
25923         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
25924         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
25925         Reported by Eric Blake.
25926
25927 2010-10-23  Bruno Haible  <bruno@clisp.org>
25928
25929         Tests: Fix LOCALE_JA on MirBSD 10.
25930         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
25931         to an UTF-8 locale.
25932         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
25933         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
25934         Reported by Eric Blake.
25935
25936 2010-10-21  Bruno Haible  <bruno@clisp.org>
25937
25938         nl_langinfo test: Avoid test failure on NetBSD 5.
25939         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
25940         Reported by Eric Blake.
25941
25942 2010-10-21  Eric Blake  <eblake@redhat.com>
25943
25944         c-stack: work around libsigsegv 2.8 bug
25945         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
25946         overflow on at least PowerPC64.
25947
25948 2010-10-17  Bruno Haible  <bruno@clisp.org>
25949
25950         userspec: Drop redundant file.
25951         * modules/userspec (Files): Remove lib/inttostr.h.
25952
25953 2010-10-17  Bruno Haible  <bruno@clisp.org>
25954
25955         nl_langinfo tests: Silence some warnings.
25956         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
25957         Reported by Jim Meyering.
25958
25959 2010-10-17  Bruno Haible  <bruno@clisp.org>
25960
25961         Make use of GCC's attribute __alloc_size__.
25962         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
25963         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
25964         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
25965         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
25966         __alloc_size__.
25967         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
25968         Suggested by Jim Meyering.
25969
25970 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
25971
25972         bootstrap: anchor .gitignore entries.
25973         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
25974         with...
25975         (insert_vc_ignore): ... this new function, which prepends `/' to
25976         all .gitignore entries before passing them to
25977         insert_sorted_if_absent.
25978
25979 2010-10-16  Bruno Haible  <bruno@clisp.org>
25980
25981         nextafter: Fix configure check.
25982         * modules/nextafter (configure.ac): Correct expected prototype.
25983
25984 2010-10-16  Bruno Haible  <bruno@clisp.org>
25985
25986         termios: Update documentation.
25987         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
25988
25989 2010-10-16  Bruno Haible  <bruno@clisp.org>
25990
25991         tests: Make them compile with TinyCC.
25992         * tests/test-strstr.c (main): Remove parentheses around array
25993         initializer.
25994
25995 2010-10-15  Eric Blake  <eblake@redhat.com>
25996
25997         ignore-value: make header idempotent
25998         * lib/ignore-value.h: Add double-inclusion guards.
25999         Reported by Stefan Berger.
26000
26001 2010-10-15  Jim Meyering  <meyering@redhat.com>
26002
26003         GNUmakefile: handle "stable" target, not "major"
26004         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
26005         lists in maint.mk and announce-gen.  Without this, "make stable"
26006         would fail to ensure that $(VERSION) is up to date.
26007
26008 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
26009
26010         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
26011         & co.
26012
26013 2010-10-14  Bruno Haible  <bruno@clisp.org>
26014
26015         vasnprintf: Don't set errno to 0.
26016         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
26017         block that sets it to 0.
26018         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
26019
26020 2010-10-14  Bruno Haible  <bruno@clisp.org>
26021
26022         socketlib: Fix.
26023         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
26024         gl_PREREQ_SYS_H_WINSOCK2.
26025         Reported by Ian Beckwith <ianb@erislabs.net>.
26026
26027 2010-10-13  Jim Meyering  <meyering@redhat.com>
26028
26029         test-select-stdin.c: avoid warn_unused_result warnings
26030         * tests/test-select-stdin.c: Include "macros.h".
26031         ASSERT that read and fflush succeed.
26032
26033 2010-10-13  Jim Meyering  <meyering@redhat.com>
26034
26035         git-version-gen: do require git-VC'd files in cwd
26036         * build-aux/git-version-gen: Reject a git version string
26037         if there are no commits associated with the current directory.
26038         This avoids an unlikely false-positive (unrelated dir whose parent
26039         repository also contains a tag matching v*), as pointed out
26040         by Giuseppe Scrivano in
26041         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
26042
26043 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
26044
26045         argv-iter: omit nonconforming declaration
26046         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
26047         enum arg_iter_err declaration, which doesn't conform to C99.
26048         Solaris 10 cc warns about this.
26049
26050 2010-10-13  Eric Blake  <eblake@redhat.com>
26051
26052         termios: fix compilation on mingw
26053         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
26054         (gl_TERMIOS_H): Adjust it on mingw.
26055         * modules/termios (Makefile.am): Substitute new key.
26056         * lib/termios.in.h (includes): Make include_next conditional.
26057         * doc/posix-headers/termios.texi (termios.h): Update
26058         documentation.
26059         Reported by Daniel P. Berrange.
26060
26061 2010-10-13  Jim Meyering  <meyering@redhat.com>
26062
26063         git-version-gen: don't require that .git/ be in the current dir
26064         * build-aux/git-version-gen: Adjust this script so that it works
26065         when run from any working directory beneath the top-level .git/-
26066         containing directory.  Inspired by a patch from Giuseppe Scrivano,
26067         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
26068
26069         test-select: avoid warn_unused_result warnings
26070         * tests/test-select.c: Include "macros.h".
26071         ASSERT that each call to read, write, and pipe succeeds.
26072         While not technically required, also check each "close".
26073         * modules/select-tests (Files): Add tests/macros.h.
26074
26075         test-symlinkat: remove declaration of unused local
26076         * tests/test-symlinkat.c (main): Remove unused local, "buf".
26077
26078         test-inttostr: avoid shadowing warnings
26079         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
26080         and use malloc rather than the stack for the same reason as
26081         mentioned in the comment justifying the other allocation.
26082
26083 2010-10-11  Bruno Haible  <bruno@clisp.org>
26084
26085         stdlib: Allow multiple gnulib generated replacements to coexist.
26086         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
26087         Reported by Sam Steingold <sds@gnu.org>.
26088
26089 2010-10-11  Jim Meyering  <meyering@redhat.com>
26090
26091         fix a documentation typo
26092         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
26093
26094 2010-10-11  Eric Blake  <eblake@redhat.com>
26095
26096         futimens: work around Solaris 11 bug
26097         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
26098         * tests/test-futimens.h (test_futimens): Enhance, rather than
26099         weaken test.
26100         * doc/posix-functions/futimens.texi (futimens): Document the bug.
26101
26102 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
26103
26104         Indentation.
26105         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
26106         higher-level operators more to the left.
26107
26108 2010-10-11  Jim Meyering  <meyering@redhat.com>
26109
26110         test-futimens: avoid unwarranted test failure on Solaris 5.11
26111         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
26112         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
26113         because it tries to dereference the NULL name argument.
26114
26115 2010-10-11  Bruno Haible  <bruno@clisp.org>
26116
26117         Indentation.
26118         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
26119         indentation.
26120
26121 2010-10-11  Jim Meyering  <meyering@redhat.com>
26122
26123         spawn.in.h: make indentation consistent with parentheses
26124         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
26125         Make indentation consistent with parentheses.
26126
26127 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
26128
26129         Fix mismatched parens in previous commit
26130         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
26131         parens.
26132
26133 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
26134
26135         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
26136
26137         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
26138         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
26139         * lib/malloca.c: Include "verify.h".
26140         (verify1): Remove, replacing with a verify call.
26141         * lib/relocwrapper.c (verify1): Likewise.
26142         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
26143         Likewise.
26144         * modules/malloca (Depends-on): Add 'verify'.
26145         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
26146         * modules/vasnprintf (Depends-on): Add 'verify'.
26147         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
26148         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
26149         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
26150         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
26151         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
26152         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
26153         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
26154
26155         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
26156
26157         Formerly the style was sometimes 2*X - 1, because the C standard
26158         was wrongly thought to disallow ?: in integral constant expressions.
26159         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
26160         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
26161         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
26162         * lib/stdint.in.h (_verify_intmax_size): Likewise.
26163         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
26164         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
26165         verify that time_t cannot be floating.
26166
26167 2010-10-08  Eric Blake  <eblake@redhat.com>
26168
26169         time: enforce recent POSIX ruling that time_t is integral
26170         * lib/time.in.h (__time_t_must_be_integral): Detect any
26171         problematic systems, allowing the rest of gnulib to assume POSIX.
26172
26173 2010-10-08  Jim Meyering  <meyering@redhat.com>
26174
26175         fdopendir: fix a bug on systems lacking openat and /proc support
26176         OpenBSD 4.7 is one such system.  The most noticeable effect was
26177         failure of any application making nontrivial use of fts: rm, du,
26178         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
26179           ./rm: traversal failed: `a': Bad file descriptor
26180         Debugging that, you see that even though FD 6 was closed just
26181         prior to the opendir call in fd_clone_opendir, its resulting
26182         dir->dd_fd was 8, rather than the expected value of 6:
26183
26184         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
26185         93                close (fd);
26186         (gdb) n
26187         94                dir = fd_clone_opendir (dupfd);
26188         (gdb) n
26189         95                saved_errno = errno;
26190         (gdb) p dir->dd_fd
26191         $11 = 8
26192
26193         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
26194         The problem is that on OpenBSD, fd_clone_opendir has to resort
26195         to using the old-style save/restore CWD mechanism, due to its
26196         lack of openat/proc support, and *that* would steal the FD (6)
26197         that opendir was supposed to use.
26198
26199         The fix is to squirrel away the desired FD so that save_cwd uses a
26200         different one, and then free the dest FD right before calling opendir.
26201         That guarantees opendir will use the required file descriptor.
26202
26203         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
26204
26205 2010-10-08  Bruno Haible  <bruno@clisp.org>
26206
26207         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
26208         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
26209
26210 2010-10-08  Bruno Haible  <bruno@clisp.org>
26211
26212         nanosleep: Make replacement POSIX compliant.
26213         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
26214         is out of range.
26215         Reported by Jim Meyering.
26216
26217 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
26218
26219         bootstrap: add hook for altering gnulib.mk, for Bison
26220         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
26221         the Bison bootstrapping process can rewrite file names and variables
26222         in this file before later parts of 'bootstrap' use the file.
26223         Bison wants to include lib/gnulib.mk from the top-level makefile,
26224         so it needs the file names in this file to be relative to the top
26225         level, not relative to lib; plus it needs variable names to be
26226         rewritten.
26227         (slurp): Use the new function.
26228
26229         bootstrap: reformat for readability
26230         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
26231
26232 2010-10-08  Eric Blake  <eblake@redhat.com>
26233
26234         docs: update cygwin progress
26235         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
26236         1.7.7.
26237         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
26238         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
26239         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
26240         * doc/posix-functions/carg.texi (carg): Likewise.
26241         * doc/posix-functions/cargf.texi (cargf): Likewise.
26242         * doc/posix-functions/casin.texi (casin): Likewise.
26243         * doc/posix-functions/casinf.texi (casinf): Likewise.
26244         * doc/posix-functions/casinh.texi (casinh): Likewise.
26245         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
26246         * doc/posix-functions/catan.texi (catan): Likewise.
26247         * doc/posix-functions/catanf.texi (catanf): Likewise.
26248         * doc/posix-functions/catanh.texi (catanh): Likewise.
26249         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
26250         * doc/posix-functions/ccos.texi (ccos): Likewise.
26251         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
26252         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
26253         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
26254         * doc/posix-functions/cexp.texi (cexp): Likewise.
26255         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
26256         * doc/posix-functions/cimag.texi (cimag): Likewise.
26257         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
26258         * doc/posix-functions/clog.texi (clog): Likewise.
26259         * doc/posix-functions/clogf.texi (clogf): Likewise.
26260         * doc/posix-functions/conj.texi (conj): Likewise.
26261         * doc/posix-functions/conjf.texi (conjf): Likewise.
26262         * doc/posix-functions/cpow.texi (cpow): Likewise.
26263         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
26264         * doc/posix-functions/cproj.texi (cproj): Likewise.
26265         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
26266         * doc/posix-functions/creal.texi (creal): Likewise.
26267         * doc/posix-functions/crealf.texi (crealf): Likewise.
26268         * doc/posix-functions/csin.texi (csin): Likewise.
26269         * doc/posix-functions/csinf.texi (csinf): Likewise.
26270         * doc/posix-functions/csinh.texi (csinh): Likewise.
26271         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
26272         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
26273         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
26274         * doc/posix-functions/ctan.texi (ctan): Likewise.
26275         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
26276         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
26277         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
26278         * doc/posix-headers/complex.texi (complex.h): Likewise.
26279
26280 2010-10-07  Jim Meyering  <meyering@redhat.com>
26281
26282         parse-datetime: avoid compilation failure on OpenBSD 4.7
26283         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
26284         This works around a compilation failure on OpenBSD 4.7:
26285         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
26286
26287 2010-10-07  Eric Blake  <eblake@redhat.com>
26288
26289         docs: update cygwin progress
26290         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
26291         1.7.6.
26292         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
26293         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
26294         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
26295         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
26296         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
26297         Likewise.
26298         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
26299         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
26300         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
26301         Likewise.
26302         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
26303         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
26304         Likewise.
26305         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
26306         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
26307         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
26308         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
26309         Likewise.
26310         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
26311         Likewise.
26312         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
26313
26314         docs: update parse-datetime history
26315         * doc/parse-datetime.texi (Authors of parse_datetime): Better
26316         documentation of this function's history and alternatives.
26317
26318         cygwin: use more robust version check
26319         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
26320         exclude an eventual cygwin 1.9.1.
26321         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
26322         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
26323         (gl_FUNC_STRCASESTR): Likewise.
26324         Reported by Bruno Haible.
26325
26326 2010-10-06  Bruno Haible  <bruno@clisp.org>
26327
26328         string, sys_select: Avoid #including large headers unless necessary.
26329         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
26330         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
26331         OSF/1, BeOS, Haiku.
26332         Reported by Jim Meyering.
26333
26334 2010-10-05  Eric Blake  <eblake@redhat.com>
26335
26336         memmem, strstr, strcasestr: fix bug with long periodic needle
26337         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
26338         periodic needle having false positive.
26339         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
26340         and cygwin 1.7.7.
26341         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
26342         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
26343         (gl_FUNC_STRCASESTR): Likewise.
26344         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
26345         * tests/test-memmem.c (main): Expose the bug.
26346         * tests/test-strcasestr.c (main): Likewise.
26347         * tests/test-strstr.c (main): Likewise.
26348         * tests/test-c-strcasestr.c (main): Likewise.
26349         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
26350         * doc/posix-functions/strstr.texi (strstr): Likewise.
26351         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
26352         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
26353
26354 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
26355
26356         parse-datetime: do some more renaming
26357         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
26358         parse_datetime, not get_date.  Mention the renaming.
26359         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
26360         in comments.
26361         * m4/bison.m4: Likewise.
26362
26363 2010-10-05  Eric Blake  <eblake@redhat.com>
26364
26365         parse-datetime: better name than get_date
26366         * NEWS: Reword the deprecation notice.
26367         * modules/get_date: Rename to modules/parse-datetime.
26368         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
26369         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
26370         * lib/get_date.y: Rename to lib/parse-datetime.y.
26371         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
26372         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
26373         * doc/getdate.texi: Provide fallback wrapper.
26374         * lib/getdate.h: Move guts, and wrap...
26375         * lib/parse-datetime.h: ...new file.
26376         * lib/parse-datetime.y (get_date): Rename...
26377         (parse_datetime): ...to this.
26378         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
26379         (gl_PARSE_DATETIME): ...to this.
26380         * doc/posix-functions/getdate.texi (get_date): Provide fallback
26381         documentation.
26382         * modules/getdate (Files): Provide fallback docs and header.
26383         (Notice, Depends-on): Update references.
26384         * tests/test-parse-datetime.c: Likewise.
26385         * DEPENDENCIES: Likewise.
26386         * MODULES.html.sh (Date and time <time.h>): Likewise.
26387         * doc/parse-datetime.texi (Date input formats)
26388         (Authors of parse_datetime): Likewise.
26389         * modules/parse-datetime (Files, configure.ac, Makefile.am)
26390         (Include): Likewise.
26391         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
26392         * gnulib-tool: Likewise.
26393         * m4/bison.m4 (gl_BISON): Likewise.
26394         Suggested by Bruno Haible.
26395
26396 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
26397
26398         more ports to Solaris tr, which needs [] around ranges
26399         * gnulib-tool: Solaris tr needs [] around ranges.
26400         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
26401         * tests/test-pipe-filter-gi1.c (main): Likewise.
26402         * tests/test-pipe-filter-ii1.c (main): Likewise.
26403
26404 2010-10-05  Eric Blake  <eblake@redhat.com>
26405
26406         bootstrap: fix Solaris regression
26407         * build-aux/bootstrap (check_versions): Solaris tr still needs []
26408         around ranges.
26409         Reported by Pádraig Brady.
26410
26411         bootstrap: work with pkg-config
26412         * build-aux/bootstrap (check_versions): Also transliterate - in
26413         prerequisite name.
26414         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
26415         prerequisites that were already found, to avoid confusion.
26416         Reported by Justin Clift.
26417
26418         faccessat: remove unused wrappers
26419         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
26420         presence of these wrappers dragged in -lgen on Solaris.
26421         Reported by Clemens Brogi; fix suggested by Paul Eggert.
26422
26423 2010-10-05  Jim Meyering  <meyering@redhat.com>
26424
26425         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
26426         * Makefile (sc_pragma_columns): New syntax-check rule.
26427
26428 2010-10-04  Bruno Haible  <bruno@clisp.org>
26429
26430         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
26431         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
26432         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
26433         Reported by Bruce Korb and Eric Blake.
26434
26435 2010-10-04  Bruno Haible  <bruno@clisp.org>
26436
26437         threadlib: Make option --with-libpth-prefix work.
26438         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
26439         use $LIBPTH, not just -lpth.
26440
26441 2010-10-04  Bruno Haible  <bruno@clisp.org>
26442
26443         Avoid line length limitation from HP NonStop system header files.
26444         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
26445         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
26446         * lib/ctype.in.h: Likewise.
26447         * lib/dirent.in.h: Likewise.
26448         * lib/errno.in.h: Likewise.
26449         * lib/fcntl.in.h: Likewise.
26450         * lib/float.in.h: Likewise.
26451         * lib/getopt.in.h: Likewise.
26452         * lib/iconv.in.h: Likewise.
26453         * lib/inttypes.in.h: Likewise.
26454         * lib/langinfo.in.h: Likewise.
26455         * lib/locale.in.h: Likewise.
26456         * lib/math.in.h: Likewise.
26457         * lib/netdb.in.h: Likewise.
26458         * lib/netinet_in.in.h: Likewise.
26459         * lib/poll.in.h: Likewise.
26460         * lib/pthread.in.h: Likewise.
26461         * lib/pty.in.h: Likewise.
26462         * lib/sched.in.h: Likewise.
26463         * lib/se-selinux.in.h: Likewise.
26464         * lib/search.in.h: Likewise.
26465         * lib/signal.in.h: Likewise.
26466         * lib/spawn.in.h: Likewise.
26467         * lib/stdarg.in.h: Likewise.
26468         * lib/stddef.in.h: Likewise.
26469         * lib/stdint.in.h: Likewise.
26470         * lib/stdio.in.h: Likewise.
26471         * lib/stdlib.in.h: Likewise.
26472         * lib/string.in.h: Likewise.
26473         * lib/strings.in.h: Likewise.
26474         * lib/sys_file.in.h: Likewise.
26475         * lib/sys_ioctl.in.h: Likewise.
26476         * lib/sys_select.in.h: Likewise.
26477         * lib/sys_socket.in.h: Likewise.
26478         * lib/sys_stat.in.h: Likewise.
26479         * lib/sys_time.in.h: Likewise.
26480         * lib/sys_times.in.h: Likewise.
26481         * lib/sys_utsname.in.h: Likewise.
26482         * lib/sys_wait.in.h: Likewise.
26483         * lib/sysexits.in.h: Likewise.
26484         * lib/termios.in.h: Likewise.
26485         * lib/time.in.h: Likewise.
26486         * lib/unistd.in.h: Likewise.
26487         * lib/wchar.in.h: Likewise.
26488         * lib/wctype.in.h: Likewise.
26489         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
26490         * modules/ctype (Makefile.am): Likewise.
26491         * modules/dirent (Makefile.am): Likewise.
26492         * modules/errno (Makefile.am): Likewise.
26493         * modules/fcntl-h (Makefile.am): Likewise.
26494         * modules/float (Makefile.am): Likewise.
26495         * modules/getopt-posix (Makefile.am): Likewise.
26496         * modules/iconv-h (Makefile.am): Likewise.
26497         * modules/inttypes (Makefile.am): Likewise.
26498         * modules/langinfo (Makefile.am): Likewise.
26499         * modules/locale (Makefile.am): Likewise.
26500         * modules/math (Makefile.am): Likewise.
26501         * modules/netdb (Makefile.am): Likewise.
26502         * modules/netinet_in (Makefile.am): Likewise.
26503         * modules/poll-h (Makefile.am): Likewise.
26504         * modules/pthread (Makefile.am): Likewise.
26505         * modules/pty (Makefile.am): Likewise.
26506         * modules/sched (Makefile.am): Likewise.
26507         * modules/search (Makefile.am): Likewise.
26508         * modules/selinux-h (Makefile.am): Likewise.
26509         * modules/signal (Makefile.am): Likewise.
26510         * modules/spawn (Makefile.am): Likewise.
26511         * modules/stdarg (Makefile.am): Likewise.
26512         * modules/stddef (Makefile.am): Likewise.
26513         * modules/stdint (Makefile.am): Likewise.
26514         * modules/stdio (Makefile.am): Likewise.
26515         * modules/stdlib (Makefile.am): Likewise.
26516         * modules/string (Makefile.am): Likewise.
26517         * modules/strings (Makefile.am): Likewise.
26518         * modules/sys_file (Makefile.am): Likewise.
26519         * modules/sys_ioctl (Makefile.am): Likewise.
26520         * modules/sys_select (Makefile.am): Likewise.
26521         * modules/sys_socket (Makefile.am): Likewise.
26522         * modules/sys_stat (Makefile.am): Likewise.
26523         * modules/sys_time (Makefile.am): Likewise.
26524         * modules/sys_times (Makefile.am): Likewise.
26525         * modules/sys_utsname (Makefile.am): Likewise.
26526         * modules/sys_wait (Makefile.am): Likewise.
26527         * modules/sysexits (Makefile.am): Likewise.
26528         * modules/termios (Makefile.am): Likewise.
26529         * modules/time (Makefile.am): Likewise.
26530         * modules/unistd (Makefile.am): Likewise.
26531         * modules/wchar (Makefile.am): Likewise.
26532         * modules/wctype (Makefile.am): Likewise.
26533
26534 2010-10-04  Bruno Haible  <bruno@clisp.org>
26535
26536         read-file tests: Avoid a test failure on NonStop Kernel.
26537         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
26538         a regular file.
26539         Reported by Joachim Schmitz <schmitz@hp.com>.
26540
26541 2010-10-03  Bruno Haible  <bruno@clisp.org>
26542
26543         gnulib-tool: Fixes for --create-testdir with --libtool.
26544         * gnulib-tool (func_get_automake_snippet): Don't augment
26545         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
26546         an executable.
26547         (func_create_testdir): Handle module 'alloca' like func_import.
26548         Reported by Bruce Korb <bruce.korb@gmail.com>.
26549
26550 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
26551
26552         Avoid some lines longer than 80 characters.
26553         * lib/stdint.in.h: Break long comment lines.
26554         * lib/math.in.h: Likewise.
26555         (_GL_NUM_UINT_WORDS): New macro, for readability.
26556         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
26557         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
26558         * lib/stdlib.in.h: Likewise.
26559         * lib/spawn.in.h: Likewise.
26560         * lib/sys_socket.in.h: Update an URL.
26561         * lib/sys_stat.in.h: Break long line.
26562
26563 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
26564
26565         Improve pmccabe2html.
26566         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
26567         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
26568         when the sources change. Remove the line in the HTML about "Used
26569         ranges" (which implied that there might be other unused ranges),
26570         rename "Resume" to "Summary" (easier to understand for more users).
26571         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
26572         styles, and some unnecessary blank lines.
26573
26574 2010-10-03  Bruno Haible  <bruno@clisp.org>
26575             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
26576
26577         acl: Add support for ACLs on NonStop Kernel.
26578         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
26579         Check whether the function aclsort() exists.
26580         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
26581         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
26582         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
26583         (acl_nontrivial [HAVE_ACLSORT]: New function.
26584         (file_has_acl): Implement for NonStop Kernel.
26585         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
26586         (qset_acl): Implement for NonStop Kernel.
26587         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
26588         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
26589         (main): Implement for NonStop Kernel.
26590         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
26591         Kernel. Handle this flavor.
26592         * tests/test-set-mode-acl.sh: Likewise.
26593         * tests/test-copy-acl.sh: Likewise.
26594         * tests/test-copy-file.sh: Likewise.
26595
26596 2010-10-03  Bruno Haible  <bruno@clisp.org>
26597
26598         Info about ACLs on NonStop Kernel.
26599         * doc/acl-resources.txt: Add info about NonStop Kernel.
26600         References by Joachim Schmitz <schmitz@hp.com>.
26601
26602 2010-10-02  Bruno Haible  <bruno@clisp.org>
26603
26604         Define missing EDQUOT on NonStop Kernel.
26605         * lib/errno.in.h (EDQUOT): Assign a value if missing.
26606         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
26607         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
26608         missing.
26609         * doc/posix-headers/errno.texi: Mention the NSK bug.
26610         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
26611         Reported by Joachim Schmitz <schmitz@hp.com>.
26612
26613 2010-10-02  Bruno Haible  <bruno@clisp.org>
26614
26615         Update doc for POSIX:2008.
26616         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
26617         Update URL of POSIX specification.
26618
26619 2010-10-02  Bruno Haible  <bruno@clisp.org>
26620
26621         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
26622         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
26623         from gnulib, not from Automake.
26624
26625 2010-10-02  Bruno Haible  <bruno@clisp.org>
26626
26627         New module 'system-posix'.
26628         * modules/system-posix: New file.
26629         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
26630         module is present.
26631         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
26632         GNULIB_SYSTEM_POSIX.
26633         * modules/stdlib (Depends-on): Remove sys_wait.
26634         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
26635         * doc/posix-functions/system.texi: Mention the new module.
26636         * doc/posix-headers/stdlib.texi: Likewise.
26637         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
26638         define test_sys_wait_macros to a no-op.
26639         Reported by Sam Steingold <sds@gnu.org>.
26640
26641 2010-09-30  Bruno Haible  <bruno@clisp.org>
26642
26643         More renaming from 'getdate' to 'get_date'.
26644         * doc/get_date.texi: Renamed from doc/getdate.texi.
26645         * modules/get_date (Files): Update.
26646         * MODULES.html.sh (Date and time <time.h>): Update.
26647         * DEPENDENCIES: Update.
26648         * gnulib-tool: Update comment.
26649         * m4/bison.m4 (gl_BISON): Likewise.
26650         * m4/get_date.m4 (gl_GET_DATE): Likewise.
26651
26652 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
26653
26654         bootstrap: support ACLOCAL_FLAGS during aclocal
26655         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
26656         can add additional -I dir for third-party .m4 files.
26657
26658 2010-09-30  Eric Blake  <eblake@redhat.com>
26659
26660         bootstrap: use glibtoolize on MacOS
26661         * build-aux/bootstrap (check_versions): Convert libtool into
26662         libtoolize.
26663         (tool search): Move libtool check earlier, and look for
26664         glibtoolize for MacOS.
26665         (gnulib_tool_options): Auto-add --libtool when appropriate.
26666         Reported by Justin Clift.
26667
26668         poll: fix typo that broke test on MacOS
26669         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
26670         Reported by Justin Clift.
26671
26672         getdate: rename to get_date
26673         Note: getdate.h is not renamed, to minimize client impact.
26674         * modules/getdate: Mark obsolete.  Move old contents...
26675         * modules/get_date: ...to new module name.
26676         * modules/getdate-tests: Move...
26677         * modules/get_date-tests: ...here.
26678         * m4/getdate.m4: Move...
26679         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
26680         * lib/getdate.y: Move...
26681         * lib/get_date.y: ...here.
26682         * tests/test-getdate.c: Move...
26683         * tests/test-get_date.c: ...here.
26684         * doc/posix-functions/getdate.texi (getdate): Update name.
26685         * NEWS: Mention the change.
26686
26687 2010-09-29  Bruno Haible  <bruno@clisp.org>
26688
26689         Separate the module 'waitpid' from the module 'sys_wait'.
26690         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
26691         present.
26692         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
26693         gl_MODULE_INDICATOR_FOR_TESTS.
26694         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
26695         * modules/sys_wait (Depends-on): Remove waitpid.
26696         (Makefile.am): Substitute GNULIB_WAITPID.
26697         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
26698         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
26699         signature only if the 'waitpid' module is present.
26700         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
26701         * NEWS: Mention the change.
26702         * modules/grantpt (Depends-on): Add waitpid.
26703         * modules/wait-process (Depends-on): Likewise.
26704
26705 2010-09-29  Bruno Haible  <bruno@clisp.org>
26706
26707         More tests for module 'sys_wait'.
26708         * modules/sys_wait-c++-tests: New file.
26709         * tests/test-sys_wait-c++.cc: New file.
26710         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
26711         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
26712
26713 2010-09-29  Bruno Haible  <bruno@clisp.org>
26714
26715         New module 'waitpid'.
26716         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
26717         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
26718         Don't include <process.h>.
26719         (waitpid): Declare only, using modern idiom.
26720         * m4/waitpid.m4: New file.
26721         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
26722         * modules/waitpid: New file.
26723         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
26724         (Makefile.am): Update.
26725         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
26726
26727 2010-09-28  Bruno Haible  <bruno@clisp.org>
26728
26729         poll: Assume ANSI C.
26730         * lib/poll.c (poll): Use an ANSI C declaration.
26731
26732 2010-09-28  Bruno Haible  <bruno@clisp.org>
26733
26734         poll-h: Create poll.h on all platforms.
26735         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
26736         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
26737         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
26738         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
26739         (gl_REPLACE_POLL_H): Don't set POLL_H.
26740         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
26741         * modules/poll-h (Depends-on): Add include_next.
26742         (Makefile.am): Create poll.h unconditionally. Substitute also
26743         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
26744
26745 2010-09-28  Bruno Haible  <bruno@clisp.org>
26746
26747         Tests for module 'poll-h'.
26748         * modules/poll-h-c++-tests: New file.
26749         * tests/test-poll-h-c++.cc: New file.
26750
26751         Tests for module 'poll-h'.
26752         * modules/poll-h-tests: New file.
26753         * tests/test-poll-h.c: New file.
26754
26755 2010-09-28  Bruno Haible  <bruno@clisp.org>
26756
26757         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
26758         * modules/poll-h (Depends-on): Add 'extensions'.
26759
26760 2010-09-28  Bruno Haible  <bruno@clisp.org>
26761
26762         New module 'poll-h'.
26763         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
26764         (poll): Use modern idiom.
26765         * modules/poll-h: New file.
26766         * modules/poll (Files): Remove lib/poll.in.h.
26767         (Depends-on): Add poll-h.
26768         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
26769         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
26770         * m4/poll_h.m4: New file.
26771         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
26772         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
26773         and invoke gl_REPLACE_POLL_H.
26774         * lib/poll.c: Use common idiom.
26775         * tests/test-poll.c: Likewise.
26776         * doc/posix-headers/poll.texi: Mention the poll-h module.
26777         Suggested by Eric Blake.
26778
26779 2010-09-26  Bruno Haible  <bruno@clisp.org>
26780
26781         sys_wait: Implement WSTOPSIG.
26782         * lib/sys_wait.in.h (WSTOPSIG): New macro.
26783         Reported by Simon Josefsson.
26784
26785 2010-09-26  Simon Josefsson  <simon@josefsson.org>
26786
26787         stdlib, sys_wait: Avoid compilation error on mingw.
26788         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
26789
26790 2010-09-26  Bruno Haible  <bruno@clisp.org>
26791
26792         stdlib tests: Avoid code duplication.
26793         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
26794         * modules/sys_wait-tests (Files): Likewise.
26795         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
26796         * tests/test-stdlib.c: Include test-sys_wait.h.
26797         (main): Invoke test_sys_wait_macros.
26798         * tests/test-sys_wait.c: Include test-sys_wait.h.
26799         (main): Invoke test_sys_wait_macros.
26800
26801 2010-09-25  Simon Josefsson  <simon@josefsson.org>
26802
26803         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
26804         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
26805         sure Windows sockets are working before calling getaddrinfo.
26806         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
26807         * doc/gnulib.texi (Windows sockets): Fix typo.
26808
26809 2010-09-25  Bruno Haible  <bruno@clisp.org>
26810
26811         Tests for module 'regex-quote'.
26812         * modules/regex-quote-tests: New file.
26813         * tests/test-regex-quote.c: New file.
26814
26815         New module 'regex-quote'.
26816         * lib/regex-quote.h: New file.
26817         * lib/regex-quote.c: New file.
26818         * modules/regex-quote: New file.
26819         Suggested by Reuben Thomas <rrt@sc3d.org>.
26820
26821 2010-09-24  Bruno Haible  <bruno@clisp.org>
26822
26823         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
26824         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
26825
26826 2010-09-23  Bruno Haible  <bruno@clisp.org>
26827
26828         setenv: Relax license.
26829         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
26830         Blake.
26831         Requested by Eric Blake.
26832
26833 2010-09-22  Bruno Haible  <bruno@clisp.org>
26834
26835         termios: Relax license.
26836         * modules/termios (License): Change to LGPLv2+.
26837         Requested by Eric Blake.
26838
26839 2010-09-22  Bruno Haible  <bruno@clisp.org>
26840
26841         threadlib: Allow the package to change the default to 'no'.
26842         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
26843         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
26844         Reported by Paul Eggert.
26845
26846 2010-09-22  Pádraig Brady  <P@draigbrady.com>
26847             Bruno Haible  <bruno@clisp.org>
26848
26849         Fix endless loop in mbmemcasecoll.
26850         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
26851         byte.
26852         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
26853
26854 2010-09-22  Bruno Haible  <bruno@clisp.org>
26855
26856         Tests for module 'memcoll'.
26857         * modules/memcoll-tests: New file.
26858         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
26859
26860         memcoll, xmemcoll: Clarify size vs. length.
26861         * modules/memcoll.c (memcoll0): Clarify specification.
26862         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
26863         passed to collate_error.
26864
26865 2010-09-22  Bruno Haible  <bruno@clisp.org>
26866
26867         Tests for module 'memcasecmp'.
26868         * modules/memcasecmp-tests: New file.
26869         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
26870
26871 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
26872
26873         * lib/pthread.in.h: Add split double-inclusion guard, and include
26874         system <pthread.h> if there is one.  Use @@-style as in other
26875         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
26876         pthread.h doesn't.
26877         (pthread_mutexattr_destroy, pthread_mutexattr_init):
26878         (pthread_mutexattr_settype, pthread_mutex_trylock):
26879         New static inline functions, if there's no system <pthread.h>.
26880         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
26881         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
26882         Approximate with mutexes if the system lacks spinlocks, as in
26883         MacOS.
26884         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
26885         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
26886         @@-style.  Check for spinlocks separately.
26887         (gl_PTHREAD_DEFAULTS): New macro.
26888         * modules/pthread: Redo to use a more typical style for in.h files.
26889
26890 2010-09-21  Eric Blake  <eblake@redhat.com>
26891
26892         net_if: enhance tests
26893         * tests/test-net_if.c (main): Move signature checks earlier.
26894         Print failures to stderr.
26895         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
26896         Document the bug that we do not yet fix.
26897
26898 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
26899
26900         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
26901         about gnulib, not GSS.
26902
26903 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
26904
26905         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
26906         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
26907         for Emacs.
26908         * build-aux/pmccabe2html: Make Makefile.am example code more
26909         cut-and-paste friendly.
26910
26911 2010-09-21  Simon Josefsson  <simon@josefsson.org>
26912
26913         * tests/test-net_if.c: New file.
26914         * modules/net_if-tests: New file.
26915
26916 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
26917
26918         pthread: add pthread_spin_destroy
26919         * lib/pthread.in.h (pthread_spin_destroy): New function.
26920
26921 2010-09-19  Bruno Haible  <bruno@clisp.org>
26922
26923         gnulib-tool: Fix --help output.
26924         * gnulib-tool (func_usage): Fix help message.
26925         Reported by Reuben Thomas <rrt@sc3d.org>.
26926
26927 2010-09-18  Jim Meyering  <meyering@redhat.com>
26928
26929         maint.mk: avoid unexpanded \n in two diagnostics
26930         * top/maint.mk (sc_prohibit_always_true_header_tests):
26931         Don't use a literal \n in a halt=... assignment.  It would not be
26932         expanded, and the two \n bytes would appear in the diagnostic output
26933         rather than the desired newline.  Use halt=$$(printf ... instead.
26934         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
26935
26936 2010-09-18  Bruno Haible  <bruno@clisp.org>
26937
26938         netinet_in: Doc tweak.
26939         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
26940         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
26941
26942 2010-09-18  Jim Meyering  <meyering@redhat.com>
26943
26944         init.sh: correct an outdated comment
26945         * tests/init.sh (create_exe_shims_):  s/function/alias/
26946
26947         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
26948         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
26949         a file named "*.exe" is removed between the glob expansion and the
26950         processing of that oddly named file.
26951
26952 2010-09-17  Eric Blake  <eblake@redhat.com>
26953
26954         mirbsd: add some more support
26955         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
26956         in BSD family.
26957         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
26958         devices as OpenBSD.
26959         * m4/host-os.m4 (mirbsd): Add MirBSD.
26960
26961         tests: fix unportable assumption on sys/wait.h
26962         * tests/test-sys_wait.c (main): Relax test.
26963         * tests/test-stdlib.c (main): Likewise.
26964
26965         init.sh: accommodate directory with no .exes
26966         * tests/init.sh: Accomodate directory containing only scripts.
26967
26968         tests: avoid compiler warning
26969         * tests/test-stdlib.c (main): Use the variable.
26970
26971         fdutimens, fdutimensat: update signature, again
26972         * lib/utimens.h (gl_futimens): Delete, and move signature...
26973         (fdutimens): ...here.
26974         (fdutimensat): Rearrange signature.
26975         (lutimensat): Rename variable for clarity.
26976         * lib/fdutimensat.c (fdutimensat): Update signature.
26977         * lib/utimens.c (fdutimens): Likewise.
26978         (gl_futimens): Delete.
26979         (utimens, lutimens): Update callers.
26980         * lib/futimens.c (futimens): Likewise.
26981         * tests/test-fdutimensat.c: Likewise.
26982         * tests/test-utimens.c: Likewise.
26983         * tests/test-futimens.h: Update comment.
26984         * NEWS: Mention this.
26985         Suggested by Paul Eggert.
26986
26987 2010-09-17  Bruno Haible  <bruno@clisp.org>
26988
26989         Take over the maintenance of some older macros from Autoconf.
26990         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
26991         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
26992         GNU Autoconf.
26993         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
26994         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
26995
26996 2010-09-17  Eric Blake  <eblake@redhat.com>
26997
26998         fdutimensat: drop atflag validation
26999         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
27000         with valid fd, to close a race scenario where futimens is
27001         unsupported and FILE was replaced by a symlink.
27002         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
27003         accordingly.
27004         Suggested by Paul Eggert.
27005
27006 2010-09-16  Bruno Haible  <bruno@clisp.org>
27007
27008         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
27009         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
27010
27011 2010-09-16  Bruno Haible  <bruno@clisp.org>
27012
27013         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
27014         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
27015         login_tty exists.
27016         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
27017
27018 2010-09-16  Bruno Haible  <bruno@clisp.org>
27019
27020         login_tty: Make the replacement code work on BSD systems.
27021         * lib/login_tty.c: Include <sys/ioctl.h>.
27022         (login_tty): Use ioctl TIOCSCTTY when available.
27023         * modules/login_tty (Depends-on): Add sys_ioctl.
27024         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
27025
27026 2010-09-16  Bruno Haible  <bruno@clisp.org>
27027
27028         login_tty: Stricter unit test.
27029         * modules/login_tty-tests (Depends-on): Add tcgetsid.
27030         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
27031         and tcgetsid() after login_tty.
27032         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
27033
27034 2010-09-16  Bruno Haible  <bruno@clisp.org>
27035
27036         New module 'tcgetsid'.
27037         * lib/tcgetsid.c: New file.
27038         * m4/tcgetsid.m4: New file.
27039         * modules/tcgetsid: New file.
27040         * modules/termios (Depends-on): Add c++defs, warn-on-use.
27041         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
27042         GNULIB_TCGETSID, HAVE_TCGETSID.
27043         * lib/termios.in.h: Include <sys/types.h>.
27044         (tcgetsid): New declaration.
27045         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
27046         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
27047         * doc/posix-functions/tcgetsid.texi: Mention the new module.
27048         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
27049
27050 2010-09-16  Bruno Haible  <bruno@clisp.org>
27051
27052         Tests for module 'termios'.
27053         * modules/termios-c++-tests: New file.
27054         * modules/termios-tests: New file.
27055         * tests/test-termios-c++.cc: New file.
27056         * tests/test-termios.c: New file.
27057
27058         New module 'termios'.
27059         * modules/termios: New file.
27060         * lib/termios.in.h: New file.
27061         * m4/termios_h.m4: New file.
27062         * doc/posix-headers/termios.texi: Mention the new module.
27063
27064 2010-09-16  Eric Blake  <eblake@redhat.com>
27065
27066         fdutimensat: add an atflag parameter
27067         * lib/fdutimensat.c (fdutimensat): Add new parameter.
27068         * lib/utimens.h (fdutimensat): Update prototype.
27069         * tests/test-fdutimensat.c: Adjust test to match.
27070         * NEWS: Document the change.
27071         Suggested by Paul Eggert.
27072
27073 2010-09-16  Bruno Haible  <bruno@clisp.org>
27074
27075         Fix typos in comments.
27076         * lib/striconveh.h: Fix typo in comment.
27077         * lib/login_tty.c (login_tty): Likewise.
27078
27079 2010-09-15  Bruno Haible  <bruno@clisp.org>
27080
27081         stdlib: clarify MirBSD WEXITSTATUS bug
27082         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
27083         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
27084
27085 2010-09-15  Eric Blake  <eblake@redhat.com>
27086
27087         stdlib: work around MirBSD WEXITSTATUS bug
27088         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
27089         * modules/stdlib (Depends-on): Add sys_wait.
27090         * tests/test-sys_wait.c (main): Enhance test.
27091         * tests/test-stdlib.c (main): Likewise.
27092         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
27093
27094         docs: mention MacOS issue with WEXITSTATUS(constant)
27095         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
27096         issue.
27097         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
27098
27099         strnlen: add tests
27100         * modules/strnlen-tests: New file.
27101         * tests/test-strnlen.c: Likewise.
27102
27103 2010-09-14  Bruno Haible  <bruno@clisp.org>
27104
27105         unistr/base: Avoid link errors when module 'libunistring' is also used.
27106         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
27107         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
27108         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
27109         Declare also when HAVE_LIBUNISTRING is set.
27110         Reported by Pádraig Brady <P@draigbrady.com>.
27111
27112 2010-09-14  Eric Blake  <eblake@redhat.com>
27113
27114         test-rawmemchr: make more robust
27115         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
27116         (Depends-on, configure.ac): Add needed prerequisites to use it.
27117         * modules/memchr-tests (Files, Depends-on, configure.ac):
27118         Likewise, to avoid implicit reliance on memchr module prereqs.
27119         * tests/test-memchr.c (main): Ensure proper masking.
27120         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
27121         reads.
27122
27123         memchr: detect glibc Alpha bug
27124         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
27125         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
27126         Alpha.
27127         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
27128         * tests/test-memchr.c (main): Enhance test.
27129         Reported by Nelson H. F. Beebe.
27130
27131 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
27132
27133         fts, getcwd, glob: audit for dirfd returning -1
27134         * lib/fts.c (opendir): Remove #define; no longer used.
27135         (opendirat): New arg PDIR_FD.  All callers changed.
27136         (fts_build, _opendir2): Use new opendirat to avoid the need for
27137         dirfd, or for checking whether dirfd returns a negative value.
27138         Don't use opendir; always use openat followed by fdopendir.
27139         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
27140         it.
27141         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
27142         returns -1 here.
27143         * modules/fts (Depends-on): Remove dirfd.
27144         * modules/getcwd (Depends-on): Likewise.
27145
27146 2010-09-13  Eric Blake  <eblake@redhat.com>
27147
27148         float: fix broken MirBSD header
27149         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
27150         * doc/posix-headers/float.texi (float.h): Document it.
27151
27152 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
27153
27154         fts: use O_NOFOLLOW to avoid race condition when opening a directory
27155         * lib/fts.c (opendirat): New arg extra_flags.
27156         (__opendir2): Use it to avoid following symlinks when opening
27157         a directory, if symlinks are not supposed to be followed.  See
27158         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
27159
27160         fdopendir: preserve argument fd before returning
27161         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
27162         (fdopendir_with_dup, fd_clone_opendir): New static functions.
27163         (fdopendir): Use them, arranging for FD to be open to the same
27164         directory that it was when it started.  (It might be temporarily
27165         closed while fdopendir is running, so this not thread- or
27166         signal-safe.)  Be careful to do the right thing even when file
27167         descriptors are scarce and dup fails with errno == EMFILE.  See
27168         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
27169
27170 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
27171
27172         regex: Pass the system regex if its only problem is 32-bit regoff_t.
27173         * NEWS: Document change.
27174         * m4/regex.m4: Disable test for regoff_t size.
27175
27176 2010-09-13  Jim Meyering  <meyering@redhat.com>
27177
27178         fts: don't operate on an invalid file descriptor after failed dup
27179         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
27180         negative file descriptor.
27181
27182 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
27183
27184         savedir: add streamsavedir, deprecate fdsavedir
27185         * NEWS: Mention deprecation of fdsavedir.
27186         * lib/savedir.c (streamsavedir): New extern function, whose name
27187         ends in "savedir" to be consistent with the others.  This differs
27188         from savedirstream in that it doesn't close its argument.  The
27189         next version of GNU tar will use this instead of fdsavedir, to
27190         avoid some race conditions and conserve file descriptors.
27191         (savedirstream): Reimplement as a wrapper around streamsavedir.
27192         (fdsavedir): Add a comment deprecating this function.  As far as
27193         I know, only GNU tar used it, and GNU tar doesn't need it any more.
27194         * lib/savedir.h (streamsavedir): New decl.
27195         (fdsavedir): Add a comment deprecating this.
27196
27197 2010-09-10  Bruno Haible  <bruno@clisp.org>
27198
27199         langinfo: Fix last commit.
27200         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
27201         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
27202         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27203
27204 2010-09-10  Bruno Haible  <bruno@clisp.org>
27205
27206         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
27207         * lib/progreloc.c (O_EXEC): Define fallback.
27208
27209 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
27210
27211         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
27212         * NEWS: Document recent changes to fcntl-h.
27213         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
27214         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
27215         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
27216         Similarly for O_SEARCH; this last was already true, but not documented.
27217         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
27218         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
27219         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
27220         Likewise.
27221         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
27222         is zero, not whether it is defined.
27223         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
27224         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
27225         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
27226
27227 2010-09-10  Bruno Haible  <bruno@clisp.org>
27228
27229         langinfo, nl_langinfo: Fix for IRIX 5.3.
27230         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
27231         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
27232         HAVE_LANGINFO_YESEXPR.
27233         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
27234         HAVE_LANGINFO_YESEXPR.
27235         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
27236         HAVE_LANGINFO_T_FMT_AMPM is 0.
27237         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
27238         HAVE_LANGINFO_YESEXPR is 0.
27239         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
27240         NOEXPR.
27241         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
27242         * doc/posix-functions/nl_langinfo.texi: Likewise.
27243         Reported by Eric Blake.
27244
27245 2010-09-10  Bruno Haible  <bruno@clisp.org>
27246
27247         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
27248         * doc/glibc-functions/login_tty.texi: Mention the include file problem
27249         on FreeBSD 8.0 and OpenBSD 4.6.
27250         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
27251         * m4/pty_h.m4 (gl_PTY_H): Likewise.
27252         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
27253         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
27254         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
27255         ac_includes_default.
27256         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
27257
27258 2010-09-09  Eric Blake  <eblake@redhat.com>
27259
27260         strsignal: work around NetBSD bug
27261         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
27262         * lib/string.in.h (includes): Likewise.
27263         * doc/posix-functions/strsignal.texi (strsignal): Document the
27264         bug.
27265         Reported by Nelson H. F. Beebe.
27266
27267         gnulib-tool: work with NetBSD /bin/sh
27268         * gnulib-tool (func_cache_var, func_cache_lookup_module)
27269         (func_get_description, func_get_comment, func_get_status)
27270         (func_get_notice, func_get_applicability, func_get_filelist)
27271         (func_get_dependencies, func_get_autoconf_early_snippet)
27272         (func_get_autoconf_snippet, func_get_automake_snippet)
27273         (func_get_include_directive, func_get_link_directive)
27274         (func_get_license, func_get_maintainer, func_import): Avoid
27275         shell syntax errors from parsing syntax extensions.
27276
27277 2010-09-09  Bruno Haible  <bruno@clisp.org>
27278
27279         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
27280         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
27281         a reliable way to determine whether the 'alias' command works.
27282
27283 2010-09-08  Jim Meyering  <meyering@redhat.com>
27284
27285         init.sh: penalize a set-x-impaired shell; don't disqualify it
27286         * tests/init.sh: Too many shells corrupt application stderr when
27287         you set -x, so we can't afford to disqualify them, since at least
27288         on Irix-6.5, that would disqualify all bourne shells.
27289         Instead, use a two-pass approach.
27290         On the first pass, try to find a shell that meets the stricter
27291         condition that set -x does not corrupt stderr.
27292         If no shell meets the stricter condition, retest each candidate
27293         shell, but without that extra condition.  Finally, when
27294         VERBOSE=yes is requested and set -x might cause trouble, simply
27295         issue a warning and refrain from enabling debug output.
27296
27297 2010-09-08  Eric Blake  <eblake@redhat.com>
27298
27299         unsetenv: fix OpenBSD bug
27300         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
27301         * doc/posix-functions/unsetenv.texi (unsetenv): Update
27302         documentation.
27303         Reported by Jim Meyering.
27304
27305         strtod: work around IRIX 6.5 bug
27306         * lib/strtod.c (strtod): Reparse number on shorter string if
27307         exponent parse was invalid.
27308         * tests/test-strtod.c (main): Add check for "0x1p 2".
27309         Reported by Tom G. Christensen.
27310
27311         getopt: optimize previous patch
27312         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
27313         empty variable.  Speed up awk script.
27314         Reported by Paolo Bonzini.
27315
27316 2010-09-08  Jim Meyering  <meyering@redhat.com>
27317
27318         test.sh: disqualify shells for which set -x corrupts stderr
27319         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
27320         and OpenBSD 4.7.  They make it so with "set -x", environment settings
27321         appear in stderr output.  For example, this command:
27322             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
27323         prints "P=1" on those two systems:
27324
27325 2010-09-08  Bruno Haible  <bruno@clisp.org>
27326
27327         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
27328         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
27329         commands, because some shells ignore redirections when there is an
27330         error in the command lookup.
27331         Reported by Eric Blake.
27332
27333 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
27334
27335         * lib/regex.h: Fix a mention of `regex_compile' (should be
27336         `re_compile_pattern').
27337         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
27338         (re_set_registers): Correct name of parameter in comment.
27339
27340         * doc/regex.texi: Add documentation for missing syntax flags.
27341         Remove commented-out documentation of defunct syntax option
27342         RE_NO_EMPTY_ALTS.
27343         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
27344         Add documentation of re_set_registers.
27345         Document trick to re-use a pattern buffer by setting fastmap manually.
27346         Update documentation of struct re_pattern_buffer per public members.
27347         Uncomment documentation of equivalence class operators and
27348         collating symbol operators, since they are now implemented,
27349         Explain leftmost-longest matching in relation to alternatives.
27350         Tidy documentation of substring matching.
27351         Remove POSIX documentation, which is done better in
27352         glibc, and refer the reader there. Keep BSD API documentation, as
27353         that is not readily available elsewhere.
27354
27355 2010-09-07  Eric Blake  <eblake@redhat.com>
27356
27357         getopt: handle POSIXLY_CORRECT set but not exported
27358         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
27359         export state of POSIXLY_CORRECT, due to bash set -o posix.
27360         Reported by Dustin J. Mitchell.
27361
27362 2010-09-05  Bruno Haible  <bruno@clisp.org>
27363
27364         gnulib-tool: Highlight the changed options.
27365         * gnulib-tool (func_usage): Display the --import, --add-import,
27366         --remove-import explanations in bold font.
27367
27368 2010-09-06  Karl Berry  <karl@gnu.org>
27369
27370         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
27371
27372 2010-09-05  Bruno Haible  <bruno@clisp.org>
27373
27374         uniwidth/width: Update comment.
27375         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
27376         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
27377
27378 2010-09-05  Bruno Haible  <bruno@clisp.org>
27379
27380         isinf, isnan: Relax license.
27381         * modules/isinf (License): Change from GPL to LGPL, with consent from
27382         Ben Pfaff.
27383         * modules/isnan (License): Likewise.
27384         Requested by Ludovic Courtès.
27385
27386 2010-09-04  Bruno Haible  <bruno@clisp.org>
27387
27388         gnulib-tool: Help migration from --import to --add-import or --update.
27389         * gnulib-tool: Emit a verbose error message when --import is used
27390         without any module name.
27391
27392 2010-09-04  Bruno Haible  <bruno@clisp.org>
27393
27394         Update doc about gnulib-tool.
27395         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
27396         'gnulib-tool --update' in more detail.
27397         Reported by Eric Blake.
27398
27399 2010-09-04  Bruno Haible  <bruno@clisp.org>
27400
27401         gnulib-tool: Change --import. New options --add/remove-import.
27402         * gnulib-tool: New options --add-import, --remove-import.
27403         (func_usage): Document them.
27404         (have_associative): Define always.
27405         (func_import): In import mode, don't merge the specified settings with
27406         the cached settings. Implement remove-import mode.
27407         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
27408         Explain when to use them versus --import.
27409         (Simple update): Use --add-import instead of --import.
27410         * NEWS: Mention the change.
27411
27412 2010-09-04  Bruno Haible  <bruno@clisp.org>
27413
27414         * doc/gnulib-tool.texi (Initial import): Update paragraph about
27415         separate gnulib.mk.
27416
27417 2010-09-04  Bruno Haible  <bruno@clisp.org>
27418
27419         gnulib-tool: Don't talk about CVS any more.
27420         * gnulib-tool (func_usage, func_import): Write "version control"
27421         instead of CVS.
27422
27423 2010-09-04  Jim Meyering  <meyering@redhat.com>
27424
27425         maint.mk: avoid obscure sc_copyright_check failure in coreutils
27426         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
27427         false positives (whose names may be ill-chosen) when searching
27428         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
27429         would cause a false-positive.
27430
27431         avoid coreutils "make distcheck" failure
27432         Coreutils tests with an absolute build directory name that contains
27433         a space.  Not quoting this directory name caused a failure.
27434         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
27435         * tests/test-vc-list-files-cvs.sh: Likewise.
27436
27437 2010-09-04  Bruno Haible  <bruno@clisp.org>
27438
27439         gnulib-tool: Avoid error when run in a package without Makefile.am.
27440         * gnulib-tool: When collecting the m4dirs in a package that does not
27441         have a Makefile.am, eliminate those directories that contain no
27442         gnulib-cache.m4. Fix expression that counts these directories.
27443
27444 2010-09-04  Bruno Haible  <bruno@clisp.org>
27445
27446         update-copyright test: Improve output when perl is missing or too old.
27447         * tests/test-update-copyright.sh: Move test of Perl version down after
27448         the test whether Perl exists. Provide an explanation relating Perl's
27449         error message to Automake's SKIP: message.
27450
27451 2010-09-04  Bruno Haible  <bruno@clisp.org>
27452
27453         Don't augment PATH in TESTS_ENVIRONMENT.
27454         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
27455         set abs_aux_dir instead of augmenting PATH.
27456         * modules/vc-list-files-tests (Makefile.am): Likewise.
27457         * tests/test-update-copyright.sh: Augment PATH here.
27458         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
27459         path_prepend_.
27460         * tests/test-vc-list-files-git.sh: Likewise.
27461
27462 2010-09-04  Jim Meyering  <meyering@redhat.com>
27463
27464         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
27465         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
27466
27467 2010-09-04  Bruno Haible  <bruno@clisp.org>
27468
27469         strdup: Fix compilation error in C++ mode.
27470         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
27471         the macro.
27472
27473 2010-09-04  Bruno Haible  <bruno@clisp.org>
27474
27475         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
27476         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
27477         macro into a function.
27478         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
27479
27480 2010-09-04  Bruno Haible  <bruno@clisp.org>
27481
27482         Set PATH_SEPARATOR the same way autoconf does.
27483         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
27484         the value of PATH_SEPARATOR the same way autoconf-generated configure
27485         scripts do.
27486         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
27487         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
27488
27489 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
27490
27491         Set PATH_SEPARATOR the same way autoconf does.
27492         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
27493         the same way autoconf-generated configure scripts do.
27494         * posix-modules: Likewise.
27495
27496 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
27497
27498         hash: fix safe_hasher const typo
27499         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
27500         const; otherwise, there is a type error later.
27501
27502 2010-09-02  Jim Meyering  <meyering@redhat.com>
27503
27504         test-update-copyright.sh: require perl 5.8.0
27505         * tests/test-update-copyright.sh: Require 5.8.0,
27506         which Tom G. Christensen has confirmed is adequate,
27507         while 5.6.1 is not.
27508
27509 2010-09-02  Eric Blake  <eblake@redhat.com>
27510
27511         tests: init.sh improvements for re-exec'ing with zsh
27512         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
27513         -vx through shell re-exec.
27514         Reported by Tom G. Christensen.
27515
27516         wctype: fix typo in previous commit
27517         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
27518         Reported by Ludovic Courtès.
27519
27520 2010-09-02  Jim Meyering  <meyering@redhat.com>
27521
27522         test-update-copyright.sh: skip test if Perl is too old
27523         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
27524         Reported by Tom G. Christensen.
27525
27526 2010-09-02  Bruno Haible  <bruno@clisp.org>
27527
27528         wctype: Avoid compilation error on IRIX 6.5.30.
27529         * lib/wctype.in.h (iswblank): Declare with a replacement if
27530         REPLACE_ISWBLANK is set.
27531         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
27532         declared. Set REPLACE_ISWBLANK.
27533         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
27534         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
27535         * doc/posix-headers/wctype.texi: Likewise.
27536         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27537
27538 2010-09-01  Bruno Haible  <bruno@clisp.org>
27539
27540         New module 'socketlib'.
27541         * modules/socketlib: New file.
27542         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
27543         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
27544         * modules/sockets (Depends-on): Add socketlib.
27545         Suggested by Sam Steingold <sds@gnu.org>.
27546
27547 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
27548
27549         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
27550
27551         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
27552         when one needs search access to a directory but not read access.
27553         On systems where it is available, it works in some cases where
27554         O_RDONLY does not, namely on directories that are searchable but
27555         not readable, and which need only to be searchable.  If O_SEARCH
27556         is not available, fall back to the traditional method of using
27557         O_RDONLY.
27558
27559         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
27560         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
27561         when opening a directory that needs only to be searchable.
27562         * lib/chdir-safer.c (chdir_no_follow): Likewise.
27563         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
27564         * lib/openat-proc.c (openat_proc_name): Likewise.
27565         * lib/openat.c (openat_needs_fchdir): Likewise.
27566         * lib/save-cwd.c (save_cwd): Likewise.
27567         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
27568
27569 2010-08-28  Bruno Haible  <bruno@clisp.org>
27570
27571         New module 'host-cpu-c-abi'.
27572         * modules/host-cpu-c-abi: New file.
27573         * m4/host-cpu-c-abi.m4: New file, based on part of
27574         clisp/src/m4/general.m4.
27575         Requested by Sam Steingold <sds@gnu.org>.
27576
27577 2010-08-31  Eric Blake  <eblake@redhat.com>
27578         and Jim Meyering  <meyering@redhat.com>
27579
27580         hash: factor, and guard against misbehaving hasher function
27581         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
27582         of table->hasher's return value.  Also protect against a hash value
27583         so large that adding it to table->bucket results in a NULL pointer.
27584         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
27585         Use it in place of open-coded check-and-abort.
27586
27587 2010-08-30  Bruno Haible  <bruno@clisp.org>
27588
27589         hash: silence spurious clang warning
27590         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
27591         Reported by Eric Blake.
27592
27593 2010-08-30  Eric Blake  <eblake@redhat.com>
27594
27595         strstr, memmem, strcasestr: avoid leaked shell message
27596         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
27597         FreeBSD.
27598         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
27599         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
27600
27601         tests: silence clang warning
27602         * tests/test-malloca.c (do_allocation): Avoid dead store.
27603
27604 2010-08-29  Bruno Haible  <bruno@clisp.org>
27605
27606         gettext: Fix recent mistake.
27607         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
27608
27609 2010-08-29  Bruno Haible  <bruno@clisp.org>
27610
27611         selinux-h: Offer a --without-selinux option.
27612         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
27613         --without-selinux was specified, skip all tests and define
27614         HAVE_SELINUX_SELINUX_H to 0.
27615         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
27616         set LIB_SELINUX to empty.
27617         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
27618         gl_LIBSELINUX. If --without-selinux was specified, replace
27619         selinux/context.h.
27620         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
27621
27622 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27623             Bruno Haible  <bruno@clisp.org>
27624
27625         Make the module 'realloc-gnu' work again on AIX and OSF/1.
27626         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
27627         of HAVE_REALLOC.
27628         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
27629         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
27630         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
27631         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
27632
27633 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27634             Bruno Haible  <bruno@clisp.org>
27635
27636         Make the module 'calloc-gnu' work again on AIX and OSF/1.
27637         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
27638         HAVE_CALLOC.
27639         * lib/xmalloc.c: Update accordingly.
27640         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
27641         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
27642         * modules/calloc-gnu (configure.ac): Invoke 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 'malloc-gnu' work again on AIX and OSF/1.
27648         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
27649         HAVE_MALLOC.
27650         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
27651         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
27652         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
27653
27654 2010-08-29  Bruno Haible  <bruno@clisp.org>
27655
27656         Update modules list.
27657         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
27658         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
27659         (String handling <string.h>): Add astrxfrm.
27660         (File system functions): Add readlinkat.
27661
27662 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27663
27664         Tests for module 'realloc-gnu'.
27665         * modules/realloc-gnu-tests: New file.
27666         * tests/test-realloc-gnu.c: New file.
27667
27668         Tests for module 'calloc-gnu'.
27669         * modules/calloc-gnu-tests: New file.
27670         * tests/test-calloc-gnu.c: New file.
27671
27672         Tests for module 'malloc-gnu'.
27673         * modules/malloc-gnu-tests: New file.
27674         * tests/test-malloc-gnu.c: New file.
27675
27676 2010-08-28  Bruno Haible  <bruno@clisp.org>
27677
27678         Rename module 'realloc' -> 'realloc-gnu'.
27679         * modules/realloc-gnu: New file, copied from modules/realloc.
27680         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
27681         obsolete.
27682         * modules/mgetgroups (Depends-on): Update.
27683         * doc/posix-functions/realloc.texi: Update.
27684         * NEWS: Mention the change.
27685
27686         Rename module 'calloc' -> 'calloc-gnu'.
27687         * modules/calloc-gnu: New file, copied from modules/calloc.
27688         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
27689         obsolete.
27690         * doc/posix-functions/calloc.texi: Update.
27691         * NEWS: Mention the change.
27692
27693         Rename module 'malloc' -> 'malloc-gnu'.
27694         * modules/malloc-gnu: New file, copied from modules/malloc.
27695         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
27696         obsolete.
27697         * modules/argp (Depends-on): Update.
27698         * modules/regex (Depends-on): Update.
27699         * doc/posix-functions/malloc.texi: Update.
27700         * NEWS: Mention the change.
27701
27702 2010-08-28  Eric Blake  <eblake@redhat.com>
27703
27704         pread, pwrite: add missing dependency
27705         * modules/pread (Depends-on): Add extensions.
27706         * modules/pwrite (Depends-on): Likewise.
27707
27708 2010-08-28  Bruno Haible  <bruno@clisp.org>
27709
27710         unistr/u*-strchr: Fix tests dependencies.
27711         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
27712         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
27713         Reported by Ian Beckwith <ianb@erislabs.net>.
27714
27715 2010-08-28  Bruno Haible  <bruno@clisp.org>
27716
27717         read-file: Don't occupy too much unused memory.
27718         * lib/read-file.c (fread_file): Shrink the buffer at the end.
27719
27720 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
27721             Eric Blake  <eblake@redhat.com>
27722             Bruno Haible  <bruno@clisp.org>
27723
27724         read-file: Avoid memory reallocations with regular files.
27725         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
27726         (fread_file): With regular files, use the remaining length as the
27727         initial buffer size.  Check against overflow.
27728         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
27729         sys_stat.
27730
27731 2010-08-28  Bruno Haible  <bruno@clisp.org>
27732
27733         ftello: Relax license.
27734         * modules/ftello (License): Relax to LGPLv2+.
27735         Reported by Eric Blake.
27736
27737 2010-08-28  Bruno Haible  <bruno@clisp.org>
27738
27739         Avoid relocwrapper link errors due to gnulib replacement functions.
27740         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
27741         function.
27742         Reported by Ben Pfaff <blp@cs.stanford.edu>.
27743
27744 2010-08-28  Bruno Haible  <bruno@clisp.org>
27745
27746         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
27747         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
27748         defined.
27749         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
27750         Suggested by Eric Blake.
27751
27752 2010-08-28  Bruno Haible  <bruno@clisp.org>
27753
27754         sys_socket, netdb: Ensure socklen_t gets defined.
27755         * modules/sys_socket (Depends-on): Add socklen.
27756         * modules/netdb (Depends-on): Likewise.
27757         * modules/getaddrinfo (Depends-on): Remove socklen.
27758         * modules/getsockopt (Depends-on): Likewise.
27759         * modules/setsockopt (Depends-on): Likewise.
27760         * tests/test-sys_socket.c: Check that socklen_t is defined.
27761         * tests/test-netdb.c: Likewise.
27762         * m4/socklen.m4: Update comments.
27763         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27764
27765 2010-08-27  Eric Blake  <eblake@redhat.com>
27766
27767         login_tty: add missing dependency
27768         * modules/login_tty (Depends-on): Add pty.
27769
27770 2010-08-26  Eric Blake  <eblake@redhat.com>
27771
27772         lib-symbol-versions: fix m4 quoting
27773         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
27774         format for AC_LINK_IFELSE.
27775
27776         glob: fix compile test
27777         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
27778
27779         btowc: fix missing file
27780         * modules/btowc (Files): Also ship locale-fr.m4.
27781
27782         lseek: fix link test
27783         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
27784         AC_LINK_IFELSE.
27785
27786         include_next: silence autoconf 2.68 warning
27787         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
27788         AC_COMPILE_IFELSE as special.
27789         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
27790         autoconf < 2.68.
27791
27792         acl: fix compilation test
27793         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
27794         AC_COMPILE_IFELSE.
27795
27796 2010-08-26  Bruno Haible  <bruno@clisp.org>
27797
27798         Modernize AC_TRY_RUN invocations.
27799         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
27800         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
27801         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
27802         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
27803         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
27804         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
27805         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
27806         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
27807         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
27808         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
27809         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
27810         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
27811         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
27812         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
27813         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
27814         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
27815         gl_MBRLEN_NUL_RETVAL): Likewise.
27816         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
27817         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
27818         Likewise.
27819         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
27820         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
27821         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
27822         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
27823         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
27824         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
27825         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
27826         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
27827         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
27828         Likewise.
27829         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
27830         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
27831         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
27832         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
27833         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
27834         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
27835         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
27836         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
27837         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
27838         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
27839
27840 2010-08-26  Bruno Haible  <bruno@clisp.org>
27841
27842         Modernize AC_TRY_LINK invocations.
27843         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
27844         AC_TRY_LINK.
27845         * m4/argp.m4 (gl_ARGP): Likewise.
27846         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
27847         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
27848         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
27849         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
27850         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
27851         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
27852         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
27853         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
27854         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
27855         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
27856         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
27857         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
27858         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
27859         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
27860         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
27861         * m4/hostent.m4 (gl_HOSTENT): Likewise.
27862         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
27863         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
27864         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
27865         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
27866         Likewise.
27867         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
27868         Likewise.
27869         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
27870         Likewise.
27871         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
27872         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
27873         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
27874         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
27875         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
27876         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
27877         * m4/servent.m4 (gl_SERVENT): Likewise.
27878         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
27879         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
27880         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
27881         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
27882         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
27883         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
27884         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
27885         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
27886         * modules/tsearch-tests (configure.ac): Likewise.
27887
27888 2010-08-26  Bruno Haible  <bruno@clisp.org>
27889
27890         Modernize AC_TRY_COMPILE invocations.
27891         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
27892         AC_TRY_COMPILE.
27893         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
27894         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
27895         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
27896         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
27897         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
27898         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
27899         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
27900         * m4/lock.m4 (gl_LOCK): Likewise.
27901         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
27902         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
27903         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
27904         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
27905         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
27906         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
27907         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
27908         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
27909         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
27910         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
27911         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
27912         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
27913         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
27914         extraneous semicolon.
27915
27916 2010-08-26  Jim Meyering  <meyering@redhat.com>
27917
27918         stat-time: relax license LGPL
27919         * modules/stat-time (License): Change from GPL to LGPL,
27920         with consent from all contributors, for use in libguile.
27921         Requested by Ludovic Courtès.
27922
27923 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
27924
27925         poll: return immediately on POLLHUP.
27926         * lib/poll.c (poll): Always set timeout before wait_timeout is
27927         computed.
27928
27929 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27930
27931         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
27932         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
27933         rmdir ("dir/.//"), unlinkat.
27934
27935 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
27936
27937         stdbool: avoid spurious failure with modern xlc
27938         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
27939
27940 2010-08-24  Bruno Haible  <bruno@clisp.org>
27941
27942         getloadavg: simplify code
27943         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
27944         gl_have_func. Update comments.
27945
27946 2010-08-24  Eric Blake  <eblake@redhat.com>
27947
27948         getloadavg: don't define SVR4 on cygwin
27949         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
27950         only define SVR4 when -lkvm is required.
27951         Reported by Yaakov Selkowitz.
27952
27953 2010-08-24  Bruno Haible  <bruno@clisp.org>
27954
27955         priv-set: fix comment
27956         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
27957
27958 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
27959
27960         priv-set: fix comments
27961         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
27962         to match code, as suggested by David Bartley in:
27963         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
27964
27965 2010-08-23  Eric Blake  <eblake@redhat.com>
27966
27967         stdbool: avoid rejecting clang
27968         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
27969         * tests/test-stdbool.c: Enable more tests if using the system
27970         <stdbool.h> instead of the gnulib replacement.
27971         (main): Move xlc bug test to a runtime test for all compilers.
27972         Reported by Anders Kaseorg.
27973
27974         argz: fix shell quoting issue
27975         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
27976         Reported by Charles Wilson.
27977
27978 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
27979             Erik Faye-Lund <kusmabite@gmail.com>
27980
27981         poll, select: handle ERROR_BROKEN_PIPE.
27982         * lib/poll.c (win32_compute_revents): Return POLLHUP when
27983         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
27984         * lib/select.c (win32_compute_revents): Do not mark a pipe
27985         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
27986
27987 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
27988
27989         fts: allow compilation with C++
27990         * lib/fts_.h: Specify extern "C" linkage with C++.
27991
27992 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27993
27994         Fix gnulib-tool sed script de-commentation for AIX sed.
27995         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
27996         sed.
27997
27998 2010-08-17  Eric Blake  <eblake@redhat.com>
27999
28000         test-stddef: test for (some) offsetof bugs
28001         * tests/test-stddef.c: Enhance test to ensure correct type of
28002         offsetof.
28003         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
28004         that we are not fixing at this time.
28005
28006 2010-08-15  Bruno Haible  <bruno@clisp.org>
28007
28008         stpncpy: Allow stpncpy to be defined as a macro.
28009         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
28010         if it's already correctly declared.
28011         * lib/string.in.h (stpncpy): Undefine before redefining.
28012         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
28013
28014 2010-08-14  Bruno Haible  <bruno@clisp.org>
28015
28016         Rename module 'memxfrm' to 'amemxfrm'.
28017         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
28018         (amemxfrm): Renamed from memxfrm.
28019         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
28020         (amemxfrm): Renamed from memxfrm.
28021         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
28022         * NEWS: Mention the change.
28023         * MODULES.html.sh (String handling <string.h>): Update.
28024         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
28025         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
28026         * lib/unicase/u16-casexfrm.c: Likewise.
28027         * lib/unicase/u32-casexfrm.c: Likewise.
28028         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
28029         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
28030         * lib/uninorm/u16-normxfrm.c: Likewise.
28031         * lib/uninorm/u32-normxfrm.c: Likewise.
28032         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
28033         memxfrm.
28034         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
28035         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
28036         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
28037         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
28038         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
28039         Suggested by Paul Eggert.
28040
28041 2010-08-14  Bruno Haible  <bruno@clisp.org>
28042
28043         Tests for module 'astrxfrm'.
28044         * modules/astrxfrm-tests: New file.
28045         * tests/test-astrxfrm.c: New file.
28046
28047         New module 'astrxfrm'.
28048         * lib/astrxfrm.h: New file.
28049         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
28050         * modules/astrxfrm: New file.
28051
28052 2010-08-14  Reuben Thomas <rrt@sc3d.org>
28053
28054         regex: Tweak doc.
28055         * doc/regex.texi (Overview): Don't mention regex.c.
28056         (GNU Regular Expression Compiling): Likewise.
28057         (Match-end-of-line Operator): Mention 'not_eol'.
28058
28059 2010-08-14  Brian Gough  <bjg@gnu.org>
28060             Bruno Haible  <bruno@clisp.org>
28061
28062         git-merge-changelog: add doc relating to use with bzr and hg.
28063         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
28064
28065 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
28066
28067         pthread: fix pthread.h creation for srcdir != builddir
28068         * modules/pthread (Makefile.am): Fix the rule to work also in a
28069         non-srcdir build.
28070
28071 2010-08-13  Karl Berry  <karl@gnu.org>
28072
28073         * doc/regex.texi (Predefined Syntaxes): @smallexample.
28074         * doc/posix-*/*: force line break before @url of POSIX
28075         specifications.
28076         Suggested by Werner Lemberg.
28077
28078 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
28079
28080         strtod: fix const diagnostic
28081         * lib/strtod.c (strtod): Don't assign const char * to char *,
28082         as this elicits a warning from GCC when warnings are enabled.
28083
28084 2010-08-10  Pádraig Brady <P@draigbrady.com>
28085         and Eric Blake  <eblake@redhat.com>
28086
28087         copy-acl: ignore ENOTSUP on HP-UX
28088         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
28089         so that it is available for HP-UX.
28090         * lib/copy-acl.c (qcopy_acl): Use it.
28091         Reported by Patrick M. Callahan.
28092
28093 2010-08-10  Eric Blake  <eblake@redhat.com>
28094
28095         open, chown: relax license
28096         * modules/open (License): Change to LGPLv2+, with consent by all
28097         authors, for use in augeas.
28098         * modules/chown (License): Likewise.
28099         * modules/lchown (Likewise): Likewise.
28100         Requested by Adam Stokes.
28101
28102 2010-08-09  Karl Berry  <karl@gnu.org>
28103
28104         * build-aux/ar-lib: new file, import from Automake.
28105         * config/srclist.txt: autocheck for updates.
28106
28107 2010-08-09  Eric Blake  <eblake@redhat.com>
28108
28109         readlinkat: adjust client modules
28110         * modules/areadlinkat (Depends-on): Use readlinkat, not
28111         symlinkat.
28112         * modules/areadlinkat-with-size (Depends-on): Likewise.
28113
28114         mknod: be more vocal about danger of running tests as root
28115         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
28116         root, since that is just asking for problems.
28117         Suggested by Bruno Haible, based on a report by Rainer Tammer.
28118
28119         readlinkat: split into its own module
28120         * modules/symlinkat: Split readlinkat...
28121         * modules/readlinkat: ...into separate module.
28122         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
28123         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
28124         * lib/symlinkat.c (readlinkat): Move...
28125         * lib/readlinkat.c: ...into new file.
28126         * modules/symlinkat-tests: Split readlinkat test...
28127         * modules/readlinkat-tests: ...into separate module.
28128         * tests/test-symlinkat.c: Split...
28129         * tests/test-readlinkat.c: ...into new file.
28130         * NEWS: Document the split.
28131         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
28132         * lib/unistd.in.h (readlinkat): Likewise.
28133         Suggested by Bruno Haible.
28134
28135 2010-08-08  Bruno Haible  <bruno@clisp.org>
28136
28137         memxfrm: Speed up.
28138         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
28139         that usually only one call to strxfrm is necessary for each string
28140         part.
28141         Reported by Paul Eggert <eggert@cs.ucla.edu>.
28142
28143 2010-08-07  Karl Berry  <karl@gnu.org>
28144
28145         * doc/posix-headers/limits.texi,
28146         * doc/posix-functions/malloc.texi,
28147         * doc/posix-functions/strsignal.texi: missing @item.
28148         * doc/ld-version-script.texi: spurious leading i.
28149         * doc/regex.texi (Interval Operators): no commas inside @var.
28150
28151 2010-08-01  Bruno Haible  <bruno@clisp.org>
28152
28153         Integrate the regex documentation.
28154         * doc/gnulib.texi: Define 'cn' index.
28155         (Regular expressions): New a chapter that includes regex.texi and
28156         regexprops-generic.texi.
28157         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
28158         syntax.
28159
28160         Whitespace cleanup.
28161         * doc/regex.texi: Remove trailing spaces.
28162
28163         Add regex documentation.
28164         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
28165         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
28166         Written by Kathy A. Hargreaves and Karl Berry.
28167
28168 2010-08-01  Bruno Haible  <bruno@clisp.org>
28169
28170         link: Update documentation.
28171         * doc/posix-functions/link.texi: Update regarding Solaris.
28172
28173 2010-07-31  Bruno Haible  <bruno@clisp.org>
28174
28175         Update modules list.
28176         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
28177         (String handling <string.h>): Add memcmp2, memxfrm.
28178         (Container data structures): Add xlist, xsublist, xoset.
28179         (Core language properties): Add alignof, unused-parameter.
28180         (Process control, Numeric conversion functions <stdlib.h>): Renamed
28181         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
28182         (Unibyte characters <ctype.h>): New section.
28183         (String handling <string.h>): New section.
28184         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
28185         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
28186         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
28187         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
28188         tan, tanh, tanl, y0, y1, yn.
28189         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
28190         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
28191         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
28192         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
28193         unlockpt, vdprintf, vdprintf-posix.
28194         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
28195         (File system functions): Add concat-filename, sys_file, sys_ioctl,
28196         xconcat-filename.
28197         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
28198         getdtablesize, pipe2, pipe2-safer.
28199         (Security): New section.
28200         (Networking functions): Add accept4.
28201         (Signal handling): Add sigpipe.
28202         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
28203         mbmemcasecoll.
28204         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
28205         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
28206         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
28207         pipe-filter-ii.
28208         (Misc): Add argp-version-etc, login_tty, parse-duration.
28209
28210 2010-07-31  Bruno Haible  <bruno@clisp.org>
28211
28212         Improve doc in MODULES.html.
28213         * modules/linkat (Description): Add the word "function".
28214         * modules/mkfifo (Description): Likewise.
28215         * modules/mknod (Description): Likewise.
28216         * modules/remove (Description): Likewise.
28217         * modules/renameat (Description): Likewise.
28218         * modules/stat (Description): Likewise.
28219         * modules/symlink (Description): Likewise.
28220         * modules/unlink (Description): Likewise.
28221
28222 2010-07-31  Bruno Haible  <bruno@clisp.org>
28223
28224         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
28225         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
28226         option --enable/disable-c++ instead of --enable/disable-cxx.
28227         * NEWS: Mention the change.
28228
28229 2010-07-31  Bruno Haible  <bruno@clisp.org>
28230
28231         readlink, areadlink: Relax test a bit.
28232         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
28233         alternative to ENOTDIR.
28234         * tests/test-areadlink.h (test_areadlink): Likewise.
28235         Reported by Rainer Tammer.
28236
28237 2010-07-31  Bruno Haible  <bruno@clisp.org>
28238
28239         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
28240         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
28241         character, perform the search using U_STRCHR.
28242         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
28243         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
28244         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
28245         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
28246         Suggested by Paolo Bonzini.
28247
28248 2010-07-31  Bruno Haible  <bruno@clisp.org>
28249
28250         unistr/u*-strstr: Fix dependencies.
28251         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
28252         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
28253         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
28254
28255 2010-07-31  Bruno Haible  <bruno@clisp.org>
28256
28257         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
28258         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
28259         the beginning of the loop.
28260         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
28261         cases in 'switch' statement.
28262
28263         unistr/u8-strchr: Fix several bugs.
28264         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
28265         the string. When not found, return NULL, not a pointer near the end.
28266
28267         More tests for unistr/u8-strchr.
28268         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
28269         that the function does not read past the first occurrence of the byte
28270         being searched.
28271         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
28272         * tests/unistr/test-u16-strchr.c (main): New function.
28273         * tests/unistr/test-u32-strchr.c (main): New function.
28274
28275 2010-07-31  Bruno Haible  <bruno@clisp.org>
28276
28277         posix-modules: Ignore backup files of documentation files.
28278         * posix-modules: grep only through files named *.texi.
28279
28280 2010-07-31  Bruno Haible  <bruno@clisp.org>
28281
28282         symlinkat: Fix documentation.
28283         * doc/posix-functions/readlinkat.texi: Fix module name.
28284
28285 2010-07-31  Bruno Haible  <bruno@clisp.org>
28286
28287         fchownat: Replace also when chown has the trailing slash bug.
28288         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
28289         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
28290         introduced on 2010-04-10.
28291         Reported by Rainer Tammer.
28292
28293 2010-07-31  Bruno Haible  <bruno@clisp.org>
28294
28295         linkat: Work around AIX 7.1 bug.
28296         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
28297         whether linkat handles trailing slash correctly. If not, replace linkat
28298         and define LINKAT_TRAILING_SLASH_BUG.
28299         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
28300         check whether (fd1,file1) points to a directory if file1 or file2 ends
28301         in a slash. Code taken from lib/link.c.
28302         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
28303         Reported by Rainer Tammer.
28304
28305 2010-07-31  Bruno Haible  <bruno@clisp.org>
28306
28307         Correctly determine whether pow is available in libc on AIX 7 with xlc.
28308         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
28309         This disables an xlc optimization that was causing wrong test results.
28310         Reported by Rainer Tammer.
28311
28312 2010-07-31  Bruno Haible  <bruno@clisp.org>
28313
28314         iconv: Work around AIX 6.1..7.1 bug.
28315         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
28316         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
28317         cross-compiling, guess no on all versions of AIX.
28318         Reported by Rainer Tammer.
28319
28320 2010-07-31  Bruno Haible  <bruno@clisp.org>
28321
28322         readlink: Relax test a bit.
28323         * tests/test-readlink.h (test_readlink): Allow different errno value
28324         when readlink is called with a file name that ends in / and refers to
28325         a file.
28326         Suggested by Eric Blake.
28327         Reported by Rainer Tammer.
28328
28329 2010-07-31  Bruno Haible  <bruno@clisp.org>
28330
28331         copysign: Does not require -lm on glibc systems.
28332         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
28333         gl_COMMON_DOUBLE_MATHFUNC.
28334         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
28335
28336 2010-07-31  Bruno Haible  <bruno@clisp.org>
28337
28338         duplocale: Work around AIX 7.1 bug.
28339         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
28340         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
28341         * lib/duplocale.c (rpl_duplocale): Update comment.
28342         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
28343         Reported by Rainer Tammer.
28344
28345 2010-07-30  Bruno Haible  <bruno@clisp.org>
28346
28347         dirfd: Avoid link error on AIX 7.1.
28348         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
28349         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
28350         exist, set REPLACE_DIRFD.
28351         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
28352         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
28353         * doc/posix-functions/dirfd.texi: Update.
28354         Reported by Rainer Tammer.
28355
28356 2010-07-30  Eric Blake  <eblake@redhat.com>
28357
28358         strtod: next round of AIX fixes
28359         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
28360         exponent.
28361         * tests/test-strtod.c (main): Enhance tests.
28362         * doc/posix-functions/strtod.texi (strtod): Document next bug.
28363         Reported by Rainer Tammer.
28364
28365         futimens: fix configure check
28366         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
28367         Reported by Bruno Haible.
28368
28369 2010-07-30  Bruno Haible  <bruno@clisp.org>
28370
28371         getline: Update regarding AIX.
28372         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
28373         Reported by Rainer Tammer.
28374
28375 2010-07-30  Bruno Haible  <bruno@clisp.org>
28376
28377         wcwidth: Drop replacement on AIX 7.
28378         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
28379         AIX 7.
28380         Reported by Rainer Tammer.
28381
28382 2010-07-30  Bruno Haible  <bruno@clisp.org>
28383
28384         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
28385         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
28386         a 'char *'.
28387         Reported by Rainer Tammer.
28388
28389 2010-07-30  Bruno Haible  <bruno@clisp.org>
28390
28391         unlink: Update regarding AIX.
28392         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
28393         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
28394         Reported by Rainer Tammer.
28395
28396 2010-07-30  Bruno Haible  <bruno@clisp.org>
28397
28398         symlink: Update regarding AIX.
28399         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
28400         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
28401         Reported by Rainer Tammer.
28402
28403 2010-07-30  Bruno Haible  <bruno@clisp.org>
28404
28405         strndup: Update regarding AIX.
28406         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
28407         AIX 7.
28408         Reported by Rainer Tammer.
28409
28410 2010-07-30  Bruno Haible  <bruno@clisp.org>
28411
28412         stat: Update regarding AIX.
28413         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
28414         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
28415         Reported by Rainer Tammer.
28416
28417 2010-07-30  Bruno Haible  <bruno@clisp.org>
28418
28419         truncl: Fix autoconf test.
28420         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
28421         whether truncl works.
28422         Reported by Rainer Tammer.
28423
28424 2010-07-30  Bruno Haible  <bruno@clisp.org>
28425
28426         round: Update regarding AIX.
28427         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
28428         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
28429         Reported by Rainer Tammer.
28430
28431 2010-07-30  Bruno Haible  <bruno@clisp.org>
28432
28433         rename: Update regarding AIX.
28434         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
28435         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
28436         Reported by Rainer Tammer.
28437
28438 2010-07-30  Bruno Haible  <bruno@clisp.org>
28439
28440         printf.m4: Update regarding AIX.
28441         * m4/printf.m4: Update comments regarding AIX.
28442         Reported by Rainer Tammer.
28443
28444 2010-07-30  Bruno Haible  <bruno@clisp.org>
28445
28446         iconv: Update regarding AIX.
28447         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
28448         AIX 7.
28449         Reported by Rainer Tammer.
28450
28451 2010-07-30  Bruno Haible  <bruno@clisp.org>
28452
28453         getopt: Update regarding AIX.
28454         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
28455         no on AIX.
28456         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
28457         Reported by Rainer Tammer.
28458
28459 2010-07-30  Bruno Haible  <bruno@clisp.org>
28460
28461         ldexpl; Update regarding AIX.
28462         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
28463         on AIX 7.
28464         Reported by Rainer Tammer.
28465
28466 2010-07-30  Bruno Haible  <bruno@clisp.org>
28467
28468         frexpl: Update regarding AIX.
28469         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
28470         on AIX 7.
28471         Reported by Rainer Tammer.
28472
28473 2010-07-30  Bruno Haible  <bruno@clisp.org>
28474
28475         open, fopen: Update regarding AIX.
28476         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
28477         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
28478         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
28479         * doc/posix-functions/fopen.texi: Likewise.
28480         Reported by Rainer Tammer.
28481
28482 2010-07-30  Bruno Haible  <bruno@clisp.org>
28483
28484         chown: Update doc regarding AIX.
28485         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
28486         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
28487         Reported by Rainer Tammer.
28488
28489 2010-07-30  Eric Blake  <eblake@redhat.com>
28490
28491         strtod: fix bug in replacement function on AIX
28492         * lib/strtod.c (strtod): Special case broken "0x" parse in
28493         underlying strtod.
28494         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
28495         * doc/posix-functions/strtod.texi (strtod): Likewise.
28496         Reported by Rainer Tammer.
28497
28498 2010-07-30  Bruno Haible  <bruno@clisp.org>
28499
28500         mbrlen: Fix cross-compilation guess for AIX.
28501         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
28502         guess. Leftover from 2008-12-22.
28503
28504 2010-07-30  Bruno Haible  <bruno@clisp.org>
28505
28506         mbrtowc: Fix cross-compilation guess for AIX.
28507         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
28508         guess. Leftover from 2008-12-21.
28509
28510 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
28511
28512         init.sh: work around trap limitation of some shells
28513         * tests/init.sh (setup_): Move exit trap outside of shell function.
28514
28515 2010-07-29  Eric Blake  <eblake@redhat.com>
28516
28517         strtod: aid debugging
28518         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
28519         understanding why strtod is rejected.
28520
28521 2010-07-28  Bruno Haible  <bruno@clisp.org>
28522
28523         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
28524         * lib/unistr/u8-chr.c: Include <string.h>.
28525         * tests/unistr/test-u8-chr.c: Likewise.
28526         * tests/unistr/test-u16-chr.c: Likewise.
28527         * tests/unistr/test-u32-chr.c: Likewise.
28528         * tests/unistr/test-u8-strchr.c: Likewise.
28529         * tests/unistr/test-u16-strchr.c: Likewise.
28530         * tests/unistr/test-u32-strchr.c: Likewise.
28531         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
28532         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
28533         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
28534         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
28535
28536 2010-07-28  Bruno Haible  <bruno@clisp.org>
28537
28538         Use spaces for indentation, not tabs.
28539         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
28540
28541 2010-07-27  Bruno Haible  <bruno@clisp.org>
28542
28543         mbspcasecmp: Fix function specification.
28544         * lib/string.in.h (mbspcasecmp): Fix specification comment.
28545         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
28546         Reported by Eric Blake <eblake@redhat.com>.
28547
28548 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
28549
28550         timespec: use cast and not conditional, as truncation isn't possible
28551         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
28552         instead of a conditional.  Comment about the situation in more detail.
28553         This undoes most of the 2009-10-29 patch.
28554
28555 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
28556
28557         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
28558         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
28559         * lib/unistr/u8-strchr.c: Likewise.
28560         * modules/unistr/u8-chr: Depend on memchr.
28561
28562         unistr/u*-strchr: add tests
28563         * modules/unistr/u8-strchr-tests: New file.
28564         * modules/unistr/u16-strchr-tests: New file.
28565         * modules/unistr/u32-strchr-tests: New file.
28566         * tests/unistr/test-strchr.h: New file.
28567         * tests/unistr/test-u8-strchr.c: New file.
28568         * tests/unistr/test-u16-strchr.c: New file.
28569         * tests/unistr/test-u32-strchr.c: New file.
28570
28571         unistr/u*-chr: test multibyte sequences more
28572         * tests/unistr/test-chr.h: Do complete testing of the characters in the
28573         test vector.
28574         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
28575         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
28576         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
28577
28578         unistr/u*-chr: test multibyte sequences
28579         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
28580
28581         unistr/u*-chr: prepare for multibyte tests
28582         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
28583         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
28584         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
28585         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
28586         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
28587         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
28588
28589 2010-07-18  Bruno Haible  <bruno@clisp.org>
28590
28591         unistr/u8-strchr: Optimize non-ASCII argument case.
28592         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
28593         because the first byte often matches anyway.
28594         Reported by Pádraig Brady <P@draigbrady.com>.
28595
28596 2010-07-15  Karl Berry  <karl@gnu.org>
28597
28598         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
28599
28600 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
28601
28602         getcwd: on Solaris, work better if ancestors are inaccessible
28603         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
28604         buffer and size, try again with a large buffer.  This works better
28605         on Solaris, since its getcwd succeeds even if the path to the root
28606         is inaccessible, and this is helpful in common cases such as .zfs
28607         hidden directories.  Problem reported by J Chapman Flack in
28608         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
28609         Use system getcwd if it's declared, not merely if it's partly
28610         working; use the partly-working test only to avoid needless effort
28611         if the system getcwd fails.
28612         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
28613         comment that was already obsolete and is now even more obsolete.
28614         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
28615         now might call strdup.
28616
28617 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
28618
28619         pthread: Add enough so that coreutils/src/sort.c compiles.
28620         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
28621         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
28622         gnulib. Include <sched.h> and <time.h>, as per POSIX.
28623         Include <sys/types.h>, in case it defines pthread_t.
28624         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
28625         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
28626         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
28627         (pthread_rwlockattr_t, pthread_spinlock_t):
28628         New typedefs, if HAVE_PTHREAD_T is not defined.
28629         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
28630         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
28631         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
28632         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
28633         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
28634         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
28635         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
28636         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
28637         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
28638         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
28639         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
28640         New macros.
28641         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
28642         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
28643         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
28644         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
28645         (pthread_spin_unlock): New dummy functions.
28646         (pthread_create): Return EAGAIN; don't set errno.
28647         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
28648         require AC_C_INLINE.
28649         * modules/pthread (Depends-on): Add sched, time.
28650         (pthread.h): Use AM_V_GEN.
28651
28652 2010-07-13  Bruno Haible  <bruno@clisp.org>
28653
28654         striconveh: Don't malloc memory if the result buffer is sufficient.
28655         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
28656         buffer if its size is sufficient.
28657         Reported by Ludovic Courtès <ludo@gnu.org>.
28658
28659 2010-07-13  Bruno Haible  <bruno@clisp.org>
28660
28661         strtod: Add safety check.
28662         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
28663
28664 2010-07-12  Bruno Haible  <bruno@clisp.org>
28665
28666         Unify tests that set gl_cv_func_ldexpl_no_libm.
28667         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
28668         gl_FUNC_LDEXPL.
28669         (gl_FUNC_LDEXPL): Invoke it.
28670         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
28671
28672 2010-07-12  Bruno Haible  <bruno@clisp.org>
28673
28674         Unify tests that set gl_cv_func_ldexp_no_libm.
28675         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
28676         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
28677         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
28678         (configure.ac): Simply invoke gl_FUNC_LDEXP.
28679         * modules/strtod (Files): Add m4/ldexp.m4.
28680
28681 2010-07-12  Bruno Haible  <bruno@clisp.org>
28682
28683         Unify tests that set gl_cv_func_frexpl_no_libm.
28684         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
28685         gl_FUNC_FREXPL_NO_LIBM.
28686         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
28687         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
28688
28689 2010-07-12  Bruno Haible  <bruno@clisp.org>
28690
28691         Unify tests that set gl_cv_func_frexp_no_libm.
28692         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
28693         gl_FUNC_FREXP_NO_LIBM.
28694         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
28695         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
28696
28697 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
28698
28699         memcoll: clarify sizes versus lengths, document better, and tweak perf
28700         * lib/memcoll.c (strcoll_loop, memcoll0):
28701         Improve quality of descriptive comments.  Name variables
28702         consistently as to whether they are lengths (which do not include
28703         terminating null) versus sizes (which do).
28704         * lib/xmemcoll.c (xmemcoll0): Likewise.
28705         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
28706         returned when s1size == 0; this is easier to compile and saves
28707         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
28708
28709 2010-07-12  Bruno Haible  <bruno@clisp.org>
28710
28711         Tests for module '_Exit'.
28712         * modules/_Exit-tests: New file.
28713         * tests/test-_Exit.sh: New file.
28714         * tests/test-_Exit.c: New file.
28715
28716         New module '_Exit'.
28717         * lib/stdlib.in.h (__attribute__): New macro.
28718         (_Exit): New declaration.
28719         * lib/_Exit.c: New file.
28720         * m4/_Exit.m4: New file.
28721         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
28722         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
28723         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
28724         * modules/_Exit: New file.
28725         * tests/test-stdlib-c++.cc (_Exit): Check signature.
28726         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
28727
28728 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
28729
28730         strtod: make it more-accurate typically, and don't require libm
28731         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
28732         Include limits.h.  Don't include string.h.
28733         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
28734         (locale_isspace): New function, so that no casts are needed to
28735         check whether *s is a space.
28736         (ldexp): Provide an unused dummy if not available.
28737         (scale_radix_exp, parse_number, underlying_strtod): New functions.
28738         (strtod): Use them.  This implementation prefers to use the
28739         underlying strtod if available, falling back on our own code
28740         only to fix known bugs.  This is more likely to produce an
28741         accurate result.  Also, it avoids the use of libm functions.
28742         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
28743         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
28744         was absent, but it caused a test failure with coreutils.
28745         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
28746         with libm.
28747         * modules/strtod (Makefile.am, Link): libm is no longer needed.
28748         * modules/strtod-tests (Makefile.am): Likewise.
28749
28750 2010-07-11  Pádraig Brady  <P@draigBrady.com>
28751             Bruno Haible  <bruno@clisp.org>
28752
28753         unistr/u8-strchr: Optimize ASCII argument case.
28754         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
28755
28756 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
28757
28758         (x)memcoll: minor tweaks
28759         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
28760         is after the type that it qualifies.
28761         (memcoll0): Likewise.
28762         * lib/memcoll.h (memcoll0): Likewise.
28763         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
28764         * lib/xmemcoll.h (xmemcoll0): Likewise.
28765         * lib/memcoll.c (memcoll0): Correct the comment.  This function
28766         differs from memcoll in that the NUL byte is part of the argument.
28767         Omit the abort-checks, as performance is a real issue here.  Plus,
28768         the checks were wrong anyway (an off-by-one error).  Omit local
28769         variable 'diff', as it's a bit clearer that way.
28770         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
28771         no longer needed.
28772
28773 2010-07-08  Chen Guo <chenguo4@yahoo.com>
28774
28775         (x)memcoll: speedup when input is known to be NUL delimited
28776         * lib/memcoll.c: Include stdlib.
28777         (memcoll0): New function.
28778         (strcoll_loop): New function, refactored for use in both memcoll
28779         and memcoll0.
28780         * lib/memcoll.h (memcoll0): Add prototype.
28781         * lib/xmemcoll.c (xmemcoll0): New function.
28782         (collate_error): New function, refactored for use in both xmemcoll
28783         and xmemcoll0.
28784         * lib/xmemcoll.h (xmemcoll0): Add prototype.
28785         * m4/memcoll.m4: add inline invocation.
28786
28787 2010-07-06  Pádraig Brady  <P@draigBrady.com>
28788
28789         * build-aux/bootstrap: Remove any local translations
28790         from the translation project synchronization directory,
28791         so that local only translations are not distributed.
28792
28793 2010-07-04  Bruno Haible  <bruno@clisp.org>
28794
28795         fsusage: Clarify which code applies to which platforms.
28796         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
28797         platform.
28798         * lib/fsusage.c (get_fs_usage): Likewise.
28799
28800 2010-07-04  Bruno Haible  <bruno@clisp.org>
28801
28802         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
28803         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
28804         Reported by Martin Lambers <marlam@marlam.de>.
28805
28806 2010-07-04  Jim Meyering  <meyering@redhat.com>
28807
28808         hash: once again explicitly disallow insertion of NULL
28809         * lib/hash.c (hash_insert0): Reinstate just-removed test:
28810         inserting a NULL pointer cannot work with these functions.
28811         Add a comment with details.
28812         This reverts part of the 2010-07-01 commit, 5bef1a35
28813         "hash: extend module to deal with non-pointer keys".
28814
28815 2010-07-01  Bruno Haible  <bruno@clisp.org>
28816
28817         stdbool: Update doc.
28818         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
28819         Info from Christian Weisgerber <naddy@mips.inka.de>.
28820
28821 2010-07-01  Jim Meyering  <meyering@redhat.com>
28822
28823         hash: extend module to deal with non-pointer keys
28824         * lib/hash.c (hash_insert0): New interface, much like hash_insert
28825         but that allows insertion of non-pointer entries.
28826         Do not disallow an ENTRY value of NULL.
28827         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
28828         * lib/hash.h (hash_insert0): Declare.
28829
28830 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
28831
28832         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
28833         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
28834         not present (i.e. with autoconf 2.59 and when using gettextize, not
28835         gnulib), require AC_GNU_SOURCE instead.
28836
28837 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
28838
28839         idpriv-drop: Fix tests.
28840         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
28841         not to the test-idpriv-droptemp program.
28842
28843 2010-06-29  Bruno Haible  <bruno@clisp.org>
28844
28845         string: Fix syntax error with g++ 2.96.
28846         * lib/string.in.h (__pure__): Remove definition.
28847         (_GL_ATTRIBUTE_PURE): New macro.
28848         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
28849         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
28850         Reported by Christian Weisgerber <naddy@mips.inka.de>.
28851
28852 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
28853
28854         unitypes: Fix bug introduced on 2010-05-18.
28855         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
28856
28857 2010-06-22  Eric Blake  <eblake@redhat.com>
28858
28859         memmem: slight optimization
28860         * lib/str-two-way.h (critical_factorization): Update comments.
28861         Reduce work during factorization phase.
28862         Reported by Carlos Bueno <carlos@bueno.org>.
28863
28864 2010-06-21  Bruno Haible  <bruno@clisp.org>
28865
28866         Fix HAVE_CALLOC_POSIX misnomer.
28867         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
28868         !HAVE_CALLOC_POSIX.
28869         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
28870         HAVE_CALLOC_POSIX.
28871         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
28872         instead of HAVE_CALLOC_POSIX.
28873         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
28874         HAVE_CALLOC_POSIX.
28875
28876         Use modern idiom for calloc() replacement.
28877         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
28878         AC_FUNC_CALLOC.
28879         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
28880         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
28881         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
28882         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
28883         (gl_REPLACE_CALLOC): New macro.
28884
28885 2010-06-21  Bruno Haible  <bruno@clisp.org>
28886
28887         Fix HAVE_REALLOC_POSIX misnomer.
28888         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
28889         !HAVE_REALLOC_POSIX.
28890         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
28891         HAVE_REALLOC_POSIX.
28892         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
28893         instead of HAVE_REALLOC_POSIX.
28894         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
28895         HAVE_REALLOC_POSIX.
28896
28897         Use modern idiom for realloc() replacement.
28898         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
28899         AC_FUNC_REALLOC.
28900         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
28901         Autoconf's AC_FUNC_REALLOC.
28902         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
28903         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
28904         (gl_REPLACE_REALLOC): New macro.
28905         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
28906
28907 2010-06-21  Bruno Haible  <bruno@clisp.org>
28908
28909         Fix HAVE_MALLOC_POSIX misnomer.
28910         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
28911         !HAVE_MALLOC_POSIX.
28912         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
28913         HAVE_MALLOC_POSIX.
28914         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
28915         instead of HAVE_MALLOC_POSIX.
28916         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
28917         HAVE_MALLOC_POSIX.
28918
28919         Use modern idiom for malloc() replacement.
28920         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
28921         AC_FUNC_MALLOC.
28922         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
28923         Autoconf's AC_FUNC_MALLOC.
28924         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
28925         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
28926         (gl_REPLACE_MALLOC): New macro.
28927         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
28928
28929 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
28930
28931         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
28932         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
28933         This macro takes 3 arguments, not 4.
28934
28935 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
28936
28937         ipv6: fix detection under mingw
28938         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
28939         in6_addr.
28940
28941 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
28942
28943         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
28944         that strtod() works when cross-compiling to a glibc version known
28945         to work.
28946
28947 2010-06-15  Bruno Haible  <bruno@clisp.org>
28948
28949         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
28950
28951 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
28952
28953         select: Correct timeout.
28954         * lib/select.c (rpl_select): Compute wait_timeout correctly.
28955
28956 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
28957
28958         git-version-gen: init shell var to avoid env var influence
28959         * build-aux/git-version-gen (v): Init shell var to empty.
28960
28961 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
28962
28963         priv-set: Don't assume that priv.h exists merely because getppriv does.
28964         See Jan Andersen's bug report about AIX 5L in
28965         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
28966         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
28967         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
28968         * lib/priv-set.h: Likewise.
28969         * tests/test-priv-set.c: Likewise.
28970
28971 2010-06-13  Bruno Haible  <bruno@clisp.org>
28972
28973         relocatable: Make it easier to test whether to install wrappers.
28974         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
28975         RELOCATABLE_VIA_WRAPPER.
28976
28977 2010-06-13  Bruno Haible  <bruno@clisp.org>
28978
28979         gnulib-tool: Display specified modules and dependencies differently.
28980         * gnulib-tool (func_show_module_list): New function.
28981         (func_import, func_create_testdir): Invoke it.
28982         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
28983
28984 2010-06-13  Bruno Haible  <bruno@clisp.org>
28985
28986         gnulib-tool: Align code of func_import and func_create_testdir.
28987         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
28988         specified_modules.
28989
28990 2010-06-12  Jim Meyering  <meyering@redhat.com>
28991
28992         test-inttostr: avoid spurious failure on Solaris 9
28993         * tests/test-inttostr.c (main): Skip the test when snprintf fails
28994         to accept "%ju".  Reported by Bruno Haible.
28995
28996 2010-06-11  Jim Meyering  <meyering@redhat.com>
28997
28998         test-sys_socket: mark variables as used more readably
28999         * tests/test-sys_socket.c (main): Mark otherwise unused variables
29000         as "used" explicitly via (void) statement casts.  This is more
29001         readable than using them in an artificial return expression.
29002         Suggestion from Bruno Haible.
29003
29004 2010-06-11  Bruno Haible  <bruno@clisp.org>
29005
29006         Avoid some more warnings from "gcc -Wwrite-strings".
29007         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
29008         to 'const char *'.
29009         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
29010         * tests/test-c-strcasestr.c (main): Likewise.
29011         * tests/test-mbscasestr1.c (main): Likewise.
29012         * tests/test-mbscasestr2.c (main): Likewise.
29013         * tests/test-memmem.c (main): Likewise.
29014         * tests/test-strstr.c (main): Likewise.
29015         * tests/test-strcasestr.c (main): Likewise.
29016
29017 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29018
29019         init.sh: change framework_failure_ to fail with status 99, not 1
29020         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
29021         automake's parallel-tests rule that this is an unexpected failure,
29022         even if the test is listed in XFAIL_TESTS.
29023
29024 2010-06-11  Jim Meyering  <meyering@redhat.com>
29025
29026         test-inttostr: avoid warnings about 4-6KB literal strings
29027         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
29028         Include "macros.h", for its definition of ASSERT.
29029         (CK): s/assert/ASSERT/
29030         * modules/inttostr-tests (Files): Add macros.h.
29031
29032         init.sh: don't use $ME_ or skip_ before they are defined
29033         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
29034         their first uses.  Also hoist their companions: warn_, fail_,
29035         framework_failure_, $stderr_fileno.  Prompted by a patch from
29036         Stefano Lattarini.
29037
29038         test-sys_socket: avoid set-but-not-used warnings from gcc
29039         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
29040         avoid warning about set-but-not-used variables.
29041
29042         test-xvasprintf: avoid 'const' discard warnings
29043         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
29044         "const" when assigning from literal strings.
29045         (test_xasprintf): Add "void" in function argument list to placate
29046         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
29047
29048         tests: avoid compilation warnings in argmatch and exclude tests...
29049         in packages that define ARGMATCH_DIE_DECL, like coreutils.
29050         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
29051         Since it always exits, declare with the "noreturn" attribute.
29052         * tests/test-argmatch.c: Likewise.
29053
29054         tests: avoid 'const' discard warnings in mbsstr tests
29055         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
29056         * tests/test-mbsstr2.c (main): Likewise.
29057
29058         test-verify: avoid warning from gcc's -Wmissing-declarations
29059         * tests/test-verify.c (function): Declare to be static.
29060
29061         test-inttostr.c: include <string.h> for use of strcmp
29062         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
29063
29064         test-linkat: avoid failed assertion on "other" architectures
29065         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
29066         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
29067         sparc: https://bugs.launchpad.net/bugs/591968
29068
29069 2010-06-11  Jim Meyering  <meyering@redhat.com>
29070
29071         printf.m4: avoid autoconf's "Expanded Before Required" warning
29072         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
29073         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
29074         autoconf warning.
29075
29076 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
29077
29078         Replacement header templates are now named with ".in", not "_".
29079         * doc/gnulib-intro.texi: Correct.
29080
29081 2010-06-10  Jim Meyering  <meyering@redhat.com>
29082
29083         inttostr-tests: depend on snprintf, not snprintf-posix
29084         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
29085         snprintf-posix, to avoid this aclocal failure:
29086           missing file gnulib-tests/vasnprintf.c
29087           configure.ac:45: error: expected source file, required through \
29088           AC_LIBSOURCES, not found
29089
29090 2010-06-10  Jim Meyering  <meyering@redhat.com>
29091
29092         inttostr: add a new function, inttostr, and tests
29093         The namesake function was not available.  The existence of the
29094         template file, inttostr.c makes its addition nontrivial.
29095         * lib/anytostr.c: Rename from inttostr.c.
29096         (anytostr): Rename from inttostr.
29097         * lib/inttostr.c: New file.
29098         * modules/inttostr (Files): Add anytostr.c.
29099         (Makefile.am): Set lib_SOURCES instead of ...
29100         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
29101         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
29102         * lib/offtostr.c: Likewise.
29103         * lib/uinttostr.c: Likewise.
29104         * lib/umaxtostr.c: Likewise.
29105         * modules/inttostr-tests: New file.
29106         * tests/test-inttostr.c: New file.  Test these functions.
29107
29108 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
29109             Bruno Haible  <bruno@clisp.org>
29110
29111         Add "Extending Gnulib" chapter to manual.
29112         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
29113         chapter.
29114         (Extending Gnulib): New chapter.
29115         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
29116         chapter.
29117
29118 2010-06-09  Bruno Haible  <bruno@clisp.org>
29119
29120         Avoid relocwrapper link errors due to gnulib replacement functions.
29121         * lib/areadlink.c: Use the system's malloc, realloc functions.
29122         (areadlink): Set errno to ENOMEM explicitly.
29123         * modules/areadlink (Depends-on): Remove malloc-posix.
29124         Reported by Ben Pfaff <blp@cs.stanford.edu>.
29125
29126 2010-06-09  Bruno Haible  <bruno@clisp.org>
29127
29128         Avoid relocwrapper link errors due to gnulib replacement functions.
29129         * lib/canonicalize-lgpl.c: Use the system's malloc function.
29130         * lib/malloca.c: Likewise.
29131         * lib/relocatable.c: Likewise.
29132         * lib/progreloc.c: Use the system's malloc, sprintf functions.
29133         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
29134         * lib/setenv.c: Use the system's malloc, realloc functions.
29135         * lib/strerror.c: Use the system's sprintf function.
29136         Reported by Ben Pfaff <blp@cs.stanford.edu>.
29137
29138 2010-06-04  Bruno Haible  <bruno@clisp.org>
29139
29140         Prefer documented low-level autoconf macro names.
29141         * m4/lib-link.m4: Use m4_translit instead of translit.
29142         * m4/environ.m4: Likewise.
29143         * m4/mathfunc.m4: Likewise.
29144         * m4/onceonly.m4: Likewise.
29145         * m4/stdint.m4: Likewise.
29146         Suggested by Eric Blake.
29147
29148 2010-06-04  Martin Lambers  <marlam@marlam.de>
29149             Bruno Haible  <bruno@clisp.org>
29150
29151         havelib: Allow library names with '+' characters.
29152         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
29153         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
29154
29155 2010-06-09  Bruno Haible  <bruno@clisp.org>
29156
29157         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
29158         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
29159         realloc failed.
29160
29161 2010-06-08  Peter Simons  <simons@cryp.to>
29162
29163         maint.mk: make the news-check rule more configurable
29164         * top/maint.mk (news-check-lines-spec): New variable.
29165         (news-check): Use "sed -n 1,10p" in place of "head".
29166
29167 2010-06-07  Jim Meyering  <meyering@redhat.com>
29168
29169         do-release-commit-and-tag: fix typo in --help
29170         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
29171
29172         regex: avoid new dead-code warning with gcc-4.6.0
29173         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
29174         if-block containing a while-loop.  It's been unused for at least
29175         5 years.
29176
29177 2010-06-05  Bruno Haible  <bruno@clisp.org>
29178
29179         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
29180         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
29181
29182 2010-06-04  Bruno Haible  <bruno@clisp.org>
29183
29184         Update to GNU gettext 0.18.1.
29185         * modules/gettext (configure.ac): Require gettext infrastructure from
29186         version 0.18.1.
29187
29188 2010-06-03  Bruno Haible  <bruno@clisp.org>
29189
29190         Don't use AC_LIBOBJ with file names in subdirectories.
29191         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
29192         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
29193         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
29194         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
29195         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
29196         gl_LIBUNISTRING_LIBSOURCE.
29197         (Makefile.am): Augment lib_SOURCES here, conditionally.
29198         * NEWS: Drop requirement for Automake option 'subdir-objects'.
29199
29200 2010-06-03  Bruno Haible  <bruno@clisp.org>
29201
29202         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
29203         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
29204         expansion does not end with a newline.
29205         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
29206         unnecessary newline.
29207
29208 2010-06-03  Bruno Haible  <bruno@clisp.org>
29209
29210         Reduce dependencies.
29211         * tests/test-quotearg.h: New file, extracted from
29212         tests/test-quotearg.c.
29213         * tests/test-quotearg-simple.c: New file, extracted from
29214         tests/test-quotearg.c.
29215         * tests/test-quotearg.c: Don't include <ctype.h>.
29216         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
29217         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
29218         use_quote_double_quotes, use_quotearg_colon): Moved to
29219         tests/test-quotearg.h.
29220         (results_g, flag_results, custom_quotes, custom_results): Moved
29221         to tests/test-quotearg-simple.c.
29222         (main): Moved the part that does not depend on gettext to
29223         tests/test-quotearg-simple.c. Return 77 if the test cannot be
29224         performed.
29225         * modules/quotearg-simple: New file.
29226         * modules/quotearg-simple-tests: New file.
29227         * modules/quotearg (Depends-on): Add quotearg-simple.
29228         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
29229         (Files): Add tests/test-quotearg.h.
29230         Reported by Paolo Bonzini.
29231
29232 2010-06-03  Bruno Haible  <bruno@clisp.org>
29233
29234         Reduce dependencies.
29235         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
29236
29237 2010-06-03  Bruno Haible  <bruno@clisp.org>
29238
29239         time: Undefine more broken macros.
29240         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
29241         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
29242         Reported by Eric Blake.
29243
29244 2010-06-03  Bruno Haible  <bruno@clisp.org>
29245
29246         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
29247         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
29248         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
29249         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
29250         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
29251         Reported by Ludovic Courtès <ludo@gnu.org>.
29252
29253 2010-06-02  Eric Blake  <eblake@redhat.com>
29254
29255         time: work with mingw + pthreads-win32 library
29256         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
29257         if timespec is defined only in pthread.h.
29258         * modules/time (Makefile.am): Substitute it.
29259         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
29260         <pthread.h>, when needed.
29261         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
29262         from the library.
29263
29264 2010-05-31  Bruno Haible  <bruno@clisp.org>
29265
29266         Avoid expanding two macros in the wrong order.
29267         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
29268         gl_LIBUNISTRING if it is defined.
29269         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
29270         autoconf >= 2.64.
29271         Reported by Ludovic Courtès <ludo@gnu.org>.
29272
29273 2010-05-27  Jim Meyering  <meyering@redhat.com>
29274
29275         maint.mk: also prohibit "#undef" of always-defined symbols
29276         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
29277         Allow more than one space before the symbol name.
29278         (sc_prohibit_always-defined_macros): Use grep's -E, now that
29279         the regexp uses alternation.
29280
29281 2010-05-26  Eric Blake  <eblake@redhat.com>
29282
29283         maint.mk: avoid echo -e
29284         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
29285         Convert all uses of echo -* to printf.
29286         Reported by Matthias Bolte.
29287
29288 2010-05-25  Bruno Haible  <bruno@clisp.org>
29289
29290         Update to GNU gettext 0.18, part 2.
29291         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
29292         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
29293
29294 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29295
29296         Add missing include in test-pwrite.c.
29297         * tests/test-pwrite.c: Include string.h, for strcmp.
29298
29299 2010-05-24  Bruno Haible  <bruno@clisp.org>
29300
29301         * NEWS: Mention requirement for Automake option 'subdir-objects'.
29302
29303 2010-05-24  Bruno Haible  <bruno@clisp.org>
29304
29305         Don't use conversion with transliteration in u{8,16,32}_strcoll.
29306         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
29307         iconveh_error argument.
29308         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
29309         U_STRCONV_TO_LOCALE.
29310         * lib/unistr/u16-strcoll.c: Likewise.
29311         * lib/unistr/u32-strcoll.c: Likewise.
29312         * modules/unistr/u8-strcoll (Depends-on): Add
29313         uniconv/u8-strconv-to-enc, localcharset. Remove
29314         uniconv/u8-strconv-to-locale.
29315         (configure.ac): Bump version number.
29316         * modules/unistr/u16-strcoll (Depends-on): Add
29317         uniconv/u16-strconv-to-enc, localcharset. Remove
29318         uniconv/u16-strconv-to-locale.
29319         (configure.ac): Bump version number.
29320         * modules/unistr/u32-strcoll (Depends-on): Add
29321         uniconv/u32-strconv-to-enc, localcharset. Remove
29322         uniconv/u32-strconv-to-locale.
29323         (configure.ac): Bump version number.
29324
29325 2010-05-24  Bruno Haible  <bruno@clisp.org>
29326
29327         Avoid a test failure on NetBSD 5.0.
29328         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
29329         an iconv() bug.
29330
29331 2010-05-24  Bruno Haible  <bruno@clisp.org>
29332
29333         Adjust #include directive style.
29334         * modules/regex (Includes): Recommend to write <regex.h>.
29335
29336 2010-05-24  Bruno Haible  <bruno@clisp.org>
29337
29338         regex: Don't require alloca.
29339         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
29340         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
29341         only inside if (0).
29342
29343 2010-05-23  Jim Meyering  <meyering@redhat.com>
29344
29345         test-renameat.c: include <sys/stat.h>
29346         * tests/test-renameat.c: Include <sys/stat.h>; required for
29347         definition of S_IS* macros.
29348
29349 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
29350
29351         Update maintainer documentation for 'relocatable-prog' module.
29352         * doc/relocatable-maint.texi: Update.
29353         Comments by Bruno Haible.
29354
29355 2010-05-23  Bruno Haible  <bruno@clisp.org>
29356
29357         git-merge-changelog: Enable --split-merged-entry by default.
29358         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
29359         (usage): Don't mention this option any more.
29360         Reported by Ralf Wildenhues.
29361
29362 2010-05-23  Jim Meyering  <meyering@redhat.com>
29363
29364         test-pwrite: do not leave behind a test file named "out"
29365         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
29366         The trivial-looking use of init.sh is really necessary.
29367         It ensures that the temporary file, "out", is created in
29368         a temporary directory, and removed upon termination.
29369         * tests/test-pwrite.sh: Re-add file.
29370         * modules/pwrite-tests: Reference it.
29371
29372 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29373
29374         Fix output redirection buglet in init.sh.
29375         * tests/init.sh: Fix redirection of stderr.
29376
29377 2010-05-20  Simon Josefsson  <simon@josefsson.org>
29378
29379         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
29380
29381 2010-05-17  Simon Josefsson  <simon@josefsson.org>
29382
29383         * modules/valgrind-tests: New file.
29384         * m4/valgrind-tests.m4: New file.
29385         * doc/valgrind-tests.texi: New file.
29386         * doc/gnulib.texi (Running self-tests under valgrind): New
29387         section.
29388
29389 2010-05-19  Bruno Haible  <bruno@clisp.org>
29390
29391         Clean up dead code in recent commit.
29392         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
29393         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
29394         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
29395         Suggested by Paolo Bonzini.
29396
29397 2010-05-19  Bruno Haible  <bruno@clisp.org>
29398
29399         Avoid valgrind error reports from libunistring.
29400         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
29401         * modules/libunistring (Files): Add it.
29402         * modules/libunistring-optional (Files): Likewise.
29403
29404 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
29405             Bruno Haible  <bruno@clisp.org>
29406
29407         New module 'libunistring-optional'.
29408         * modules/libunistring-optional: New file.
29409         * m4/libunistring-base.m4: New file.
29410         * m4/libunistring-optional.m4: New file.
29411         * lib/unicase.in.h: Renamed from lib/unicase.h.
29412         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
29413         * lib/unictype.in.h: Renamed from lib/unictype.h.
29414         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
29415         * lib/uniname.in.h: Renamed from lib/uniname.h.
29416         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
29417         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
29418         * lib/unistr.in.h: Renamed from lib/unistr.h.
29419         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
29420         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
29421         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
29422         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
29423         gl_LIBUNISTRING. If the library was found, determine the installed
29424         version and set LIBUNISTRING_VERSION.
29425         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
29426         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
29427         handle a configuration option --with-included-libunistring.
29428         * modules/libunistring (Files): Add m4/absolute-header.m4.
29429         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
29430         Add m4/libunistring-base.m4.
29431         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29432         (Makefile.am): Build unicase.h from unicase.in.h.
29433         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
29434         Add m4/libunistring-base.m4.
29435         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29436         (Makefile.am): Build uniconv.h from uniconv.in.h.
29437         * modules/unictype/base (Files): Use unictype.in.h instead of
29438         unictype.h. Add m4/libunistring-base.m4.
29439         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29440         (Makefile.am): Build unictype.h from unictype.in.h.
29441         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
29442         Add m4/libunistring-base.m4.
29443         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29444         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
29445         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
29446         Add m4/libunistring-base.m4.
29447         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29448         (Makefile.am): Build uniname.h from uniname.in.h.
29449         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
29450         Add m4/libunistring-base.m4.
29451         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29452         (Makefile.am): Build uninorm.h from uninorm.in.h.
29453         * modules/unistdio/base (Files): Use unistdio.in.h instead of
29454         unistdio.h. Add m4/libunistring-base.m4.
29455         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29456         (Makefile.am): Build unistdio.h from unistdio.in.h.
29457         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
29458         Add m4/libunistring-base.m4.
29459         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29460         (Makefile.am): Build unistr.h from unistr.in.h.
29461         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
29462         Add m4/libunistring-base.m4.
29463         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29464         (Makefile.am): Build unitypes.h from unitypes.in.h.
29465         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
29466         Add m4/libunistring-base.m4.
29467         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29468         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
29469         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
29470         uniwidth.h. Add m4/libunistring-base.m4.
29471         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29472         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
29473         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
29474         instead of augmenting lib_SOURCES.
29475         * modules/unicase/empty-suffix-context: Likewise.
29476         * modules/unicase/locale-language: Likewise.
29477         * modules/unicase/tolower: Likewise.
29478         * modules/unicase/totitle: Likewise.
29479         * modules/unicase/toupper: Likewise.
29480         * modules/unicase/u8-casecmp: Likewise.
29481         * modules/unicase/u8-casecoll: Likewise.
29482         * modules/unicase/u8-casefold: Likewise.
29483         * modules/unicase/u8-casexfrm: Likewise.
29484         * modules/unicase/u8-ct-casefold: Likewise.
29485         * modules/unicase/u8-ct-tolower: Likewise.
29486         * modules/unicase/u8-ct-totitle: Likewise.
29487         * modules/unicase/u8-ct-toupper: Likewise.
29488         * modules/unicase/u8-is-cased: Likewise.
29489         * modules/unicase/u8-is-casefolded: Likewise.
29490         * modules/unicase/u8-is-lowercase: Likewise.
29491         * modules/unicase/u8-is-titlecase: Likewise.
29492         * modules/unicase/u8-is-uppercase: Likewise.
29493         * modules/unicase/u8-prefix-context: Likewise.
29494         * modules/unicase/u8-suffix-context: Likewise.
29495         * modules/unicase/u8-tolower: Likewise.
29496         * modules/unicase/u8-totitle: Likewise.
29497         * modules/unicase/u8-toupper: Likewise.
29498         * modules/unicase/u16-casecmp: Likewise.
29499         * modules/unicase/u16-casecoll: Likewise.
29500         * modules/unicase/u16-casefold: Likewise.
29501         * modules/unicase/u16-casexfrm: Likewise.
29502         * modules/unicase/u16-ct-casefold: Likewise.
29503         * modules/unicase/u16-ct-tolower: Likewise.
29504         * modules/unicase/u16-ct-totitle: Likewise.
29505         * modules/unicase/u16-ct-toupper: Likewise.
29506         * modules/unicase/u16-is-cased: Likewise.
29507         * modules/unicase/u16-is-casefolded: Likewise.
29508         * modules/unicase/u16-is-lowercase: Likewise.
29509         * modules/unicase/u16-is-titlecase: Likewise.
29510         * modules/unicase/u16-is-uppercase: Likewise.
29511         * modules/unicase/u16-prefix-context: Likewise.
29512         * modules/unicase/u16-suffix-context: Likewise.
29513         * modules/unicase/u16-tolower: Likewise.
29514         * modules/unicase/u16-totitle: Likewise.
29515         * modules/unicase/u16-toupper: Likewise.
29516         * modules/unicase/u32-casecmp: Likewise.
29517         * modules/unicase/u32-casecoll: Likewise.
29518         * modules/unicase/u32-casefold: Likewise.
29519         * modules/unicase/u32-casexfrm: Likewise.
29520         * modules/unicase/u32-ct-casefold: Likewise.
29521         * modules/unicase/u32-ct-tolower: Likewise.
29522         * modules/unicase/u32-ct-totitle: Likewise.
29523         * modules/unicase/u32-ct-toupper: Likewise.
29524         * modules/unicase/u32-is-cased: Likewise.
29525         * modules/unicase/u32-is-casefolded: Likewise.
29526         * modules/unicase/u32-is-lowercase: Likewise.
29527         * modules/unicase/u32-is-titlecase: Likewise.
29528         * modules/unicase/u32-is-uppercase: Likewise.
29529         * modules/unicase/u32-prefix-context: Likewise.
29530         * modules/unicase/u32-suffix-context: Likewise.
29531         * modules/unicase/u32-tolower: Likewise.
29532         * modules/unicase/u32-totitle: Likewise.
29533         * modules/unicase/u32-toupper: Likewise.
29534         * modules/unicase/ulc-casecmp: Likewise.
29535         * modules/unicase/ulc-casecoll: Likewise.
29536         * modules/unicase/ulc-casexfrm: Likewise.
29537         * modules/uniconv/u8-conv-from-enc: Likewise.
29538         * modules/uniconv/u8-conv-to-enc: Likewise.
29539         * modules/uniconv/u8-strconv-from-enc: Likewise.
29540         * modules/uniconv/u8-strconv-from-locale: Likewise.
29541         * modules/uniconv/u8-strconv-to-enc: Likewise.
29542         * modules/uniconv/u8-strconv-to-locale: Likewise.
29543         * modules/uniconv/u16-conv-from-enc: Likewise.
29544         * modules/uniconv/u16-conv-to-enc: Likewise.
29545         * modules/uniconv/u16-strconv-from-enc: Likewise.
29546         * modules/uniconv/u16-strconv-from-locale: Likewise.
29547         * modules/uniconv/u16-strconv-to-enc: Likewise.
29548         * modules/uniconv/u16-strconv-to-locale: Likewise.
29549         * modules/uniconv/u32-conv-from-enc: Likewise.
29550         * modules/uniconv/u32-conv-to-enc: Likewise.
29551         * modules/uniconv/u32-strconv-from-enc: Likewise.
29552         * modules/uniconv/u32-strconv-from-locale: Likewise.
29553         * modules/uniconv/u32-strconv-to-enc: Likewise.
29554         * modules/uniconv/u32-strconv-to-locale: Likewise.
29555         * modules/unictype/bidicategory-byname: Likewise.
29556         * modules/unictype/bidicategory-name: Likewise.
29557         * modules/unictype/bidicategory-of: Likewise.
29558         * modules/unictype/bidicategory-test: Likewise.
29559         * modules/unictype/block-list: Likewise.
29560         * modules/unictype/block-test: Likewise.
29561         * modules/unictype/category-C: Likewise.
29562         * modules/unictype/category-Cc: Likewise.
29563         * modules/unictype/category-Cf: Likewise.
29564         * modules/unictype/category-Cn: Likewise.
29565         * modules/unictype/category-Co: Likewise.
29566         * modules/unictype/category-Cs: Likewise.
29567         * modules/unictype/category-L: Likewise.
29568         * modules/unictype/category-Ll: Likewise.
29569         * modules/unictype/category-Lm: Likewise.
29570         * modules/unictype/category-Lo: Likewise.
29571         * modules/unictype/category-Lt: Likewise.
29572         * modules/unictype/category-Lu: Likewise.
29573         * modules/unictype/category-M: Likewise.
29574         * modules/unictype/category-Mc: Likewise.
29575         * modules/unictype/category-Me: Likewise.
29576         * modules/unictype/category-Mn: Likewise.
29577         * modules/unictype/category-N: Likewise.
29578         * modules/unictype/category-Nd: Likewise.
29579         * modules/unictype/category-Nl: Likewise.
29580         * modules/unictype/category-No: Likewise.
29581         * modules/unictype/category-P: Likewise.
29582         * modules/unictype/category-Pc: Likewise.
29583         * modules/unictype/category-Pd: Likewise.
29584         * modules/unictype/category-Pe: Likewise.
29585         * modules/unictype/category-Pf: Likewise.
29586         * modules/unictype/category-Pi: Likewise.
29587         * modules/unictype/category-Po: Likewise.
29588         * modules/unictype/category-Ps: Likewise.
29589         * modules/unictype/category-S: Likewise.
29590         * modules/unictype/category-Sc: Likewise.
29591         * modules/unictype/category-Sk: Likewise.
29592         * modules/unictype/category-Sm: Likewise.
29593         * modules/unictype/category-So: Likewise.
29594         * modules/unictype/category-Z: Likewise.
29595         * modules/unictype/category-Zl: Likewise.
29596         * modules/unictype/category-Zp: Likewise.
29597         * modules/unictype/category-Zs: Likewise.
29598         * modules/unictype/category-and: Likewise.
29599         * modules/unictype/category-and-not: Likewise.
29600         * modules/unictype/category-byname: Likewise.
29601         * modules/unictype/category-name: Likewise.
29602         * modules/unictype/category-none: Likewise.
29603         * modules/unictype/category-of: Likewise.
29604         * modules/unictype/category-or: Likewise.
29605         * modules/unictype/category-test: Likewise.
29606         * modules/unictype/combining-class: Likewise.
29607         * modules/unictype/ctype-alnum: Likewise.
29608         * modules/unictype/ctype-alpha: Likewise.
29609         * modules/unictype/ctype-blank: Likewise.
29610         * modules/unictype/ctype-cntrl: Likewise.
29611         * modules/unictype/ctype-digit: Likewise.
29612         * modules/unictype/ctype-graph: Likewise.
29613         * modules/unictype/ctype-lower: Likewise.
29614         * modules/unictype/ctype-print: Likewise.
29615         * modules/unictype/ctype-punct: Likewise.
29616         * modules/unictype/ctype-space: Likewise.
29617         * modules/unictype/ctype-upper: Likewise.
29618         * modules/unictype/ctype-xdigit: Likewise.
29619         * modules/unictype/decimal-digit: Likewise.
29620         * modules/unictype/digit: Likewise.
29621         * modules/unictype/mirror: Likewise.
29622         * modules/unictype/numeric: Likewise.
29623         * modules/unictype/property-alphabetic: Likewise.
29624         * modules/unictype/property-ascii-hex-digit: Likewise.
29625         * modules/unictype/property-bidi-arabic-digit: Likewise.
29626         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
29627         * modules/unictype/property-bidi-block-separator: Likewise.
29628         * modules/unictype/property-bidi-boundary-neutral: Likewise.
29629         * modules/unictype/property-bidi-common-separator: Likewise.
29630         * modules/unictype/property-bidi-control: Likewise.
29631         * modules/unictype/property-bidi-embedding-or-override: Likewise.
29632         * modules/unictype/property-bidi-eur-num-separator: Likewise.
29633         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
29634         * modules/unictype/property-bidi-european-digit: Likewise.
29635         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
29636         * modules/unictype/property-bidi-left-to-right: Likewise.
29637         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
29638         * modules/unictype/property-bidi-other-neutral: Likewise.
29639         * modules/unictype/property-bidi-pdf: Likewise.
29640         * modules/unictype/property-bidi-segment-separator: Likewise.
29641         * modules/unictype/property-bidi-whitespace: Likewise.
29642         * modules/unictype/property-byname: Likewise.
29643         * modules/unictype/property-combining: Likewise.
29644         * modules/unictype/property-composite: Likewise.
29645         * modules/unictype/property-currency-symbol: Likewise.
29646         * modules/unictype/property-dash: Likewise.
29647         * modules/unictype/property-decimal-digit: Likewise.
29648         * modules/unictype/property-default-ignorable-code-point: Likewise.
29649         * modules/unictype/property-deprecated: Likewise.
29650         * modules/unictype/property-diacritic: Likewise.
29651         * modules/unictype/property-extender: Likewise.
29652         * modules/unictype/property-format-control: Likewise.
29653         * modules/unictype/property-grapheme-base: Likewise.
29654         * modules/unictype/property-grapheme-extend: Likewise.
29655         * modules/unictype/property-grapheme-link: Likewise.
29656         * modules/unictype/property-hex-digit: Likewise.
29657         * modules/unictype/property-hyphen: Likewise.
29658         * modules/unictype/property-id-continue: Likewise.
29659         * modules/unictype/property-id-start: Likewise.
29660         * modules/unictype/property-ideographic: Likewise.
29661         * modules/unictype/property-ids-binary-operator: Likewise.
29662         * modules/unictype/property-ids-trinary-operator: Likewise.
29663         * modules/unictype/property-ignorable-control: Likewise.
29664         * modules/unictype/property-iso-control: Likewise.
29665         * modules/unictype/property-join-control: Likewise.
29666         * modules/unictype/property-left-of-pair: Likewise.
29667         * modules/unictype/property-line-separator: Likewise.
29668         * modules/unictype/property-logical-order-exception: Likewise.
29669         * modules/unictype/property-lowercase: Likewise.
29670         * modules/unictype/property-math: Likewise.
29671         * modules/unictype/property-non-break: Likewise.
29672         * modules/unictype/property-not-a-character: Likewise.
29673         * modules/unictype/property-numeric: Likewise.
29674         * modules/unictype/property-other-alphabetic: Likewise.
29675         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
29676         * modules/unictype/property-other-grapheme-extend: Likewise.
29677         * modules/unictype/property-other-id-continue: Likewise.
29678         * modules/unictype/property-other-id-start: Likewise.
29679         * modules/unictype/property-other-lowercase: Likewise.
29680         * modules/unictype/property-other-math: Likewise.
29681         * modules/unictype/property-other-uppercase: Likewise.
29682         * modules/unictype/property-paired-punctuation: Likewise.
29683         * modules/unictype/property-paragraph-separator: Likewise.
29684         * modules/unictype/property-pattern-syntax: Likewise.
29685         * modules/unictype/property-pattern-white-space: Likewise.
29686         * modules/unictype/property-private-use: Likewise.
29687         * modules/unictype/property-punctuation: Likewise.
29688         * modules/unictype/property-quotation-mark: Likewise.
29689         * modules/unictype/property-radical: Likewise.
29690         * modules/unictype/property-sentence-terminal: Likewise.
29691         * modules/unictype/property-soft-dotted: Likewise.
29692         * modules/unictype/property-space: Likewise.
29693         * modules/unictype/property-terminal-punctuation: Likewise.
29694         * modules/unictype/property-test: Likewise.
29695         * modules/unictype/property-titlecase: Likewise.
29696         * modules/unictype/property-unassigned-code-value: Likewise.
29697         * modules/unictype/property-unified-ideograph: Likewise.
29698         * modules/unictype/property-uppercase: Likewise.
29699         * modules/unictype/property-variation-selector: Likewise.
29700         * modules/unictype/property-white-space: Likewise.
29701         * modules/unictype/property-xid-continue: Likewise.
29702         * modules/unictype/property-xid-start: Likewise.
29703         * modules/unictype/property-zero-width: Likewise.
29704         * modules/unictype/scripts: Likewise.
29705         * modules/unictype/syntax-c-ident: Likewise.
29706         * modules/unictype/syntax-c-whitespace: Likewise.
29707         * modules/unictype/syntax-java-ident: Likewise.
29708         * modules/unictype/syntax-java-whitespace: Likewise.
29709         * modules/unilbrk/u8-possible-linebreaks: Likewise.
29710         * modules/unilbrk/u8-width-linebreaks: Likewise.
29711         * modules/unilbrk/u16-possible-linebreaks: Likewise.
29712         * modules/unilbrk/u16-width-linebreaks: Likewise.
29713         * modules/unilbrk/u32-possible-linebreaks: Likewise.
29714         * modules/unilbrk/u32-width-linebreaks: Likewise.
29715         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
29716         * modules/unilbrk/ulc-width-linebreaks: Likewise.
29717         * modules/uniname/uniname: Likewise.
29718         * modules/uninorm/canonical-decomposition: Likewise.
29719         * modules/uninorm/composition: Likewise.
29720         * modules/uninorm/decomposing-form: Likewise.
29721         * modules/uninorm/decomposition: Likewise.
29722         * modules/uninorm/filter: Likewise.
29723         * modules/uninorm/nfc: Likewise.
29724         * modules/uninorm/nfd: Likewise.
29725         * modules/uninorm/nfkc: Likewise.
29726         * modules/uninorm/nfkd: Likewise.
29727         * modules/uninorm/u8-normalize: Likewise.
29728         * modules/uninorm/u8-normcmp: Likewise.
29729         * modules/uninorm/u8-normcoll: Likewise.
29730         * modules/uninorm/u8-normxfrm: Likewise.
29731         * modules/uninorm/u16-normalize: Likewise.
29732         * modules/uninorm/u16-normcmp: Likewise.
29733         * modules/uninorm/u16-normcoll: Likewise.
29734         * modules/uninorm/u16-normxfrm: Likewise.
29735         * modules/uninorm/u32-normalize: Likewise.
29736         * modules/uninorm/u32-normcmp: Likewise.
29737         * modules/uninorm/u32-normcoll: Likewise.
29738         * modules/uninorm/u32-normxfrm: Likewise.
29739         * modules/unistdio/u8-asnprintf: Likewise.
29740         * modules/unistdio/u8-asprintf: Likewise.
29741         * modules/unistdio/u8-snprintf: Likewise.
29742         * modules/unistdio/u8-sprintf: Likewise.
29743         * modules/unistdio/u8-u8-asnprintf: Likewise.
29744         * modules/unistdio/u8-u8-asprintf: Likewise.
29745         * modules/unistdio/u8-u8-snprintf: Likewise.
29746         * modules/unistdio/u8-u8-sprintf: Likewise.
29747         * modules/unistdio/u8-u8-vasnprintf: Likewise.
29748         * modules/unistdio/u8-u8-vasprintf: Likewise.
29749         * modules/unistdio/u8-u8-vsnprintf: Likewise.
29750         * modules/unistdio/u8-u8-vsprintf: Likewise.
29751         * modules/unistdio/u8-vasnprintf: Likewise.
29752         * modules/unistdio/u8-vasprintf: Likewise.
29753         * modules/unistdio/u8-vsnprintf: Likewise.
29754         * modules/unistdio/u8-vsprintf: Likewise.
29755         * modules/unistdio/u16-asnprintf: Likewise.
29756         * modules/unistdio/u16-asprintf: Likewise.
29757         * modules/unistdio/u16-snprintf: Likewise.
29758         * modules/unistdio/u16-sprintf: Likewise.
29759         * modules/unistdio/u16-u16-asnprintf: Likewise.
29760         * modules/unistdio/u16-u16-asprintf: Likewise.
29761         * modules/unistdio/u16-u16-snprintf: Likewise.
29762         * modules/unistdio/u16-u16-sprintf: Likewise.
29763         * modules/unistdio/u16-u16-vasnprintf: Likewise.
29764         * modules/unistdio/u16-u16-vasprintf: Likewise.
29765         * modules/unistdio/u16-u16-vsnprintf: Likewise.
29766         * modules/unistdio/u16-u16-vsprintf: Likewise.
29767         * modules/unistdio/u16-vasnprintf: Likewise.
29768         * modules/unistdio/u16-vasprintf: Likewise.
29769         * modules/unistdio/u16-vsnprintf: Likewise.
29770         * modules/unistdio/u16-vsprintf: Likewise.
29771         * modules/unistdio/u32-asnprintf: Likewise.
29772         * modules/unistdio/u32-asprintf: Likewise.
29773         * modules/unistdio/u32-snprintf: Likewise.
29774         * modules/unistdio/u32-sprintf: Likewise.
29775         * modules/unistdio/u32-u32-asnprintf: Likewise.
29776         * modules/unistdio/u32-u32-asprintf: Likewise.
29777         * modules/unistdio/u32-u32-snprintf: Likewise.
29778         * modules/unistdio/u32-u32-sprintf: Likewise.
29779         * modules/unistdio/u32-u32-vasnprintf: Likewise.
29780         * modules/unistdio/u32-u32-vasprintf: Likewise.
29781         * modules/unistdio/u32-u32-vsnprintf: Likewise.
29782         * modules/unistdio/u32-u32-vsprintf: Likewise.
29783         * modules/unistdio/u32-vasnprintf: Likewise.
29784         * modules/unistdio/u32-vasprintf: Likewise.
29785         * modules/unistdio/u32-vsnprintf: Likewise.
29786         * modules/unistdio/u32-vsprintf: Likewise.
29787         * modules/unistdio/ulc-asnprintf: Likewise.
29788         * modules/unistdio/ulc-asprintf: Likewise.
29789         * modules/unistdio/ulc-fprintf: Likewise.
29790         * modules/unistdio/ulc-snprintf: Likewise.
29791         * modules/unistdio/ulc-sprintf: Likewise.
29792         * modules/unistdio/ulc-vasnprintf: Likewise.
29793         * modules/unistdio/ulc-vasprintf: Likewise.
29794         * modules/unistdio/ulc-vfprintf: Likewise.
29795         * modules/unistdio/ulc-vsnprintf: Likewise.
29796         * modules/unistdio/ulc-vsprintf: Likewise.
29797         * modules/unistr/u8-check: Likewise.
29798         * modules/unistr/u8-chr: Likewise.
29799         * modules/unistr/u8-cmp: Likewise.
29800         * modules/unistr/u8-cmp2: Likewise.
29801         * modules/unistr/u8-cpy: Likewise.
29802         * modules/unistr/u8-cpy-alloc: Likewise.
29803         * modules/unistr/u8-endswith: Likewise.
29804         * modules/unistr/u8-mblen: Likewise.
29805         * modules/unistr/u8-mbsnlen: Likewise.
29806         * modules/unistr/u8-mbtouc: Likewise.
29807         * modules/unistr/u8-mbtouc-unsafe: Likewise.
29808         * modules/unistr/u8-mbtoucr: Likewise.
29809         * modules/unistr/u8-move: Likewise.
29810         * modules/unistr/u8-next: Likewise.
29811         * modules/unistr/u8-prev: Likewise.
29812         * modules/unistr/u8-set: Likewise.
29813         * modules/unistr/u8-startswith: Likewise.
29814         * modules/unistr/u8-stpcpy: Likewise.
29815         * modules/unistr/u8-stpncpy: Likewise.
29816         * modules/unistr/u8-strcat: Likewise.
29817         * modules/unistr/u8-strchr: Likewise.
29818         * modules/unistr/u8-strcmp: Likewise.
29819         * modules/unistr/u8-strcoll: Likewise.
29820         * modules/unistr/u8-strcpy: Likewise.
29821         * modules/unistr/u8-strcspn: Likewise.
29822         * modules/unistr/u8-strdup: Likewise.
29823         * modules/unistr/u8-strlen: Likewise.
29824         * modules/unistr/u8-strmblen: Likewise.
29825         * modules/unistr/u8-strmbtouc: Likewise.
29826         * modules/unistr/u8-strncat: Likewise.
29827         * modules/unistr/u8-strncmp: Likewise.
29828         * modules/unistr/u8-strncpy: Likewise.
29829         * modules/unistr/u8-strnlen: Likewise.
29830         * modules/unistr/u8-strpbrk: Likewise.
29831         * modules/unistr/u8-strrchr: Likewise.
29832         * modules/unistr/u8-strspn: Likewise.
29833         * modules/unistr/u8-strstr: Likewise.
29834         * modules/unistr/u8-strtok: Likewise.
29835         * modules/unistr/u8-to-u16: Likewise.
29836         * modules/unistr/u8-to-u32: Likewise.
29837         * modules/unistr/u8-uctomb: Likewise.
29838         * modules/unistr/u16-check: Likewise.
29839         * modules/unistr/u16-chr: Likewise.
29840         * modules/unistr/u16-cmp: Likewise.
29841         * modules/unistr/u16-cmp2: Likewise.
29842         * modules/unistr/u16-cpy: Likewise.
29843         * modules/unistr/u16-cpy-alloc: Likewise.
29844         * modules/unistr/u16-endswith: Likewise.
29845         * modules/unistr/u16-mblen: Likewise.
29846         * modules/unistr/u16-mbsnlen: Likewise.
29847         * modules/unistr/u16-mbtouc: Likewise.
29848         * modules/unistr/u16-mbtouc-unsafe: Likewise.
29849         * modules/unistr/u16-mbtoucr: Likewise.
29850         * modules/unistr/u16-move: Likewise.
29851         * modules/unistr/u16-next: Likewise.
29852         * modules/unistr/u16-prev: Likewise.
29853         * modules/unistr/u16-set: Likewise.
29854         * modules/unistr/u16-startswith: Likewise.
29855         * modules/unistr/u16-stpcpy: Likewise.
29856         * modules/unistr/u16-stpncpy: Likewise.
29857         * modules/unistr/u16-strcat: Likewise.
29858         * modules/unistr/u16-strchr: Likewise.
29859         * modules/unistr/u16-strcmp: Likewise.
29860         * modules/unistr/u16-strcoll: Likewise.
29861         * modules/unistr/u16-strcpy: Likewise.
29862         * modules/unistr/u16-strcspn: Likewise.
29863         * modules/unistr/u16-strdup: Likewise.
29864         * modules/unistr/u16-strlen: Likewise.
29865         * modules/unistr/u16-strmblen: Likewise.
29866         * modules/unistr/u16-strmbtouc: Likewise.
29867         * modules/unistr/u16-strncat: Likewise.
29868         * modules/unistr/u16-strncmp: Likewise.
29869         * modules/unistr/u16-strncpy: Likewise.
29870         * modules/unistr/u16-strnlen: Likewise.
29871         * modules/unistr/u16-strpbrk: Likewise.
29872         * modules/unistr/u16-strrchr: Likewise.
29873         * modules/unistr/u16-strspn: Likewise.
29874         * modules/unistr/u16-strstr: Likewise.
29875         * modules/unistr/u16-strtok: Likewise.
29876         * modules/unistr/u16-to-u32: Likewise.
29877         * modules/unistr/u16-to-u8: Likewise.
29878         * modules/unistr/u16-uctomb: Likewise.
29879         * modules/unistr/u32-check: Likewise.
29880         * modules/unistr/u32-chr: Likewise.
29881         * modules/unistr/u32-cmp: Likewise.
29882         * modules/unistr/u32-cmp2: Likewise.
29883         * modules/unistr/u32-cpy: Likewise.
29884         * modules/unistr/u32-cpy-alloc: Likewise.
29885         * modules/unistr/u32-endswith: Likewise.
29886         * modules/unistr/u32-mblen: Likewise.
29887         * modules/unistr/u32-mbsnlen: Likewise.
29888         * modules/unistr/u32-mbtouc: Likewise.
29889         * modules/unistr/u32-mbtouc-unsafe: Likewise.
29890         * modules/unistr/u32-mbtoucr: Likewise.
29891         * modules/unistr/u32-move: Likewise.
29892         * modules/unistr/u32-next: Likewise.
29893         * modules/unistr/u32-prev: Likewise.
29894         * modules/unistr/u32-set: Likewise.
29895         * modules/unistr/u32-startswith: Likewise.
29896         * modules/unistr/u32-stpcpy: Likewise.
29897         * modules/unistr/u32-stpncpy: Likewise.
29898         * modules/unistr/u32-strcat: Likewise.
29899         * modules/unistr/u32-strchr: Likewise.
29900         * modules/unistr/u32-strcmp: Likewise.
29901         * modules/unistr/u32-strcoll: Likewise.
29902         * modules/unistr/u32-strcpy: Likewise.
29903         * modules/unistr/u32-strcspn: Likewise.
29904         * modules/unistr/u32-strdup: Likewise.
29905         * modules/unistr/u32-strlen: Likewise.
29906         * modules/unistr/u32-strmblen: Likewise.
29907         * modules/unistr/u32-strmbtouc: Likewise.
29908         * modules/unistr/u32-strncat: Likewise.
29909         * modules/unistr/u32-strncmp: Likewise.
29910         * modules/unistr/u32-strncpy: Likewise.
29911         * modules/unistr/u32-strnlen: Likewise.
29912         * modules/unistr/u32-strpbrk: Likewise.
29913         * modules/unistr/u32-strrchr: Likewise.
29914         * modules/unistr/u32-strspn: Likewise.
29915         * modules/unistr/u32-strstr: Likewise.
29916         * modules/unistr/u32-strtok: Likewise.
29917         * modules/unistr/u32-to-u16: Likewise.
29918         * modules/unistr/u32-to-u8: Likewise.
29919         * modules/unistr/u32-uctomb: Likewise.
29920         * modules/uniwbrk/u8-wordbreaks: Likewise.
29921         * modules/uniwbrk/u16-wordbreaks: Likewise.
29922         * modules/uniwbrk/u32-wordbreaks: Likewise.
29923         * modules/uniwbrk/ulc-wordbreaks: Likewise.
29924         * modules/uniwbrk/wordbreak-property: Likewise.
29925         * modules/uniwidth/u8-strwidth: Likewise.
29926         * modules/uniwidth/u8-width: Likewise.
29927         * modules/uniwidth/u16-strwidth: Likewise.
29928         * modules/uniwidth/u16-width: Likewise.
29929         * modules/uniwidth/u32-strwidth: Likewise.
29930         * modules/uniwidth/u32-width: Likewise.
29931         * modules/uniwidth/width: Likewise.
29932         * modules/unicase/cased-tests (Makefile.am): Link all test programs
29933         with $(LIBUNISTRING).
29934         * modules/unicase/ignorable-tests: Likewise.
29935         * modules/unicase/locale-language-tests: Likewise.
29936         * modules/unicase/tolower-tests: Likewise.
29937         * modules/unicase/totitle-tests: Likewise.
29938         * modules/unicase/toupper-tests: Likewise.
29939         * modules/unicase/u8-casecmp-tests: Likewise.
29940         * modules/unicase/u8-casecoll-tests: Likewise.
29941         * modules/unicase/u8-casefold-tests: Likewise.
29942         * modules/unicase/u8-is-cased-tests: Likewise.
29943         * modules/unicase/u8-is-casefolded-tests: Likewise.
29944         * modules/unicase/u8-is-lowercase-tests: Likewise.
29945         * modules/unicase/u8-is-titlecase-tests: Likewise.
29946         * modules/unicase/u8-is-uppercase-tests: Likewise.
29947         * modules/unicase/u8-tolower-tests: Likewise.
29948         * modules/unicase/u8-totitle-tests: Likewise.
29949         * modules/unicase/u8-toupper-tests: Likewise.
29950         * modules/unicase/u16-casecmp-tests: Likewise.
29951         * modules/unicase/u16-casecoll-tests: Likewise.
29952         * modules/unicase/u16-casefold-tests: Likewise.
29953         * modules/unicase/u16-is-cased-tests: Likewise.
29954         * modules/unicase/u16-is-casefolded-tests: Likewise.
29955         * modules/unicase/u16-is-lowercase-tests: Likewise.
29956         * modules/unicase/u16-is-titlecase-tests: Likewise.
29957         * modules/unicase/u16-is-uppercase-tests: Likewise.
29958         * modules/unicase/u16-tolower-tests: Likewise.
29959         * modules/unicase/u16-totitle-tests: Likewise.
29960         * modules/unicase/u16-toupper-tests: Likewise.
29961         * modules/unicase/u32-casecmp-tests: Likewise.
29962         * modules/unicase/u32-casecoll-tests: Likewise.
29963         * modules/unicase/u32-casefold-tests: Likewise.
29964         * modules/unicase/u32-is-cased-tests: Likewise.
29965         * modules/unicase/u32-is-casefolded-tests: Likewise.
29966         * modules/unicase/u32-is-lowercase-tests: Likewise.
29967         * modules/unicase/u32-is-titlecase-tests: Likewise.
29968         * modules/unicase/u32-is-uppercase-tests: Likewise.
29969         * modules/unicase/u32-tolower-tests: Likewise.
29970         * modules/unicase/u32-totitle-tests: Likewise.
29971         * modules/unicase/u32-toupper-tests: Likewise.
29972         * modules/unicase/ulc-casecmp-tests: Likewise.
29973         * modules/unicase/ulc-casecoll-tests: Likewise.
29974         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
29975         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
29976         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
29977         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
29978         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
29979         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
29980         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
29981         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
29982         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
29983         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
29984         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
29985         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
29986         * modules/unictype/bidicategory-byname-tests: Likewise.
29987         * modules/unictype/bidicategory-name-tests: Likewise.
29988         * modules/unictype/bidicategory-of-tests: Likewise.
29989         * modules/unictype/bidicategory-test-tests: Likewise.
29990         * modules/unictype/block-list-tests: Likewise.
29991         * modules/unictype/block-of-tests: Likewise.
29992         * modules/unictype/block-test-tests: Likewise.
29993         * modules/unictype/category-C-tests: Likewise.
29994         * modules/unictype/category-Cc-tests: Likewise.
29995         * modules/unictype/category-Cf-tests: Likewise.
29996         * modules/unictype/category-Cn-tests: Likewise.
29997         * modules/unictype/category-Co-tests: Likewise.
29998         * modules/unictype/category-Cs-tests: Likewise.
29999         * modules/unictype/category-L-tests: Likewise.
30000         * modules/unictype/category-Ll-tests: Likewise.
30001         * modules/unictype/category-Lm-tests: Likewise.
30002         * modules/unictype/category-Lo-tests: Likewise.
30003         * modules/unictype/category-Lt-tests: Likewise.
30004         * modules/unictype/category-Lu-tests: Likewise.
30005         * modules/unictype/category-M-tests: Likewise.
30006         * modules/unictype/category-Mc-tests: Likewise.
30007         * modules/unictype/category-Me-tests: Likewise.
30008         * modules/unictype/category-Mn-tests: Likewise.
30009         * modules/unictype/category-N-tests: Likewise.
30010         * modules/unictype/category-Nd-tests: Likewise.
30011         * modules/unictype/category-Nl-tests: Likewise.
30012         * modules/unictype/category-No-tests: Likewise.
30013         * modules/unictype/category-P-tests: Likewise.
30014         * modules/unictype/category-Pc-tests: Likewise.
30015         * modules/unictype/category-Pd-tests: Likewise.
30016         * modules/unictype/category-Pe-tests: Likewise.
30017         * modules/unictype/category-Pf-tests: Likewise.
30018         * modules/unictype/category-Pi-tests: Likewise.
30019         * modules/unictype/category-Po-tests: Likewise.
30020         * modules/unictype/category-Ps-tests: Likewise.
30021         * modules/unictype/category-S-tests: Likewise.
30022         * modules/unictype/category-Sc-tests: Likewise.
30023         * modules/unictype/category-Sk-tests: Likewise.
30024         * modules/unictype/category-Sm-tests: Likewise.
30025         * modules/unictype/category-So-tests: Likewise.
30026         * modules/unictype/category-Z-tests: Likewise.
30027         * modules/unictype/category-Zl-tests: Likewise.
30028         * modules/unictype/category-Zp-tests: Likewise.
30029         * modules/unictype/category-Zs-tests: Likewise.
30030         * modules/unictype/category-and-not-tests: Likewise.
30031         * modules/unictype/category-and-tests: Likewise.
30032         * modules/unictype/category-byname-tests: Likewise.
30033         * modules/unictype/category-name-tests: Likewise.
30034         * modules/unictype/category-none-tests: Likewise.
30035         * modules/unictype/category-of-tests: Likewise.
30036         * modules/unictype/category-or-tests: Likewise.
30037         * modules/unictype/category-test-withtable-tests: Likewise.
30038         * modules/unictype/combining-class-tests: Likewise.
30039         * modules/unictype/ctype-alnum-tests: Likewise.
30040         * modules/unictype/ctype-alpha-tests: Likewise.
30041         * modules/unictype/ctype-blank-tests: Likewise.
30042         * modules/unictype/ctype-cntrl-tests: Likewise.
30043         * modules/unictype/ctype-digit-tests: Likewise.
30044         * modules/unictype/ctype-graph-tests: Likewise.
30045         * modules/unictype/ctype-lower-tests: Likewise.
30046         * modules/unictype/ctype-print-tests: Likewise.
30047         * modules/unictype/ctype-punct-tests: Likewise.
30048         * modules/unictype/ctype-space-tests: Likewise.
30049         * modules/unictype/ctype-upper-tests: Likewise.
30050         * modules/unictype/ctype-xdigit-tests: Likewise.
30051         * modules/unictype/decimal-digit-tests: Likewise.
30052         * modules/unictype/digit-tests: Likewise.
30053         * modules/unictype/mirror-tests: Likewise.
30054         * modules/unictype/numeric-tests: Likewise.
30055         * modules/unictype/property-alphabetic-tests: Likewise.
30056         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
30057         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
30058         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
30059         * modules/unictype/property-bidi-block-separator-tests: Likewise.
30060         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
30061         * modules/unictype/property-bidi-common-separator-tests: Likewise.
30062         * modules/unictype/property-bidi-control-tests: Likewise.
30063         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
30064         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
30065         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
30066         * modules/unictype/property-bidi-european-digit-tests: Likewise.
30067         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
30068         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
30069         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
30070         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
30071         * modules/unictype/property-bidi-pdf-tests: Likewise.
30072         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
30073         * modules/unictype/property-bidi-whitespace-tests: Likewise.
30074         * modules/unictype/property-byname-tests: Likewise.
30075         * modules/unictype/property-combining-tests: Likewise.
30076         * modules/unictype/property-composite-tests: Likewise.
30077         * modules/unictype/property-currency-symbol-tests: Likewise.
30078         * modules/unictype/property-dash-tests: Likewise.
30079         * modules/unictype/property-decimal-digit-tests: Likewise.
30080         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
30081         * modules/unictype/property-deprecated-tests: Likewise.
30082         * modules/unictype/property-diacritic-tests: Likewise.
30083         * modules/unictype/property-extender-tests: Likewise.
30084         * modules/unictype/property-format-control-tests: Likewise.
30085         * modules/unictype/property-grapheme-base-tests: Likewise.
30086         * modules/unictype/property-grapheme-extend-tests: Likewise.
30087         * modules/unictype/property-grapheme-link-tests: Likewise.
30088         * modules/unictype/property-hex-digit-tests: Likewise.
30089         * modules/unictype/property-hyphen-tests: Likewise.
30090         * modules/unictype/property-id-continue-tests: Likewise.
30091         * modules/unictype/property-id-start-tests: Likewise.
30092         * modules/unictype/property-ideographic-tests: Likewise.
30093         * modules/unictype/property-ids-binary-operator-tests: Likewise.
30094         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
30095         * modules/unictype/property-ignorable-control-tests: Likewise.
30096         * modules/unictype/property-iso-control-tests: Likewise.
30097         * modules/unictype/property-join-control-tests: Likewise.
30098         * modules/unictype/property-left-of-pair-tests: Likewise.
30099         * modules/unictype/property-line-separator-tests: Likewise.
30100         * modules/unictype/property-logical-order-exception-tests: Likewise.
30101         * modules/unictype/property-lowercase-tests: Likewise.
30102         * modules/unictype/property-math-tests: Likewise.
30103         * modules/unictype/property-non-break-tests: Likewise.
30104         * modules/unictype/property-not-a-character-tests: Likewise.
30105         * modules/unictype/property-numeric-tests: Likewise.
30106         * modules/unictype/property-other-alphabetic-tests: Likewise.
30107         * modules/unictype/property-other-default-ignorable-code-point-tests:
30108         Likewise.
30109         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
30110         * modules/unictype/property-other-id-continue-tests: Likewise.
30111         * modules/unictype/property-other-id-start-tests: Likewise.
30112         * modules/unictype/property-other-lowercase-tests: Likewise.
30113         * modules/unictype/property-other-math-tests: Likewise.
30114         * modules/unictype/property-other-uppercase-tests: Likewise.
30115         * modules/unictype/property-paired-punctuation-tests: Likewise.
30116         * modules/unictype/property-paragraph-separator-tests: Likewise.
30117         * modules/unictype/property-pattern-syntax-tests: Likewise.
30118         * modules/unictype/property-pattern-white-space-tests: Likewise.
30119         * modules/unictype/property-private-use-tests: Likewise.
30120         * modules/unictype/property-punctuation-tests: Likewise.
30121         * modules/unictype/property-quotation-mark-tests: Likewise.
30122         * modules/unictype/property-radical-tests: Likewise.
30123         * modules/unictype/property-sentence-terminal-tests: Likewise.
30124         * modules/unictype/property-soft-dotted-tests: Likewise.
30125         * modules/unictype/property-space-tests: Likewise.
30126         * modules/unictype/property-terminal-punctuation-tests: Likewise.
30127         * modules/unictype/property-test-tests: Likewise.
30128         * modules/unictype/property-titlecase-tests: Likewise.
30129         * modules/unictype/property-unassigned-code-value-tests: Likewise.
30130         * modules/unictype/property-unified-ideograph-tests: Likewise.
30131         * modules/unictype/property-uppercase-tests: Likewise.
30132         * modules/unictype/property-variation-selector-tests: Likewise.
30133         * modules/unictype/property-white-space-tests: Likewise.
30134         * modules/unictype/property-xid-continue-tests: Likewise.
30135         * modules/unictype/property-xid-start-tests: Likewise.
30136         * modules/unictype/property-zero-width-tests: Likewise.
30137         * modules/unictype/scripts-tests: Likewise.
30138         * modules/unictype/syntax-c-ident-tests: Likewise.
30139         * modules/unictype/syntax-c-whitespace-tests: Likewise.
30140         * modules/unictype/syntax-java-ident-tests: Likewise.
30141         * modules/unictype/syntax-java-whitespace-tests: Likewise.
30142         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
30143         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
30144         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
30145         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
30146         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
30147         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
30148         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
30149         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
30150         * modules/uniname/uniname-tests: Likewise.
30151         * modules/uninorm/canonical-decomposition-tests: Likewise.
30152         * modules/uninorm/compat-decomposition-tests: Likewise.
30153         * modules/uninorm/composition-tests: Likewise.
30154         * modules/uninorm/decomposing-form-tests: Likewise.
30155         * modules/uninorm/decomposition-tests: Likewise.
30156         * modules/uninorm/filter-tests: Likewise.
30157         * modules/uninorm/nfc-tests: Likewise.
30158         * modules/uninorm/nfd-tests: Likewise.
30159         * modules/uninorm/nfkc-tests: Likewise.
30160         * modules/uninorm/nfkd-tests: Likewise.
30161         * modules/uninorm/u8-normcmp-tests: Likewise.
30162         * modules/uninorm/u8-normcoll-tests: Likewise.
30163         * modules/uninorm/u16-normcmp-tests: Likewise.
30164         * modules/uninorm/u16-normcoll-tests: Likewise.
30165         * modules/uninorm/u32-normcmp-tests: Likewise.
30166         * modules/uninorm/u32-normcoll-tests: Likewise.
30167         * modules/unistdio/u8-asnprintf-tests: Likewise.
30168         * modules/unistdio/u8-vasnprintf-tests: Likewise.
30169         * modules/unistdio/u8-vasprintf-tests: Likewise.
30170         * modules/unistdio/u8-vsnprintf-tests: Likewise.
30171         * modules/unistdio/u8-vsprintf-tests: Likewise.
30172         * modules/unistdio/u16-asnprintf-tests: Likewise.
30173         * modules/unistdio/u16-vasnprintf-tests: Likewise.
30174         * modules/unistdio/u16-vasprintf-tests: Likewise.
30175         * modules/unistdio/u16-vsnprintf-tests: Likewise.
30176         * modules/unistdio/u16-vsprintf-tests: Likewise.
30177         * modules/unistdio/u32-asnprintf-tests: Likewise.
30178         * modules/unistdio/u32-vasnprintf-tests: Likewise.
30179         * modules/unistdio/u32-vasprintf-tests: Likewise.
30180         * modules/unistdio/u32-vsnprintf-tests: Likewise.
30181         * modules/unistdio/u32-vsprintf-tests: Likewise.
30182         * modules/unistdio/ulc-asnprintf-tests: Likewise.
30183         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
30184         * modules/unistdio/ulc-vasprintf-tests: Likewise.
30185         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
30186         * modules/unistdio/ulc-vsprintf-tests: Likewise.
30187         * modules/unistr/u8-check-tests: Likewise.
30188         * modules/unistr/u8-chr-tests: Likewise.
30189         * modules/unistr/u8-cmp-tests: Likewise.
30190         * modules/unistr/u8-cmp2-tests: Likewise.
30191         * modules/unistr/u8-cpy-alloc-tests: Likewise.
30192         * modules/unistr/u8-cpy-tests: Likewise.
30193         * modules/unistr/u8-mblen-tests: Likewise.
30194         * modules/unistr/u8-mbsnlen-tests: Likewise.
30195         * modules/unistr/u8-mbtouc-tests: Likewise.
30196         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
30197         * modules/unistr/u8-mbtoucr-tests: Likewise.
30198         * modules/unistr/u8-move-tests: Likewise.
30199         * modules/unistr/u8-next-tests: Likewise.
30200         * modules/unistr/u8-prev-tests: Likewise.
30201         * modules/unistr/u8-set-tests: Likewise.
30202         * modules/unistr/u8-stpcpy-tests: Likewise.
30203         * modules/unistr/u8-stpncpy-tests: Likewise.
30204         * modules/unistr/u8-strcat-tests: Likewise.
30205         * modules/unistr/u8-strcmp-tests: Likewise.
30206         * modules/unistr/u8-strcoll-tests: Likewise.
30207         * modules/unistr/u8-strcpy-tests: Likewise.
30208         * modules/unistr/u8-strdup-tests: Likewise.
30209         * modules/unistr/u8-strlen-tests: Likewise.
30210         * modules/unistr/u8-strmblen-tests: Likewise.
30211         * modules/unistr/u8-strmbtouc-tests: Likewise.
30212         * modules/unistr/u8-strncat-tests: Likewise.
30213         * modules/unistr/u8-strncmp-tests: Likewise.
30214         * modules/unistr/u8-strncpy-tests: Likewise.
30215         * modules/unistr/u8-strnlen-tests: Likewise.
30216         * modules/unistr/u8-to-u16-tests: Likewise.
30217         * modules/unistr/u8-to-u32-tests: Likewise.
30218         * modules/unistr/u8-uctomb-tests: Likewise.
30219         * modules/unistr/u16-check-tests: Likewise.
30220         * modules/unistr/u16-chr-tests: Likewise.
30221         * modules/unistr/u16-cmp-tests: Likewise.
30222         * modules/unistr/u16-cmp2-tests: Likewise.
30223         * modules/unistr/u16-cpy-alloc-tests: Likewise.
30224         * modules/unistr/u16-cpy-tests: Likewise.
30225         * modules/unistr/u16-mblen-tests: Likewise.
30226         * modules/unistr/u16-mbsnlen-tests: Likewise.
30227         * modules/unistr/u16-mbtouc-tests: Likewise.
30228         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
30229         * modules/unistr/u16-mbtoucr-tests: Likewise.
30230         * modules/unistr/u16-move-tests: Likewise.
30231         * modules/unistr/u16-next-tests: Likewise.
30232         * modules/unistr/u16-prev-tests: Likewise.
30233         * modules/unistr/u16-set-tests: Likewise.
30234         * modules/unistr/u16-stpcpy-tests: Likewise.
30235         * modules/unistr/u16-stpncpy-tests: Likewise.
30236         * modules/unistr/u16-strcat-tests: Likewise.
30237         * modules/unistr/u16-strcmp-tests: Likewise.
30238         * modules/unistr/u16-strcoll-tests: Likewise.
30239         * modules/unistr/u16-strcpy-tests: Likewise.
30240         * modules/unistr/u16-strdup-tests: Likewise.
30241         * modules/unistr/u16-strlen-tests: Likewise.
30242         * modules/unistr/u16-strmblen-tests: Likewise.
30243         * modules/unistr/u16-strmbtouc-tests: Likewise.
30244         * modules/unistr/u16-strncat-tests: Likewise.
30245         * modules/unistr/u16-strncmp-tests: Likewise.
30246         * modules/unistr/u16-strncpy-tests: Likewise.
30247         * modules/unistr/u16-strnlen-tests: Likewise.
30248         * modules/unistr/u16-to-u32-tests: Likewise.
30249         * modules/unistr/u16-to-u8-tests: Likewise.
30250         * modules/unistr/u16-uctomb-tests: Likewise.
30251         * modules/unistr/u32-check-tests: Likewise.
30252         * modules/unistr/u32-chr-tests: Likewise.
30253         * modules/unistr/u32-cmp-tests: Likewise.
30254         * modules/unistr/u32-cmp2-tests: Likewise.
30255         * modules/unistr/u32-cpy-alloc-tests: Likewise.
30256         * modules/unistr/u32-cpy-tests: Likewise.
30257         * modules/unistr/u32-mblen-tests: Likewise.
30258         * modules/unistr/u32-mbsnlen-tests: Likewise.
30259         * modules/unistr/u32-mbtouc-tests: Likewise.
30260         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
30261         * modules/unistr/u32-mbtoucr-tests: Likewise.
30262         * modules/unistr/u32-move-tests: Likewise.
30263         * modules/unistr/u32-next-tests: Likewise.
30264         * modules/unistr/u32-prev-tests: Likewise.
30265         * modules/unistr/u32-set-tests: Likewise.
30266         * modules/unistr/u32-stpcpy-tests: Likewise.
30267         * modules/unistr/u32-stpncpy-tests: Likewise.
30268         * modules/unistr/u32-strcat-tests: Likewise.
30269         * modules/unistr/u32-strcmp-tests: Likewise.
30270         * modules/unistr/u32-strcoll-tests: Likewise.
30271         * modules/unistr/u32-strcpy-tests: Likewise.
30272         * modules/unistr/u32-strdup-tests: Likewise.
30273         * modules/unistr/u32-strlen-tests: Likewise.
30274         * modules/unistr/u32-strmblen-tests: Likewise.
30275         * modules/unistr/u32-strmbtouc-tests: Likewise.
30276         * modules/unistr/u32-strncat-tests: Likewise.
30277         * modules/unistr/u32-strncmp-tests: Likewise.
30278         * modules/unistr/u32-strncpy-tests: Likewise.
30279         * modules/unistr/u32-strnlen-tests: Likewise.
30280         * modules/unistr/u32-to-u16-tests: Likewise.
30281         * modules/unistr/u32-to-u8-tests: Likewise.
30282         * modules/unistr/u32-uctomb-tests: Likewise.
30283         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
30284         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
30285         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
30286         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
30287         * modules/uniwidth/u8-strwidth-tests: Likewise.
30288         * modules/uniwidth/u8-width-tests: Likewise.
30289         * modules/uniwidth/u16-strwidth-tests: Likewise.
30290         * modules/uniwidth/u16-width-tests: Likewise.
30291         * modules/uniwidth/u32-strwidth-tests: Likewise.
30292         * modules/uniwidth/u32-width-tests: Likewise.
30293         * modules/uniwidth/width-tests: Likewise.
30294
30295 2010-05-18  Richard Jones  <rjones@redhat.com>
30296
30297         doc: users.txt: list hivex
30298         * users.txt: Add hivex.
30299
30300 2010-05-18  Richard Jones  <rjones@redhat.com>
30301
30302         doc: users.txt: list febootstrap
30303         * users.txt: Add febootstrap.
30304
30305 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
30306
30307         bootstrap: fix an error when gnulib is not used as a git submodule
30308         * build-aux/bootstrap (gnulib_path): If its length is zero then
30309         assign "gnulib" to it.
30310         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
30311
30312 2010-05-16  Bruno Haible  <bruno@clisp.org>
30313
30314         Avoid autoconf warnings about AM_ICONV.
30315         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
30316         2.64.
30317
30318 2010-05-16  Bruno Haible  <bruno@clisp.org>
30319
30320         absolute-header: Make the macro usable in more situations.
30321         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
30322         from gl_ABSOLUTE_HEADER.
30323         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
30324
30325 2010-05-16  James Youngman  <jay@gnu.org>
30326
30327         doc: update users.txt
30328         * users.txt: Add CSSC.
30329
30330 2010-05-16  Jim Meyering  <meyering@redhat.com>
30331
30332         init.sh: fix an error in the previous change; add more comments
30333         * tests/init.sh: Compare exit code in loop against 9, not 2.
30334         Patch by Bruno Haible.
30335         Make the two tests more similar by adding an empty "then" clause.
30336         Add comments.
30337
30338         init.sh: avoid unnecessary shell re-exec
30339         * tests/init.sh: Improve the re-exec-required check to first test the
30340         current shell.  If it passes the test, do not search for a shell that
30341         does pass, and do not re-exec.  This test is particularly contorted to
30342         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
30343         of $(...) evokes a syntax error and causes immediate shell exit with
30344         status 2.  Bruno Haible reported that the re-exec made it impossible
30345         to single-step through any init.sh-using script.
30346
30347 2010-05-16  Bruno Haible  <bruno@clisp.org>
30348
30349         Fix collision between gnulib's and libintl's printf replacements.
30350         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
30351         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
30352         (printf): When using GNU C, map the __printf__ function to rpl_printf
30353         via __asm__. When not using GNU C, define rpl_printf instead of
30354         __printf__.
30355         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
30356         commit.
30357         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
30358         commit.
30359         * m4/asm-underscore.m4: New file.
30360         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
30361         * modules/stdio (Files): Add m4/asm-underscore.m4.
30362         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
30363         Reported by Ben Pfaff.
30364
30365 2010-05-16  Bruno Haible  <bruno@clisp.org>
30366
30367         verify: Avoid skipping the test on openSUSE 11.0.
30368         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
30369
30370 2010-05-13  Bruno Haible  <bruno@clisp.org>
30371
30372         Avoid useless warnings from G++.
30373         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
30374         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
30375         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30376
30377 2010-05-11  Jim Meyering  <meyering@redhat.com>
30378
30379         maint.mk: tweak preceding change
30380         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
30381         regexps tighter by anchoring at EOL, and make the new group "shy"
30382         for slightly decreased overhead.
30383
30384 2010-05-11  Eric Blake  <eblake@redhat.com>
30385
30386         maint.mk: gnulib doesn't guarantee NSIG
30387         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
30388
30389 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
30390
30391         test-pwrite.c: Remove unused variable declaration.
30392         * tests/test-pwrite.c (main): Remove read_buf declaration.
30393
30394         Remove useless test-pwrite.sh file.
30395         * tests/test-pwrite.sh: Delete file.
30396         * modules/pwrite-tests: Remove references.
30397         Reported by Bruno Haible.
30398
30399 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
30400
30401         init.sh: fix a typo
30402         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
30403
30404 2010-05-10  Jim Meyering  <meyering@redhat.com>
30405
30406         maint.mk: avoid using a temporary file in the always-defined-macros check
30407         * top/maint.mk (.re-defmac): Remove rule.
30408         (gl_trap_): Remove definition.
30409         (sc_prohibit_always-defined_macros): Rewrite not to create and
30410         depend on a temporary file.  Instead, depend on GNU grep's ability
30411         to read a list of regular expressions from stdin when given "-f -".
30412
30413 2010-05-09  Bruno Haible  <bruno@clisp.org>
30414
30415         Update to GNU gettext 0.18, part 1.
30416         * m4/gettext.m4: Update to GNU gettext 0.18.
30417         * m4/intl.m4: Likewise.
30418         * m4/po.m4: Likewise.
30419         * modules/gettext (Files): Add m4/fcntl-o.m4.
30420         (configure.ac): Require gettext infrastructure from version 0.18.
30421
30422 2010-05-09  Jim Meyering  <meyering@redhat.com>
30423
30424         init.sh: enable MALLOC_PERTURB_
30425         * tests/init.sh: Enable glibc's malloc-perturbing option.
30426
30427         maint.mk: improve sc_cross_check_PATH_usage_in_tests
30428         With my recent change in init.sh from the two-line form:
30429             -#   : ${srcdir=.}
30430             -#   . "$srcdir/init.sh"; path_prepend_ .
30431             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
30432         I noticed that using the one-line form would cause this test
30433         to fail with a false-positive, or to stop working altogether,
30434         depending on whether help-version changed or all the tests did.
30435         * top/maint.mk (_hv_regex): Remove this definition.
30436         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
30437         (_hv_regex_strong): Use a stronger regex to check for conformance.
30438         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
30439         Give a separate diagnostic for lack of conforming use.
30440
30441         maint.mk: prohibit definition of symbols defined by gnulib
30442         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
30443         definition of symbols defined by gnulib.
30444
30445 2010-05-09  Bruno Haible  <bruno@clisp.org>
30446
30447         acl: Avoid test failure on Cygwin-hosted mingw.
30448         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
30449
30450 2010-05-09  Bruno Haible  <bruno@clisp.org>
30451
30452         error: Use system's fcntl function.
30453         * lib/error.c (fcntl): Undefine.
30454
30455 2010-05-09  Jim Meyering  <meyering@redhat.com>
30456
30457         verify: adjust formatting to be more consistent
30458         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
30459         argument-list '('s, and after one comma.
30460
30461 2010-05-09  Bruno Haible  <bruno@clisp.org>
30462
30463         error: More reliable output on mingw.
30464         * lib/error.c: Include <windows.h>.
30465         (is_open): New function.
30466         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
30467         defined.
30468
30469 2010-05-09  Bruno Haible  <bruno@clisp.org>
30470
30471         vasnprintf: Fix syntax errors in libintl build on mingw.
30472         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
30473         pad_ourselves and prec_ourselves after use.
30474
30475 2010-05-08  Bruno Haible  <bruno@clisp.org>
30476
30477         * lib/config.charset: Update comments for Cygwin 1.7.
30478         * lib/localcharset.c: Likewise.
30479
30480 2010-05-07  Jim Meyering  <meyering@redhat.com>
30481
30482         init.sh: improve comments
30483         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
30484         . "${srcdir=.}/init.sh"; path_prepend_ .
30485         Add a note about path_prepend_ and the alternative of using
30486         TESTS_ENVIRONMENT.
30487
30488 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
30489
30490         exclude: Unescape hashed patterns in wildcard mode.
30491         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
30492         to the hash list.
30493         * tests/test-exclude8.sh: New test case.
30494         * modules/exclude-tests: Add new test.
30495
30496 2010-05-05  Eric Blake  <eblake@redhat.com>
30497
30498         verify: automate tests
30499         * modules/verify-tests: New module.
30500         * tests/test-verify.sh: New file.
30501         * tests/test-verify.c: Guard each negative test with a unique id.
30502         Also avoid warning about unused left hand of comma expressions.
30503
30504 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
30505
30506         Further improvements to verify.h, suggested by Eric Blake.
30507         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
30508         the GL_* versions, to avoid collision with OpenGL.
30509         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
30510         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
30511         than testing merely whether it's defined.
30512
30513         Modify verify.h to pacify gcc -Wredundant_decls.
30514         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
30515         These use the prefix "GL_" since they're likely to be useful elsewhere.
30516         We may need to break them out into a different .h file.
30517         (__COUNTER__): Define to 0 if the compiler doesn't support it.
30518         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
30519         of verify_function__.
30520
30521 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
30522
30523         Tests for module pwrite.
30524         * modules/pwrite-tests: New file.
30525         * tests/test-pwrite.sh: New file.
30526         * tests/test-pwrite.c: New file.
30527
30528         New module pwrite.
30529         * lib/unistd.in.h (pwrite): New declaration.
30530         * lib/pwrite.c: New file, from glibc with modifications.
30531         * m4/pwrite.m4: New file.
30532         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
30533         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
30534         REPLACE_PWRITE.
30535         * modules/pwrite: New file.
30536         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
30537         REPLACE_PWRITE.
30538         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
30539         * doc/posix-functions/pwrite.texi: Mention the new module.
30540
30541 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
30542
30543         pread: Update documentation.
30544         * doc/posix-functions/pread.texi: Mention the 'pread' module.
30545
30546 2010-05-04  Eric Blake  <eblake@redhat.com>
30547
30548         docs: update cygwin progress
30549         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
30550         this bug.
30551         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
30552         Added in cygwin 1.7.2.
30553         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
30554         Likewise.
30555         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
30556         Likewise.
30557         * doc/glibc-functions/dup3.texi (dup3): Likewise.
30558         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
30559         * doc/glibc-functions/accept4.texi (accept4): Likewise.
30560         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
30561         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
30562         Mention nproc module.
30563         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
30564         bug in cygwin 1.7.5 addition.
30565         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
30566         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
30567         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
30568         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
30569         1.7.5.
30570         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
30571         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
30572         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
30573         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
30574         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
30575         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
30576         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
30577         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
30578         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
30579         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
30580         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
30581         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
30582         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
30583         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
30584         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
30585         Likewise.
30586         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
30587         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
30588         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
30589         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
30590         Likewise.
30591         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
30592         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
30593         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
30594         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
30595         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
30596         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
30597         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
30598         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
30599         Likewise.
30600         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
30601         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
30602         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
30603         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
30604         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
30605         Likewise.
30606         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
30607         Likewise.
30608         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
30609         Likewise.
30610         * doc/glibc-functions/xdrrec_endofrecord.texi
30611         (xdrrec_endofrecord): Likewise.
30612         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
30613         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
30614         Likewise.
30615         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
30616         Likewise.
30617
30618 2010-05-04  Jim Meyering  <meyering@redhat.com>
30619
30620         gendocs.sh: make its "-s FILE" option more useful
30621         * build-aux/gendocs.sh: When honoring the -s FILE option, update
30622         $PACKAGE to reflect the probably-different basename of "FILE".
30623
30624 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
30625
30626         bootstrap: don't ignore download_po_files failure
30627         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
30628         failure.
30629
30630 2010-05-03  Jim Meyering  <meyering@redhat.com>
30631
30632         maint.mk: allow to pass options to gendocs.sh
30633         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
30634         (gendocs_options_): New overridable variable.
30635
30636         gnu-web-doc-update: don't ignore configure or build failure
30637         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
30638
30639         announce-gen: backslash-escape '@'s in --help output
30640         * build-aux/announce-gen: Fix syntax errors.
30641
30642         maint.mk, announce-gen: allow project-specific announcement mail headers
30643         * top/maint.mk (translation_project_): Define default.
30644         (announcement_Cc_, announcement_mail_headers_): Likewise.
30645         (announcement): Invoke announce-gen with new --mail-headers option.
30646         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
30647
30648         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
30649         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
30650         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
30651         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
30652         line in the "err2" output file when running "make check" in verbose
30653         mode (i.e., with set -x enabled).
30654
30655 2010-05-03  Bruno Haible  <bruno@clisp.org>
30656
30657         wctob: Fix for weird platforms.
30658         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
30659         argument value.
30660
30661 2010-05-03  Jim Meyering  <meyering@redhat.com>
30662
30663         maint.mk: prohibit unwarranted use of <strings.h>
30664         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
30665         strings.h in a file that does not also use strcasecmp, strncasecmp,
30666         ffs or ffsll.
30667
30668         maint.mk: remove obsolete comments
30669         * top/maint.mk: Remove stale, commented-out rules.
30670
30671 2010-05-02  Bruno Haible  <bruno@clisp.org>
30672
30673         wcwidth: Declare also when it's aliased.
30674         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
30675         macro.
30676
30677 2010-05-02  Bruno Haible  <bruno@clisp.org>
30678
30679         Fix regression from 2010-04-25.
30680         * gnulib-tool (func_modules_transitive_closure): Check the status of
30681         all modules, not only of the tests that are of the form foo-tests where
30682         foo is a module.
30683
30684 2010-05-02  Bruno Haible  <bruno@clisp.org>
30685
30686         wctob: Work around nasty Cygwin 1.7.2 bug.
30687         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
30688         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
30689
30690 2010-05-01  Bruno Haible  <bruno@clisp.org>
30691
30692         fpurge: Sharper test.
30693         * tests/test-fpurge.c (main): Add one more ftell check.
30694         * modules/fpurge-tests (Depends-on): Add ftell.
30695         Suggested by Eric Blake.
30696
30697 2010-05-01  Bruno Haible  <bruno@clisp.org>
30698
30699         ftello: Another test.
30700         * tests/test-ftello3.c: New file.
30701         * modules/ftello-tests (Files): Add it.
30702         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
30703         MOSTLYCLEANFILES.
30704
30705         ftell: Another test.
30706         * tests/test-ftell3.c: New file.
30707         * modules/ftell-tests (Files): Add it.
30708         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
30709         MOSTLYCLEANFILES.
30710
30711 2010-05-01  Bruno Haible  <bruno@clisp.org>
30712
30713         ftell, ftello: Work around Solaris bug.
30714         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
30715         * lib/ftello.c: Include stdio-impl.h.
30716         (ftello): On Solaris, when _IOWRT is set, compute the result without
30717         looking at _IOREAD.
30718         * modules/ftello (Files): Add lib/stdio-impl.h.
30719         * doc/posix-functions/ftell.texi: Mention Solaris bug.
30720         * doc/posix-functions/ftello.texi: Likewise.
30721         Reported by Eric Blake.
30722
30723 2010-05-01  Bruno Haible  <bruno@clisp.org>
30724
30725         freading: Adapt to special meaning of _IOREAD flag on Solaris.
30726         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
30727         the _IOWRT flag is also set.
30728
30729 2010-05-01  Bruno Haible  <bruno@clisp.org>
30730
30731         Fix doc about a HP-UX stdio bug.
30732         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
30733         * doc/posix-functions/ftello.texi: Likewise.
30734
30735 2010-05-01  Bruno Haible  <bruno@clisp.org>
30736
30737         lseek test: Fix failure on Solaris.
30738         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
30739         output.
30740
30741 2010-04-30  Jim Meyering  <meyering@redhat.com>
30742
30743         bootstrap: don't ignore failure to generate po*/Makevars
30744         * build-aux/bootstrap (with_gettext): Don't ignore failure
30745         to create po/Makevars or runtime-po/Makevars.
30746
30747 2010-04-29  Eric Blake  <eblake@redhat.com>
30748
30749         headers: relax license to LGPLv2+
30750         * modules/fcntl-h (License): Relax license.
30751         * modules/getopt-posix (License): Likewise.
30752         * modules/locale (License): Likewise.
30753         * modules/math (License): Likewise.
30754         * modules/pty (License): Likewise.
30755         * modules/sched (License): Likewise.
30756         * modules/search (License): Likewise.
30757         * modules/spawn (License): Likewise.
30758         * modules/stdarg (License): Likewise.
30759         * modules/sysexits (License): Likewise.
30760
30761 2010-04-29  Jim Meyering  <meyering@redhat.com>
30762
30763         inttypes: relax license to LGPLv2+
30764         * modules/inttypes (License): Relax license.
30765
30766 2010-04-29  Simon Josefsson  <simon@josefsson.org>
30767
30768         * top/maint.mk (indent): Run twice to produce idempotent results.
30769
30770 2010-04-28  Bruno Haible  <bruno@clisp.org>
30771
30772         getdate: Generate getdate.c in the source directory.
30773         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
30774         MOSTLYCLEANFILES.
30775         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
30776
30777 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
30778
30779         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
30780         is not declared as a const *; avoid warnings in that case.
30781
30782 2010-04-28  Eric Blake  <eblake@redhat.com>
30783
30784         canonicalize-lgpl: avoid compiler warning
30785         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
30786         declaration' / 'extraneous semicolon' warning with some compilers.
30787         Reported by Andreas Gruenbacher.
30788
30789 2010-04-28  Jim Meyering  <meyering@redhat.com>
30790
30791         init.sh: ensure a more reliable exit status when exiting via trap
30792         * tests/init.sh (setup_): Don't rely on $? in signal handler.
30793         Inspired by patches from Dmitry V. Levin.
30794         Also trap on signal 3 (SIGQUIT).
30795
30796 2010-04-27  Bruno Haible  <bruno@clisp.org>
30797
30798         Update doc about utimes().
30799         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
30800         'utimens' module.
30801         Reported by Andreas Gruenbacher <agruen@suse.de>.
30802
30803 2010-04-27  Eric Blake  <eblake@redhat.com>
30804
30805         full-read, full-write: relax license
30806         * modules/full-read (License): Drop to LGPLv2+.
30807         * modules/full-write (License): Likewise.
30808         * modules/safe-read (License): Likewise.
30809         * modules/safe-write (License): Likewise.
30810
30811         pthread: mention library for linking
30812         * modules/pthread (Link): Mention $(LIB_PTHREAD).
30813
30814 2010-04-27  Jim Meyering  <meyering@redhat.com>
30815
30816         maint.mk: fix a bug introduced in last change
30817         * top/maint.mk (gl_assured_headers_): Now that all names are on
30818         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
30819         is not anchored to end of word, it should be adequate.
30820
30821         maint.mk: avoid side-effect in latest syntax-check
30822         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
30823         to run commands via $(shell...), and hence to incur cost only when
30824         the new rule is actually run.
30825
30826         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
30827         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
30828         and use that to create a regexp used to detect all #if HAVE_..._H uses.
30829         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
30830         (gl_assured_headers_, az_, AZ_): Define.
30831         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
30832
30833 2010-04-26  Jim Meyering  <jim@meyering.net>
30834             Bruno Haible  <bruno@clisp.org>
30835
30836         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
30837         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
30838         Prompted by an exchange with Gilles Espinasse.
30839
30840 2010-04-26  Jim Meyering  <meyering@redhat.com>
30841
30842         git-version-gen: aesthetic tweak
30843         * build-aux/git-version-gen: Use "$nl" rather than a literal,
30844         so that the command remains on a single line.
30845
30846 2010-04-26  Eric Blake  <eblake@redhat.com>
30847
30848         git-version-gen: allow use on EBCDIC hosts
30849         * build-aux/git-version-gen (dirty): Use literal rather than tying
30850         ourselves to ascii.
30851         Reported by Steve Goetze.
30852
30853 2010-04-25  Bruno Haible  <bruno@clisp.org>
30854
30855         netdb: Add support for GNULIB_POSIXCHECK.
30856         * lib/netdb.in.h: Include warn-on-use.h.
30857         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
30858         functions are used when GNULIB_POSIXCHECK is defined and the
30859         getaddrinfo module is not in use.
30860         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
30861         freeaddrinfo, gai_strerror, getnameinfo are declared.
30862         * modules/netdb (Depends-on): Add warn-on-use.
30863         (Makefile.am): Include warn-on-use.h in netdb.h.
30864
30865 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
30866
30867         build: avoid "make check" failure without .git/ directory
30868         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
30869         there is no .git/ directory.
30870
30871 2010-04-25  Bruno Haible  <bruno@clisp.org>
30872
30873         ptsname: Fix misuse of ttyname_r.
30874         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
30875         of errno.
30876
30877 2010-04-25  Bruno Haible  <bruno@clisp.org>
30878
30879         ttyname_r: Make it work on Solaris 10.
30880         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
30881         if the system function has the POSIX declaration. Test whether the
30882         function fails if the buffer is less than 128 bytes large.
30883         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
30884         system's ttyname_r function. Provide a reasonably large buffer.
30885         * modules/ttyname_r (Depends-on): Add extensions.
30886         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
30887
30888 2010-04-25  Bruno Haible  <bruno@clisp.org>
30889
30890         Use the 'extensions' module for some more functions on Solaris.
30891         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
30892         module.
30893         * doc/posix-functions/ctime_r.texi: Likewise.
30894         * doc/posix-functions/getgrgid_r.texi: Likewise.
30895         * doc/posix-functions/getgrnam_r.texi: Likewise.
30896         * doc/posix-functions/getpwnam_r.texi: Likewise.
30897         * doc/posix-functions/getpwuid_r.texi: Likewise.
30898         * doc/posix-functions/readdir_r.texi: Likewise.
30899         * doc/posix-functions/sigwait.texi: Likewise.
30900         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
30901         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
30902
30903 2010-04-25  Bruno Haible  <bruno@clisp.org>
30904
30905         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
30906         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
30907         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
30908         * lib/ttyname_r.c: Include <limits.h>.
30909         (ttyname_r): Define using the system's ttyname_r function, if it exists
30910         and not on Solaris.
30911         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
30912         set.
30913         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
30914         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
30915         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
30916         Reported by Simon Josefsson.
30917
30918 2010-04-25  Bruno Haible  <bruno@clisp.org>
30919
30920         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
30921         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
30922         * doc/posix-functions/ctime_r.texi: Likewise.
30923         * doc/posix-functions/getgrgid_r.texi: Likewise.
30924         * doc/posix-functions/getgrnam_r.texi: Likewise.
30925         * doc/posix-functions/getlogin_r.texi: Likewise.
30926         * doc/posix-functions/getpwnam_r.texi: Likewise.
30927         * doc/posix-functions/getpwuid_r.texi: Likewise.
30928         * doc/posix-functions/readdir_r.texi: Likewise.
30929         * doc/posix-functions/sigwait.texi: Likewise.
30930         * doc/posix-functions/ttyname_r.texi: Likewise.
30931         Reported by Simon Josefsson.
30932
30933 2010-04-25  Bruno Haible  <bruno@clisp.org>
30934
30935         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
30936         * gnulib-tool (func_usage): Document that --with-*-tests options apply
30937         also to --create-testdir.
30938         (func_acceptable): Don't consider the status of *-tests modules here.
30939         (func_modules_transitive_closure): Consider it here, before including a
30940         test module.
30941         (func_import, func_create_testdir): Set inc_all_direct_tests,
30942         inc_all_indirect_tests.
30943         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
30944         --create-testdir and --create-megatestdir.
30945
30946 2010-04-25  Bruno Haible  <bruno@clisp.org>
30947
30948         gnulib-tool: Add --without-*-tests options.
30949         * gnulib-tool (func_usage): Document the --without-*-tests options.
30950         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
30951         excl_unportable_tests): New variables.
30952         Fail if they are specified with --import or --update.
30953         (func_acceptable): Respect the excl_*_tests variables.
30954         (func_import): Set the excl_*_tests variables to empty.
30955
30956 2010-04-25  Simon Josefsson  <simon@josefsson.org>
30957             Bruno Haible  <bruno@clisp.org>
30958
30959         Work around a MacOS X 10.4 bug with openpty.
30960         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
30961         * tests/test-openpty.c (main): Close the master side explicitly.
30962
30963 2010-04-25  Bruno Haible  <bruno@clisp.org>
30964
30965         strnlen: Fix a C++ test error on MacOS X and Solaris.
30966         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
30967         the function is not declared.
30968         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
30969         Simon Josefsson.
30970
30971 2010-04-24  Bruno Haible  <bruno@clisp.org>
30972
30973         Avoid a gcc warning.
30974         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
30975         of correct type for %08lx directive.
30976         Reported by Eric Blake.
30977
30978 2010-04-24  Bruno Haible  <bruno@clisp.org>
30979
30980         vasnprintf: Correct errno value in case of out-of-memory.
30981         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
30982         or sprintf. Use the errno value from SNPRINTF or sprintf.
30983         Reported by Ian Beckwith <ianb@erislabs.net>.
30984
30985 2010-04-24  Bruno Haible  <bruno@clisp.org>
30986
30987         ansi-c++-opt: Find correct compiler when cross-compiling.
30988         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
30989         AC_CHECK_PROGS.
30990         Reported by Simon Josefsson.
30991
30992 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
30993
30994         vc-list-files: Add support for subversion
30995         * build-aux/vc-list-files: Use "svn list" to generate the list of
30996         files controlled by subversion.
30997
30998 2010-04-23  Jim Meyering  <meyering@redhat.com>
30999
31000         vc-list-files tests: convert to use init.sh
31001         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
31002         path_prepend_.
31003         Use Exit, not exit.
31004         Use skip_ rather than open coding it.
31005         Remove trap set-up and compare definitions.
31006         * tests/test-vc-list-files-git.sh: Likewise.
31007         * modules/vc-list-files-tests (Files): Add tests/init.sh.
31008
31009 2010-04-22  Simon Josefsson  <simon@josefsson.org>
31010
31011         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
31012         backup files.
31013
31014 2010-04-21  Simon Josefsson  <simon@josefsson.org>
31015
31016         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
31017
31018 2010-04-20  Eric Blake  <eblake@redhat.com>
31019
31020         tests: be robust to ignored SIGPIPE
31021         * tests/test-select-in.sh: Consume all output.
31022         * tests/test-lseek.sh: Check correct exit status, while avoiding
31023         EPIPE.
31024
31025 2010-04-20  Simon Josefsson  <simon@josefsson.org>
31026             Bruno Haible  <bruno@clisp.org>
31027
31028         visibility: Don't use -fvisibility if it leads to a warning.
31029         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
31030         yes, don't pretend that visibility works if it leads to a warning.
31031         Reported by Mike Gran <spk121@yahoo.com>.
31032
31033 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
31034
31035         * build-aux/bootstrap: Use "git -h" for testing for supported options
31036         instead of "git --help".  The short-form option only shows a summary,
31037         and doesn't layout the full man page.  Grep for the full option name
31038         in the summary, too.
31039
31040 2010-04-19  Bruno Haible  <bruno@clisp.org>
31041
31042         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
31043         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
31044         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
31045         mention of RELOCATABLE_STRIP.
31046         Reported by Sylvain Beucler <beuc@beuc.net>.
31047
31048 2010-04-19  Bruno Haible  <bruno@clisp.org>
31049
31050         * lib/diffseq.h: Fix typo in comment.
31051         Reported by Eric Blake.
31052
31053 2010-04-19  Bruno Haible  <bruno@clisp.org>
31054
31055         ioctl: Move autoconf macro to a .m4 file.
31056         * m4/ioctl.m4: New file, extracted from modules/ioctl.
31057         * modules/ioctl (Files): Add it.
31058         (configure.ac): Simply invoke gl_FUNC_IOCTL.
31059         Reported by Ian Beckwith <ianb@erislabs.net>.
31060
31061 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
31062             Bruno Haible  <bruno@clisp.org>
31063
31064         diffseq: Accommodate use-case with abstract arrays.
31065         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
31066         is not defined.
31067         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
31068         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
31069
31070 2010-04-18  Bruno Haible  <bruno@clisp.org>
31071
31072         * doc/posix-headers/stdbool.texi: More precise wording.
31073
31074 2010-04-17  Jim Meyering  <meyering@redhat.com>
31075
31076         maint.mk: use gnu-style indentation in an embedded perl script
31077         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
31078         Rename variable: s/two/last_two_bytes/
31079
31080 2010-04-16  Eric Blake  <eblake@redhat.com>
31081
31082         test-stdbool: skip test that fails with Solaris CC
31083         * tests/test-stdbool.c (f): Skip test that causes compilation
31084         error under buggy C++ compiler.
31085         * lib/stdbool.in.h: Document the limitation.
31086         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
31087
31088         setenv: allow compilation with C++
31089         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
31090         register keyword.
31091
31092         stdint: allow test to pass with C++
31093         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
31094
31095         getopt: allow compilation with C++
31096         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
31097         struct.
31098         * lib/getopt.c (_getopt_internal_r): Use correct type.
31099         Reported by Dagobert Michelson, via Joel E. Denny.
31100
31101 2010-04-16  Bruno Haible  <bruno@clisp.org>
31102
31103         Override netdb.h always.
31104         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
31105         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
31106         Reported by Ludovic Courtès <ludo@gnu.org>.
31107
31108 2010-04-15  Bruno Haible  <bruno@clisp.org>
31109
31110         openpty: Fix mistake from 2010-03-21.
31111         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
31112         Reported by Simon Josefsson.
31113
31114 2010-04-15  Eric Blake  <eblake@redhat.com>
31115
31116         test-forkpty: fix expected signature
31117         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
31118         Reported by Simon Josefsson.
31119
31120 2010-04-15  Jim Meyering  <meyering@redhat.com>
31121
31122         maint.mk: texinfo_suffix_re_: correct the default regexp
31123         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
31124
31125         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
31126         make it configurable via texinfo_suffix_re_.
31127
31128 2010-04-14  Eric Blake  <eblake@redhat.com>
31129
31130         strtok_r: relax license to LGPLv2+
31131         * modules/strtok_r (License): Relax license.
31132         Reported by Matthias Bolte.
31133
31134 2010-04-14  Simon Josefsson  <simon@josefsson.org>
31135
31136         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
31137         version 1.4.4 by default instead of requiring the libgcrypt
31138         version used during build.  This makes it possible to use the
31139         application with older but still binary compatible libgcrypt
31140         versions.
31141
31142 2010-04-13  Eric Blake  <eblake@redhat.com>
31143
31144         getopt-gnu: match recent glibc fixes and posix ruling
31145         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
31146         '+' handling, when requesting extensions.
31147         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
31148         'W;' handling.
31149         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
31150         * doc/posix-functions/getopt.texi (getopt): Document this.
31151         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
31152         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31153         Likewise.
31154
31155         getopt: merge bug fixes from glibc
31156         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
31157         diagnostics.  Honor '+:' correctly.  Reject ';'.
31158
31159         getopt-posix: detect MacOS bug
31160         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
31161         optind when missing a required argument.
31162         * doc/posix-functions/getopt.texi (getopt): Document the bug.
31163         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
31164         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31165         Likewise.
31166
31167         getopt-posix: avoid spurious failure on Solaris
31168         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
31169         an indicator that setting optind=1 is sufficient for reset.
31170
31171         getopt-posix: avoid spurious failure on FreeBSD
31172         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
31173         in POSIX mode, since the m4 test uses it.
31174
31175         gnulib-tool: silence warning on BSD sh
31176         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
31177
31178 2010-04-13  Jim Meyering  <meyering@redhat.com>
31179
31180         doc: users.txt: GNU patch now uses gnulib
31181         * users.txt: Add patch.
31182
31183 2010-04-12  Jim Meyering  <meyering@redhat.com>
31184
31185         maint.mk: generate more concise timing data for syntax-check rules
31186         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
31187         " done" from each line that reports a syntax-check test duration.
31188
31189 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
31190
31191         git-version-gen: use "git update-index..." rather than "git status"
31192         * build-aux/git-version-gen: Use git update-index --refresh, not
31193         "git status".  With some versions of git, "git status" would fail
31194         to update the index and result in an unwarranted "-dirty" suffix.
31195
31196 2010-04-11  Jim Meyering  <meyering@redhat.com>
31197
31198         openat: correct formatting (no semantic change)
31199         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
31200         Suggested by Bruno Haible.
31201
31202 2010-04-11  Bruno Haible  <bruno@clisp.org>
31203
31204         Stricter declaration checking in testdirs.
31205         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
31206         If for_tests is true, augment AM_CPPFLAGS to define
31207         GNULIB_STRICT_CHECKING.
31208         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
31209         GNULIB_STRICT_CHECKING is defined, verify that the function is
31210         declared.
31211
31212 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
31213             Bruno Haible  <bruno@clisp.org>
31214
31215         libunistring: Improve configure output.
31216         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
31217         Don't say "consider installing GNU libunistring" when checking again
31218         with libiconv.
31219
31220 2010-04-11  Bruno Haible  <bruno@clisp.org>
31221
31222         libunistring: Correct value of $LTLIBUNISTRING.
31223         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
31224         correct the value of $LTLIBUNISTRING.
31225
31226 2010-04-11  Bruno Haible  <bruno@clisp.org>
31227
31228         havelib: Add static libraries to LIBS in the right order.
31229         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
31230         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
31231
31232 2010-04-11  Bruno Haible  <bruno@clisp.org>
31233
31234         libunistring: Detect libunistring also when it depends on libiconv.
31235         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
31236         the second AC_LIB_HAVE_LINKFLAGS invocation.
31237
31238 2010-04-11  James Youngman  <jay@gnu.org>
31239
31240         close-stream: declare local scalars to be "const"
31241         * lib/close-stream.c (close_stream): Make boolean variables const
31242         to document the fact that we set but do not change them.
31243
31244 2010-04-11  Bruno Haible  <bruno@clisp.org>
31245
31246         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
31247
31248 2010-04-11  Jim Meyering  <meyering@redhat.com>
31249
31250         maint.mk: don't include dist-check.mk
31251         * top/maint.mk: Remove bogus include directive.
31252
31253         maint.mk: improve empty-line-at-EOF check
31254         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
31255         solution, rather than tail+Perl-based one.  The latter would read
31256         a few kilobytes from the end of each file, and did not handle empty
31257         files properly.
31258
31259         maint.mk: print the elapsed time for each syntax-check rule
31260         * top/maint.mk (sc_m_rules_): Save start time in a file.
31261         (sc_z_rules_): New rules: remove temp file and print elapsed time.
31262         (local-check): Interpose the .z rules
31263
31264 2010-04-11  Jim Meyering  <meyering@redhat.com>
31265
31266         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
31267         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
31268         empty file with one that ends in an empty line.
31269
31270 2010-04-10  Bruno Haible  <bruno@clisp.org>
31271
31272         mkdir: Make it work on mingw64.
31273         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
31274         * lib/mkdir.c: Update comment.
31275         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
31276
31277 2010-04-10  Bruno Haible  <bruno@clisp.org>
31278
31279         Don't override improved macro from newer autoconf.
31280         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
31281         autoconf >= 2.62.
31282         Reported by Joel E. Denny <jdenny@clemson.edu>.
31283
31284 2010-04-10  Jim Meyering  <meyering@redhat.com>
31285
31286         maint.mk: new syntax-check rule: prohibit empty lines at end of file
31287         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
31288
31289         maint.mk: correct a diagnostic
31290         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
31291         in diagnostic; now use $prohibit.
31292
31293 2010-04-10  Bruno Haible  <address@hidden>
31294
31295         fchownat: Fix a C++ test error on Solaris 8.
31296         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
31297         the function does not exist.
31298
31299 2010-04-10  Bruno Haible  <bruno@clisp.org>
31300
31301         vasnprintf: Add more tests.
31302         * tests/test-vasnprintf-posix.c: Include <errno.h>.
31303         (test_function): Test converting an invalid wide string.
31304
31305         vasnprintf: Correct handling of unconvertible wide string arguments.
31306         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
31307         VASNPRINTF.
31308         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
31309         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
31310         smaller than the expected maximum need for the directive. Set errno to
31311         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
31312         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
31313         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
31314         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
31315         * modules/vasnprintf (Files): Add m4/printf.m4.
31316         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
31317
31318 2010-04-10  Bruno Haible  <bruno@clisp.org>
31319
31320         vasnprintf: Fix crash in %ls directive.
31321         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
31322         string is passed as argument to %ls, with no precision and no width.
31323         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
31324
31325 2010-04-10  Bruno Haible  <bruno@clisp.org>
31326
31327         vasnprintf: Fix multiple test failures on mingw.
31328         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
31329         _snprintf, or snwprintf, not _snwprintf.
31330
31331 2010-04-10  Bruno Haible  <bruno@clisp.org>
31332
31333         write: Fix a C++ test error on mingw.
31334         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
31335
31336 2010-04-10  Bruno Haible  <bruno@clisp.org>
31337
31338         vasnprintf test: Reduce code duplication.
31339         * tests/test-vasnprintf.c (test_function): New function, extracted from
31340         test_vasnprintf.
31341         (test_vasnprintf, test_asnprintf): Invoke it.
31342
31343 2010-04-10  Bruno Haible  <bruno@clisp.org>
31344
31345         strnlen: Fix warning in C++ mode on MacOS X.
31346         * lib/string.in.h (strnlen): Use the modern idiom.
31347         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
31348         defining strnlen as a macro already in <config.h>.
31349         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
31350         REPLACE_STRNLEN.
31351         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
31352         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
31353
31354 2010-04-08  James Youngman  <jay@gnu.org>
31355
31356         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
31357         the example.
31358
31359 2010-04-09  Jim Meyering  <meyering@redhat.com>
31360
31361         maint.mk: print better diagnostic when there is no $(_hv_file)
31362         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
31363         announce that when $(_hv_file) (aka help-version) does not exist.
31364
31365         init.sh: run tr in the "C" locale to avoid multibyte interpretation
31366         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
31367         not try to interpret its random input bytes.  Jarno Rajahalme reported
31368         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
31369         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
31370         (mktempd_): Likewise, just in case.
31371
31372         ftruncate: add two years to projected module removal date: 2012
31373         * m4/ftruncate.m4: Adjust comments.
31374
31375         ftruncate: mark module as obsolete; even MinGW provides it, now
31376         * modules/ftruncate (Status): Obsolete.
31377         (Notice): Say that.
31378         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
31379         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
31380
31381 2010-04-08  Bruno Haible  <bruno@clisp.org>
31382
31383         Fix side effects from tests-related modules.
31384         * modules/dprintf-posix (Comment): New section.
31385         * modules/fprintf-posix (Comment): Likewise.
31386         * modules/obstack-printf-posix (Comment): Likewise.
31387         * modules/printf-posix (Comment): Likewise.
31388         * modules/snprintf-posix (Comment): Likewise.
31389         * modules/sprintf-posix (Comment): Likewise.
31390         * modules/vasnprintf-posix (Comment): Likewise.
31391         * modules/vasprintf-posix (Comment): Likewise.
31392         * modules/vdprintf-posix (Comment): Likewise.
31393         * modules/vfprintf-posix (Comment): Likewise.
31394         * modules/vprintf-posix (Comment): Likewise.
31395         * modules/vsnprintf-posix (Comment): Likewise.
31396         * modules/vsprintf-posix (Comment): Likewise.
31397         * modules/xprintf-posix (Comment): Likewise.
31398         * modules/xvasprintf-posix (Comment): Likewise.
31399         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
31400         * modules/floorf-tests (Depends-on): Likewise.
31401         * modules/round-tests (Depends-on): Likewise.
31402         * modules/roundf-tests (Depends-on): Likewise.
31403         * modules/trunc-tests (Depends-on): Likewise.
31404         * modules/truncf-tests (Depends-on): Likewise.
31405         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
31406         'fprintf-posix' module is not present.
31407         * tests/test-floorf2.c (check): Likewise.
31408         * tests/test-trunc2.c (check): Likewise.
31409         * tests/test-truncf2.c (check): Likewise.
31410         * tests/test-round2.c (equal): Likewise.
31411         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
31412
31413 2010-04-07  Karl Berry  <karl@gnu.org>
31414
31415         * config/srclist.txt,
31416         * config/srclistvars.sh,
31417         * config/srclist-update: doc fixes.
31418
31419 2010-04-07  Jim Meyering  <meyering@redhat.com>
31420
31421         maint.mk: add a PATH crosschecking syntax-check rule
31422         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
31423         Useful if you use a test like the one in help-version (coreutils,
31424         diffutils, grep, gzip) that ensures $(VERSION) matches what is
31425         printed by prog --version.
31426
31427 2010-04-06  Bruno Haible  <bruno@clisp.org>
31428
31429         Fix link error on mingw.
31430         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
31431         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
31432
31433 2010-04-06  Bruno Haible  <bruno@clisp.org>
31434
31435         Assume rmdir exists.
31436         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
31437
31438 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
31439
31440         doc: update users.txt
31441         * users.txt: Add gcal.
31442
31443 2010-04-06  Jim Meyering  <meyering@redhat.com>
31444
31445         init.sh: simply unset TMPDIR rather than risking env -i
31446         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
31447         although it probably works fine on all Unix-based systems, some
31448         systems (Cygwin?) cannot tolerate a totally cleared environment.
31449         Suggestion from Eric Blake.
31450
31451 2010-04-06  Jim Meyering  <meyering@redhat.com>
31452
31453         init.sh: portability fix: use env's POSIX-specified -i option not -u
31454         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
31455         than unportable env -u.  Solaris 5.11's env lacks support for -u.
31456
31457 2010-04-05  Bruno Haible  <bruno@clisp.org>
31458
31459         btowc: Work around Cygwin 1.7.2 bug.
31460         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
31461         does not map NUL to 0.
31462         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
31463
31464 2010-04-05  Bruno Haible  <bruno@clisp.org>
31465
31466         Make the multithread modules work on Cygwin 1.7.2.
31467         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
31468         imported symbols can be declared weak, so that it returns "no" on
31469         Cygwin 1.7.2.
31470
31471 2010-04-05  Bruno Haible  <bruno@clisp.org>
31472
31473         Use the module 'strncat'.
31474         * modules/unistr/u8-strncat (Depends-on): Add strncat.
31475
31476         Tests for module 'strncat'.
31477         * modules/strncat-tests: New file.
31478         * tests/test-strncat.c: New file.
31479
31480         New module 'strncat'.
31481         * lib/string.in.h (strncat): New declaration.
31482         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
31483         * m4/strncat.m4: New file, based on m4/memchr.m4.
31484         * modules/strncat: New file.
31485         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
31486         is declared.
31487         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
31488         REPLACE_STRNCAT.
31489         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
31490         REPLACE_STRNCAT.
31491         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
31492         module.
31493         * tests/test-string-c++.cc: Check signature of strncat.
31494
31495 2010-04-05  Jim Meyering  <meyering@redhat.com>
31496
31497         xstrtoumax-tests: convert to use init.sh
31498         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
31499         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
31500         Use Exit, not exit.
31501         Remove uses of $EXEEXT and "./" to run a program in the current dir.
31502
31503         xstrtoimax-tests: convert to use init.sh
31504         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
31505         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
31506         Use Exit, not exit.
31507         Remove uses of $EXEEXT and "./" to run a program in the current dir.
31508
31509 2010-04-05  Bruno Haible  <bruno@clisp.org>
31510
31511         sys_socket: Avoid #define replacements in C++ mode.
31512         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
31513         warning to the function if possible, rather than #defining the symbol
31514         to a dysfunctional alias.
31515
31516 2010-04-05  Bruno Haible  <bruno@clisp.org>
31517
31518         fseeko: Fix C++ test error on mingw.
31519         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
31520         gl_FUNC_FSEEKO.
31521         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
31522         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
31523         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
31524         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
31525
31526 2010-04-05  Bruno Haible  <bruno@clisp.org>
31527
31528         duplocale: Improve test output.
31529         * tests/test-duplocale.c (main): Print reason for skipped test.
31530
31531 2010-04-05  Bruno Haible  <bruno@clisp.org>
31532
31533         Assume rmdir exists.
31534         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
31535         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
31536
31537 2010-04-05  Bruno Haible  <bruno@clisp.org>
31538
31539         Fix link error on Solaris 8 with cc.
31540         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
31541
31542 2010-04-05  Bruno Haible  <bruno@clisp.org>
31543
31544         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
31545         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
31546
31547 2010-04-05  Bruno Haible  <bruno@clisp.org>
31548
31549         vasprintf: Update documentation.
31550         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
31551
31552 2010-04-05  Bruno Haible  <bruno@clisp.org>
31553
31554         ptsname: Improve test.
31555         * tests/test-ptsname.c (main): Also try the various master names of BSD
31556         systems.
31557
31558 2010-04-05  Bruno Haible  <bruno@clisp.org>
31559
31560         memchr: Avoid a possible C++ test error.
31561         * lib/string.in.h (memchr): Provide declaration if function is missing.
31562         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
31563         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
31564         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
31565         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
31566
31567 2010-04-05  Bruno Haible  <bruno@clisp.org>
31568
31569         strtok_r: Improve idiom.
31570         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
31571         AC_LIBOBJ is used.
31572
31573 2010-04-05  Bruno Haible  <bruno@clisp.org>
31574
31575         strdup: Improve idiom.
31576         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
31577         AC_LIBOBJ is used.
31578         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
31579         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
31580         when AC_LIBOBJ is used.
31581
31582 2010-04-05  Bruno Haible  <bruno@clisp.org>
31583
31584         mbsinit, mbrtowc, wcrtomb: Improve idioms.
31585         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
31586         don't set REPLACE_MBSINIT to 1.
31587         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
31588         don't set REPLACE_MBRTOWC to 1.
31589         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
31590         exist, don't set REPLACE_MBSRTOWCS to 1.
31591         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
31592         exist, don't set REPLACE_MBSNRTOWCS to 1.
31593         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
31594         don't set REPLACE_WCRTOMB to 1.
31595         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
31596         exist, don't set REPLACE_WCSRTOMBS to 1.
31597         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
31598         exist, don't set REPLACE_WCSNRTOMBS to 1.
31599
31600 2010-04-05  Bruno Haible  <bruno@clisp.org>
31601
31602         ldexpl: Improve idiom.
31603         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
31604         make sure to set HAVE_DECL_LDEXPL to 0.
31605
31606 2010-04-05  Jim Meyering  <meyering@redhat.com>
31607
31608         xstrtol-tests: convert to use init.sh
31609         * modules/xstrtol-tests (Files): Add tests/init.sh.
31610         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
31611         Use Exit, not exit.
31612         Remove uses of $EXEEXT and "./" to run a program in the current dir.
31613
31614         atexit-tests: convert to use init.sh
31615         * modules/atexit-tests (Files): Add tests/init.sh.
31616         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
31617         Use Exit, not exit.
31618         Remove uses of $EXEEXT and "./" to run a program in the current dir.
31619
31620         init.sh: fix typo
31621         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
31622
31623         init.sh: make it easier for a test script to write to the tty, ...
31624         when using automake's parallel-tests mode.
31625         * tests/init.sh (stderr_fileno_): Define overridable variable.
31626         (warn_): New function, to use it.
31627         (fail_, skip_, framework_failure_): Use warn_.
31628
31629 2010-04-04  Bruno Haible  <bruno@clisp.org>
31630
31631         btowc: Avoid warning.
31632         * lib/btowc.c: Include <stdlib.h>.
31633         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
31634
31635 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
31636             Bruno Haible  <bruno@clisp.org>
31637
31638         wchar: Port to NetBSD 1.5.
31639         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
31640         * lib/wctype.in.h (WEOF): Likewise.
31641
31642 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
31643             Bruno Haible  <bruno@clisp.org>
31644
31645         Port extended stdio to NetBSD 1.5.
31646         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
31647         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
31648         older.
31649
31650 2010-04-04  Bruno Haible  <bruno@clisp.org>
31651
31652         string: Remove unused substitution.
31653         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
31654         HAVE_DECL_STRERROR.
31655         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
31656
31657 2010-04-04  Bruno Haible  <bruno@clisp.org>
31658
31659         strtod: Avoid a possible C++ test error.
31660         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
31661         set REPLACE_STRTOD.
31662
31663 2010-04-04  Bruno Haible  <bruno@clisp.org>
31664
31665         strerror: Update documentation.
31666         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
31667
31668 2010-04-04  Bruno Haible  <bruno@clisp.org>
31669
31670         stdio: Fix some C++ test errors on Solaris 8 with GCC.
31671         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
31672         _GL_CXXALIAS_SYS_CAST.
31673
31674 2010-04-04  Bruno Haible  <bruno@clisp.org>
31675
31676         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
31677         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
31678         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
31679         REPLACE_FREXPL to 1.
31680         * doc/posix-functions/frexpl.texi: Update documentation.
31681
31682 2010-04-04  Bruno Haible  <bruno@clisp.org>
31683
31684         math: Fix some C++ test errors on Solaris 8 and Cygwin.
31685         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
31686
31687 2010-04-04  Bruno Haible  <bruno@clisp.org>
31688
31689         Implement nanosleep for native Windows.
31690         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
31691
31692 2010-04-04  Bruno Haible  <bruno@clisp.org>
31693
31694         math: Fix some C++ test errors on Solaris 8.
31695         * lib/math.in.h (truncf, trunc): Use simpler idiom.
31696
31697 2010-04-04  Bruno Haible  <bruno@clisp.org>
31698
31699         math: Fix some C++ test errors on Cygwin.
31700         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
31701         truncl): Provide declaration if the system does not have it.
31702         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
31703         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
31704         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
31705         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
31706         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
31707         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
31708         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
31709         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
31710         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
31711         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
31712         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
31713         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
31714         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
31715         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
31716         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
31717         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
31718         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
31719         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
31720         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
31721         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
31722         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
31723         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
31724
31725 2010-04-04  Bruno Haible  <bruno@clisp.org>
31726
31727         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
31728         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
31729         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
31730         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
31731         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
31732         * m4/isinf.m4 (gl_ISINF): Likewise.
31733         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
31734
31735 2010-04-04  Bruno Haible  <bruno@clisp.org>
31736
31737         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
31738         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
31739
31740 2010-04-04  Bruno Haible  <bruno@clisp.org>
31741
31742         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
31743         * modules/tmpfile (configure.ac): Update.
31744
31745         tmpfile: Fix C++ test error on mingw.
31746         * lib/stdio.in.h (tmpfile): New declaration.
31747         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
31748         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
31749         * modules/tmpfile (Depends-on): Add stdio.
31750         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
31751         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
31752         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
31753         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
31754         REPLACE_TMPFILE.
31755         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
31756
31757 2010-04-04  Bruno Haible  <bruno@clisp.org>
31758
31759         ioctl: Fix C++ test error on mingw.
31760         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
31761         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
31762         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
31763
31764 2010-04-03  Bruno Haible  <bruno@clisp.org>
31765
31766         wcwidth: Fix C++ test error on mingw.
31767         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
31768         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
31769         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
31770
31771 2010-04-03  Bruno Haible  <bruno@clisp.org>
31772
31773         nanosleep: Fix C++ test error on mingw.
31774         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
31775         * lib/time.in.h (nanosleep): Use modern idiom.
31776         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
31777         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
31778         REPLACE_NANOSLEEP to 1.
31779         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
31780         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
31781
31782 2010-04-03  Bruno Haible  <bruno@clisp.org>
31783
31784         strptime: Fix C++ test error on mingw.
31785         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
31786         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
31787         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
31788         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
31789         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
31790         not REPLACE_STRPTIME.
31791         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
31792         REPLACE_STRPTIME.
31793
31794 2010-04-03  Bruno Haible  <bruno@clisp.org>
31795
31796         timegm: Fix C++ test error on mingw.
31797         * lib/time.in.h (timegm): Use modern idiom.
31798         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
31799         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
31800         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
31801         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
31802
31803 2010-04-03  Bruno Haible  <bruno@clisp.org>
31804
31805         timegm: Assume declaration if function exists.
31806         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
31807         if it exists. Don't clobber ac_cv_func_timegm.
31808
31809 2010-04-03  Bruno Haible  <bruno@clisp.org>
31810
31811         time_r: Fix C++ test error on mingw.
31812         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
31813         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
31814         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
31815         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
31816         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
31817
31818 2010-04-03  Bruno Haible  <bruno@clisp.org>
31819
31820         time_r: Minor updates.
31821         * modules/time_r (Description): Mention the provided functions.
31822         * lib/time_r.c: Don't include <string.h>.
31823         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
31824         * doc/posix-functions/localtime_r.texi: Likewise.
31825
31826 2010-04-03  Bruno Haible  <bruno@clisp.org>
31827
31828         time: Fix regression introduced on 2010-03-08.
31829         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
31830         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
31831
31832 2010-04-03  Jim Meyering  <meyering@redhat.com>
31833
31834         maint.mk: don't silently disable project-specific syntax-check rules
31835         * top/maint.mk (_prohibit_regexp): Define, to help people realize
31836         that they need to convert their project-specific syntax-check rules
31837         to use the new _sc_search_regexp.
31838
31839 2010-04-03  Bruno Haible  <bruno@clisp.org>
31840
31841         fchdir: Fix regression introduced on 2010-03-08.
31842         * lib/unistd.in.h (fchdir): Fix declaration.
31843         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
31844         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
31845         REPLACE_FCHDIR.
31846         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
31847         REPLACE_FCHDIR.
31848
31849 2010-04-03  Bruno Haible  <bruno@clisp.org>
31850
31851         getpagesize: Fix C++ test error on mingw.
31852         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
31853         system does not declare the function.
31854         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
31855         declared.
31856         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31857         HAVE_DECL_GETPAGESIZE.
31858         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
31859
31860 2010-04-03  Bruno Haible  <bruno@clisp.org>
31861
31862         stdio: Make C++ tests work on mingw.
31863         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
31864         does not declare the function.
31865
31866 2010-04-03  Bruno Haible  <bruno@clisp.org>
31867
31868         ftello: Fix C++ test error on mingw.
31869         * lib/stdio.in.h (ftello): Use modern idiom.
31870         * lib/ftello.c (ftello): Renamed from rpl_ftello.
31871         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
31872         is missing and that it needs to be replaced.
31873         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
31874         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
31875         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
31876
31877 2010-04-03  Bruno Haible  <bruno@clisp.org>
31878
31879         fseeko: Fix C++ test error on mingw.
31880         * lib/stdio.in.h (fseeko): Use modern idiom.
31881         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
31882         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
31883         is missing and that it needs to be replaced.
31884         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
31885         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
31886         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
31887
31888 2010-04-03  Bruno Haible  <bruno@clisp.org>
31889
31890         mkstemp: Fix C++ test error on mingw.
31891         * lib/stdlib.in.h (mkstemp): Use modern idiom.
31892         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
31893         function is missing and that it needs to be replaced.
31894         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
31895         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
31896
31897 2010-04-03  Bruno Haible  <bruno@clisp.org>
31898
31899         stpncpy: Fix C++ test error on mingw.
31900         * lib/string.in.h (stpncpy): Use modern idiom.
31901         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
31902         function is missing and that it needs to be replaced.
31903         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
31904         REPLACE_STPNCPY.
31905         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
31906
31907 2010-04-03  Bruno Haible  <bruno@clisp.org>
31908
31909         sys_stat: Fix C++ test error on mingw.
31910         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
31911         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
31912
31913 2010-04-03  Bruno Haible  <bruno@clisp.org>
31914
31915         pty: Update doc.
31916         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
31917
31918 2010-04-03  Bruno Haible  <bruno@clisp.org>
31919
31920         unistd: Fix C++ test error on mingw.
31921         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
31922
31923 2010-04-03  Bruno Haible  <bruno@clisp.org>
31924
31925         Update doc regarding mingw.
31926         * doc/glibc-functions/openpty.texi: Update regarding mingw.
31927         * doc/glibc-functions/login_tty.texi: Likewise.
31928         * doc/glibc-functions/forkpty.texi: Likewise.
31929
31930 2010-04-03  Bruno Haible  <bruno@clisp.org>
31931
31932         stdlib: Avoid compilation failure of c-strtold on mingw.
31933         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
31934
31935 2010-04-03  Bruno Haible  <bruno@clisp.org>
31936
31937         locale: Make C++ tests work on Cygwin and mingw.
31938         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
31939         cannot provide the function.
31940         Reported by Simon Josefsson.
31941
31942 2010-04-03  Bruno Haible  <bruno@clisp.org>
31943
31944         localename: Port to MacOS X 10.6.
31945         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
31946         memory layout of the locales in MacOS X 10.6 as well.
31947         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
31948
31949 2010-04-02  Bruno Haible  <bruno@clisp.org>
31950
31951         gnulib-tool: Ensure that long-running tests are executed last.
31952         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
31953         running tests after the one for the other tests.
31954
31955 2010-04-02  Bruno Haible  <bruno@clisp.org>
31956
31957         gnulib-tool: Ensure the tests in the main directory are executed first.
31958         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
31959         start with the current directory.
31960
31961 2010-04-02  Bruno Haible  <bruno@clisp.org>
31962
31963         Tests for module 'havelib', moved here from GNU gettext.
31964         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
31965         modifications.
31966         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
31967         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
31968         with modifications.
31969         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
31970         modifications.
31971         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
31972         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
31973         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
31974         with modifications.
31975         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
31976         with modifications.
31977         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
31978         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
31979         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
31980         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
31981         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
31982         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
31983         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
31984         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
31985         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
31986         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
31987         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
31988         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
31989         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
31990         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
31991         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
31992         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
31993         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
31994         with modifications.
31995         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
31996         with modifications.
31997         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
31998         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
31999         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
32000         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
32001         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
32002         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
32003         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
32004         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
32005         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
32006         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
32007         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
32008         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
32009         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
32010         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
32011         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
32012         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
32013         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
32014         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
32015         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
32016         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
32017         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
32018         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
32019         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
32020         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
32021         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
32022         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
32023         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
32024         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
32025         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
32026         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
32027         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
32028         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
32029         * tests/havelib/rpathx/rpathx.c: New file, from
32030         gettext/autoconf-lib-link.
32031         * tests/havelib/rpathx/Makefile.am: New file, from
32032         gettext/autoconf-lib-link.
32033         * tests/havelib/rpathx/configure.ac: New file, from
32034         gettext/autoconf-lib-link with modifications.
32035         * tests/havelib/rpathy/rpathy.c: New file, from
32036         gettext/autoconf-lib-link.
32037         * tests/havelib/rpathy/Makefile.am: New file, from
32038         gettext/autoconf-lib-link.
32039         * tests/havelib/rpathy/configure.ac: New file, from
32040         gettext/autoconf-lib-link with modifications.
32041         * tests/havelib/rpathz/rpathz.c: New file, from
32042         gettext/autoconf-lib-link.
32043         * tests/havelib/rpathz/Makefile.am: New file, from
32044         gettext/autoconf-lib-link.
32045         * tests/havelib/rpathz/configure.ac: New file, from
32046         gettext/autoconf-lib-link with modifications.
32047         * tests/havelib/rpathlx/usex.c: New file, from
32048         gettext/autoconf-lib-link.
32049         * tests/havelib/rpathlx/Makefile.am: New file, from
32050         gettext/autoconf-lib-link.
32051         * tests/havelib/rpathlx/configure.ac: New file, from
32052         gettext/autoconf-lib-link with modifications.
32053         * tests/havelib/rpathly/usey.c: New file, from
32054         gettext/autoconf-lib-link.
32055         * tests/havelib/rpathly/Makefile.am: New file, from
32056         gettext/autoconf-lib-link.
32057         * tests/havelib/rpathly/configure.ac: New file, from
32058         gettext/autoconf-lib-link with modifications.
32059         * tests/havelib/rpathlz/usez.c: New file, from
32060         gettext/autoconf-lib-link.
32061         * tests/havelib/rpathlz/Makefile.am: New file, from
32062         gettext/autoconf-lib-link.
32063         * tests/havelib/rpathlz/configure.ac: New file, from
32064         gettext/autoconf-lib-link with modifications.
32065         * tests/havelib/rpathlyx/usey.c: New file, from
32066         gettext/autoconf-lib-link.
32067         * tests/havelib/rpathlyx/Makefile.am: New file, from
32068         gettext/autoconf-lib-link.
32069         * tests/havelib/rpathlyx/configure.ac: New file, from
32070         gettext/autoconf-lib-link with modifications.
32071         * tests/havelib/rpathlzyx/usez.c: New file, from
32072         gettext/autoconf-lib-link.
32073         * tests/havelib/rpathlzyx/Makefile.am: New file, from
32074         gettext/autoconf-lib-link.
32075         * tests/havelib/rpathlzyx/configure.ac: New file, from
32076         gettext/autoconf-lib-link with modifications.
32077         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
32078         with modifications.
32079
32080 2010-04-02  Bruno Haible  <bruno@clisp.org>
32081
32082         gnulib-tool: Create distributed built sources also for the tests.
32083         * gnulib-tool (func_create_testdir): Also generate distributed built
32084         sources in the tests directory.
32085
32086 2010-04-02  Bruno Haible  <bruno@clisp.org>
32087
32088         gnulib-tool: Obey user's environment variables.
32089         * gnulib-tool (func_create_testdir): When creating built sources,
32090         respect the environment variables for autoconf, automake, etc. given by
32091         the user.
32092
32093 2010-04-02  Bruno Haible  <bruno@clisp.org>
32094
32095         gnulib-tool: Provide the value of --m4-base to modules.
32096         * gnulib-tool (func_import, func_create_testdir): Emit a definition
32097         of gl_m4_base.
32098
32099 2010-04-02  Eric Blake  <eblake@redhat.com>
32100
32101         maint.mk: fix some fallout
32102         * NEWS: Document the incompatible change, and its effect on cfg.mk.
32103         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
32104
32105 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
32106
32107         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
32108         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
32109         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
32110         (sc_cast_of_x_alloc_return_value): Likewise.
32111         (sc_cast_of_alloca_return_value): Likewise.
32112         (sc_space_tab): Likewise.
32113         (sc_prohibit_atoi_atof): Likewise.
32114         (sc_prohibit_magic_number_exit): Likewise.
32115         (sc_error_exit_success): Likewise.
32116         (sc_file_system): Likewise.
32117         (sc_prohibit_have_config_h): Likewise.
32118         (sc_require_config_h): Likewise.
32119         (sc_prohibit_HAVE_MBRTOWC): Likewise.
32120         (sc_obsolete_symbols): Likewise.
32121         (sc_changelog): Likewise.
32122         (sc_program_name): Likewise.
32123         (sc_the_the): Likewise.
32124         (sc_trailing_blank): Likewise.
32125         (sc_two_space_separator_in_usage): Likewise.
32126         (sc_useless_cpp_parens): Likewise.
32127         (sc_GPL_version): Likewise.
32128         (sc_GFDL_version): Likewise.
32129         (sc_texinfo_acronym): Likewise.
32130         (sc_prohibit_cvs_keyword): Likewise.
32131         (sc_prohibit_stat_st_blocks): Likewise.
32132         (sc_prohibit_S_IS_definition): Likewise.
32133         (sc_redundant_const): Likewise.
32134         (sc_makefile_TAB_only_indentation): Likewise.
32135         (sc_m4_quote_check): Likewise.
32136         (sc_makefile_path_separator_check): Likewise.
32137         (sc_copyright_check): Likewise.
32138         (sc_Wundef_boolean): Likewise.
32139         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
32140
32141         maint.mk: match 0 or more whitespace-before-function-call '('
32142         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
32143         that have zero or two-and-more spaces between the function name
32144         and the open parenthesis.
32145         (sc_error_message_warn_fatal): Likewise.
32146         (sc_error_message_uppercase): Likewise.
32147         (sc_error_message_period): Likewise.
32148
32149 2010-03-31  Eric Blake  <eblake@redhat.com>
32150
32151         maint.mk: check for [ as well as test
32152         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
32153         Based on a libvirt report by Matthias Bolte.
32154
32155         gnumakefile: don't squelch _version output
32156         * top/GNUmakefile (_version): Create one-shot dependency rather
32157         than using $(shell) when version must be regenerated.
32158         (_autoreconf): Run verbosely, by default.
32159
32160         sys_time: avoid compiler warnings
32161         * lib/sys_time.in.h (includes): Ensure gcc pragma is
32162         unconditional, fixing regression from 2010-03-29.
32163         Reported by Simon Josefsson.
32164
32165 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
32166
32167         maint.mk: s/_header_without_use/_sc_header_without_use/
32168         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
32169         (sc_prohibit_assert_without_use): Use the new name.
32170         (sc_prohibit_close_stream_without_use): Likewise.
32171         (sc_prohibit_getopt_without_use): Likewise.
32172         (sc_prohibit_quotearg_without_use): Likewise.
32173         (sc_prohibit_quote_without_use): Likewise.
32174         (sc_prohibit_long_options_without_use): Likewise.
32175         (sc_prohibit_inttostr_without_use): Likewise.
32176         (sc_prohibit_ignore_value_without_use): Likewise.
32177         (sc_prohibit_error_without_use): Likewise.
32178         (sc_prohibit_xalloc_without_use): Likewise.
32179         (sc_prohibit_hash_without_use): Likewise.
32180         (sc_prohibit_hash_pjw_without_use): Likewise.
32181         (sc_prohibit_safe_read_without_use): Likewise.
32182         (sc_prohibit_argmatch_without_use): Likewise.
32183         (sc_prohibit_canonicalize_without_use): Likewise.
32184         (sc_prohibit_root_dev_ino_without_use): Likewise.
32185         (sc_prohibit_openat_without_use): Likewise.
32186         (sc_prohibit_c_ctype_without_use): Likewise.
32187         (sc_prohibit_signal_without_use): Likewise.
32188         (sc_prohibit_intprops_without_use): Likewise.
32189
32190 2010-03-30  Eric Blake  <eblake@redhat.com>
32191
32192         maint: improve module indicators
32193         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
32194         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
32195         columns, and avoid extra macro expansion.
32196
32197         fdopendir: work around FreeBSD bug
32198         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
32199         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
32200         * modules/dirent (Makefile.am): Substitute it.
32201         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
32202         declaration.
32203         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
32204         fix.
32205         Reported by Christian Weisgerber <naddy@mips.inka.de>.
32206
32207 2010-03-29  Bruno Haible  <bruno@clisp.org>
32208
32209         Emit #pragma system_header after the inclusion guard, not before.
32210         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
32211         guard that spans the entire file, not before. This enables an
32212         optimization in GCC's preprocessor.
32213         * lib/ctype.in.h: Likewise.
32214         * lib/dirent.in.h: Likewise.
32215         * lib/errno.in.h: Likewise.
32216         * lib/float.in.h: Likewise.
32217         * lib/getopt.in.h: Likewise.
32218         * lib/iconv.in.h: Likewise.
32219         * lib/langinfo.in.h: Likewise.
32220         * lib/locale.in.h: Likewise.
32221         * lib/math.in.h: Likewise.
32222         * lib/netdb.in.h: Likewise.
32223         * lib/netinet_in.in.h: Likewise.
32224         * lib/pty.in.h: Likewise.
32225         * lib/sched.in.h: Likewise.
32226         * lib/se-selinux.in.h: Likewise.
32227         * lib/search.in.h: Likewise.
32228         * lib/spawn.in.h: Likewise.
32229         * lib/stdarg.in.h: Likewise.
32230         * lib/stdint.in.h: Likewise.
32231         * lib/string.in.h: Likewise.
32232         * lib/strings.in.h: Likewise.
32233         * lib/sys_file.in.h: Likewise.
32234         * lib/sys_ioctl.in.h: Likewise.
32235         * lib/sys_time.in.h: Likewise.
32236         * lib/sys_times.in.h: Likewise.
32237         * lib/sys_utsname.in.h: Likewise.
32238         * lib/sys_wait.in.h: Likewise.
32239         * lib/sysexits.in.h: Likewise.
32240         * lib/wctype.in.h: Likewise.
32241
32242 2010-03-28  James Youngman  <jay@gnu.org>
32243
32244         save-cwd: don't leak a file descriptor when the caller execs.
32245         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
32246         saved file descriptor.
32247         * modules/save-cwd (Depends-on): Depend on cloexec.
32248
32249 2010-03-29  Bruno Haible  <bruno@clisp.org>
32250
32251         Remove vestiges of fts-lgpl module.
32252         * lib/fts_.h: Assume GNULIB_FTS is 1.
32253         * lib/fts.c: Likewise.
32254         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
32255
32256 2010-03-28  Bruno Haible  <bruno@clisp.org>
32257
32258         Fix definition of tests witness macro.
32259         * gnulib-tool (func_import): Fix definition of witness macro.
32260
32261 2010-03-28  Bruno Haible  <bruno@clisp.org>
32262
32263         Fix ioctl's protoype on glibc systems.
32264         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
32265         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
32266         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
32267         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
32268         signature. If not, arrange to replace the ioctl function.
32269         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
32270         REPLACE_IOCTL.
32271         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
32272         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
32273         Reported by Ludovic Courtès <ludo@gnu.org>.
32274
32275 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
32276
32277         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
32278         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
32279         made it so grep -r --include=GLOB* ... did not work.
32280
32281 2010-03-26  Jim Meyering  <meyering@redhat.com>
32282             Eric Blake  <eblake@redhat.com>
32283
32284         maint.mk: prohibit use of test's -o and -a operators
32285         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
32286
32287 2010-03-28  Bruno Haible  <bruno@clisp.org>
32288
32289         Remove unused GNULIB_XYZ macro definitions.
32290         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
32291         invocation.
32292
32293 2010-03-28  Bruno Haible  <bruno@clisp.org>
32294
32295         Mark privileged tests modules.
32296         * modules/idpriv-drop-tests (Status): New section.
32297         * modules/idpriv-droptemp-tests (Status): New section.
32298
32299 2010-03-28  Bruno Haible  <bruno@clisp.org>
32300
32301         Split C++ tests into separate tests modules.
32302         * modules/dirent-c++-tests: New file, extracted from
32303         modules/dirent-tests.
32304         * modules/dirent-tests: Depend on it.
32305         * modules/fcntl-h-c++-tests: New file, extracted from
32306         modules/fcntl-h-tests.
32307         * modules/fcntl-h-tests: Depend on it.
32308         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
32309         * modules/glob-tests: Depend on it.
32310         * modules/iconv-h-c++-tests: New file, extracted from
32311         modules/iconv-h-tests.
32312         * modules/iconv-h-tests: Depend on it.
32313         * modules/langinfo-c++-tests: New file, extracted from
32314         modules/langinfo-tests.
32315         * modules/langinfo-tests: Depend on it.
32316         * modules/locale-c++-tests: New file, extracted from
32317         modules/locale-tests.
32318         * modules/locale-tests: Depend on it.
32319         * modules/math-c++-tests: New file, extracted from modules/math-tests.
32320         * modules/math-tests: Depend on it.
32321         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
32322         * modules/pty-tests: Depend on it.
32323         * modules/search-c++-tests: New file, extracted from
32324         modules/search-tests.
32325         * modules/search-tests: Depend on it.
32326         * modules/signal-c++-tests: New file, extracted from
32327         modules/signal-tests.
32328         * modules/signal-tests: Depend on it.
32329         * modules/spawn-c++-tests: New file, extracted from
32330         modules/spawn-tests.
32331         * modules/spawn-tests: Depend on it.
32332         * modules/stdio-c++-tests: New file, extracted from
32333         modules/stdio-tests.
32334         * modules/stdio-tests: Depend on it.
32335         * modules/stdlib-c++-tests: New file, extracted from
32336         modules/stdlib-tests.
32337         * modules/stdlib-tests: Depend on it.
32338         * modules/string-c++-tests: New file, extracted from
32339         modules/string-tests.
32340         * modules/string-tests: Depend on it.
32341         * modules/sys_ioctl-c++-tests: New file, extracted from
32342         modules/sys_ioctl-tests.
32343         * modules/sys_ioctl-tests: Depend on it.
32344         * modules/sys_select-c++-tests: New file, extracted from
32345         modules/sys_select-tests.
32346         * modules/sys_select-tests: Depend on it.
32347         * modules/sys_socket-c++-tests: New file, extracted from
32348         modules/sys_socket-tests.
32349         * modules/sys_socket-tests: Depend on it.
32350         * modules/sys_stat-c++-tests: New file, extracted from
32351         modules/sys_stat-tests.
32352         * modules/sys_stat-tests: Depend on it.
32353         * modules/sys_time-c++-tests: New file, extracted from
32354         modules/sys_time-tests.
32355         * modules/sys_time-tests: Depend on it.
32356         * modules/time-c++-tests: New file, extracted from modules/time-tests.
32357         * modules/time-tests: Depend on it.
32358         * modules/unistd-c++-tests: New file, extracted from
32359         modules/unistd-tests.
32360         * modules/unistd-tests: Depend on it.
32361         * modules/wchar-c++-tests: New file, extracted from
32362         modules/wchar-tests.
32363         * modules/wchar-tests: Depend on it.
32364         * modules/wctype-c++-tests: New file, extracted from
32365         modules/wctype-tests.
32366         * modules/wctype-tests: Depend on it.
32367         Reported by Simon Josefsson.
32368
32369 2010-03-28  Bruno Haible  <bruno@clisp.org>
32370
32371         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
32372         * gnulib-tool (func_exists_module): New function, extracted from
32373         func_verify_module.
32374         (func_verify_module): Use it.
32375         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
32376         'foo' only if 'foo' exists.
32377         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
32378         module.
32379
32380 2010-03-28  Bruno Haible  <bruno@clisp.org>
32381
32382         gnulib-tool: Add support for special categories of tests.
32383         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
32384         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
32385         (func_usage): Document them.
32386         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
32387         inc_unportable_tests, inc_all_tests): New variables.
32388         (func_acceptable): Consider these variables.
32389         (func_modules_transitive_closure): Make it work when the 'Status' field
32390         consists of multiple words.
32391         (func_import): Store and restore the values of inc_cxx_tests,
32392         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
32393         inc_all_tests in gnulib-comp.m4.
32394         (func_create_testdir): Set inc_all_tests to true.
32395         * doc/gnulib.texi (Extra tests modules): New section.
32396         Suggested by Jim Meyering.
32397
32398 2010-03-28  Bruno Haible  <bruno@clisp.org>
32399
32400         ansi-c++-opt: Allow turning off the C++ build by default.
32401         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
32402         gl_CXX_CHOICE_DEFAULT_NO is defined.
32403         Requested by Eric Blake.
32404
32405 2010-03-28  Bruno Haible  <bruno@clisp.org>
32406
32407         unistd: Avoid #define replacements in C++ mode.
32408         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
32409         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
32410         setsockopt, shutdown, select): In C++, attach a warning to the function
32411         if possible, rather than #defining the symbol to a dysfunctional alias.
32412         Reported by John W. Eaton <jwe@gnu.org>.
32413
32414 2010-03-28  Bruno Haible  <bruno@clisp.org>
32415
32416         Fix link errors on mingw.
32417         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
32418         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
32419         $(LIBSOCKET).
32420         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
32421         $(LIBSOCKET).
32422
32423 2010-03-28  Bruno Haible  <bruno@clisp.org>
32424             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32425
32426         lib-ignore: Determine different options for different compilers.
32427         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
32428         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
32429         Add comments.
32430         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
32431         * NEWS: Mention the change.
32432
32433 2010-03-27  Bruno Haible  <bruno@clisp.org>
32434
32435         Remove unused GNULIB_XYZ macro definitions.
32436         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
32437         * modules/fseek (configure.ac): Likewise.
32438         * modules/ioctl (configure.ac): Likewise.
32439         * modules/open (configure.ac): Likewise.
32440         * modules/stdlib-safer (configure.ac): Likewise.
32441
32442 2010-03-27  Bruno Haible  <bruno@clisp.org>
32443
32444         Add a remark about certain modules.
32445         * modules/malloc (Comment): New section.
32446         * modules/realloc (Comment): Likewise.
32447         * modules/sigpipe (Comment): Likewise.
32448
32449 2010-03-27  Bruno Haible  <bruno@clisp.org>
32450
32451         Resolve conflict between the two kinds of module indicators.
32452         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
32453         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
32454         * modules/canonicalize (configure.ac): Invoke
32455         gl_MODULE_INDICATOR_FOR_TESTS.
32456         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
32457         GNULIB_XYZ.
32458         * tests/test-dirent-c++.cc: Likewise.
32459         * tests/test-dirent-safer.c: Likewise.
32460         * tests/test-dup2.c: Likewise.
32461         * tests/test-fchdir.c: Likewise.
32462         * tests/test-fcntl-h-c++.cc: Likewise.
32463         * tests/test-getopt.c: Likewise.
32464         * tests/test-getopt.h: Likewise.
32465         * tests/test-langinfo-c++.cc: Likewise.
32466         * tests/test-locale-c++.cc: Likewise.
32467         * tests/test-math-c++.cc: Likewise.
32468         * tests/test-pty-c++.cc: Likewise.
32469         * tests/test-search-c++.cc: Likewise.
32470         * tests/test-signal-c++.cc: Likewise.
32471         * tests/test-spawn-c++.cc: Likewise.
32472         * tests/test-stdio-c++.cc: Likewise.
32473         * tests/test-stdlib-c++.cc: Likewise.
32474         * tests/test-string-c++.cc: Likewise.
32475         * tests/test-sys_ioctl-c++.cc: Likewise.
32476         * tests/test-sys_select-c++.cc: Likewise.
32477         * tests/test-sys_socket-c++.cc: Likewise.
32478         * tests/test-sys_stat-c++.cc: Likewise.
32479         * tests/test-sys_time-c++.cc: Likewise.
32480         * tests/test-time-c++.cc: Likewise.
32481         * tests/test-unistd-c++.cc: Likewise.
32482         * tests/test-wchar-c++.cc: Likewise.
32483         * tests/uninorm/test-u8-nfc.c: Likewise.
32484         * tests/uninorm/test-u8-nfd.c: Likewise.
32485         * tests/uninorm/test-u8-nfkc.c: Likewise.
32486         * tests/uninorm/test-u8-nfkd.c: Likewise.
32487         * tests/uninorm/test-u16-nfc.c: Likewise.
32488         * tests/uninorm/test-u16-nfd.c: Likewise.
32489         * tests/uninorm/test-u16-nfkc.c: Likewise.
32490         * tests/uninorm/test-u16-nfkd.c: Likewise.
32491         * tests/uninorm/test-u32-nfc.c: Likewise.
32492         * tests/uninorm/test-u32-nfc-big.c: Likewise.
32493         * tests/uninorm/test-u32-nfd.c: Likewise.
32494         * tests/uninorm/test-u32-nfd-big.c: Likewise.
32495         * tests/uninorm/test-u32-nfkc.c: Likewise.
32496         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
32497         * tests/uninorm/test-u32-nfkd.c: Likewise.
32498         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
32499         * tests/uninorm/test-u32-normalize-big.c: Likewise.
32500
32501 2010-03-27  Bruno Haible  <bruno@clisp.org>
32502
32503         Distinguish two kinds of module indicators.
32504         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
32505         gl_MODULE_INDICATOR.
32506         (gl_MODULE_INDICATOR): New macro.
32507         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
32508         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
32509         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
32510         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
32511         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
32512         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
32513         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
32514         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
32515         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
32516         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
32517         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
32518         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
32519         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
32520         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
32521         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
32522         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
32523         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
32524         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
32525         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
32526         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
32527         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
32528         * modules/cloexec (configure.ac): Likewise.
32529         * modules/getopt-gnu (configure.ac): Likewise.
32530         * modules/uninorm/u8-normalize (configure.ac): Likewise.
32531         * modules/uninorm/u16-normalize (configure.ac): Likewise.
32532         * modules/uninorm/u32-normalize (configure.ac): Likewise.
32533         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
32534
32535 2010-03-27  Bruno Haible  <bruno@clisp.org>
32536
32537         New module description field 'Comment'.
32538         * gnulib-tool: New option --extract-comment.
32539         (func_usage): Document it.
32540         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
32541         (func_get_comment): New function.
32542         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
32543
32544 2010-03-27  Bruno Haible  <bruno@clisp.org>
32545
32546         Addendum to 2010-02-07 commit.
32547         * gnulib-tool (func_usage): Document --extract-applicability option.
32548
32549 2010-03-27  Bruno Haible  <bruno@clisp.org>
32550
32551         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
32552         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
32553         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
32554         rather than link errors.
32555
32556 2010-03-27  Bruno Haible  <bruno@clisp.org>
32557
32558         Avoid side effects from tests-related modules on the compilation of lib.
32559         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
32560         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
32561         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
32562         parameter. Emit into AM_CPPFLAGS a definition of the designated C
32563         macro.
32564         (func_import): Define a witness macro. Assign it a value that depends
32565         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
32566         tests-related modules.
32567         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
32568         Reported by Jim Meyering.
32569
32570 2010-03-27  Bruno Haible  <bruno@clisp.org>
32571
32572         Factorize common .m4 code.
32573         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
32574         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
32575         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
32576         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
32577         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
32578         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
32579         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
32580         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
32581         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
32582         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
32583         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
32584         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
32585         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
32586         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
32587         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
32588         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
32589         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
32590         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
32591         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
32592         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
32593         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
32594         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
32595         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
32596         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
32597         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
32598         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
32599         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
32600         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
32601         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
32602         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
32603         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
32604         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
32605
32606 2010-03-27  Bruno Haible  <bruno@clisp.org>
32607
32608         Fix a compilation error on Cygwin with g++ >= 4.3.
32609         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
32610         if it is undefined or if we alias it to chmod.
32611         (lstat): Don't warn about the use of this function if it is undefined
32612         or if we alias it to stat.
32613         Reported by Simon Josefsson.
32614
32615 2010-03-27  Bruno Haible  <bruno@clisp.org>
32616
32617         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
32618         * modules/getlogin (configure.ac): Update.
32619
32620         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
32621         * modules/getlogin_r (configure.ac): Update.
32622
32623         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
32624         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
32625         * modules/inet_ntop (configure.ac): Update.
32626
32627         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
32628         * modules/inet_pton (configure.ac): Update.
32629
32630         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
32631         * modules/mbslen (configure.ac): Update.
32632
32633         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
32634         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
32635         * modules/forkpty (configure.ac): Update.
32636         * modules/openpty (configure.ac): Update.
32637
32638 2010-03-26  Simon Josefsson  <simon@josefsson.org>
32639
32640         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
32641         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
32642
32643 2010-03-25  Eric Blake  <eblake@redhat.com>
32644
32645         maint: use pragma consistently across replacement headers
32646         * lib/ctype.in.h (system_header): Hoist for consistent placement.
32647         * lib/dirent.in.h (system_header): Likewise.
32648         * lib/errno.in.h (system_header): Likewise.
32649         * lib/float.in.h (system_header): Likewise.
32650         * lib/getopt.in.h (system_header): Likewise.
32651         * lib/iconv.in.h (system_header): Likewise.
32652         * lib/inttypes.in.h (system_header): Likewise.
32653         * lib/langinfo.in.h (system_header): Likewise.
32654         * lib/locale.in.h (system_header): Likewise.
32655         * lib/math.in.h (system_header): Likewise.
32656         * lib/netdb.in.h (system_header): Likewise.
32657         * lib/netinet_in.in.h (system_header): Likewise.
32658         * lib/pty.in.h (system_header): Likewise.
32659         * lib/sched.in.h (system_header): Likewise.
32660         * lib/se-selinux.in.h (system_header): Likewise.
32661         * lib/search.in.h (system_header): Likewise.
32662         * lib/spawn.in.h (system_header): Likewise.
32663         * lib/stdarg.in.h (system_header): Likewise.
32664         * lib/stdint.in.h (system_header): Likewise.
32665         * lib/string.in.h (system_header): Likewise.
32666         * lib/strings.in.h (system_header): Likewise.
32667         * lib/sys_file.in.h (system_header): Likewise.
32668         * lib/sys_ioctl.in.h (system_header): Likewise.
32669         * lib/sys_socket.in.h (system_header): Likewise.
32670         * lib/sys_times.in.h (system_header): Likewise.
32671         * lib/sys_utsname.in.h (system_header): Likewise.
32672         * lib/sys_wait.in.h (system_header): Likewise.
32673         * lib/sysexits.in.h (system_header): Likewise.
32674         * lib/unistd.in.h (system_header): Likewise.
32675         * lib/wctype.in.h (system_header): Likewise.
32676
32677         arpa/inet: fix mingw compilation warning
32678         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
32679         Reported by Matthew Bolte.
32680
32681 2010-03-25  Bruno Haible  <bruno@clisp.org>
32682
32683         Avoid collision between gnulib wrapper and libintl wrapper.
32684         * lib/printf.c (printf): Don't define if a printf wrapper is already
32685         defined in intl/printf.c.
32686         Reported by Michel Boaventura <michel@michelboaventura.com>.
32687
32688 2010-03-25  Bruno Haible  <bruno@clisp.org>
32689
32690         Use ANSI C.
32691         * lib/readutmp.h (getutent): Provide ANSI C prototype.
32692
32693 2010-03-25  Bruno Haible  <bruno@clisp.org>
32694
32695         Minor formatting changes.
32696         * lib/acosl.c: Insert space before function argument list.
32697         * lib/argz.c: Likewise.
32698         * lib/asinl.c: Likewise.
32699         * lib/expl.c: Likewise.
32700         * lib/gen-uni-tables.c: Likewise.
32701         * lib/gettext.h: Likewise.
32702         * lib/glthread/lock.h: Likewise.
32703         * lib/tanl.c: Likewise.
32704         * lib/uniname/uniname.c: Likewise.
32705         * tests/test-idpriv-drop.c: Likewise.
32706         * tests/test-idpriv-droptemp.c: Likewise.
32707         * tests/test-lock.c: Likewise.
32708         * tests/test-tls.c: Likewise.
32709         * lib/argp-help.c: Insert space before function-like macro argument
32710         list.
32711         * lib/memcmp.c: Likewise.
32712         * tests/test-base64.c: Likewise.
32713         * lib/localename.c: Insert space before sizeof's argument list.
32714         * lib/safe-alloc.h: Likewise.
32715         * lib/file-set.h: Insert space before macro argument list.
32716         * tests/test-argp.c: Likewise.
32717         * lib/argp-namefrob.h: Insert space before function parameter list.
32718         * lib/getaddrinfo.c: Likewise.
32719         * lib/netdb.in.h: Likewise.
32720         * lib/parse-duration.h: Likewise.
32721         * lib/parse-duration.c: Likewise.
32722         * lib/poll.c: Likewise.
32723         * lib/select.c: Likewise.
32724         * lib/trim.h: Likewise.
32725         * tests/test-usleep.c: Likewise.
32726         * lib/ldexpl.c: Insert space before function parameter list and before
32727         function argument list.
32728         * lib/logl.c: Likewise.
32729         * lib/sqrtl.c: Likewise.
32730         * lib/trim.c: Likewise.
32731         * lib/cosl.c: Use GNU style indentation. Insert space before function
32732         argument list.
32733         * lib/sinl.c: Likewise.
32734         * lib/tsearch.c: Insert space after 'for'.
32735         Reported by Jim Meyering.
32736
32737 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
32738
32739         * maint.mk (sc_Wundef_boolean): Check for the presence of the
32740         config header before grepping, as it's not present before
32741         autoreconf/configure are run.  Reported by Simon Josefsson.
32742
32743 2010-03-23  Bruno Haible  <bruno@clisp.org>
32744
32745         pt_chown: Make it work with automake < 1.11.
32746         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
32747         Reported by Simon Josefsson.
32748
32749 2010-03-23  Bruno Haible  <bruno@clisp.org>
32750
32751         pt_chown: Don't depend on GPLed modules.
32752         * lib/pt_chown.c: Don't include idpriv.h.
32753         (main): Don't drop privileges.
32754         * modules/pt_chown (Depends-on): Remove idpriv-drop.
32755         Reported by Simon Josefsson.
32756
32757 2010-03-24  Simon Josefsson  <simon@josefsson.org>
32758
32759         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
32760         suggestions from karl@freefriends.org (Karl Berry).
32761
32762 2010-03-22  Eric Blake  <eblake@redhat.com>
32763
32764         gethostname: further tweaks
32765         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
32766         are overriding gethostname.
32767         Suggested by Bruno Haible.
32768
32769 2010-03-21  Bruno Haible  <bruno@clisp.org>
32770
32771         Fix comments.
32772         * lib/forkpty.c (rpl_forkpty): Fix comment.
32773         * lib/openpty.c (rpl_openpty): Likewise.
32774         Reported by Eric Blake.
32775
32776 2010-03-22  Eric Blake  <eblake@redhat.com>
32777
32778         gethostname: fix build on mingw
32779         * lib/unistd.in.h (includes): Work around fact that mingw
32780         <winsock2.h> re-includes <unistd.h>, by avoiding any
32781         redeclarations if we are being included by <winsock2.h>.
32782         Reported by Matthias Bolte.
32783
32784 2010-03-21  Bruno Haible  <bruno@clisp.org>
32785
32786         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
32787         * lib/forkpty.c (forkpty): New replacement function, from glibc with
32788         modifications.
32789         * lib/pty.in.h (forkpty): Update declaration. Add comments.
32790         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
32791         provide the replacement.
32792         * modules/forkpty (Depends-on): Add openpty, login_tty.
32793         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
32794         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
32795         * doc/glibc-functions/forkpty.texi: More supported platforms.
32796         * config/srclist.txt: Add forkpty.c (commented).
32797
32798 2010-03-21  Bruno Haible  <bruno@clisp.org>
32799
32800         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
32801         (Makefile.am): Verify that PTY_LIB is defined.
32802
32803         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
32804
32805 2010-03-21  Bruno Haible  <bruno@clisp.org>
32806
32807         Tests for module 'login_tty'.
32808         * modules/login_tty-tests: New file.
32809         * tests/test-login_tty.c: New file.
32810
32811         New module 'login_tty'.
32812         * lib/login_tty.c: New file.
32813         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
32814         * modules/login_tty: New file.
32815         * doc/glibc-functions/login_tty.texi: Mention the new module.
32816
32817 2010-03-21  Bruno Haible  <bruno@clisp.org>
32818
32819         login_tty: Documentation.
32820         * doc/glibc-functions/login_tty.texi: New file.
32821         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
32822
32823 2010-03-21  Bruno Haible  <bruno@clisp.org>
32824
32825         pty: Consistent macro naming.
32826         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
32827         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
32828         * modules/pty (configure.ac): Update.
32829
32830 2010-03-21  Bruno Haible  <bruno@clisp.org>
32831
32832         Tests for openpty: Make stricter.
32833         * tests/test-openpty.c (main): Add test of canonical processing and
32834         erase.
32835         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
32836
32837         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
32838         * lib/openpty.c (openpty): New replacement function.
32839         * lib/pty.in.h: Include <termios.h>.
32840         (openpty): Update declaration. Add comments.
32841         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
32842         is not declared, arrange to provide the replacement. Check for _getpty
32843         and posix_openpt.
32844         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
32845         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
32846         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
32847         * modules/pty-tests (test_pty_c___LDADD): New variable.
32848         * doc/glibc-functions/openpty.texi: More supported platforms.
32849
32850 2010-03-21  Bruno Haible  <bruno@clisp.org>
32851
32852         setenv: Tweaks.
32853         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
32854         the test program.
32855         * doc/posix-functions/setenv.texi: Update platforms list.
32856
32857 2010-03-21  Bruno Haible  <bruno@clisp.org>
32858
32859         New module 'unlockpt'.
32860         * lib/unlockpt.c: New file, from glibc with modifications.
32861         * m4/unlockpt.m4: New file.
32862         * modules/unlockpt: New file.
32863         * lib/stdlib.in.h (unlockpt): New declaration.
32864         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
32865         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
32866         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
32867         HAVE_UNLOCKPT.
32868         * doc/posix-functions/unlockpt.texi: Mention the new module.
32869         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
32870         * config/srclist.txt: Add unlockpt.c (commented).
32871
32872 2010-03-21  Jim Meyering  <meyering@redhat.com>
32873
32874         maint.mk: prohibit inclusion of "intprops.h" without use
32875         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
32876
32877 2010-03-21  Bruno Haible  <bruno@clisp.org>
32878
32879         New module 'grantpt'.
32880         * lib/grantpt.c: New file, from glibc with modifications.
32881         * m4/grantpt.m4: New file.
32882         * modules/grantpt: New file.
32883         * lib/stdlib.in.h (grantpt): New declaration.
32884         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
32885         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
32886         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
32887         HAVE_GRANTPT.
32888         * doc/posix-functions/grantpt.texi: Mention the new module.
32889         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
32890         * config/srclist.txt: Add grantpt.c (commented).
32891
32892 2010-03-21  Bruno Haible  <bruno@clisp.org>
32893
32894         New module 'pt_chown'.
32895         * lib/pt_chown.c: New file, from glibc with modifications.
32896         * lib/pty-private.h: New file, from glibc with modifications.
32897         * modules/pt_chown: New file.
32898         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
32899
32900 2010-03-21  Bruno Haible  <bruno@clisp.org>
32901
32902         Tests for module 'ptsname'.
32903         * modules/ptsname-tests: New file.
32904         * tests/test-ptsname.c: New file.
32905
32906         New module 'ptsname'.
32907         * lib/ptsname.c: New file, from glibc with modifications.
32908         * m4/ptsname.m4: New file.
32909         * modules/ptsname: New file.
32910         * lib/stdlib.in.h (ptsname): New declaration.
32911         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
32912         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
32913         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
32914         HAVE_PTSNAME.
32915         * doc/posix-functions/ptsname.texi: Mention the new module.
32916         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
32917         * config/srclist.txt: Add ptsname.c (commented).
32918
32919 2010-03-21  Bruno Haible  <bruno@clisp.org>
32920
32921         Tests for module 'ttyname_r'.
32922         * modules/ttyname_r-tests: New file.
32923         * tests/test-ttyname_r.c: New file.
32924
32925         New module 'ttyname_r'.
32926         * lib/ttyname_r.c: New file.
32927         * m4/ttyname_r.m4: New file.
32928         * modules/ttyname_r: New file.
32929         * lib/unistd.in.h (ttyname_r): New declaration.
32930         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
32931         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
32932         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
32933         HAVE_TTYNAME_R.
32934         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
32935         * doc/posix-functions/ttyname_r.texi: Mention the new module.
32936
32937 2010-03-20  Bruno Haible  <bruno@clisp.org>
32938
32939         signal: Undefine macro definitions in C++ mode.
32940         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
32941         sigfillset): Undefine macro definitions from the system header in C++
32942         mode.
32943         Reported by John W. Eaton <jwe@gnu.org>.
32944
32945 2010-03-20  Bruno Haible  <bruno@clisp.org>
32946
32947         Ensure no #include statements inside extern "C" { ... }.
32948         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
32949         contain #include statements.
32950         * lib/time.in.h: Likewise.
32951
32952 2010-03-20  Bruno Haible  <bruno@clisp.org>
32953
32954         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
32955         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
32956         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
32957         Reported by John W. Eaton <jwe@gnu.org>.
32958
32959 2010-03-20  Bruno Haible  <bruno@clisp.org>
32960
32961         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
32962         Reported by Jim Meyering.
32963
32964 2010-03-20  Bruno Haible  <bruno@clisp.org>
32965
32966         pipe: Set errno upon failure.
32967         * lib/pipe.h: Specify that when -1 is returned, errno is set.
32968         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
32969         errno value in error message.
32970
32971 2010-03-20  Bruno Haible  <bruno@clisp.org>
32972             Jim Meyering  <meyering@redhat.com>
32973
32974         lchown: Avoid "unused variable" warning.
32975         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
32976
32977 2010-03-20  Bruno Haible  <bruno@clisp.org>
32978
32979         Work around unlink() bug on MacOS X 10.5.6.
32980         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
32981         attempting to unlink a parent directory.
32982         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
32983         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
32984         activate for the replacement function.
32985         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
32986
32987 2010-03-20  Bruno Haible  <bruno@clisp.org>
32988
32989         Fix link errors on Solaris 8.
32990         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
32991         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
32992
32993 2010-03-19  Jim Meyering  <meyering@redhat.com>
32994
32995         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
32996         The _LIBC implementation of build_range_exp correctly honors the
32997         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
32998         However, the non-_LIBC implementation would ignore that syntax-bit
32999         flag and return REG_ERANGE unconditionally.
33000         This change makes it honor that flag.
33001         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
33002         Make two pointer parameters "const".
33003         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
33004         (parse_bracket_exp): Update caller.
33005
33006         regex.m4: correct the reversed range endpoint ([b-a]) test
33007         * m4/regex.m4: When requiring that [b-a] evoke failure,
33008         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
33009         test pass once again for x86-based systems.
33010
33011 2010-03-19  Bruno Haible  <bruno@clisp.org>
33012
33013         scandir: Fix link error on Solaris 8.
33014         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
33015         macros.
33016
33017 2010-03-19  Bruno Haible  <bruno@clisp.org>
33018
33019         getusershell: Fix documentation.
33020         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
33021         module.
33022         * doc/glibc-functions/setusershell.texi: Likewise.
33023
33024         getusershell: Provide declaration, missing on Solaris 9.
33025         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
33026         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
33027         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
33028         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
33029         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33030         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
33031         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
33032         HAVE_GETUSERSHELL.
33033         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
33034
33035 2010-03-19  Bruno Haible  <bruno@clisp.org>
33036
33037         wctype: Provide iswblank function.
33038         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
33039         exists and is fine.
33040         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
33041         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
33042         * tests/test-wctype.c (main): Re-enable the iswblank tests.
33043         * doc/posix-functions/iswblank.texi: Update.
33044
33045 2010-03-19  Bruno Haible  <bruno@clisp.org>
33046
33047         Tests of module 'pty' in C++ mode.
33048         * modules/pty-tests: New file.
33049         * tests/test-pty-c++.cc: New file.
33050         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
33051
33052 2010-03-19  Eric Blake  <eblake@redhat.com>
33053
33054         logb: fix documentation
33055         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
33056         1.5 declaration bug.
33057
33058         forkpty, openpty: prefer glibc's const-safe prototype
33059         * lib/forkpty.c (rpl_forkpty): New file.
33060         * lib/openpty.c (rpl_openpty): Likewise.
33061         * modules/forkpty (Files): Distribute it.
33062         * modules/openpty (Files): Likewise.
33063         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
33064         check...
33065         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
33066         replacement for for non-const BSD signature.
33067         * modules/pty (Makefile.am): Substitute witnesses.
33068         * lib/pty.in.h (forkpty, openpty): Declare replacements.
33069         * tests/test-forkpty.c: Update signature check.
33070         * tests/test-openpty.c: Likewise.
33071         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
33072         * doc/glibc-functions/openpty.texi (openpty): Likewise.
33073
33074         forkpty, openpty: split functions into new modules
33075         * modules/pty (Makefile.am): Substitute new witnesses.
33076         (Libraries): Move library detection...
33077         * modules/forkpty: ...into new module.
33078         * modules/openpty: Another new module.
33079         * modules/pty-tests: Rename and split...
33080         * modules/forkpty-tests: ...to this...
33081         * modules/openpty-tests: ...and this.
33082         * tests/test-pty.c: Rename and split...
33083         * tests/test-forkpty.c: ...to this...
33084         * tests/test-openpty.c: ...and this.
33085         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
33086         (gl_PTY): Split library searching...
33087         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
33088         (gl_FORKPTY, gl_OPENPTY): New macros.
33089         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
33090         * NEWS: Mention the split.
33091         * MODULES.html.sh (Misc): Document the modules.
33092         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
33093         * doc/glibc-functions/openpty.texi (openpty): Likewise.
33094
33095         pty: improve replacement header
33096         * lib/pty.in.h: New file.
33097         * modules/pty (Files): Ship it.
33098         (Makefile.am): Always build replacement.
33099         * m4/pty.m4: Rename...
33100         * m4/pty_h.m4: ...to this.
33101         (gl_PTY): Modernize setting of witness macros; update check of
33102         forkpty to take proper advantage of cache.
33103         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
33104
33105         getopt: avoid compiler warning
33106         * lib/getopt.c (attribute_hidden): Remove unused macro.
33107
33108 2010-03-18  Bruno Haible  <bruno@clisp.org>
33109
33110         Fix link errors on Solaris 8.
33111         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
33112         * modules/search-tests (test_search_c___LDADD): Likewise.
33113         * modules/signal-tests (test_signal_c___LDADD): Likewise.
33114         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
33115         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
33116         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
33117         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
33118         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
33119         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
33120
33121 2010-03-18  Bruno Haible  <bruno@clisp.org>
33122
33123         Fix bug introduced on 2010-03-14.
33124         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
33125         (gl_SPAWN_H): Require it.
33126         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
33127         Reported by Simon Josefsson.
33128
33129 2010-03-18  Bruno Haible  <bruno@clisp.org>
33130
33131         Fix typo introduced on 2009-12-31.
33132         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
33133         posix_spawn_file_actions_adddup2.
33134
33135 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
33136         and Eric Blake  <eblake@redhat.com>
33137
33138         test-vc-list-files-git: make more robust
33139         * tests/test-vc-list-files-git.sh: Unset problematic environment
33140         variables.  Chain commands together.
33141
33142 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
33143
33144         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
33145         `AC_CHECK_DECL' invocation.
33146
33147 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
33148
33149         * lib/inttostr.c (inttostr): Make sure the invocation of verify
33150         appears before executable statements. Suggested by Petr Sumbera
33151         <Petr.Sumbera@Sun.COM>.
33152
33153 2010-03-14  Bruno Haible  <bruno@clisp.org>
33154
33155         * tests/test-flock.c (test_exclusive): Comment out a test that causes
33156         portability problems. Instead use a simpler test.
33157         (main): Check that invalid arguments are rejected only on Linux.
33158
33159 2010-03-14  Bruno Haible  <bruno@clisp.org>
33160
33161         Fix bug introduced on 2009-12-31.
33162         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
33163         gl_PREREQ_SYS_H_WINSOCK2 always.
33164         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
33165         SYS_SOCKET_H variable.
33166         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
33167         Update comments.
33168         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
33169         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
33170         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
33171         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
33172         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
33173
33174 2010-03-14  Bruno Haible  <bruno@clisp.org>
33175
33176         Fix values returned by sinl, cosl.
33177         * lib/trigl.h: Add specification comments.
33178         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
33179         that combines the values from the precomputed table with the values of
33180         the Chebyshev polynomials.
33181
33182 2010-03-14  Bruno Haible  <bruno@clisp.org>
33183
33184         Fix compilation error when modules 'posix_spawn[p]' are not used.
33185         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
33186         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
33187
33188 2010-03-14  Bruno Haible  <bruno@clisp.org>
33189
33190         Fix compilation error on mingw when module 'time_r' is not used.
33191         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
33192         is 1.
33193         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
33194         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
33195         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
33196         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
33197
33198 2010-03-14  Bruno Haible  <bruno@clisp.org>
33199
33200         Fix compilation error with Sun C.
33201         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
33202         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
33203         instead of GCC specific ULONG_LONG_MAX.
33204         * lib/xstrtoll.c: Likewise.
33205         * lib/xstrtoull.c: Likewise.
33206
33207 2010-03-13  Bruno Haible  <bruno@clisp.org>
33208
33209         Allow the user to disable C++ code and tests.
33210         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
33211         (gl_PROG_ANSI_CXX): Require it.
33212
33213 2010-03-13  Bruno Haible  <bruno@clisp.org>
33214
33215         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
33216         cases.
33217
33218 2010-03-13  Bruno Haible  <bruno@clisp.org>
33219
33220         Test that gnulib does not break the standard C++ headers.
33221         * tests/test-locale-c++2.cc: New file.
33222         * modules/locale-tests (Files): Add it.
33223         (Makefile.am): Compile it for test-locale-c++.
33224         * tests/test-math-c++2.cc: New file.
33225         * modules/math-tests (Files): Add it.
33226         (Makefile.am): Compile it for test-math-c++.
33227         * tests/test-signal-c++2.cc: New file.
33228         * modules/signal-tests (Files): Add it.
33229         (Makefile.am): Compile it for test-signal-c++.
33230         * tests/test-stdio-c++2.cc: New file.
33231         * modules/stdio-tests (Files): Add it.
33232         (Makefile.am): Compile it for test-stdio-c++.
33233         * tests/test-stdlib-c++2.cc: New file.
33234         * modules/stdlib-tests (Files): Add it.
33235         (Makefile.am): Compile it for test-stdlib-c++.
33236         * tests/test-string-c++2.cc: New file.
33237         * modules/string-tests (Files): Add it.
33238         (Makefile.am): Compile it for test-string-c++.
33239         * tests/test-time-c++2.cc: New file.
33240         * modules/time-tests (Files): Add it.
33241         (Makefile.am): Compile it for test-time-c++.
33242         Reported by John W. Eaton <jwe@gnu.org>.
33243
33244 2010-03-13  Bruno Haible  <bruno@clisp.org>
33245
33246         * gnulib-tool (func_usage): Clarify which options are available for
33247         --create-testdir and --create-megatestdir.
33248
33249 2010-03-13  Bruno Haible  <bruno@clisp.org>
33250
33251         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
33252         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
33253         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
33254         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
33255         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
33256         when appropriate.
33257         Reported by Jim Meyering.
33258
33259 2010-03-12  Simon Josefsson  <simon@josefsson.org>
33260
33261         * gnulib-tool (func_import): Explain origin of code.
33262
33263 2010-03-12  Bruno Haible  <bruno@clisp.org>
33264
33265         Fix problem with automake's definition of CXXLINK.
33266         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
33267         Reported by Simon Josefsson and Ludovic Courtès.
33268
33269 2010-03-12  Bruno Haible  <bruno@clisp.org>
33270
33271         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
33272         stable releases.
33273
33274 2010-03-11  Bruno Haible  <bruno@clisp.org>
33275
33276         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
33277         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
33278         whether the system provides one variant or multiple variants of the
33279         function.
33280         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
33281         C++ compilers.
33282         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
33283         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
33284         Reported by Jim Meyering.
33285
33286 2010-03-09  Simon Josefsson  <simon@josefsson.org>
33287
33288         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
33289
33290 2010-03-08  Bruno Haible  <bruno@clisp.org>
33291
33292         gnulib-tool: Add support for --libtool in --create-testdir.
33293         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
33294         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
33295
33296 2010-03-08  Eric Blake  <eblake@redhat.com>
33297
33298         gnulib-tool.texi: mention possibility of git submodule
33299         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
33300         submodules.
33301         * doc/.gitignore: Ignore another generated file.
33302
33303 2010-03-08  Karl Berry  <karl@gnu.org>
33304
33305         * doc/gnulib-tool.texi (VCS Issues): Mention third option
33306         of committing gnulib files while skipping others.
33307
33308 2010-03-07  Bruno Haible  <bruno@clisp.org>
33309
33310         Tests of module 'wctype' in C++ mode.
33311         * tests/test-wctype-c++.cc: New file.
33312         * modules/wctype-tests (Files): Add it and tests/signature.h.
33313         (Depends-on): Add ansi-c++-opt.
33314         (Makefile.am): Arrange to compile and run test-wctype-c++.
33315
33316         Tests of module 'wchar' in C++ mode.
33317         * tests/test-wchar-c++.cc: New file.
33318         * modules/wchar-tests (Files): Add it and tests/signature.h.
33319         (Depends-on): Add ansi-c++-opt.
33320         (Makefile.am): Arrange to compile and run test-wchar-c++.
33321         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
33322         gl_MODULE_INDICATOR.
33323
33324         Tests of module 'unistd' in C++ mode.
33325         * tests/test-unistd-c++.cc: New file.
33326         * modules/unistd-tests (Files): Add it and tests/signature.h.
33327         (Depends-on): Add ansi-c++-opt.
33328         (Makefile.am): Arrange to compile and run test-unistd-c++.
33329         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
33330         gl_MODULE_INDICATOR.
33331
33332         Tests of module 'time' in C++ mode.
33333         * tests/test-time-c++.cc: New file.
33334         * modules/time-tests (Files): Add it and tests/signature.h.
33335         (Depends-on): Add ansi-c++-opt.
33336         (Makefile.am): Arrange to compile and run test-time-c++.
33337         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
33338
33339         Tests of module 'sys_time' in C++ mode.
33340         * tests/test-sys_time-c++.cc: New file.
33341         * modules/sys_time-tests (Files): Add it and tests/signature.h.
33342         (Depends-on): Add ansi-c++-opt.
33343         (Makefile.am): Arrange to compile and run test-sys_time-c++.
33344         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
33345         gl_MODULE_INDICATOR.
33346
33347         Tests of module 'sys_stat' in C++ mode.
33348         * tests/test-sys_stat-c++.cc: New file.
33349         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
33350         (Depends-on): Add ansi-c++-opt.
33351         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
33352         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
33353         gl_MODULE_INDICATOR.
33354
33355         Tests of module 'sys_socket' in C++ mode.
33356         * tests/test-sys_socket-c++.cc: New file.
33357         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
33358         (Depends-on): Add ansi-c++-opt.
33359         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
33360         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
33361         gl_MODULE_INDICATOR.
33362
33363         Tests of module 'sys_select' in C++ mode.
33364         * tests/test-sys_select-c++.cc: New file.
33365         * modules/sys_select-tests (Files): Add it and tests/signature.h.
33366         (Depends-on): Add ansi-c++-opt.
33367         (Makefile.am): Arrange to compile and run test-sys_select-c++.
33368         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
33369         gl_MODULE_INDICATOR.
33370
33371         Tests of module 'sys_ioctl' in C++ mode.
33372         * tests/test-sys_ioctl-c++.cc: New file.
33373         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
33374         (Depends-on): Add ansi-c++-opt.
33375         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
33376         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
33377         gl_MODULE_INDICATOR.
33378
33379         Tests of module 'string' in C++ mode.
33380         * tests/test-string-c++.cc: New file.
33381         * modules/string-tests (Files): Add it and tests/signature.h.
33382         (Depends-on): Add ansi-c++-opt.
33383         (Makefile.am): Arrange to compile and run test-string-c++.
33384         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
33385         gl_MODULE_INDICATOR.
33386
33387         Tests of module 'stdlib' in C++ mode.
33388         * tests/test-stdlib-c++.cc: New file.
33389         * modules/stdlib-tests (Files): Add it and tests/signature.h.
33390         (Depends-on): Add ansi-c++-opt.
33391         (Makefile.am): Arrange to compile and run test-stdlib-c++.
33392         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
33393         gl_MODULE_INDICATOR.
33394
33395         Tests of module 'stdio' in C++ mode.
33396         * tests/test-stdio-c++.cc: New file.
33397         * modules/stdio-tests (Files): Add it and tests/signature.h.
33398         (Depends-on): Add ansi-c++-opt.
33399         (Makefile.am): Arrange to compile and run test-stdio-c++.
33400         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
33401         gl_MODULE_INDICATOR.
33402
33403         Tests of module 'spawn' in C++ mode.
33404         * tests/test-spawn-c++.cc: New file.
33405         * modules/spawn-tests (Files): Add it and tests/signature.h.
33406         (Depends-on): Add ansi-c++-opt.
33407         (Makefile.am): Arrange to compile and run test-spawn-c++.
33408         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
33409         gl_MODULE_INDICATOR.
33410
33411         Tests of module 'signal' in C++ mode.
33412         * tests/test-signal-c++.cc: New file.
33413         * modules/signal-tests (Files): Add it and tests/signature.h.
33414         (Depends-on): Add ansi-c++-opt.
33415         (Makefile.am): Arrange to compile and run test-signal-c++.
33416         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
33417         gl_MODULE_INDICATOR.
33418
33419         Tests of module 'search' in C++ mode.
33420         * tests/test-search-c++.cc: New file.
33421         * modules/search-tests (Files): Add it and tests/signature.h.
33422         (Depends-on): Add ansi-c++-opt.
33423         (Makefile.am): Arrange to compile and run test-search-c++.
33424         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
33425         gl_MODULE_INDICATOR.
33426
33427         Tests of module 'math' in C++ mode.
33428         * tests/test-math-c++.cc: New file.
33429         * modules/math-tests (Files): Add it and tests/signature.h.
33430         (Depends-on): Add ansi-c++-opt.
33431         (Makefile.am): Arrange to compile and run test-math-c++.
33432         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
33433
33434         Tests of module 'locale' in C++ mode.
33435         * tests/test-locale-c++.cc: New file.
33436         * modules/locale-tests (Files): Add it and tests/signature.h.
33437         (Depends-on): Add ansi-c++-opt.
33438         (Makefile.am): Arrange to compile and run test-locale-c++.
33439         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
33440         gl_MODULE_INDICATOR.
33441
33442         Tests of module 'langinfo' in C++ mode.
33443         * tests/test-langinfo-c++.cc: New file.
33444         * modules/langinfo-tests (Files): Add it and tests/signature.h.
33445         (Depends-on): Add ansi-c++-opt.
33446         (Makefile.am): Arrange to compile and run test-langinfo-c++.
33447         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
33448         gl_MODULE_INDICATOR.
33449
33450         Tests of module 'iconv-h' in C++ mode.
33451         * tests/test-iconv-h-c++.cc: New file.
33452         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
33453         (Depends-on): Add ansi-c++-opt.
33454         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
33455
33456         Tests of module 'glob' in C++ mode.
33457         * tests/test-glob-c++.cc: New file.
33458         * modules/glob-tests (Files): Add it.
33459         (Depends-on): Add ansi-c++-opt.
33460         (Makefile.am): Arrange to compile and run test-glob-c++.
33461
33462         Tests of module 'fcntl-h' in C++ mode.
33463         * tests/test-fcntl-h-c++.cc: New file.
33464         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
33465         (Depends-on): Add ansi-c++-opt.
33466         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
33467         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
33468         gl_MODULE_INDICATOR.
33469
33470         Tests of module 'dirent' in C++ mode.
33471         * tests/test-dirent-c++.cc: New file.
33472         * modules/dirent-tests (Files): Add it and tests/signature.h.
33473         (Depends-on): Add ansi-c++-opt.
33474         (Makefile.am): Arrange to compile and run test-dirent-c++.
33475         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
33476         gl_MODULE_INDICATOR.
33477
33478         New module 'ansi-c++-opt'.
33479         * modules/ansi-c++-opt: New file.
33480         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
33481
33482         Document C++ namespace mode.
33483         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
33484
33485         wctype: Avoid #define replacements in C++ mode.
33486         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
33487         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
33488         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
33489         In C++, define a namespaced alias symbol.
33490         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
33491         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
33492         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
33493         rule.
33494
33495         wchar: Avoid #define replacements in C++ mode.
33496         * lib/wchar.in.h: Include c++defs.h.
33497         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
33498         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
33499         symbol.
33500         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
33501         * modules/wchar (Depends-on): Add c++defs.
33502         (Makefile.am): Update wchar.h rule.
33503
33504         unistd: Avoid #define replacements in C++ mode.
33505         * lib/unistd.in.h: Include c++defs.h.
33506         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
33507         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
33508         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
33509         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
33510         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
33511         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
33512         symbol.
33513         (environ): Update.
33514         * modules/unistd (Depends-on): Add c++defs.
33515         (Makefile.am): Update unistd.h rule.
33516
33517         time: Avoid #define replacements in C++ mode.
33518         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
33519         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
33520         define a namespaced alias symbol.
33521         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
33522         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
33523         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
33524         * modules/time (Depends-on): Add c++defs, warn-on-use.
33525         (Makefile.am): Update time.h rule.
33526         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
33527         * modules/nanosleep (configure.ac): Likewise.
33528         * modules/strptime (configure.ac): Likewise.
33529         * modules/timegm (configure.ac): Likewise.
33530
33531         sys_time: Avoid #define replacements in C++ mode.
33532         * lib/sys_time.in.h: Include c++defs.h.
33533         (gettimeofday): In C++, define a namespaced alias symbol.
33534         * modules/sys_time (Depends-on): Add c++defs.
33535         (Makefile.am): Update sys/time.h rule.
33536
33537         sys_stat: Avoid #define replacements in C++ mode.
33538         * lib/sys_stat.in.h: Include c++defs.h.
33539         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
33540         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
33541         namespaced alias symbol.
33542         In C++, define a namespaced alias symbol.
33543         * modules/sys_stat (Depends-on): Add c++defs.
33544         (Makefile.am): Update sys/stat.h rule.
33545
33546         sys_socket: Avoid #define replacements in C++ mode.
33547         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
33548         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
33549         definitions also when the system has a <sys/socket.h>.
33550         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
33551         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
33552         In C++, define a namespaced alias symbol.
33553         * modules/sys_socket (Depends-on): Add c++defs.
33554         (Makefile.am): Update sys/socket.h rule.
33555
33556         sys_select: Avoid #define replacements in C++ mode.
33557         * lib/sys_select.in.h: Include c++defs.h. Enable the function
33558         definitions also when the system has a <sys/select.h>.
33559         (select): In C++, define a namespaced alias symbol.
33560         * modules/sys_select (Depends-on): Add c++defs.
33561         (Makefile.am): Update sys/select.h rule.
33562
33563         sys_ioctl: Avoid #define replacements in C++ mode.
33564         * lib/sys_ioctl.in.h: Include c++defs.h.
33565         (ioctl): In C++, define a namespaced alias symbol.
33566         * modules/sys_ioctl (Depends-on): Add c++defs.
33567         (Makefile.am): Update sys/ioctl.h rule.
33568
33569         string: Avoid #define replacements in C++ mode.
33570         * lib/string.in.h: Include c++defs.h.
33571         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
33572         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
33573         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
33574         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
33575         strsignal, strverscmp): In C++, define a namespaced alias symbol.
33576         * modules/string (Depends-on): Add c++defs.
33577         (Makefile.am): Update string.h rule.
33578
33579         stdlib: Avoid #define replacements in C++ mode.
33580         * lib/stdlib.in.h: Include c++defs.h.
33581         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
33582         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
33583         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
33584         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
33585         symbol.
33586         * modules/stdlib (Depends-on): Add c++defs.
33587         (Makefile.am): Update stdlib.h rule.
33588
33589         stdio: Avoid #define replacements in C++ mode.
33590         * lib/stdio.in.h: Include c++defs.h.
33591         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
33592         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
33593         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
33594         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
33595         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
33596         namespaced alias symbol.
33597         * modules/stdio (Depends-on): Add c++defs.
33598         (Makefile.am): Update stdio.h rule.
33599
33600         spawn: Avoid #define replacements in C++ mode.
33601         * lib/spawn.in.h: Include c++defs.h.
33602         (posix_spawn, posix_spawnp, posix_spawnattr_init,
33603         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
33604         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
33605         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
33606         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
33607         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
33608         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
33609         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
33610         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
33611         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
33612         In C++, define a namespaced alias symbol.
33613         * modules/spawn (Depends-on): Add c++defs.
33614         (Makefile.am): Update spawn.h rule.
33615
33616         signal: Avoid #define replacements in C++ mode.
33617         * lib/signal.in.h: Include c++defs.h.
33618         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
33619         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
33620         namespaced alias symbol.
33621         * modules/signal (Depends-on): Add c++defs.
33622         (Makefile.am): Update signal.h rule.
33623
33624         search: Avoid #define replacements in C++ mode.
33625         * lib/search.in.h: Include c++defs.h.
33626         (_gl_search_compar_fn, _gl_search_action_fn): New types.
33627         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
33628         symbol.
33629         * modules/search (Depends-on): Add c++defs.
33630         (Makefile.am): Update search.h rule.
33631
33632         math: Avoid #define replacements in C++ mode.
33633         * lib/math.in.h: Include c++defs.h.
33634         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
33635         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
33636         trunc, truncl): In C++, define a namespaced alias symbol.
33637         * modules/math (Depends-on): Add c++defs.
33638         (Makefile.am): Update math.h rule.
33639
33640         locale: Avoid #define replacements in C++ mode.
33641         * lib/locale.in.h: Include c++defs.h.
33642         (duplocale): In C++, define a namespaced alias symbol.
33643         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
33644         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
33645         * modules/locale (Depends-on): Add c++defs.
33646         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
33647
33648         langinfo: Avoid #define replacements in C++ mode.
33649         * lib/langinfo.in.h: Include c++defs.h.
33650         (nl_langinfo): In C++, define a namespaced alias symbol.
33651         * modules/langinfo (Depends-on): Add c++defs.
33652         (Makefile.am): Update langinfo.h rule.
33653
33654         iconv-h: Avoid #define replacements in C++ mode.
33655         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
33656         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
33657         symbol.
33658         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
33659         whenever iconv is present.
33660         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
33661         (Makefile.am): Update iconv.h rule.
33662
33663         glob: Avoid #define replacements in C++ mode.
33664         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
33665         (_gl_glob_errfunc_fn): New type.
33666         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
33667         symbol.
33668         * modules/glob (Depends-on): Add c++defs, warn-on-use.
33669         (Makefile.am): Update glob.h rule.
33670
33671         fcntl-h: Avoid #define replacements in C++ mode.
33672         * lib/fcntl.in.h: Include c++defs.h.
33673         (fcntl, open, openat): In C++, define a namespaced alias symbol.
33674         * modules/fcntl-h (Depends-on): Add c++defs.
33675         (Makefile.am): Update fcntl.h rule.
33676
33677         dirent: Avoid #define replacements in C++ mode.
33678         * lib/dirent.in.h: Include c++defs.h.
33679         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
33680         namespaced alias symbol.
33681         (dirfd): Update declaration.
33682         * modules/dirent (Depends-on): Add c++defs.
33683         (Makefile.am): Update dirent.h rule.
33684
33685         ctype: Make it usable in C++ code.
33686         * lib/ctype.in.h: Include c++defs.h.
33687         (isblank): Declare as extern "C".
33688         * modules/ctype (Depends-on): Add c++defs.
33689         (Makefile.am): Update ctype.h rule.
33690
33691         New module 'c++defs'.
33692         * modules/c++defs: New file.
33693         * build-aux/c++defs.h: New file.
33694         Reported by John W. Eaton <jwe@gnu.org>.
33695
33696 2010-03-07  Bruno Haible  <bruno@clisp.org>
33697
33698         logb: Provide missing declaration for Cygwin.
33699         * lib/math.in.h (logb): New declaration.
33700         * m4/logb.m4: New file.
33701         * modules/logb (Files): Add m4/logb.m4.
33702         (Depends-on): Add math.
33703         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
33704         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
33705         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
33706         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
33707         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
33708
33709 2010-03-07  Bruno Haible  <bruno@clisp.org>
33710
33711         Fix test-cond link error.
33712         * tests/test-cond.c: Include <stdio.h>.
33713
33714 2010-03-07  Bruno Haible  <bruno@clisp.org>
33715
33716         Fix test-dirent-safer link error.
33717         * modules/dirent-safer-tests (Makefile.am): Define
33718         test_dirent_safer_LDADD.
33719
33720 2010-03-07  Bruno Haible  <bruno@clisp.org>
33721
33722         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
33723         among default module list.
33724
33725 2010-03-07  Bruno Haible  <bruno@clisp.org>
33726
33727         Fix link error on platforms with GNU libiconv.
33728         * modules/unistr/u8-strcoll-tests (Makefile): Define
33729         test_u8_strcoll_LDADD.
33730         * modules/unistr/u16-strcoll-tests (Makefile): Define
33731         test_u16_strcoll_LDADD.
33732         * modules/unistr/u32-strcoll-tests (Makefile): Define
33733         test_u32_strcoll_LDADD.
33734
33735 2010-03-07  Bruno Haible  <bruno@clisp.org>
33736
33737         Use POSIX declarations for socket functions.
33738         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
33739         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
33740         rpl_sendto): Change declaration to match POSIX.
33741         * lib/connect.c (rpl_connect): Likewise.
33742         * lib/accept.c (rpl_accept): Likewise.
33743         * lib/bind.c (rpl_bind): Likewise.
33744         * lib/getpeername.c (rpl_getpeername): Likewise.
33745         * lib/getsockname.c (rpl_getsockname): Likewise.
33746         * lib/recv.c (rpl_recv): Likewise.
33747         * lib/send.c (rpl_send): Likewise.
33748         * lib/recvfrom.c (rpl_recvfrom): Likewise.
33749         * lib/sendto.c (rpl_sendto): Likewise.
33750
33751 2010-03-06  Bruno Haible  <bruno@clisp.org>
33752
33753         Clarify access, euidaccess, faccessat.
33754         * doc/posix-functions/faccessat.texi: Mention security problem under
33755         "Other problems", not "Portability problems".
33756         * doc/posix-functions/access.texi: Likewise. Mention a related security
33757         problem.
33758         * doc/glibc-functions/euidaccess.texi: Mention security problems.
33759         * lib/euidaccess.c: Add comments about platforms.
33760         * lib/unistd.in.h (access, euidaccess): Add warnings.
33761
33762 2010-03-07  Bruno Haible  <bruno@clisp.org>
33763
33764         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
33765         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
33766         (POSIX_SPAWN_SETSCHEDULER): Likewise.
33767         (POSIX_SPAWN_USEVFORK): Define in a way that works when
33768         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
33769         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
33770         declare when POSIX_SPAWN_SETSCHEDULER is zero.
33771         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
33772         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
33773         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
33774         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
33775         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
33776         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
33777         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
33778         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
33779         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
33780         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
33781         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
33782         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
33783         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
33784         Likewise.
33785         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
33786         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
33787         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
33788         Likewise.
33789         * tests/test-spawn.c (main): Make it work when
33790         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
33791
33792 2010-03-07  Bruno Haible  <bruno@clisp.org>
33793
33794         Fix incorrect Makefile.am generation in German locale.
33795         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
33796         Execute sed command with character range in C locale.
33797
33798 2010-03-06  Bruno Haible  <bruno@clisp.org>
33799
33800         Tests for module 'iconv-h'.
33801         * modules/iconv-h-tests: New file.
33802         * tests/test-iconv-h.c: New file.
33803
33804         New module 'iconv-h'.
33805         * modules/iconv-h: New file.
33806         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
33807         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
33808         (configure.ac): Remove gl_ICONV_H.
33809         (Makefile.am): Remove rule for iconv.h.
33810
33811 2010-03-06  Bruno Haible  <bruno@clisp.org>
33812
33813         More consistent naming of *.m4 files.
33814         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
33815         * modules/wctype (Files): Update.
33816
33817         More consistent naming of *.m4 files.
33818         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
33819         * modules/wchar (Files): Update.
33820
33821 2010-03-06  Jim Meyering  <meyering@redhat.com>
33822
33823         euidaccess: relax license to LGPLv2+
33824         * modules/euidaccess (License): Relax to LGPLv2+.
33825
33826 2010-03-06  Bruno Haible  <bruno@clisp.org>
33827
33828         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
33829         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
33830         (Makefile.am): Augment lib_SOURCES instead.
33831
33832 2010-03-04  Jim Meyering  <meyering@redhat.com>
33833
33834         utime: remove obsolete module
33835         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
33836         unnecessary for years, and has been marked as obsolete for 10 months.
33837         * modules/utime: Remove file.
33838         * lib/utime.c: Remove file.
33839         * m4/utime.m4: Remove file.
33840         * m4/utimes-null.m4: Remove file.
33841         * doc/posix-functions/utime.texi (utime): Remove reference to
33842         the module.  Move the sole "fixed by gnulib" item into the
33843         "problems not fixed by Gnulib" list.
33844         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
33845
33846 2010-03-05  Simon Josefsson  <simon@josefsson.org>
33847
33848         * modules/exit (License): Relax license to LGPLv2+.
33849         (Status): Mark as obsolete.
33850         * NEWS: Mention deprecated 'exit' module.
33851         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
33852         of now obsolete 'exit'.
33853
33854 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33855
33856         fts-lgpl: remove unused module
33857         * modules/fts-lgpl: Remove.
33858         * MODULES.html.sh (func_all_modules): Adjust.
33859         * check-module (find_included_lib_files): Adjust.
33860         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
33861
33862 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
33863
33864         copy-acl: enhance Solaris ACL error handling
33865         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
33866         * lib/set-mode-acl.c (qset_acl): Likewise.
33867
33868 2010-03-02  Bruno Haible  <bruno@clisp.org>
33869
33870         spawn: Don't override the system defined values on FreeBSD 8.
33871         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
33872         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
33873         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
33874         if HAVE_POSIX_SPAWN is 1.
33875         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
33876
33877 2010-03-01  Bruno Haible  <bruno@clisp.org>
33878
33879         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
33880         regarding Automake.
33881
33882 2010-02-25  Bruno Haible  <bruno@clisp.org>
33883
33884         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
33885         * gnulib-tool: Define 'echo' as a function only before the ksh alias
33886         setting, not afterwards.
33887         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
33888
33889 2010-02-24  Eric Blake  <eblake@redhat.com>
33890
33891         bootstrap, git-version-gen: use timestamp
33892         * build-aux/git-version-gen (scriptversion): Force UTC.
33893         * build-aux/bootstrap (scriptversion): New variable.
33894
33895         bootstrap: allow older git
33896         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
33897         older than 1.6.4.  Requested by the libvirt project.
33898
33899 2010-02-23  Eric Blake  <eblake@redhat.com>
33900
33901         warn-on-use: work with old autoconf
33902         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
33903         AS_VAR semantics of autoconf 2.60.
33904         Reported by Bruno Haible.
33905
33906         bootstrap: improve some comments
33907         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
33908         clarification comments.
33909
33910         gettimeofday: provide correct function
33911         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
33912         when replacement is declared, otherwise provide gettimeofday.
33913         Reported by Michael Goffioul.
33914
33915 2010-02-23  Jim Meyering  <meyering@redhat.com>
33916
33917         lib-ignore: relax license to "unlimited", not LGPLv2+
33918         * modules/lib-ignore (License): Relax to "unlimited".
33919
33920 2010-02-23  Jim Meyering  <meyering@redhat.com>
33921
33922         lib-ignore: relax license to LGPLv2+
33923         * modules/lib-ignore (License): Relax to LGPLv2+.
33924
33925 2010-02-22  Eric Blake  <eblake@redhat.com>
33926
33927         lseek: avoid bash 3.2 broken pipe bug
33928         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
33929         warning from bash 3.2.
33930         Reported by Ben Pfaff, with analysis from Bruno Haible.
33931
33932         bootstrap: support non-FSF copyright holder
33933         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
33934         bootstrap.conf override of COPYRIGHT_HOLDER.
33935         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
33936
33937         bootstrap: interoperate with gettext 0.14.1
33938         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
33939
33940         bootstrap: allow for alternate submodule location
33941         * build-aux/bootstrap (gnulib_path): New variable; use instead of
33942         hardcoding submodule location.
33943         (gnulib_mk): Allow direct use of Makefile.am.
33944
33945         bootstrap: use GNULIB_SRCDIR to reduce disk usage
33946         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
33947         rather than reconfiguring where the submodule points.
33948
33949         gettimeofday: restore support for platforms that lack function
33950         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
33951         replacement if function is missing.
33952         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
33953         * modules/sys_time (Makefile.am): Substitute it.
33954         * lib/sys_time.in.h (gettimeofday): Check it.
33955         Reported by Michael Goffioul.
33956
33957 2010-02-21  Bruno Haible  <bruno@clisp.org>
33958
33959         * lib/stdio.in.h (obstack_printf): Fix typo.
33960
33961 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
33962
33963         vc-list-files: use bzr ls's -R option
33964         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
33965         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
33966
33967 2010-02-21  Jim Meyering  <meyering@redhat.com>
33968
33969         init.sh: fix EXEEXT shims to work also for names like test-prog
33970         * tests/init.sh: Re-exec a better shell, when needed.
33971         If the current shell lacks support for posix $(...), an init.sh-using
33972         test will now try to find a shell that supports that.  If EXEEXT is
33973         nonempty, we also require support for hyphen-in-alias-name and shell
33974         substitutions like ${var#glob}.  Failure to find such a shell results
33975         in a skipped test.
33976
33977 2010-02-21  Bruno Haible  <bruno@clisp.org>
33978
33979         Really work around around "broken pipe" error message from bash 3.2.
33980         * gnulib-tool (func_reset_sigpipe): Remove function.
33981         (echo): In bash 3.2, define to a function that uses printf.
33982         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
33983
33984 2010-02-20  Bruno Haible  <bruno@clisp.org>
33985
33986         Restore support for automake 1.9.6 with autoconf 2.61.
33987         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
33988         Reported by James Youngman <jay@gnu.org>.
33989
33990 2010-02-20  Bruno Haible  <bruno@clisp.org>
33991
33992         Improve *printf warning condition.
33993         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
33994         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
33995         and the function is overridden due to SIGPIPE emulation.
33996
33997 2010-02-20  Bruno Haible  <bruno@clisp.org>
33998
33999         * lib/stdio.in.h: Tweak comments.
34000
34001 2010-02-19  Bruno Haible  <bruno@clisp.org>
34002
34003         Make it easier to find modules. New gnulib-tool option '--find'.
34004         * gnulib-tool: New option --find.
34005         (func_usage): Document it.
34006         (func_sanitize_modulelist): New function, extracted from
34007         func_all_modules.
34008         (func_all_modules): Invoke it.
34009         * doc/gnulib-tool.texi (Which modules?): New node.
34010
34011 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
34012
34013         * lib/sys_select.in.h: Provide select replacement even if
34014         sys/select.h exists on a system, for Interix.
34015
34016 2010-02-18  Jim Meyering  <meyering@redhat.com>
34017
34018         init.sh: don't use $(...) just yet
34019         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
34020         to accommodate e.g., Solaris' /bin/sh.
34021
34022 2010-02-17  Bruno Haible  <bruno@clisp.org>
34023
34024         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
34025         Reported by Ludovic Courtès <ludo@gnu.org>.
34026
34027 2010-02-16  Simon Josefsson  <simon@josefsson.org>
34028
34029         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
34030         linking with -lintl.
34031
34032 2010-02-17  Simon Josefsson  <simon@josefsson.org>
34033
34034         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
34035         if not provided by the system's netdb.h.  Reported by
34036         ludo@gnu.org (Ludovic Courtès).
34037
34038 2010-02-15  Jim Meyering  <meyering@redhat.com>
34039
34040         init.sh: improve portability and efficiency
34041         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
34042         "dummy" in a for loop.
34043         Use '!', not '^' to select the complement of a character set used
34044         in a "case" statement.
34045         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
34046         Suggestions from Eric Blake.
34047
34048         init.sh: automatically accommodate programs with the .exe suffix
34049         Automatically arrange for an invocation of "prog" to execute the
34050         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
34051         may use the simpler "prog", yet still work when built on a system
34052         that requires specifying the added suffix.
34053         Do this by constructing a function named "prog" that invokes
34054         "prog.exe" for each .exe file in selected directories.
34055         * tests/init.sh (find_exe_basenames_): New function.
34056         (create_exe_shim_functions_): New function.
34057         (path_prepend_): Use it.
34058
34059         maint.mk: mark syntax-check sc_*.m rules as .PHONY
34060         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
34061         "make -t syntax-check" doesn't create a ton of sc_*.m files.
34062
34063 2010-02-14  Jim Meyering  <meyering@redhat.com>
34064
34065         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
34066         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
34067         (sc_prohibit_hash_pjw_without_use): New rule.
34068
34069         maint.mk: allow the default upload destination dir to be overridden
34070         * top/maint.mk (upload_dest_dir_): Define with a default that
34071         preserves the status quo.
34072         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
34073         Reported by Peter Simons.
34074
34075         maint.mk: prohibit inclusion of "hash.h" without_use
34076         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
34077
34078 2010-02-10  Jim Meyering  <meyering@redhat.com>
34079
34080         maint.mk: prohibit inclusion of "ignore-value.h" without_use
34081         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
34082
34083 2010-02-09  Eric Blake  <ebb9@byu.net>
34084         and Bruno Haible  <bruno@clisp.org>
34085
34086         obstack-printf-posix: ensure declaration
34087         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
34088         extracted from gl_FUNC_OBSTACK_PRINTF.
34089         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
34090         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
34091         Likewise.
34092         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
34093         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
34094         0.
34095
34096 2010-02-08  Bruno Haible  <bruno@clisp.org>
34097
34098         gnulib-tool: Fix typo in 2010-02-07 commit.
34099         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
34100         Reported by Eric Blake.
34101
34102 2010-02-07  Bruno Haible  <bruno@clisp.org>
34103
34104         gnulib-tool: Fix up caching patches.
34105         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
34106         option --no-cache. Use associative arrays when supported by the shell.
34107         (sed_comments): New variable.
34108         (modcache): Renamed from do_cache.
34109         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
34110         abbreviate unnecessarily.
34111         (have_associative): New variable.
34112         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
34113         way also for ksh and zsh.
34114         (func_init_sed_convert_to_cache_statements): New function, extracted
34115         from func_cache_lookup_module. Add support for associative arrays.
34116         Don't set the c_MODULE_cached variable here. Ignore all lines before
34117         the first field header. Remove only the final newline, not all trailing
34118         newlines. Support empty fields correctly. Limit the use of 'eval' to
34119         assignments.
34120         (func_get_description, func_get_status, func_get_notice,
34121         func_get_applicability, func_get_filelist, func_get_dependencies,
34122         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
34123         func_get_automake_snippet, func_get_include_directive,
34124         func_get_link_directive, func_get_license, func_get_maintainer):
34125         Update documentation. List the unoptimized code first. Add support for
34126         associative arrays. Limit the use of 'eval' to assignments.
34127         (func_get_applicability): Undo stylistic pessimisations.
34128         (func_get_automake_snippet, func_get_include_directive): Reduce code
34129         duplication.
34130         (func_modules_transitive_closure, func_modules_add_dummy,
34131         func_modules_notice, func_modules_to_filelist, func_add_file,
34132         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
34133         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
34134         func_create_testdir, func_create_megatestdir): Update documentation.
34135
34136 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34137
34138         * gnulib-tool (func_cache_lookup_module): Store the module name
34139         belonging to the cache variable; error out if two different
34140         module names map to the same cache variable name.
34141
34142 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34143
34144         gnulib-tool: Make caching optional.
34145         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
34146         Update matching short versions of --no-changelog.
34147         (func_usage): Update.
34148         (sed_extract_cache_prog): Renamed from ...
34149         (sed_extract_prog): ... this; revert to old extraction script.
34150         (func_get_description, func_get_status)
34151         (func_get_notice, func_get_applicability, func_get_filelist)
34152         (func_get_dependencies, func_get_autoconf_early_snippet)
34153         (func_get_autoconf_snippet, func_get_automake_snippet)
34154         (func_get_include_directive, func_get_link_directive)
34155         (func_get_license, func_get_maintainer): If $do_cache is false,
34156         use old, non-caching extraction scripts.
34157         Suggestion by Bruno Haible.
34158
34159 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34160
34161         gnulib-tool: cache module metainformation.
34162         * gnulib-tool (sed_extract_prog): Match newline before each
34163         header, and rewrite header to a shell variable suffix.
34164         (func_cache_var, func_cache_lookup_module): New functions,
34165         to turn a module name into a cache variable prefix, and to
34166         look up and cache module metainformation.
34167         (func_get_description, func_get_status)
34168         (func_get_notice, func_get_applicability, func_get_filelist)
34169         (func_get_dependencies, func_get_autoconf_early_snippet)
34170         (func_get_autoconf_snippet, func_get_automake_snippet)
34171         (func_get_include_directive, func_get_link_directive)
34172         (func_get_license, func_get_maintainer): Use
34173         func_cache_lookup_module.
34174
34175 2010-02-07  Bruno Haible  <bruno@clisp.org>
34176
34177         fnctl: Fix missing dependency.
34178         * modules/fcntl (Depends-on): Add getdtablesize.
34179         Reported by John W. Eaton <jwe@gnu.org>.
34180
34181 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
34182
34183         Argp: fix recognition of short alias options.
34184
34185         * lib/argp-parse.c (convert_options): Fix improper use of
34186         `|' between character values.
34187         * tests/test-argp.c (group1_option): New alias option
34188         --read (-r).
34189         (group1_parser): Special handling for 'r'.
34190         (test15): New test case.
34191         (test_fun): Add test15.
34192         * tests/test-argp-2.sh: Update expected --help and --usage
34193         outputs.
34194
34195 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
34196
34197         * tests/test-argp.c: Fix indentation.
34198
34199 2010-02-04  Eric Blake  <ebb9@byu.net>
34200
34201         gettimeofday: expose type of second argument
34202         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
34203         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
34204         * tests/test-gettimeofday.c: Use it to silence warning.
34205         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
34206         the issue.
34207
34208 2010-02-03  Jim Meyering  <meyering@redhat.com>
34209
34210         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
34211         * lib/regcomp.c (TYPE_SIGNED): Define.
34212         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
34213
34214         regcomp.c: avoid a new -Wshadow warning
34215         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
34216
34217 2010-02-01  Jim Meyering  <meyering@redhat.com>
34218
34219         removing useless parentheses in cpp #define directives
34220         For motivation, see commit c0221df4, "define STREQ(a,b)
34221         consistently, removing useless parentheses"
34222         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
34223         * lib/mountlist.c (MNT_IGNORE): Likewise.
34224         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
34225
34226 2010-02-01  Eric Blake  <ebb9@byu.net>
34227
34228         sys_time: use link-warning
34229         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
34230         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
34231         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
34232         * modules/sys_time (Depends-on): Add warn-on-use.
34233         (Makefile.am): Always build replacement.
34234         (configure.ac): Update substitutions.
34235         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
34236         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
34237         bother with SYS_TIME_H.
34238         * modules/gettimeofday (configure.ac): Declare indicator.
34239         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
34240         in use.
34241
34242         closein-tests: silence compiler warning
34243         * tests/test-closein.c (main): Ignore fread result.
34244         * modules/closein-tests (Depends-on): Add ignore-value.
34245
34246         tests: silence warning about system return
34247         * tests/test-areadlink-with-size.c (main): Ignore system result.
34248         * tests/test-areadlink.c (main): Likewise.
34249         * tests/test-areadlinkat-with-size.c (main): Likewise.
34250         * tests/test-areadlinkat.c (main): Likewise.
34251         * tests/test-canonicalize-lgpl.c (main): Likewise.
34252         * tests/test-canonicalize.c (main): Likewise.
34253         * tests/test-chown.c (main): Likewise.
34254         * tests/test-fchownat.c (main): Likewise.
34255         * tests/test-fdutimensat.c (main): Likewise.
34256         * tests/test-fstatat.c (main): Likewise.
34257         * tests/test-futimens.c (main): Likewise.
34258         * tests/test-lchown.c (main): Likewise.
34259         * tests/test-link.c (main): Likewise.
34260         * tests/test-linkat.c (main): Likewise.
34261         * tests/test-lstat.c (main): Likewise.
34262         * tests/test-mkdir.c (main): Likewise.
34263         * tests/test-mkdirat.c (main): Likewise.
34264         * tests/test-mkfifo.c (main): Likewise.
34265         * tests/test-mkfifoat.c (main): Likewise.
34266         * tests/test-mknod.c (main): Likewise.
34267         * tests/test-readlink.c (main): Likewise.
34268         * tests/test-remove.c (main): Likewise.
34269         * tests/test-rename.c (main): Likewise.
34270         * tests/test-renameat.c (main): Likewise.
34271         * tests/test-rmdir.c (main): Likewise.
34272         * tests/test-symlink.c (main): Likewise.
34273         * tests/test-symlinkat.c (main): Likewise.
34274         * tests/test-unlink.c (main): Likewise.
34275         * tests/test-unlinkat.c (main): Likewise.
34276         * tests/test-utimens.c (main): Likewise.
34277         * tests/test-utimensat.c (main): Likewise.
34278         * modules/areadlink-tests (Depends-on): Add ignore-value.
34279         * modules/areadlink-with-size-tests (Depends-on): Likewise.
34280         * modules/areadlinkat-tests (Depends-on): Likewise.
34281         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
34282         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
34283         * modules/canonicalize-tests (Depends-on): Likewise.
34284         * modules/chown-tests (Depends-on): Likewise.
34285         * modules/fdutimensat-tests (Depends-on): Likewise.
34286         * modules/futimens-tests (Depends-on): Likewise.
34287         * modules/lchown-tests (Depends-on): Likewise.
34288         * modules/link-tests (Depends-on): Likewise.
34289         * modules/linkat-tests (Depends-on): Likewise.
34290         * modules/lstat-tests (Depends-on): Likewise.
34291         * modules/mkdir-tests (Depends-on): Likewise.
34292         * modules/mkfifo-tests (Depends-on): Likewise.
34293         * modules/mkfifoat-tests (Depends-on): Likewise.
34294         * modules/mknod-tests (Depends-on): Likewise.
34295         * modules/openat-tests (Depends-on): Likewise.
34296         * modules/readlink-tests (Depends-on): Likewise.
34297         * modules/remove-tests (Depends-on): Likewise.
34298         * modules/rename-tests (Depends-on): Likewise.
34299         * modules/renameat-tests (Depends-on): Likewise.
34300         * modules/rmdir-tests (Depends-on): Likewise.
34301         * modules/symlink-tests (Depends-on): Likewise.
34302         * modules/symlinkat-tests (Depends-on): Likewise.
34303         * modules/unlink-tests (Depends-on): Likewise.
34304         * modules/utimens-tests (Depends-on): Likewise.
34305         * modules/utimensat-tests (Depends-on): Likewise.
34306
34307 2010-01-31  Bruno Haible  <bruno@clisp.org>
34308
34309         Perform the same test for many <math.h> functions.
34310         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
34311         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
34312         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
34313         of gl_MATHFUNC.
34314         * modules/acos (configure.ac): Likewise.
34315         * modules/asin (configure.ac): Likewise.
34316         * modules/atan (configure.ac): Likewise.
34317         * modules/atan2 (configure.ac): Likewise.
34318         * modules/cbrt (configure.ac): Likewise.
34319         * modules/copysign (configure.ac): Likewise.
34320         * modules/cos (configure.ac): Likewise.
34321         * modules/cosh (configure.ac): Likewise.
34322         * modules/erf (configure.ac): Likewise.
34323         * modules/erfc (configure.ac): Likewise.
34324         * modules/exp (configure.ac): Likewise.
34325         * modules/fmod (configure.ac): Likewise.
34326         * modules/hypot (configure.ac): Likewise.
34327         * modules/j0 (configure.ac): Likewise.
34328         * modules/j1 (configure.ac): Likewise.
34329         * modules/jn (configure.ac): Likewise.
34330         * modules/lgamma (configure.ac): Likewise.
34331         * modules/log (configure.ac): Likewise.
34332         * modules/log10 (configure.ac): Likewise.
34333         * modules/log1p (configure.ac): Likewise.
34334         * modules/pow (configure.ac): Likewise.
34335         * modules/remainder (configure.ac): Likewise.
34336         * modules/sin (configure.ac): Likewise.
34337         * modules/sinh (configure.ac): Likewise.
34338         * modules/tan (configure.ac): Likewise.
34339         * modules/tanh (configure.ac): Likewise.
34340         * modules/y0 (configure.ac): Likewise.
34341         * modules/y1 (configure.ac): Likewise.
34342         * modules/yn (configure.ac): Likewise.
34343         Suggested by Paolo Bonzini.
34344
34345 2010-01-31  Bruno Haible  <bruno@clisp.org>
34346
34347         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
34348
34349 2010-01-31  Bruno Haible  <bruno@clisp.org>
34350
34351         Work around getdelim() bug on FreeBSD 8.0.
34352         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
34353         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
34354         not work.
34355         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
34356         is 1.
34357         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
34358         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
34359         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
34360         a non-zero size.
34361         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
34362
34363 2010-01-31  Bruno Haible  <bruno@clisp.org>
34364
34365         Work around getline() bug on FreeBSD 8.0.
34366         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
34367         and a non-zero size.
34368         * tests/test-getline.c (main): Likewise.
34369         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
34370         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
34371
34372 2010-01-28  Eric Blake  <ebb9@byu.net>
34373
34374         regex: fix build failure
34375         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
34376         platforms.
34377
34378 2010-01-28  Jim Meyering  <meyering@redhat.com>
34379
34380         regex: do not ignore memory allocation failure
34381         * lib/regex_internal.c (create_cd_newstate): Detect
34382         re_node_set_init_copy failure.   Extracted from glibc commit
34383         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
34384
34385         regex: sync more white-space changes from libc
34386         * lib/regex_internal.c: White-space only changes.
34387         * lib/regexec.c: Likewise.
34388
34389         regex: add many uses of __attribute_warn_unused_result__
34390         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
34391         * lib/regexec.c: Likewise.
34392         Extracted from a messy glibc commit.
34393
34394         regcomp.c: spelling and merge-artifact from glibc
34395         * lib/regcomp.c: Merge remainder of glibc's
34396         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
34397
34398         regcomp.c: sync white-space changes from glibc
34399         * lib/regcomp.c: Merge to accommodate white space
34400         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
34401
34402         regcomp.c: do not ignore internal return values
34403         * lib/regcomp.c: Do not ignore internal return values.
34404         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
34405         but without its white-space changes and spelling fixes.
34406
34407         regex_internal.h: define __attribute_warn_unused_result__
34408         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
34409
34410         maint: add a syntax-check rule to check for vulnerable Makefile.in
34411         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
34412
34413 2010-01-27  Jim Meyering  <meyering@redhat.com>
34414
34415         ncftpput-ftp: clean up spaces
34416         * build-aux/ncftpput-ftp: Make Copyright line consistent.
34417         Remove trailing blanks.
34418
34419 2010-01-27  Simon Josefsson  <simon@josefsson.org>
34420
34421         * build-aux/git-version-gen: Fix copyright statement.
34422         * build-aux/gnupload: Likewise.
34423         * tests/test-arcfour.c: Likewise.
34424         * tests/test-arctwo.c: Likewise.
34425         * tests/test-count-one-bits.c: Likewise.
34426         * tests/test-crc.c: Likewise.
34427         * tests/test-des.c: Likewise.
34428         * tests/test-gc-arcfour.c: Likewise.
34429         * tests/test-gc-arctwo.c: Likewise.
34430         * tests/test-gc-des.c: Likewise.
34431         * tests/test-gc-hmac-md5.c: Likewise.
34432         * tests/test-gc-hmac-sha1.c: Likewise.
34433         * tests/test-gc-md2.c: Likewise.
34434         * tests/test-gc-md4.c: Likewise.
34435         * tests/test-gc-md5.c: Likewise.
34436         * tests/test-gc-pbkdf2-sha1.c: Likewise.
34437         * tests/test-gc-rijndael.c: Likewise.
34438         * tests/test-gc-sha1.c: Likewise.
34439         * tests/test-gc.c: Likewise.
34440         * tests/test-gethostname.c: Likewise.
34441         * tests/test-gettimeofday.c: Likewise.
34442         * tests/test-hash.c: Likewise.
34443         * tests/test-hmac-md5.c: Likewise.
34444         * tests/test-hmac-sha1.c: Likewise.
34445         * tests/test-md2.c: Likewise.
34446         * tests/test-md4.c: Likewise.
34447         * tests/test-md5.c: Likewise.
34448         * tests/test-memchr.c: Likewise.
34449         * tests/test-memchr2.c: Likewise.
34450         * tests/test-memcmp.c: Likewise.
34451         * tests/test-memmem.c: Likewise.
34452         * tests/test-memrchr.c: Likewise.
34453         * tests/test-rawmemchr.c: Likewise.
34454         * tests/test-read-file.c: Likewise.
34455         * tests/test-rijndael.c: Likewise.
34456         * tests/test-sockets.c: Likewise.
34457         * tests/test-strchrnul.c: Likewise.
34458         * tests/test-strstr.c: Likewise.
34459         * tests/test-strtod.c: Likewise.
34460         * build-aux/ncftpput-ftp: Likewise.
34461
34462 2010-01-26  Eric Blake  <ebb9@byu.net>
34463
34464         ignore-value: update recommended header name
34465         * modules/ignore-value (Include): Only use <> for headers that
34466         exist in glibc.
34467
34468 2010-01-26  Jim Meyering  <meyering@redhat.com>
34469
34470         test-userspec.c: avoid compiler warnings
34471         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
34472         and "initialization discards qualifiers..." warnings.
34473         Put the first "uid" in its own scope, and make char* members "const".
34474
34475 2010-01-25  Bruno Haible  <bruno@clisp.org>
34476
34477         gnulib-tool: Make warning diagnostics consistent.
34478         * gnulib-tool (func_warning): New function.
34479         Use it everywhere where gnulib-tool produces output to stderr and it is
34480         not a fatal error.
34481
34482 2010-01-25  Bruno Haible  <bruno@clisp.org>
34483
34484         Fix test dependencies.
34485         * modules/xstrtol-tests (Depends-on): Add inttypes.
34486         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
34487
34488 2010-01-25 Pádraig Brady <P@draigBrady.com>
34489
34490         syntax-check: detect incorrect boolean macro values in config.h
34491         * modules/maintainer-makefile (configure.ac): Parameterize the location
34492         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
34493         The logic is from Eric Blake and the location indicated by Jim Meyering.
34494         Note the more natural CONFIG_HEADER name is prohibited by automake
34495         for backwards compatibility reasons.
34496         * top/maint.mk (sc_Wundef_boolean): New rule.
34497
34498 2010-01-25  Jim Meyering  <meyering@redhat.com>
34499
34500         bootstrap: detect MacOS 10.6's shasum, too
34501         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
34502         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
34503
34504 2010-01-23  Jim Meyering  <meyering@redhat.com>
34505
34506         xstrtoll: new module
34507         * modules/xstrtoll: New file.
34508         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
34509         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
34510         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
34511         ./configure fails if you use this module and lack "long long".
34512         * modules/xstrtoll-tests: New module.
34513         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
34514         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
34515         new init.sh-based test framework.
34516
34517 2010-01-24  Bruno Haible  <bruno@clisp.org>
34518
34519         Tests for module 'yn'.
34520         * modules/yn-tests: New file.
34521         * tests/test-yn.c: New file.
34522
34523         Tests for module 'y1'.
34524         * modules/y1-tests: New file.
34525         * tests/test-y1.c: New file.
34526
34527         Tests for module 'y0'.
34528         * modules/y0-tests: New file.
34529         * tests/test-y0.c: New file.
34530
34531         Tests for module 'tanh'.
34532         * modules/tanh-tests: New file.
34533         * tests/test-tanh.c: New file.
34534
34535         Tests for module 'tan'.
34536         * modules/tan-tests: New file.
34537         * tests/test-tan.c: New file.
34538
34539         Tests for module 'sqrt'.
34540         * modules/sqrt-tests: New file.
34541         * tests/test-sqrt.c: New file.
34542
34543         Tests for module 'sinh'.
34544         * modules/sinh-tests: New file.
34545         * tests/test-sinh.c: New file.
34546
34547         Tests for module 'sin'.
34548         * modules/sin-tests: New file.
34549         * tests/test-sin.c: New file.
34550
34551         Tests for module 'rint'.
34552         * modules/rint-tests: New file.
34553         * tests/test-rint.c: New file.
34554
34555         Tests for module 'remainder'.
34556         * modules/remainder-tests: New file.
34557         * tests/test-remainder.c: New file.
34558
34559         Tests for module 'pow'.
34560         * modules/pow-tests: New file.
34561         * tests/test-pow.c: New file.
34562
34563         Tests for module 'nextafter'.
34564         * modules/nextafter-tests: New file.
34565         * tests/test-nextafter.c: New file.
34566
34567         Tests for module 'modf'.
34568         * modules/modf-tests: New file.
34569         * tests/test-modf.c: New file.
34570
34571         Tests for module 'logb'.
34572         * modules/logb-tests: New file.
34573         * tests/test-logb.c: New file.
34574
34575         Tests for module 'log1p'.
34576         * modules/log1p-tests: New file.
34577         * tests/test-log1p.c: New file.
34578
34579         Tests for module 'log10'.
34580         * modules/log10-tests: New file.
34581         * tests/test-log10.c: New file.
34582
34583         Tests for module 'log'.
34584         * modules/log-tests: New file.
34585         * tests/test-log.c: New file.
34586
34587         Tests for module 'lgamma'.
34588         * modules/lgamma-tests: New file.
34589         * tests/test-lgamma.c: New file.
34590
34591         Tests for module 'ldexp'.
34592         * modules/ldexp-tests: New file.
34593         * tests/test-ldexp.c: New file.
34594
34595         Tests for module 'jn'.
34596         * modules/jn-tests: New file.
34597         * tests/test-jn.c: New file.
34598
34599         Tests for module 'j1'.
34600         * modules/j1-tests: New file.
34601         * tests/test-j1.c: New file.
34602
34603         Tests for module 'j0'.
34604         * modules/j0-tests: New file.
34605         * tests/test-j0.c: New file.
34606
34607         Tests for module 'hypot'.
34608         * modules/hypot-tests: New file.
34609         * tests/test-hypot.c: New file.
34610
34611         Tests for module 'fmod'.
34612         * modules/fmod-tests: New file.
34613         * tests/test-fmod.c: New file.
34614
34615         Tests for module 'fabs'.
34616         * modules/fabs-tests: New file.
34617         * tests/test-fabs.c: New file.
34618
34619         Tests for module 'exp'.
34620         * modules/exp-tests: New file.
34621         * tests/test-exp.c: New file.
34622
34623         Tests for module 'erfc'.
34624         * modules/erfc-tests: New file.
34625         * tests/test-erfc.c: New file.
34626
34627         Tests for module 'erf'.
34628         * modules/erf-tests: New file.
34629         * tests/test-erf.c: New file.
34630
34631         Tests for module 'cosh'.
34632         * modules/cosh-tests: New file.
34633         * tests/test-cosh.c: New file.
34634
34635         Tests for module 'cos'.
34636         * modules/cos-tests: New file.
34637         * tests/test-cos.c: New file.
34638
34639         Tests for module 'copysign'.
34640         * modules/copysign-tests: New file.
34641         * tests/test-copysign.c: New file.
34642
34643         Tests for module 'cbrt'.
34644         * modules/cbrt-tests: New file.
34645         * tests/test-cbrt.c: New file.
34646
34647         Tests for module 'atan2'.
34648         * modules/atan2-tests: New file.
34649         * tests/test-atan2.c: New file.
34650
34651         Tests for module 'atan'.
34652         * modules/atan-tests: New file.
34653         * tests/test-atan.c: New file.
34654
34655         Tests for module 'asin'.
34656         * modules/asin-tests: New file.
34657         * tests/test-asin.c: New file.
34658
34659         Tests for module 'acos'.
34660         * modules/acos-tests: New file.
34661         * tests/test-acos.c: New file.
34662
34663 2010-01-24  Bruno Haible  <bruno@clisp.org>
34664
34665         Fix tests for common <math.h> functions.
34666         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
34667         code snippet that references the function pointer, rather than merely
34668         calling the function. Substitute the FUNC_LIBM variable.
34669         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
34670         * modules/acos (configure.ac): Likewise.
34671         * modules/asin (configure.ac): Likewise.
34672         * modules/atan (configure.ac): Likewise.
34673         * modules/atan2 (configure.ac): Likewise.
34674         * modules/cbrt (configure.ac): Likewise.
34675         * modules/copysign (configure.ac): Likewise.
34676         * modules/cos (configure.ac): Likewise.
34677         * modules/cosh (configure.ac): Likewise.
34678         * modules/erf (configure.ac): Likewise.
34679         * modules/erfc (configure.ac): Likewise.
34680         * modules/exp (configure.ac): Likewise.
34681         * modules/fabs (configure.ac): Likewise.
34682         * modules/fmod (configure.ac): Likewise.
34683         * modules/hypot (configure.ac): Likewise.
34684         * modules/j0 (configure.ac): Likewise.
34685         * modules/j1 (configure.ac): Likewise.
34686         * modules/jn (configure.ac): Likewise.
34687         * modules/ldexp (configure.ac): Likewise.
34688         * modules/lgamma (configure.ac): Likewise.
34689         * modules/log (configure.ac): Likewise.
34690         * modules/log10 (configure.ac): Likewise.
34691         * modules/log1p (configure.ac): Likewise.
34692         * modules/logb (configure.ac): Likewise.
34693         * modules/modf (configure.ac): Likewise.
34694         * modules/nextafter (configure.ac): Likewise.
34695         * modules/pow (configure.ac): Likewise.
34696         * modules/remainder (configure.ac): Likewise.
34697         * modules/rint (configure.ac): Likewise.
34698         * modules/sin (configure.ac): Likewise.
34699         * modules/sinh (configure.ac): Likewise.
34700         * modules/tan (configure.ac): Likewise.
34701         * modules/tanh (configure.ac): Likewise.
34702         * modules/y0 (configure.ac): Likewise.
34703         * modules/y1 (configure.ac): Likewise.
34704         * modules/yn (configure.ac): Likewise.
34705
34706 2010-01-24  Bruno Haible  <bruno@clisp.org>
34707
34708         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
34709         * tests/test-acosl.c (x): New variable.
34710         (main): Store argument in x and fetch it from x.
34711         * tests/test-asinl.c (x): New variable.
34712         (main): Store argument in x and fetch it from x.
34713         * tests/test-atanl.c (x): New variable.
34714         (main): Store argument in x and fetch it from x.
34715         * tests/test-cosl.c (x): New variable.
34716         (main): Store argument in x and fetch it from x.
34717         * tests/test-expl.c (x): New variable.
34718         (main): Store argument in x and fetch it from x.
34719         * tests/test-logl.c (x): New variable.
34720         (main): Store argument in x and fetch it from x.
34721         * tests/test-sinl.c (x): New variable.
34722         (main): Store argument in x and fetch it from x.
34723         * tests/test-sqrtl.c (x): New variable.
34724         (main): Store argument in x and fetch it from x.
34725         * tests/test-tanl.c (x): New variable.
34726         (main): Store argument in x and fetch it from x.
34727
34728 2010-01-24  Bruno Haible  <bruno@clisp.org>
34729
34730         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
34731         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
34732         assignments to the initial TESTS_ENVIRONMENT.
34733         * doc/gnulib.texi (Unit test modules): Document it.
34734         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
34735         TESTS_ENVIRONMENT.
34736         * modules/btowc-tests (Makefile.am): Likewise.
34737         * modules/c-stack-tests (Makefile.am): Likewise.
34738         * modules/c-strcase-tests (Makefile.am): Likewise.
34739         * modules/copy-file-tests (Makefile.am): Likewise.
34740         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
34741         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
34742         * modules/mbrtowc-tests (Makefile.am): Likewise.
34743         * modules/mbscasecmp-tests (Makefile.am): Likewise.
34744         * modules/mbscasestr-tests (Makefile.am): Likewise.
34745         * modules/mbschr-tests (Makefile.am): Likewise.
34746         * modules/mbscspn-tests (Makefile.am): Likewise.
34747         * modules/mbsinit-tests (Makefile.am): Likewise.
34748         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
34749         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
34750         * modules/mbspbrk-tests (Makefile.am): Likewise.
34751         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
34752         * modules/mbsrchr-tests (Makefile.am): Likewise.
34753         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
34754         * modules/mbsspn-tests (Makefile.am): Likewise.
34755         * modules/mbsstr-tests (Makefile.am): Likewise.
34756         * modules/nl_langinfo-tests (Makefile.am): Likewise.
34757         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
34758         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
34759         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
34760         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
34761         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
34762         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
34763         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
34764         * modules/wcrtomb-tests (Makefile.am): Likewise.
34765         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
34766         * modules/wcsrtombs-tests (Makefile.am): Likewise.
34767         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
34768         assignments from TESTS_ENVIRONMENT.
34769         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
34770         augmentation.
34771         * modules/argp-version-etc-tests (Makefile.am): Likewise.
34772         * modules/atexit-tests (Makefile.am): Likewise.
34773         * modules/binary-io-tests (Makefile.am): Likewise.
34774         * modules/closein-tests (Makefile.am): Likewise.
34775         * modules/dprintf-posix-tests (Makefile.am): Likewise.
34776         * modules/exclude-tests (Makefile.am): Likewise.
34777         * modules/fflush-tests (Makefile.am): Likewise.
34778         * modules/fpending-tests (Makefile.am): Likewise.
34779         * modules/fprintf-posix-tests (Makefile.am): Likewise.
34780         * modules/freadahead-tests (Makefile.am): Likewise.
34781         * modules/freadptr-tests (Makefile.am): Likewise.
34782         * modules/freadseek-tests (Makefile.am): Likewise.
34783         * modules/fseek-tests (Makefile.am): Likewise.
34784         * modules/fseeko-tests (Makefile.am): Likewise.
34785         * modules/ftell-tests (Makefile.am): Likewise.
34786         * modules/ftello-tests (Makefile.am): Likewise.
34787         * modules/idpriv-drop-tests (Makefile.am): Likewise.
34788         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
34789         * modules/lseek-tests (Makefile.am): Likewise.
34790         * modules/parse-duration-tests (Makefile.am): Likewise.
34791         * modules/perror-tests (Makefile.am): Likewise.
34792         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
34793         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
34794         * modules/pipe-tests (Makefile.am): Likewise.
34795         * modules/pread-tests (Makefile.am): Likewise.
34796         * modules/printf-posix-tests (Makefile.am): Likewise.
34797         * modules/select-tests (Makefile.am): Likewise.
34798         * modules/sigpipe-tests (Makefile.am): Likewise.
34799         * modules/tsearch-tests (Makefile.am): Likewise.
34800         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
34801         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
34802         * modules/uniname/uniname-tests (Makefile.am): Likewise.
34803         * modules/uniwidth/width-tests (Makefile.am): Likewise.
34804         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
34805         * modules/version-etc-tests (Makefile.am): Likewise.
34806         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
34807         * modules/vprintf-posix-tests (Makefile.am): Likewise.
34808         * modules/xalloc-die-tests (Makefile.am): Likewise.
34809         * modules/xprintf-posix-tests (Makefile.am): Likewise.
34810         * modules/xstrtoimax-tests (Makefile.am): Likewise.
34811         * modules/xstrtol-tests (Makefile.am): Likewise.
34812         * modules/xstrtoumax-tests (Makefile.am): Likewise.
34813         * modules/yesno-tests (Makefile.am): Likewise.
34814         Suggested by Jim Meyering.
34815
34816 2010-01-24  Bruno Haible  <bruno@clisp.org>
34817
34818         More documentation.
34819         * doc/gnulib.texi (Writing modules): New chapter.
34820         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
34821         the new chapter.
34822
34823 2010-01-24  Jim Meyering  <meyering@redhat.com>
34824
34825         maint.mk: do not prepend "./" after filtering
34826         * top/maint.mk (_prepend_srcdir_prefix): New variable
34827         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
34828         "./" when $(srcdir) is ".".
34829
34830         define STREQ(a,b) consistently, removing useless parentheses
34831         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
34832         since the only risk is that "a" or "b" contains an unparenthesized
34833         comma, but if either did that, STREQ would have 3 or more arguments.
34834         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
34835         * lib/fts.c (STREQ): Remove unnecessary parentheses.
34836         * lib/hash-triple.c (STREQ): Likewise.
34837         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
34838         * lib/getugroups.c (STREQ): Likewise.
34839
34840 2010-01-23  Jim Meyering  <meyering@redhat.com>
34841
34842         maint.mk: fix syntax-check in a non-srcdir build directory
34843         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
34844         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
34845
34846 2010-01-22  Jim Meyering  <meyering@redhat.com>
34847
34848         userspec: add unit tests
34849         * tests/test-userspec.c: New file.
34850         * modules/userspec-tests: Likewise.
34851
34852 2010-01-21  Jim Meyering  <meyering@redhat.com>
34853
34854         maint.mk: handle source file names containing "." robustly
34855         * top/maint.mk (_dot_escaped_srcdir): Define.
34856         (VC_LIST): Use it in LHS of sed substitution.
34857
34858 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
34859
34860         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
34861         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
34862         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
34863         from a non-srcdir build.
34864
34865 2010-01-20  Eric Blake  <ebb9@byu.net>
34866
34867         warn-on-use: use instead of link-warning
34868         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
34869         * modules/unistd (Depends-on, Makefile.am): Likewise.
34870         * modules/arpa_inet (Depends-on): Replace link-warning with
34871         warn-on-use.
34872         (Makefile.am): Update rules accordingly.
34873         * modules/ctype (Depends-on, Makefile.am): Likewise.
34874         * modules/dirent (Depends-on, Makefile.am): Likewise.
34875         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
34876         * modules/inttypes (Depends-on, Makefile.am): Likewise.
34877         * modules/langinfo (Depends-on, Makefile.am): Likewise.
34878         * modules/locale (Depends-on, Makefile.am): Likewise.
34879         * modules/math (Depends-on, Makefile.am): Likewise.
34880         * modules/search (Depends-on, Makefile.am): Likewise.
34881         * modules/signal (Depends-on, Makefile.am): Likewise.
34882         * modules/spawn (Depends-on, Makefile.am): Likewise.
34883         * modules/stdlib (Depends-on, Makefile.am): Likewise.
34884         * modules/string (Depends-on, Makefile.am): Likewise.
34885         * modules/strings (Depends-on, Makefile.am): Likewise.
34886         * modules/sys_file (Depends-on, Makefile.am): Likewise.
34887         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
34888         * modules/sys_select (Depends-on, Makefile.am): Likewise.
34889         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
34890         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
34891         * modules/sys_times (Depends-on, Makefile.am): Likewise.
34892         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
34893         * modules/wchar (Depends-on, Makefile.am): Likewise.
34894         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
34895         should be poisoned.
34896         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
34897         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
34898         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
34899         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
34900         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
34901         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
34902         * m4/math_h.m4 (gl_MATH_H): Likewise.
34903         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
34904         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
34905         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
34906         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
34907         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
34908         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
34909         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
34910         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
34911         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
34912         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
34913         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
34914         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
34915         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
34916         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
34917         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
34918         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
34919         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
34920         GL_LINK_WARNING.
34921         * lib/ctype.in.h: Likewise.
34922         * lib/dirent.in.h: Likewise.
34923         * lib/fcntl.in.h: Likewise.
34924         * lib/inttypes.in.h: Likewise.
34925         * lib/langinfo.in.h: Likewise.
34926         * lib/locale.in.h: Likewise.
34927         * lib/math.in.h: Likewise.
34928         * lib/search.in.h: Likewise.
34929         * lib/signal.in.h: Likewise.
34930         * lib/spawn.in.h: Likewise.
34931         * lib/stdio.in.h: Likewise.
34932         * lib/stdlib.in.h: Likewise.
34933         * lib/string.in.h: Likewise.
34934         * lib/strings.in.h: Likewise.
34935         * lib/sys_file.in.h: Likewise.
34936         * lib/sys_ioctl.in.h: Likewise.
34937         * lib/sys_select.in.h: Likewise.
34938         * lib/sys_socket.in.h: Likewise.
34939         * lib/sys_stat.in.h: Likewise.
34940         * lib/sys_times.in.h: Likewise.
34941         * lib/sys_utsname.in.h: Likewise.
34942         * lib/unistd.in.h: Likewise.
34943         * lib/wchar.in.h: Likewise.
34944
34945 2010-01-20  Bruno Haible  <bruno@clisp.org>
34946
34947         Avoid duplicate -lm.
34948         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
34949         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
34950         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
34951         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
34952         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
34953         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
34954         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
34955         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
34956         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
34957         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
34958         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
34959         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
34960         Reported by Paolo Bonzini.
34961
34962 2010-01-19  Bruno Haible  <bruno@clisp.org>
34963
34964         langinfo, nl_langinfo: Relicense under LGPLv2+.
34965         * modules/langinfo (License): Change to LGPLv2+.
34966         * modules/nl_langinfo (License): Likewise.
34967         Patch by David Lutterkort <lutter@redhat.com>.
34968
34969 2010-01-19  Bruno Haible  <bruno@clisp.org>
34970
34971         Avoid compilation error with cc on OSF/1 5.1.
34972         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
34973         statement, not before.
34974         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34975
34976 2010-01-18  Bruno Haible  <bruno@clisp.org>
34977
34978         Avoid a link error due to the __printf__ symbol.
34979         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
34980         and 2.6.x.
34981         (__format__, __printf__): Remove definitions.
34982         * lib/argp-fmtstream.h: Likewise.
34983         * lib/argp.h: Likewise.
34984         * lib/error.h: Likewise.
34985         * lib/vasnprintf.h: Likewise.
34986         * lib/xprintf.h: Likewise.
34987         * lib/xvasprintf.h: Likewise.
34988         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34989
34990 2010-01-18  Bruno Haible  <bruno@clisp.org>
34991
34992         Tests for module 'tanl'.
34993         * modules/tanl-tests: New file.
34994         * tests/test-tanl.c: New file.
34995
34996         Tests for module 'sqrtl'.
34997         * modules/sqrtl-tests: New file.
34998         * tests/test-sqrtl.c: New file.
34999
35000         Tests for module 'sinl'.
35001         * modules/sinl-tests: New file.
35002         * tests/test-sinl.c: New file.
35003
35004         Tests for module 'logl'.
35005         * modules/logl-tests: New file.
35006         * tests/test-logl.c: New file.
35007
35008         Tests for module 'expl'.
35009         * modules/expl-tests: New file.
35010         * tests/test-expl.c: New file.
35011
35012         Tests for module 'cosl'.
35013         * modules/cosl-tests: New file.
35014         * tests/test-cosl.c: New file.
35015
35016         Tests for module 'atanl'.
35017         * modules/atanl-tests: New file.
35018         * tests/test-atanl.c: New file.
35019
35020         Tests for module 'asinl'.
35021         * modules/asinl-tests: New file.
35022         * tests/test-asinl.c: New file.
35023
35024         Tests for module 'acosl'.
35025         * modules/acosl-tests: New file.
35026         * tests/test-acosl.c: New file.
35027
35028         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
35029         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
35030         tanl): Use the standard gnulib idiom.
35031         * lib/cosl.c: Don't include trigl.c and sincosl.c.
35032         * lib/sinl.c: Likewise.
35033         * lib/tanl.c: Don't include trigl.c.
35034         (kernel_tanl): Make static.
35035         * lib/sincosl.c: Include trigl.h first.
35036         * lib/trigl.c: Likewise.
35037         * m4/acosl.m4: New file.
35038         * m4/asinl.m4: New file.
35039         * m4/atanl.m4: New file.
35040         * m4/cosl.m4: New file.
35041         * m4/expl.m4: New file.
35042         * m4/logl.m4: New file.
35043         * m4/sinl.m4: New file.
35044         * m4/sqrtl.m4: New file.
35045         * m4/tanl.m4: New file.
35046         * m4/mathl.m4: Remove file.
35047         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
35048         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
35049         Don't initialize GNULIB_MATHL.
35050         * modules/acosl: New file.
35051         * modules/asinl: New file.
35052         * modules/atanl: New file.
35053         * modules/cosl: New file.
35054         * modules/expl: New file.
35055         * modules/logl: New file.
35056         * modules/sinl: New file.
35057         * modules/sqrtl: New file.
35058         * modules/tanl: New file.
35059         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
35060         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
35061         substitute GNULIB_MATHL.
35062         * modules/mathl: Rewritten.
35063         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
35064         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
35065         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
35066         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
35067         * doc/posix-functions/expl.texi: Mention the 'expl' module.
35068         * doc/posix-functions/logl.texi: Mention the 'logl' module.
35069         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
35070         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
35071         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
35072
35073 2010-01-18  Bruno Haible  <bruno@clisp.org>
35074
35075         sqrt: Make gl_FUNC_SQRT requirable.
35076         * m4/sqrt.m4: New file.
35077         * modules/sqrt (Files): Add it.
35078         (configure.ac): Invoke gl_FUNC_SQRT.
35079
35080 2010-01-18  Bruno Haible  <bruno@clisp.org>
35081
35082         New modules for common <math.h> functions.
35083         * m4/mathfunc.m4: New file.
35084         * modules/acos: New file.
35085         * modules/asin: New file.
35086         * modules/atan: New file.
35087         * modules/atan2: New file.
35088         * modules/cbrt: New file.
35089         * modules/copysign: New file.
35090         * modules/cos: New file.
35091         * modules/cosh: New file.
35092         * modules/erf: New file.
35093         * modules/erfc: New file.
35094         * modules/exp: New file.
35095         * modules/fabs: New file.
35096         * modules/fmod: New file.
35097         * modules/hypot: New file.
35098         * modules/j0: New file.
35099         * modules/j1: New file.
35100         * modules/jn: New file.
35101         * modules/ldexp: New file.
35102         * modules/lgamma: New file.
35103         * modules/log: New file.
35104         * modules/log10: New file.
35105         * modules/log1p: New file.
35106         * modules/logb: New file.
35107         * modules/modf: New file.
35108         * modules/nextafter: New file.
35109         * modules/pow: New file.
35110         * modules/remainder: New file.
35111         * modules/rint: New file.
35112         * modules/sin: New file.
35113         * modules/sinh: New file.
35114         * modules/sqrt: New file.
35115         * modules/tan: New file.
35116         * modules/tanh: New file.
35117         * modules/y0: New file.
35118         * modules/y1: New file.
35119         * modules/yn: New file.
35120         * doc/posix-functions/acos.texi: Mention the 'acos' module.
35121         * doc/posix-functions/asin.texi: Mention the 'asin' module.
35122         * doc/posix-functions/atan.texi: Mention the 'atan' module.
35123         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
35124         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
35125         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
35126         * doc/posix-functions/cos.texi: Mention the 'cos' module.
35127         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
35128         * doc/posix-functions/erf.texi: Mention the 'erf' module.
35129         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
35130         * doc/posix-functions/exp.texi: Mention the 'exp' module.
35131         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
35132         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
35133         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
35134         * doc/posix-functions/j0.texi: Mention the 'j0' module.
35135         * doc/posix-functions/j1.texi: Mention the 'j1' module.
35136         * doc/posix-functions/jn.texi: Mention the 'jn' module.
35137         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
35138         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
35139         * doc/posix-functions/log.texi: Mention the 'log' module.
35140         * doc/posix-functions/log10.texi: Mention the 'log10' module.
35141         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
35142         * doc/posix-functions/logb.texi: Mention the 'logb' module.
35143         * doc/posix-functions/modf.texi: Mention the 'modf' module.
35144         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
35145         * doc/posix-functions/pow.texi: Mention the 'pow' module.
35146         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
35147         * doc/posix-functions/rint.texi: Mention the 'rint' module.
35148         * doc/posix-functions/sin.texi: Mention the 'sin' module.
35149         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
35150         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
35151         * doc/posix-functions/tan.texi: Mention the 'tan' module.
35152         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
35153         * doc/posix-functions/y0.texi: Mention the 'y0' module.
35154         * doc/posix-functions/y1.texi: Mention the 'y1' module.
35155         * doc/posix-functions/yn.texi: Mention the 'yn' module.
35156
35157 2010-01-18  Jim Meyering  <meyering@redhat.com>
35158
35159         ignore-value: relax license to LGPLv2+
35160         * modules/ignore-value (License): Relax to LGPLv2+.
35161
35162         getdate: don't leak when TZ contains two or more '"'s
35163         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
35164         double quote in TZ after the first one.
35165
35166         readtokens: do not leak internal token_lengths buffer
35167         * lib/readtokens.c (readtokens): Free the local, lengths,
35168         when the supplied "token_lengths" parameter is NULL.
35169
35170 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35171
35172         Fix a couple of missing LIBTHREAD link failures on AIX.
35173         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
35174         $(LIBTHREAD).
35175         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
35176
35177         Link test-poll against INET_PTON_LIB.
35178         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
35179         for inet_pton on Solaris 10.
35180
35181 2010-01-17  Bruno Haible  <bruno@clisp.org>
35182
35183         unistdio/*-sprintf: Fix typo in module description.
35184         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
35185         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
35186         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
35187         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
35188         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
35189         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
35190         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
35191         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35192
35193 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35194
35195         gnulib-tool: fix filelist for AIX, HP-UX ksh.
35196         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
35197         variables in shell case patterns, for AIX and HP-UX ksh.
35198
35199         Split large sed scripts, for HP-UX sed.
35200         * modules/stdio: Split sed scripts around 50 sed commands,
35201         to avoid HP-UX limit of 99 commands, in the near future.
35202         * modules/string: Likewise.
35203         * modules/unistd: Likewise.
35204
35205         gnulib-tool: avoid writing in the current directory.
35206         * gnulib-tool (func_emit_lib_Makefile_am)
35207         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
35208         not in the current directory, so concurrent gnulib-tool
35209         instances do not interfere.
35210
35211 2010-01-16  Jim Meyering  <meyering@redhat.com>
35212
35213         doc: update users.txt
35214         * users.txt: Add grep.
35215         (diffutils, gzip): Update URLs.
35216
35217 2010-01-12  Bruno Haible  <bruno@clisp.org>
35218
35219         posix_spawn: Avoid test failure on Cygwin.
35220         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
35221         characters.
35222         Reported by Simon Josefsson.
35223
35224 2010-01-12  Bruno Haible  <bruno@clisp.org>
35225
35226         * tests/test-cond.c (main): When skipping the test, show the reason.
35227
35228 2010-01-12  Simon Josefsson  <simon@josefsson.org>
35229
35230         * lib/striconv.c (str_cd_iconv): Avoid if before free.
35231
35232 2010-01-12  Simon Josefsson  <simon@josefsson.org>
35233
35234         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
35235         VC_LIST_ALWAYS_EXCLUDE_REGEX.
35236
35237 2010-01-12  Eric Blake  <ebb9@byu.net>
35238
35239         build: guarantee AS_VAR_IF
35240         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
35241         (gl_AS_VAR_IF): Move...
35242         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
35243         Reported by Simon Josefsson.
35244
35245 2010-01-12  Simon Josefsson  <simon@josefsson.org>
35246
35247         * lib/stdio.in.h: Fix typo.
35248
35249 2010-01-12  Simon Josefsson  <simon@josefsson.org>
35250
35251         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
35252         libgpg-error.
35253
35254 2010-01-12  Simon Josefsson  <simon@josefsson.org>
35255
35256         * tests/test-xalloc-die.sh: Use $EXEEXT.
35257
35258 2010-01-12  Simon Josefsson  <simon@josefsson.org>
35259             Bruno Haible  <bruno@clisp.org>
35260
35261         getlogin, getlogin_r: Avoid test failure.
35262         * tests/test-getlogin.c: Include <stdio.h>.
35263         (main): Skip the test when the function fails because stdin is not a
35264         tty.
35265         * tests/test-getlogin_r.c: Include <stdio.h>.
35266         (main): Skip the test when the function fails because stdin is not a
35267         tty.
35268
35269 2010-01-11  Eric Blake  <ebb9@byu.net>
35270
35271         tests: avoid more large file warnings
35272         * tests/test-fflush.c: Avoid warning about ftell use.
35273         * tests/test-fseek.c: Avoid warning about fseek use.
35274
35275 2010-01-10  Bruno Haible  <bruno@clisp.org>
35276
35277         nproc: Work better on Linux when /proc and /sys are not mounted.
35278         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
35279         as lower bound when, on glibc/Linux systems,
35280         sysconf (_SC_NPROCESSORS_CONF) returns 1.
35281         Suggested by Pádraig Brady <P@draigbrady.com>.
35282         Reported by Dmitry V. Levin <ldv@altlinux.org>.
35283
35284         nproc: Refactor.
35285         * lib/nproc.c (num_processors_via_affinity_mask): New function,
35286         extracted from num_processors.
35287         (num_processors): Call it.
35288
35289 2010-01-11  Jim Meyering  <meyering@redhat.com>
35290
35291         utimecmp: avoid new warning from upcoming gcc-4.5.0
35292         * lib/utimecmp.c (BILLION): Define using #define rather than an
35293         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
35294
35295 2010-01-11  Eric Blake  <ebb9@byu.net>
35296
35297         math: add portability warnings for classification macros
35298         * modules/math (Depends-on): Add warn-on-use.
35299         (Makefile.am): Provide new substitutions.
35300         * m4/math_h.m4 (gl_MATH_H): Require inline.
35301         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
35302         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
35303         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
35304         implement warnings.
35305
35306         unistd: warn on use of environ without module
35307         * modules/unistd (Depends-on): Add warn-on-use.
35308         (Makefile.am): Provide new substitutions.
35309         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
35310         * lib/unistd.in.h (environ): Wrap with a warning helper function.
35311
35312         stdio: warn on suspicious uses
35313         * modules/stdio (Depends-on): Add warn-on-use.
35314         (Makefile.am): Provide new substitutions.
35315         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
35316         fseeko.
35317         * lib/stdio.in.h (gets): Always warn on use.
35318         (fseek, ftell): Adjust when warnings are issued, and honor
35319         _GL_NO_LARGE_FILES as a way to silence the warning.
35320         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
35321         any warning about large file offsets.
35322         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
35323         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
35324         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
35325         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
35326         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
35327         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
35328         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
35329         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
35330
35331         warn-on-use: new module
35332         * modules/warn-on-use: New file.
35333         * build-aux/warn-on-use.h: Likewise.
35334         * m4/warn-on-use.m4: Likewise.
35335         * MODULES.html.sh (Support for building): Mention it.
35336
35337 2010-01-10  Bruno Haible  <bruno@clisp.org>
35338
35339         Tests for module 'unistr/u32-strdup'.
35340         * modules/unistr/u32-strdup-tests: New file.
35341         * tests/unistr/test-u32-strdup.c: New file.
35342
35343         Tests for module 'unistr/u16-strdup'.
35344         * modules/unistr/u16-strdup-tests: New file.
35345         * tests/unistr/test-u16-strdup.c: New file.
35346
35347         Tests for module 'unistr/u8-strdup'.
35348         * modules/unistr/u8-strdup-tests: New file.
35349         * tests/unistr/test-u8-strdup.c: New file.
35350         * tests/unistr/test-strdup.h: New file.
35351
35352         Tests for module 'unistr/u32-strncmp'.
35353         * modules/unistr/u32-strncmp-tests: New file.
35354         * tests/unistr/test-u32-strncmp.c: New file.
35355
35356         Tests for module 'unistr/u16-strncmp'.
35357         * modules/unistr/u16-strncmp-tests: New file.
35358         * tests/unistr/test-u16-strncmp.c: New file.
35359
35360         Tests for module 'unistr/u8-strncmp'.
35361         * modules/unistr/u8-strncmp-tests: New file.
35362         * tests/unistr/test-u8-strncmp.c: New file.
35363         * tests/unistr/test-strncmp.h: New file.
35364
35365         Tests for module 'unistr/u32-strcoll'.
35366         * modules/unistr/u32-strcoll-tests: New file.
35367         * tests/unistr/test-u32-strcoll.c: New file.
35368
35369         Tests for module 'unistr/u16-strcoll'.
35370         * modules/unistr/u16-strcoll-tests: New file.
35371         * tests/unistr/test-u16-strcoll.c: New file.
35372
35373         Tests for module 'unistr/u8-strcoll'.
35374         * modules/unistr/u8-strcoll-tests: New file.
35375         * tests/unistr/test-u8-strcoll.c: New file.
35376
35377         Tests for module 'unistr/u32-strcmp'.
35378         * modules/unistr/u32-strcmp-tests: New file.
35379         * tests/unistr/test-u32-strcmp.c: New file.
35380         * tests/unistr/test-u32-strcmp.h: New file.
35381
35382         Tests for module 'unistr/u16-strcmp'.
35383         * modules/unistr/u16-strcmp-tests: New file.
35384         * tests/unistr/test-u16-strcmp.c: New file.
35385         * tests/unistr/test-u16-strcmp.h: New file.
35386
35387         Tests for module 'unistr/u8-strcmp'.
35388         * modules/unistr/u8-strcmp-tests: New file.
35389         * tests/unistr/test-u8-strcmp.c: New file.
35390         * tests/unistr/test-u8-strcmp.h: New file.
35391         * tests/unistr/test-strcmp.h: New file.
35392
35393         Tests for module 'unistr/u32-strncat'.
35394         * modules/unistr/u32-strncat-tests: New file.
35395         * tests/unistr/test-u32-strncat.c: New file.
35396
35397         Tests for module 'unistr/u16-strncat'.
35398         * modules/unistr/u16-strncat-tests: New file.
35399         * tests/unistr/test-u16-strncat.c: New file.
35400
35401         Tests for module 'unistr/u8-strncat'.
35402         * modules/unistr/u8-strncat-tests: New file.
35403         * tests/unistr/test-u8-strncat.c: New file.
35404         * tests/unistr/test-strncat.h: New file.
35405
35406         Tests for module 'unistr/u32-strcat'.
35407         * modules/unistr/u32-strcat-tests: New file.
35408         * tests/unistr/test-u32-strcat.c: New file.
35409
35410         Tests for module 'unistr/u16-strcat'.
35411         * modules/unistr/u16-strcat-tests: New file.
35412         * tests/unistr/test-u16-strcat.c: New file.
35413
35414         Tests for module 'unistr/u8-strcat'.
35415         * modules/unistr/u8-strcat-tests: New file.
35416         * tests/unistr/test-u8-strcat.c: New file.
35417         * tests/unistr/test-strcat.h: New file.
35418
35419         Tests for module 'unistr/u32-stpncpy'.
35420         * modules/unistr/u32-stpncpy-tests: New file.
35421         * tests/unistr/test-u32-stpncpy.c: New file.
35422
35423         Tests for module 'unistr/u16-stpncpy'.
35424         * modules/unistr/u16-stpncpy-tests: New file.
35425         * tests/unistr/test-u16-stpncpy.c: New file.
35426
35427         Tests for module 'unistr/u8-stpncpy'.
35428         * modules/unistr/u8-stpncpy-tests: New file.
35429         * tests/unistr/test-u8-stpncpy.c: New file.
35430         * tests/unistr/test-stpncpy.h: New file.
35431
35432         Tests for module 'unistr/u32-strncpy'.
35433         * modules/unistr/u32-strncpy-tests: New file.
35434         * tests/unistr/test-u32-strncpy.c: New file.
35435
35436         Tests for module 'unistr/u16-strncpy'.
35437         * modules/unistr/u16-strncpy-tests: New file.
35438         * tests/unistr/test-u16-strncpy.c: New file.
35439
35440         Tests for module 'unistr/u8-strncpy'.
35441         * modules/unistr/u8-strncpy-tests: New file.
35442         * tests/unistr/test-u8-strncpy.c: New file.
35443         * tests/unistr/test-strncpy.h: New file.
35444
35445         Tests for module 'unistr/u32-stpcpy'.
35446         * modules/unistr/u32-stpcpy-tests: New file.
35447         * tests/unistr/test-u32-stpcpy.c: New file.
35448
35449         Tests for module 'unistr/u16-stpcpy'.
35450         * modules/unistr/u16-stpcpy-tests: New file.
35451         * tests/unistr/test-u16-stpcpy.c: New file.
35452
35453         Tests for module 'unistr/u8-stpcpy'.
35454         * modules/unistr/u8-stpcpy-tests: New file.
35455         * tests/unistr/test-u8-stpcpy.c: New file.
35456         * tests/unistr/test-stpcpy.h: New file.
35457
35458         Tests for module 'unistr/u32-strcpy'.
35459         * modules/unistr/u32-strcpy-tests: New file.
35460         * tests/unistr/test-u32-strcpy.c: New file.
35461
35462         Tests for module 'unistr/u16-strcpy'.
35463         * modules/unistr/u16-strcpy-tests: New file.
35464         * tests/unistr/test-u16-strcpy.c: New file.
35465
35466         Tests for module 'unistr/u8-strcpy'.
35467         * modules/unistr/u8-strcpy-tests: New file.
35468         * tests/unistr/test-u8-strcpy.c: New file.
35469         * tests/unistr/test-strcpy.h: New file.
35470
35471         Tests for module 'unistr/u32-strnlen'.
35472         * modules/unistr/u32-strnlen-tests: New file.
35473         * tests/unistr/test-u32-strnlen.c: New file.
35474
35475         Tests for module 'unistr/u16-strnlen'.
35476         * modules/unistr/u16-strnlen-tests: New file.
35477         * tests/unistr/test-u16-strnlen.c: New file.
35478
35479         Tests for module 'unistr/u8-strnlen'.
35480         * modules/unistr/u8-strnlen-tests: New file.
35481         * tests/unistr/test-u8-strnlen.c: New file.
35482         * tests/unistr/test-strnlen.h: New file.
35483
35484         Tests for module 'unistr/u32-strlen'.
35485         * modules/unistr/u32-strlen-tests: New file.
35486         * tests/unistr/test-u32-strlen.c: New file.
35487
35488         Tests for module 'unistr/u16-strlen'.
35489         * modules/unistr/u16-strlen-tests: New file.
35490         * tests/unistr/test-u16-strlen.c: New file.
35491
35492         Tests for module 'unistr/u8-strlen'.
35493         * modules/unistr/u8-strlen-tests: New file.
35494         * tests/unistr/test-u8-strlen.c: New file.
35495
35496         Tests for module 'unistr/u32-prev'.
35497         * modules/unistr/u32-prev-tests: New file.
35498         * tests/unistr/test-u32-prev.c: New file.
35499
35500         Tests for module 'unistr/u16-prev'.
35501         * modules/unistr/u16-prev-tests: New file.
35502         * tests/unistr/test-u16-prev.c: New file.
35503
35504         Tests for module 'unistr/u8-prev'.
35505         * modules/unistr/u8-prev-tests: New file.
35506         * tests/unistr/test-u8-prev.c: New file.
35507
35508         Tests for module 'unistr/u32-next'.
35509         * modules/unistr/u32-next-tests: New file.
35510         * tests/unistr/test-u32-next.c: New file.
35511
35512         Tests for module 'unistr/u16-next'.
35513         * modules/unistr/u16-next-tests: New file.
35514         * tests/unistr/test-u16-next.c: New file.
35515
35516         Tests for module 'unistr/u8-next'.
35517         * modules/unistr/u8-next-tests: New file.
35518         * tests/unistr/test-u8-next.c: New file.
35519
35520         Tests for module 'unistr/u32-strmbtouc'.
35521         * modules/unistr/u32-strmbtouc-tests: New file.
35522         * tests/unistr/test-u32-strmbtouc.c: New file.
35523
35524         Tests for module 'unistr/u16-strmbtouc'.
35525         * modules/unistr/u16-strmbtouc-tests: New file.
35526         * tests/unistr/test-u16-strmbtouc.c: New file.
35527
35528         Tests for module 'unistr/u8-strmbtouc'.
35529         * modules/unistr/u8-strmbtouc-tests: New file.
35530         * tests/unistr/test-u8-strmbtouc.c: New file.
35531
35532         Tests for module 'unistr/u32-strmblen'.
35533         * modules/unistr/u32-strmblen-tests: New file.
35534         * tests/unistr/test-u32-strmblen.c: New file.
35535
35536         Tests for module 'unistr/u16-strmblen'.
35537         * modules/unistr/u16-strmblen-tests: New file.
35538         * tests/unistr/test-u16-strmblen.c: New file.
35539
35540         Tests for module 'unistr/u8-strmblen'.
35541         * modules/unistr/u8-strmblen-tests: New file.
35542         * tests/unistr/test-u8-strmblen.c: New file.
35543
35544         Tests for module 'unistr/u32-cpy-alloc'.
35545         * modules/unistr/u32-cpy-alloc-tests: New file.
35546         * tests/unistr/test-u32-cpy-alloc.c: New file.
35547
35548         Tests for module 'unistr/u16-cpy-alloc'.
35549         * modules/unistr/u16-cpy-alloc-tests: New file.
35550         * tests/unistr/test-u16-cpy-alloc.c: New file.
35551
35552         Tests for module 'unistr/u8-cpy-alloc'.
35553         * modules/unistr/u8-cpy-alloc-tests: New file.
35554         * tests/unistr/test-u8-cpy-alloc.c: New file.
35555         * tests/unistr/test-cpy-alloc.h: New file.
35556
35557         Tests for module 'unistr/u32-mbsnlen'.
35558         * modules/unistr/u32-mbsnlen-tests: New file.
35559         * tests/unistr/test-u32-mbsnlen.c: New file.
35560
35561         Tests for module 'unistr/u16-mbsnlen'.
35562         * modules/unistr/u16-mbsnlen-tests: New file.
35563         * tests/unistr/test-u16-mbsnlen.c: New file.
35564
35565         Tests for module 'unistr/u8-mbsnlen'.
35566         * modules/unistr/u8-mbsnlen-tests: New file.
35567         * tests/unistr/test-u8-mbsnlen.c: New file.
35568
35569         Tests for module 'unistr/u32-chr'.
35570         * modules/unistr/u32-chr-tests: New file.
35571         * tests/unistr/test-u32-chr.c: New file.
35572
35573         Tests for module 'unistr/u16-chr'.
35574         * modules/unistr/u16-chr-tests: New file.
35575         * tests/unistr/test-u16-chr.c: New file.
35576
35577         Tests for module 'unistr/u8-chr'.
35578         * modules/unistr/u8-chr-tests: New file.
35579         * tests/unistr/test-u8-chr.c: New file.
35580         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
35581
35582         Tests for module 'unistr/u32-cmp2'.
35583         * modules/unistr/u32-cmp2-tests: New file.
35584         * tests/unistr/test-u32-cmp2.c: New file.
35585
35586         Tests for module 'unistr/u16-cmp2'.
35587         * modules/unistr/u16-cmp2-tests: New file.
35588         * tests/unistr/test-u16-cmp2.c: New file.
35589
35590         Tests for module 'unistr/u8-cmp2'.
35591         * modules/unistr/u8-cmp2-tests: New file.
35592         * tests/unistr/test-u8-cmp2.c: New file.
35593         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
35594
35595         Tests for module 'unistr/u32-cmp'.
35596         * modules/unistr/u32-cmp-tests: New file.
35597         * tests/unistr/test-u32-cmp.c: New file.
35598
35599         Tests for module 'unistr/u16-cmp'.
35600         * modules/unistr/u16-cmp-tests: New file.
35601         * tests/unistr/test-u16-cmp.c: New file.
35602
35603         Tests for module 'unistr/u8-cmp'.
35604         * modules/unistr/u8-cmp-tests: New file.
35605         * tests/unistr/test-u8-cmp.c: New file.
35606         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
35607
35608         Tests for module 'unistr/u32-set'.
35609         * modules/unistr/u32-set-tests: New file.
35610         * tests/unistr/test-u32-set.c: New file.
35611
35612         Tests for module 'unistr/u16-set'.
35613         * modules/unistr/u16-set-tests: New file.
35614         * tests/unistr/test-u16-set.c: New file.
35615
35616         Tests for module 'unistr/u8-set'.
35617         * modules/unistr/u8-set-tests: New file.
35618         * tests/unistr/test-u8-set.c: New file.
35619         * tests/unistr/test-set.h: New file.
35620
35621         Tests for module 'unistr/u32-move'.
35622         * modules/unistr/u32-move-tests: New file.
35623         * tests/unistr/test-u32-move.c: New file.
35624
35625         Tests for module 'unistr/u16-move'.
35626         * modules/unistr/u16-move-tests: New file.
35627         * tests/unistr/test-u16-move.c: New file.
35628
35629         Tests for module 'unistr/u8-move'.
35630         * modules/unistr/u8-move-tests: New file.
35631         * tests/unistr/test-u8-move.c: New file.
35632         * tests/unistr/test-move.h: New file.
35633
35634         Tests for module 'unistr/u32-cpy'.
35635         * modules/unistr/u32-cpy-tests: New file.
35636         * tests/unistr/test-u32-cpy.c: New file.
35637
35638         Tests for module 'unistr/u16-cpy'.
35639         * modules/unistr/u16-cpy-tests: New file.
35640         * tests/unistr/test-u16-cpy.c: New file.
35641
35642         Tests for module 'unistr/u8-cpy'.
35643         * modules/unistr/u8-cpy-tests: New file.
35644         * tests/unistr/test-u8-cpy.c: New file.
35645         * tests/unistr/test-cpy.h: New file.
35646
35647 2010-01-09  Bruno Haible  <bruno@clisp.org>
35648
35649         Tests for module 'unistr/u32-uctomb'.
35650         * modules/unistr/u32-uctomb-tests: New file.
35651         * tests/unistr/test-u32-uctomb.c: New file.
35652
35653         Tests for module 'unistr/u16-uctomb'.
35654         * modules/unistr/u16-uctomb-tests: New file.
35655         * tests/unistr/test-u16-uctomb.c: New file.
35656
35657         Tests for module 'unistr/u8-uctomb'.
35658         * modules/unistr/u8-uctomb-tests: New file.
35659         * tests/unistr/test-u8-uctomb.c: New file.
35660
35661         Tests for module 'unistr/u32-mbtoucr'.
35662         * modules/unistr/u32-mbtoucr-tests: New file.
35663         * tests/unistr/test-u32-mbtoucr.c: New file.
35664
35665         Tests for module 'unistr/u16-mbtoucr'.
35666         * modules/unistr/u16-mbtoucr-tests: New file.
35667         * tests/unistr/test-u16-mbtoucr.c: New file.
35668
35669         Tests for module 'unistr/u8-mbtoucr'.
35670         * modules/unistr/u8-mbtoucr-tests: New file.
35671         * tests/unistr/test-u8-mbtoucr.c: New file.
35672
35673         Tests for module 'unistr/u32-mbtouc'.
35674         * modules/unistr/u32-mbtouc-tests: New file.
35675         * tests/unistr/test-u32-mbtouc.c: New file.
35676
35677         Tests for module 'unistr/u16-mbtouc'.
35678         * modules/unistr/u16-mbtouc-tests: New file.
35679         * tests/unistr/test-u16-mbtouc.c: New file.
35680
35681         Tests for module 'unistr/u8-mbtouc'.
35682         * modules/unistr/u8-mbtouc-tests: New file.
35683         * tests/unistr/test-u8-mbtouc.c: New file.
35684
35685         Tests for module 'unistr/u32-mbtouc-unsafe'.
35686         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
35687         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
35688         * tests/unistr/test-u32-mbtouc.h: New file.
35689
35690         Tests for module 'unistr/u16-mbtouc-unsafe'.
35691         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
35692         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
35693         * tests/unistr/test-u16-mbtouc.h: New file.
35694
35695         Tests for module 'unistr/u8-mbtouc-unsafe'.
35696         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
35697         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
35698         * tests/unistr/test-u8-mbtouc.h: New file.
35699
35700         Tests for module 'unistr/u32-mblen'.
35701         * modules/unistr/u32-mblen-tests: New file.
35702         * tests/unistr/test-u32-mblen.c: New file.
35703
35704         Tests for module 'unistr/u16-mblen'.
35705         * modules/unistr/u16-mblen-tests: New file.
35706         * tests/unistr/test-u16-mblen.c: New file.
35707
35708         Tests for module 'unistr/u8-mblen'.
35709         * modules/unistr/u8-mblen-tests: New file.
35710         * tests/unistr/test-u8-mblen.c: New file.
35711
35712         Tests for module 'unistr/u32-to-u16'.
35713         * modules/unistr/u32-to-u16-tests: New file.
35714         * tests/unistr/test-u32-to-u16.c: New file.
35715
35716         Tests for module 'unistr/u32-to-u8'.
35717         * modules/unistr/u32-to-u8-tests: New file.
35718         * tests/unistr/test-u32-to-u8.c: New file.
35719
35720         Tests for module 'unistr/u16-to-u32'.
35721         * modules/unistr/u16-to-u32-tests: New file.
35722         * tests/unistr/test-u16-to-u32.c: New file.
35723
35724         Tests for module 'unistr/u16-to-u8'.
35725         * modules/unistr/u16-to-u8-tests: New file.
35726         * tests/unistr/test-u16-to-u8.c: New file.
35727
35728         Tests for module 'unistr/u8-to-u32'.
35729         * modules/unistr/u8-to-u32-tests: New file.
35730         * tests/unistr/test-u8-to-u32.c: New file.
35731
35732         Tests for module 'unistr/u8-to-u16'.
35733         * modules/unistr/u8-to-u16-tests: New file.
35734         * tests/unistr/test-u8-to-u16.c: New file.
35735
35736         Tests for module 'unistr/u32-check'.
35737         * modules/unistr/u32-check-tests: New file.
35738         * tests/unistr/test-u32-check.c: New file.
35739
35740         Tests for module 'unistr/u16-check'.
35741         * modules/unistr/u16-check-tests: New file.
35742         * tests/unistr/test-u16-check.c: New file.
35743
35744         Tests for module 'unistr/u8-check'.
35745         * modules/unistr/u8-check-tests: New file.
35746         * tests/unistr/test-u8-check.c: New file.
35747
35748         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
35749         (category_equals): New function.
35750         (main): Add more tests.
35751         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
35752
35753         * tests/unictype/test-bidi_byname.c (main): Add more tests.
35754
35755 2010-01-10  Bruno Haible  <bruno@clisp.org>
35756
35757         unistr/u*-strcoll: Try harder to distinguish different strings.
35758         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
35759         compare s1 and s2 to see if they are different.
35760
35761 2010-01-10  Bruno Haible  <bruno@clisp.org>
35762
35763         unistr/u*-stpncpy: Fix the return value.
35764         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
35765         description of the return value consistent with stpncpy in glibc.
35766         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
35767         written non-NUL unit.
35768
35769 2010-01-10  Bruno Haible  <bruno@clisp.org>
35770
35771         unistr/u*-next: Add missing dependencies.
35772         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
35773         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
35774         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
35775
35776 2010-01-10  Bruno Haible  <bruno@clisp.org>
35777
35778         unistr/u8-mbsnlen: Fix return value for incomplete character.
35779         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
35780         u8_mblen.
35781         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
35782         Remove unistr/u8-mblen.
35783         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
35784         u16_mblen.
35785         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
35786         Remove unistr/u16-mblen.
35787
35788 2010-01-10  Bruno Haible  <bruno@clisp.org>
35789
35790         wchar: Fix compilation error when <wchar.h> is used from coreutils.
35791         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
35792         Reported by Brian Gough <bjg@gnu.org> and
35793         Chris Clayton <chris2553@googlemail.com> via
35794         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
35795
35796 2010-01-09  Bruno Haible  <bruno@clisp.org>
35797
35798         unistr/u16-to-u32: Reject invalid input.
35799         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
35800         u16_mbtouc.
35801         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
35802         Remove unistr/u16-mbtouc.
35803
35804         unistr/u16-to-u8: Reject invalid input.
35805         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
35806         u16_mbtouc.
35807         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
35808         Remove unistr/u16-mbtouc.
35809
35810         unistr/u8-to-u32: Reject invalid input.
35811         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
35812         u8_mbtouc.
35813         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
35814         Remove unistr/u8-mbtouc.
35815
35816         unistr/u8-to-u16: Reject invalid input.
35817         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
35818         u8_mbtouc.
35819         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
35820         Remove unistr/u8-mbtouc.
35821
35822 2010-01-09  Bruno Haible  <bruno@clisp.org>
35823
35824         Tests for module 'getlogin'.
35825         * modules/getlogin-tests: New file.
35826         * tests/test-getlogin.c: New file.
35827
35828         New module 'getlogin'.
35829         * lib/unistd.in.h (getlogin): New declaration.
35830         * lib/getlogin.c: New file.
35831         * m4/getlogin.m4: New file.
35832         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
35833         HAVE_GETLOGIN.
35834         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
35835         HAVE_GETLOGIN.
35836         * modules/getlogin: New file.
35837         * doc/posix-functions/getlogin.texi: Mention the new module.
35838         Reported by John W. Eaton <jwe@gnu.org>.
35839
35840 2010-01-09  Bruno Haible  <bruno@clisp.org>
35841
35842         getlogin_r: Support for native Windows.
35843         * lib/getlogin_r.c: Include <windows.h>
35844         (getlogin_r): Implement for native Windows.
35845         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
35846         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
35847         via John W. Eaton <jwe@gnu.org>.
35848
35849 2010-01-09  Bruno Haible  <bruno@clisp.org>
35850
35851         getlogin_r: Small fixes.
35852         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
35853         succeeds.
35854         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
35855         before testing whether getlogin_r is declared. No need to set
35856         HAVE_DECL_GETLOGIN_R to 1.
35857         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
35858
35859 2010-01-09  Bruno Haible  <bruno@clisp.org>
35860
35861         * lib/unistd.in.h (getlogin_r): Add comment.
35862
35863 2010-01-09  Bruno Haible  <bruno@clisp.org>
35864
35865         Tests for module 'getlogin_r'.
35866         * modules/getlogin_r-tests: New file.
35867         * tests/test-getlogin_r.c: New file.
35868
35869 2010-01-09  Jim Meyering  <meyering@redhat.com>
35870
35871         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
35872         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
35873         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
35874
35875 2010-01-08  Simon Josefsson  <simon@josefsson.org>
35876
35877         * lib/dup2.c (rpl_dup2): Improve comment.
35878
35879 2010-01-08  Eric Blake  <ebb9@byu.net>
35880
35881         maint.mk: allow packages to add makefile @@ exceptions
35882         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
35883         (sc_makefile_check): Rename...
35884         (sc_makefile_at_at_check): ...to this, and use hook.
35885
35886         dup2: work around mingw bug
35887         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
35888         Reported by Simon Josefsson.
35889
35890 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
35891
35892         glob: Fix C++ compilation.
35893         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
35894         C++.
35895
35896 2010-01-07  Bruno Haible  <bruno@clisp.org>
35897
35898         Fix indentation of wctype.in.h, broken since 2007-01-06.
35899         * lib/wctype.in.h: Fix indentation of preprocessor directives.
35900
35901 2010-01-07  Bruno Haible  <bruno@clisp.org>
35902
35903         mbslen: Avoid collision with system function.
35904         * lib/string.in.h [MirBSD]: Include <wchar.h>.
35905         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
35906         * m4/mbslen.m4: New file.
35907         * modules/mbslen (Files): Add it.
35908         (configure.ac): Invoke gl_MBSLEN.
35909         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
35910         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
35911         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
35912         via Ian Beckwith <ianb@erislabs.net>.
35913
35914 2010-01-07  Bruno Haible  <bruno@clisp.org>
35915
35916         dirent: Document the last fix.
35917         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
35918
35919 2010-01-07  Bruno Haible  <bruno@clisp.org>
35920
35921         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
35922         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
35923         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
35924         va_list are defined.
35925         * doc/posix-headers/stdio.texi: Document the bug of missing types.
35926         Reported by Eric Blake.
35927
35928 2010-01-07  Bruno Haible  <bruno@clisp.org>
35929
35930         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
35931         * modules/xlist (Depends-on): Add 'list',
35932         * modules/xoset (Depends-on): Add 'oset'.
35933         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35934
35935 2010-01-07  Bruno Haible  <bruno@clisp.org>
35936
35937         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
35938         * doc/posix-functions/strncasecmp.texi: Likewise.
35939
35940 2010-01-07  Bruno Haible  <bruno@clisp.org>
35941
35942         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
35943
35944 2010-01-07  John W. Eaton  <jwe@octave.org>
35945
35946         wctype: allow C++ use
35947         * lib/wctype.in.h: Add extern "C" block for C++.
35948
35949 2010-01-06  Eric Blake  <ebb9@byu.net>
35950
35951         maint.mk: detect incorrect GFDL usage
35952         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
35953
35954 2010-01-06  Jim Meyering  <meyering@redhat.com>
35955         and Eric Blake  <ebb9@byu.net>
35956
35957         maint.mk: ignore multi-line copyright in NEWS
35958         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
35959
35960 2010-01-06  Eric Blake  <ebb9@byu.net>
35961
35962         select: add missing dependency
35963         * modules/select-tests (Depends-on): Move sockets dependency...
35964         * modules/select (Depends-on): ...here.
35965         Reported by Ian Beckwith.
35966
35967         doc: regenerate INSTALL
35968         * doc/INSTALL: Reflect recent autoconf update.
35969         * doc/INSTALL.ISO: Likewise.
35970         * doc/INSTALL.UTF-8: Likewise.
35971
35972         pread: fix compilation on glibc
35973         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
35974         Reported by Ralf Wildenhues.
35975
35976         dirent: fix test failure
35977         * lib/dirent.in.h (includes): Guarantee ino_t.
35978         Reported by Ralf Wildenhues.
35979
35980 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
35981
35982         linkat, renameat: avoid bad free
35983         * lib/at-func2.c (at_func2): Fix typo.
35984         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
35985
35986 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35987
35988         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
35989         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
35990         to avoid failure of symlink test later.
35991
35992 2010-01-06  Eric Blake  <ebb9@byu.net>
35993
35994         stdio, unistd: guarantee ssize_t
35995         * lib/unistd.in.h (includes): Ensure that types required by POSIX
35996         2008 are exposed when needed.
35997         * lib/stdio.in.h (includes): Likewise.
35998         Reported by Ralf Wildenhues.
35999
36000 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
36001
36002         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
36003         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
36004         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
36005
36006 2010-01-06  Jim Meyering  <meyering@redhat.com>
36007
36008         readtokens: this module *does* require xalloc.h
36009         It uses only functions that were omitted by the old syntax-check rule.
36010         * lib/readtokens.c: Include "xalloc.h" once again.
36011         * modules/readtokens (Depends-on): Add xalloc.
36012         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
36013
36014 2010-01-05  Eric Blake  <ebb9@byu.net>
36015
36016         maint: support 'make announcement' from a VPATH build
36017         * top/maint.mk (announcement): Look for correct NEWS file.
36018
36019 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
36020
36021         utimens (fdutimens): ignore a negative FD, per contract
36022         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
36023         when we have a valid file descriptor.  Otherwise, using a brand
36024         new glibc (with just-patched futimens that now fails with EBADF)
36025         would cause this function to fail with ENOSYS.
36026         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
36027         See also http://bugzilla.redhat.com/552320.
36028
36029 2010-01-05  Eric Blake  <ebb9@byu.net>
36030
36031         strcase: document what it provides
36032         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
36033         gnulib module.
36034         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
36035         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
36036
36037 2010-01-05  Jim Meyering  <meyering@redhat.com>
36038
36039         maint: remove useless inclusions of "xalloc.h"
36040         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
36041         * lib/readtokens.c: Likewise.
36042         * lib/same.c: Likewise.
36043         * modules/getloadavg (Depends-on): Remove xalloc.
36044         * modules/readtokens: Likewise.
36045         * modules/same: Likewise.
36046
36047         maint.mk: include 4 more function names in alloca.h-checking regexp
36048         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
36049         regexp.  Before, we would give a false-positive (saying alloca.h
36050         is included unnecessarily) when the only uses involved omitted symbols.
36051
36052         xalloc.h: use consistent formatting
36053         * lib/xalloc.h: Move declarations to start in the first column.
36054
36055 2010-01-05  Eric Blake  <ebb9@byu.net>
36056
36057         mkdir: avoid xalloc
36058         * lib/mkdir.c (includes): Drop unused header.
36059         Reported by John W. Eaton.
36060
36061 2010-01-04  Jim Meyering  <meyering@redhat.com>
36062
36063         nl_langinfo: avoid configure-time syntax error
36064         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
36065         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
36066         the empty string.  Don't let that provoke a shell syntax error.
36067
36068         regcomp, regexec, fnmatch: avoid array bounds read error
36069         * lib/regcomp.c (build_equiv_class): From glibc:
36070         Use only the low 24 bits of a findidx return value as an index
36071         into the weights array.  Patch by Ulrich Drepper:
36072         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
36073         * lib/regexec.c (check_node_accept_bytes): Likewise.
36074         * lib/fnmatch_loop.c (FCT): Likewise.
36075
36076         regcomp: skip collseq lookup when there are no rules
36077         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
36078         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
36079
36080         regcomp: recognize ill-formed { } expressions
36081         * lib/regcomp.c (parse_dup_op): From glibc:
36082         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
36083
36084         regcomp: fix typo in comment
36085         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
36086         s/satisfy/satisfies/.
36087
36088         regcomp: sync from glibc: remove dead store
36089         * lib/regcomp.c (duplicate_node_closure): Remove useless
36090         search_duplicated_node call and dead store.
36091
36092         regcomp: sync from glibc; always use nl_langinfo
36093         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
36094         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
36095         * modules/regex (Depends-on): Add nl_langinfo.
36096
36097 2010-01-04  Eric Blake  <ebb9@byu.net>
36098
36099         fdopendir: fix configure test
36100         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
36101
36102 2010-01-01  Bruno Haible  <bruno@clisp.org>
36103
36104         wchar: Remove unused configure check.
36105         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
36106
36107 2010-01-01  Eric Blake  <ebb9@byu.net>
36108
36109         headers: make check of system header explicit
36110         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
36111         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
36112         ourselves.
36113         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
36114         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
36115         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
36116         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
36117         internals.
36118         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
36119         missing.
36120         Suggested by Bruno Haible.
36121
36122 2010-01-01  Jim Meyering  <meyering@redhat.com>
36123
36124         ChangeLog: tweak to eliminate unnecessary copyright line
36125         * ChangeLog: Remove a copyright line that was mistakenly updated
36126         by today's update-copyright run.  Reported by Eric Blake.
36127
36128         test-update-copyright: don't let envvar setting cause test failure
36129         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
36130
36131 2010-01-01  Bruno Haible  <bruno@clisp.org>
36132
36133         localename: Avoid gcc warning.
36134         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
36135         function if it is not used.
36136
36137 2010-01-01  Jim Meyering  <meyering@redhat.com>
36138
36139         update nearly all FSF copyright year lists to include 2010
36140         Use the same procedure as for 2009, outlined in
36141         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
36142
36143         version-etc: set COPYRIGHT_YEAR to 2010
36144         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
36145
36146 2009-12-31  Eric Blake  <ebb9@byu.net>
36147
36148         doc: correct availability of cygwin 1.5.x getopt
36149         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
36150         variables.
36151         * doc/posix-functions/opterr.texi (opterr): Likewise.
36152         * doc/posix-functions/optind.texi (optind): Likewise.
36153         * doc/posix-functions/optopt.texi (optopt): Likewise.
36154         * doc/posix-functions/tzname.texi (tzname): Likewise.
36155
36156         openat: update maintainer
36157         * modules/openat (Maintainer): Add myself.
36158
36159         utimens: avoid shadowing warning
36160         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
36161         buffers into one, to avoid shadowing, as well as avoiding a
36162         redundant stat.
36163         Reported by Jim Meyering.
36164
36165         test-dup2: avoid compiler warning
36166         * tests/test-dup2.c (is_inheritable): Only define if used.
36167
36168 2010-01-01  Bruno Haible  <bruno@clisp.org>
36169
36170         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
36171         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
36172         defined, use wctomb instead of wcrtomb.
36173
36174 2010-01-01  Bruno Haible  <bruno@clisp.org>
36175
36176         iconv: Reject native Solaris iconv.
36177         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
36178         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
36179
36180 2009-12-31  Bruno Haible  <bruno@clisp.org>
36181
36182         * tests/test-signal.c (main): Remove test of 'SIG'.
36183
36184 2009-12-31  Bruno Haible  <bruno@clisp.org>
36185
36186         spawn: Fix incomplete fix.
36187         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
36188         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
36189         warnings for GNULIB_POSIXCHECK again.
36190         Reported by Eric Blake.
36191
36192 2009-12-31  Bruno Haible  <bruno@clisp.org>
36193
36194         Avoid namespace pollution on glibc systems.
36195         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
36196         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
36197         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
36198         glibc systems.
36199
36200 2009-12-31  Bruno Haible  <bruno@clisp.org>
36201
36202         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
36203         (gl_REPLACE_WCHAR_H): Turn into a no-op.
36204         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
36205         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
36206         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
36207         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
36208         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
36209
36210 2009-12-31  Bruno Haible  <bruno@clisp.org>
36211
36212         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
36213         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
36214         afterwards.
36215
36216 2009-12-31  Bruno Haible  <bruno@clisp.org>
36217
36218         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
36219         SYS_UTSNAME_H.
36220
36221 2009-12-31  Bruno Haible  <bruno@clisp.org>
36222
36223         spawn: Fix misapplied patch.
36224         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
36225         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
36226         warnings for GNULIB_POSIXCHECK.
36227
36228 2009-12-31  Bruno Haible  <bruno@clisp.org>
36229
36230         times: Update after sys_times changed.
36231         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
36232         * modules/times (Files): Add it.
36233         (configure.ac): Invoke gl_FUNC_TIMES.
36234
36235 2009-12-31  Bruno Haible  <bruno@clisp.org>
36236
36237         Use AC_C_INLINE where necessary.
36238         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
36239         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
36240         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
36241         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
36242         * m4/mbfile.m4 (gl_MBFILE): Likewise.
36243         * m4/mbiter.m4 (gl_MBITER): Likewise.
36244         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
36245         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
36246         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
36247         * modules/u64 (configure.ac): Likewise.
36248
36249 2009-12-31  Bruno Haible  <bruno@clisp.org>
36250
36251         Use AC_C_INLINE instead of module 'inline' where possible.
36252         * modules/inline (Description): Clarify purpose.
36253         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
36254         * modules/count-one-bits (Depends-on): Remove inline.
36255         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
36256         * modules/openat (Depends-on): Remove inline.
36257         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
36258         instead of depending on module 'inline'.
36259         * modules/filevercmp (Depends-on, configure.ac): Likewise.
36260         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
36261         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
36262         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
36263         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
36264         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
36265         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
36266         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
36267         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
36268         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
36269         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
36270         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
36271         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
36272         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
36273         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
36274         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
36275         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
36276         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
36277         Likewise.
36278         * modules/unictype/property-ascii-hex-digit (Depends-on,
36279         configure.ac): Likewise.
36280         * modules/unictype/property-bidi-arabic-digit (Depends-on,
36281         configure.ac): Likewise.
36282         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
36283         configure.ac): Likewise.
36284         * modules/unictype/property-bidi-block-separator (Depends-on,
36285         configure.ac): Likewise.
36286         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
36287         configure.ac): Likewise.
36288         * modules/unictype/property-bidi-common-separator (Depends-on,
36289         configure.ac): Likewise.
36290         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
36291         Likewise.
36292         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
36293         configure.ac): Likewise.
36294         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
36295         configure.ac): Likewise.
36296         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
36297         configure.ac): Likewise.
36298         * modules/unictype/property-bidi-european-digit (Depends-on,
36299         configure.ac): Likewise.
36300         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
36301         configure.ac): Likewise.
36302         * modules/unictype/property-bidi-left-to-right (Depends-on,
36303         configure.ac): Likewise.
36304         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
36305         configure.ac): Likewise.
36306         * modules/unictype/property-bidi-other-neutral (Depends-on,
36307         configure.ac): Likewise.
36308         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
36309         Likewise.
36310         * modules/unictype/property-bidi-segment-separator (Depends-on,
36311         configure.ac): Likewise.
36312         * modules/unictype/property-bidi-whitespace (Depends-on,
36313         configure.ac): Likewise.
36314         * modules/unictype/property-combining (Depends-on, configure.ac):
36315         Likewise.
36316         * modules/unictype/property-composite (Depends-on, configure.ac):
36317         Likewise.
36318         * modules/unictype/property-currency-symbol (Depends-on,
36319         configure.ac): Likewise.
36320         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
36321         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
36322         Likewise.
36323         * modules/unictype/property-default-ignorable-code-point (Depends-on,
36324         configure.ac): Likewise.
36325         * modules/unictype/property-deprecated (Depends-on, configure.ac):
36326         Likewise.
36327         * modules/unictype/property-diacritic (Depends-on, configure.ac):
36328         Likewise.
36329         * modules/unictype/property-extender (Depends-on, configure.ac):
36330         Likewise.
36331         * modules/unictype/property-format-control (Depends-on, configure.ac):
36332         Likewise.
36333         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
36334         Likewise.
36335         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
36336         Likewise.
36337         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
36338         Likewise.
36339         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
36340         Likewise.
36341         * modules/unictype/property-hyphen (Depends-on, configure.ac):
36342         Likewise.
36343         * modules/unictype/property-id-continue (Depends-on, configure.ac):
36344         Likewise.
36345         * modules/unictype/property-id-start (Depends-on, configure.ac):
36346         Likewise.
36347         * modules/unictype/property-ideographic (Depends-on, configure.ac):
36348         Likewise.
36349         * modules/unictype/property-ids-binary-operator (Depends-on,
36350         configure.ac): Likewise.
36351         * modules/unictype/property-ids-trinary-operator (Depends-on,
36352         configure.ac): Likewise.
36353         * modules/unictype/property-ignorable-control (Depends-on,
36354         configure.ac): Likewise.
36355         * modules/unictype/property-iso-control (Depends-on, configure.ac):
36356         Likewise.
36357         * modules/unictype/property-join-control (Depends-on, configure.ac):
36358         Likewise.
36359         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
36360         Likewise.
36361         * modules/unictype/property-line-separator (Depends-on, configure.ac):
36362         Likewise.
36363         * modules/unictype/property-logical-order-exception (Depends-on,
36364         configure.ac): Likewise.
36365         * modules/unictype/property-lowercase (Depends-on, configure.ac):
36366         Likewise.
36367         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
36368         * modules/unictype/property-non-break (Depends-on, configure.ac):
36369         Likewise.
36370         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
36371         Likewise.
36372         * modules/unictype/property-numeric (Depends-on, configure.ac):
36373         Likewise.
36374         * modules/unictype/property-other-alphabetic (Depends-on,
36375         configure.ac): Likewise.
36376         * modules/unictype/property-other-default-ignorable-code-point
36377         (Depends-on, configure.ac): Likewise.
36378         * modules/unictype/property-other-grapheme-extend (Depends-on,
36379         configure.ac): Likewise.
36380         * modules/unictype/property-other-id-continue (Depends-on,
36381         configure.ac): Likewise.
36382         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
36383         Likewise.
36384         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
36385         Likewise.
36386         * modules/unictype/property-other-math (Depends-on, configure.ac):
36387         Likewise.
36388         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
36389         Likewise.
36390         * modules/unictype/property-paired-punctuation (Depends-on,
36391         configure.ac): Likewise.
36392         * modules/unictype/property-paragraph-separator (Depends-on,
36393         configure.ac): Likewise.
36394         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
36395         Likewise.
36396         * modules/unictype/property-pattern-white-space (Depends-on,
36397         configure.ac): Likewise.
36398         * modules/unictype/property-private-use (Depends-on, configure.ac):
36399         Likewise.
36400         * modules/unictype/property-punctuation (Depends-on, configure.ac):
36401         Likewise.
36402         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
36403         Likewise.
36404         * modules/unictype/property-radical (Depends-on, configure.ac):
36405         Likewise.
36406         * modules/unictype/property-sentence-terminal (Depends-on,
36407         configure.ac): Likewise.
36408         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
36409         Likewise.
36410         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
36411         * modules/unictype/property-terminal-punctuation (Depends-on,
36412         configure.ac): Likewise.
36413         * modules/unictype/property-titlecase (Depends-on, configure.ac):
36414         Likewise.
36415         * modules/unictype/property-unassigned-code-value (Depends-on,
36416         configure.ac): Likewise.
36417         * modules/unictype/property-unified-ideograph (Depends-on,
36418         configure.ac): Likewise.
36419         * modules/unictype/property-uppercase (Depends-on, configure.ac):
36420         Likewise.
36421         * modules/unictype/property-variation-selector (Depends-on,
36422         configure.ac): Likewise.
36423         * modules/unictype/property-white-space (Depends-on, configure.ac):
36424         Likewise.
36425         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
36426         Likewise.
36427         * modules/unictype/property-xid-start (Depends-on, configure.ac):
36428         Likewise.
36429         * modules/unictype/property-zero-width (Depends-on, configure.ac):
36430         Likewise.
36431         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
36432         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
36433         Likewise.
36434
36435 2009-12-31  Bruno Haible  <bruno@clisp.org>
36436
36437         Remove unnecessary AC_C_INLINE invocation.
36438         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
36439         since 2009-08-21.
36440
36441 2009-12-31  Jim Meyering  <meyering@redhat.com>
36442
36443         maint.mk: don't require explicit gpg_key_ID in cfg.mk
36444         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
36445         With this change, we can all remove the gpg_key_ID = ... definition
36446         from our respective cfg.mk files.
36447
36448         maint.mk: create announcement template in ~/, not in /tmp
36449         * top/maint.mk (emit_upload_commands): Adjust.
36450         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
36451         Remove temporary file, .ci-msg.
36452
36453 2009-12-31  Eric Blake  <ebb9@byu.net>
36454
36455         link-warning: always build headers with link warnings
36456         * modules/arpa_inet (Makefile.am): Always build replacement
36457         header.
36458         * modules/ctype (Makefile.am): Likewise.
36459         * modules/dirent (Makefile.am): Likewise.
36460         * modules/inttypes (Makefile.am): Likewise.
36461         * modules/langinfo (Makefile.am): Likewise.
36462         * modules/locale (Makefile.am): Likewise.
36463         * modules/spawn (Makefile.am): Likewise.
36464         * modules/sys_file (Makefile.am): Likewise.
36465         * modules/sys_ioctl (Makefile.am): Likewise.
36466         * modules/sys_select (Makefile.am): Likewise.
36467         * modules/sys_socket (Makefile.am): Likewise.
36468         * modules/sys_times (Makefile.am): Likewise.
36469         * modules/sys_utsname (Makefile.am): Likewise.
36470         * modules/sys_wait (Makefile.am): Likewise.
36471         * modules/wchar (Makefile.am): Likewise.
36472         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
36473         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
36474         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
36475         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
36476         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
36477         Likewise.
36478         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
36479         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
36480         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
36481         Likewise.
36482         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
36483         Likewise.
36484         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
36485         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
36486         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
36487         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
36488         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
36489         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
36490         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
36491         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
36492         (gl_WCHAR_H_DEFAULTS): Likewise.
36493
36494 2009-12-31  Eric Blake  <ebb9@byu.net>
36495
36496         signal, spawn: use link warnings
36497         * lib/signal.in.h (sigset_t): Make unconditional.
36498         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
36499         (sigpending, sigprocmask, sigaction): Add link warnings.
36500         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
36501         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
36502         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
36503         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
36504         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
36505         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
36506         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
36507         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
36508         (posix_spawn_file_actions_destroy)
36509         (posix_spawn_file_actions_addopen)
36510         (posix_spawn_file_actions_addclose)
36511         (posix_spawn_file_actions_adddup2): Likewise.
36512         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
36513         * tests/test-signal.c (main): Enhance test.
36514
36515         spawn: improve wrapper support
36516         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
36517         (gl_SPAWN_H_DEFAULTS): New defaults.
36518         * modules/spawn (Makefile.am): Substitute them.
36519         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
36520         Only declare if missing or broken.
36521
36522         sys_times, sys_utsname: use include_next
36523         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
36524         header.
36525         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
36526         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
36527         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
36528         * modules/sys_times (Depends-on): Add include_next.
36529         (Makefile.am): Substitute additional values.
36530         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
36531         * lib/sys_times.in.h (includes): Include native header, if
36532         available.
36533         * lib/sys_utsname.in.h (includes): Likewise.
36534         * tests/test-sys_times.c (main): Enhance test.
36535
36536         fdutimensat: revert prior patch
36537         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
36538         utimens.h.
36539         Reported by Bruno Haible.
36540
36541 2009-12-30  Eric Blake  <ebb9@byu.net>
36542
36543         sys_wait: drop link-warning dependency
36544         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
36545         link-warning efforts.
36546         * lib/sys_wait.in.h: Likewise.
36547
36548         fdutimensat: remove bogus dependency
36549         * modules/fdutimensat (Depends-on): Drop inline.
36550
36551         unistd: fix typo
36552         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
36553
36554 2009-12-30  Bruno Haible  <bruno@clisp.org>
36555
36556         Fix compilation error with Solaris cc.
36557         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
36558         * lib/unicase/u16-is-invariant.c: Likewise.
36559         * lib/unicase/u32-is-invariant.c: Likewise.
36560         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
36561
36562 2009-12-30  Bruno Haible  <bruno@clisp.org>
36563
36564         Fix test crash.
36565         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
36566         locales.
36567         Reported by Simon Josefsson <simon@josefsson.org>.
36568
36569 2009-12-30  Bruno Haible  <bruno@clisp.org>
36570
36571         Fix compilation error on most platforms.
36572         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
36573         Reported by Simon Josefsson <simon@josefsson.org>
36574         and Nelson H. F. Beebe <beebe@math.utah.edu>.
36575
36576 2009-12-30  Eric Blake  <ebb9@byu.net>
36577
36578         futimens, utimensat: work around ntfs-3g bug
36579         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
36580         a ctime bug is present, and expand workaround to cover ntfs-3g.
36581         * lib/utimens.c (fdutimens, lutimens): Likewise.
36582         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
36583         (validate_timespec): Adjust return value.
36584         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
36585         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
36586         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
36587
36588 2009-12-29  Eric Blake  <ebb9@byu.net>
36589
36590         link-warning: make usage consistent
36591         * modules/ctype (Depends-on): Add link-warning.
36592         (Makefile.am): Update rules accordingly.
36593         * modules/langinfo (Depends-on, Makefile.am): Likewise.
36594         * modules/locale (Depends-on, Makefile.am): Likewise.
36595         * modules/sys_file (Makefile.am): Likewise.
36596         * modules/getopt-posix (Makefile.am): Delete unused link warning
36597         efforts.
36598         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
36599         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
36600         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
36601         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
36602
36603         stdio: remove unused variables
36604         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
36605         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
36606         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
36607
36608         tests: test more substitute headers
36609         * modules/ctype-tests: New file.
36610         * modules/dirent-tests: Likewise.
36611         * modules/spawn-tests: Likewise.
36612         * modules/sys_file-tests: Likewise.
36613         * modules/sys_ioctl-tests: Likewise.
36614         * modules/sys_wait-tests: Likewise.
36615         * tests/test-ctype.c: Likewise.
36616         * tests/test-dirent.c: Likewise.
36617         * tests/test-spawn.c: Likewise.
36618         * tests/test-sys_file.c: Likewise.
36619         * tests/test-sys_ioctl.c: Likewise.
36620         * tests/test-sys_wait.c: Likewise.
36621         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
36622         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
36623         whether or not flock is in use.
36624
36625         tests: remove License section from module
36626         * modules/arpa_inet-tests: Remove unneeded section.
36627         * modules/byteswap-tests: Likewise.
36628         * modules/ceilf-tests: Likewise.
36629         * modules/ceill-tests: Likewise.
36630         * modules/crypto/des-tests: Likewise.
36631         * modules/crypto/gc-arcfour-tests: Likewise.
36632         * modules/crypto/gc-arctwo-tests: Likewise.
36633         * modules/crypto/gc-des-tests: Likewise.
36634         * modules/crypto/gc-hmac-md5-tests: Likewise.
36635         * modules/crypto/gc-hmac-sha1-tests: Likewise.
36636         * modules/crypto/gc-md2-tests: Likewise.
36637         * modules/crypto/gc-md4-tests: Likewise.
36638         * modules/crypto/gc-md5-tests: Likewise.
36639         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
36640         * modules/crypto/gc-rijndael-tests: Likewise.
36641         * modules/crypto/gc-sha1-tests: Likewise.
36642         * modules/crypto/gc-tests: Likewise.
36643         * modules/crypto/md2-tests: Likewise.
36644         * modules/crypto/md4-tests: Likewise.
36645         * modules/fcntl-h-tests: Likewise.
36646         * modules/floorf-tests: Likewise.
36647         * modules/floorl-tests: Likewise.
36648         * modules/frexp-nolibm-tests: Likewise.
36649         * modules/frexp-tests: Likewise.
36650         * modules/frexpl-nolibm-tests: Likewise.
36651         * modules/frexpl-tests: Likewise.
36652         * modules/getaddrinfo-tests: Likewise.
36653         * modules/inttypes-tests: Likewise.
36654         * modules/isfinite-tests: Likewise.
36655         * modules/isinf-tests: Likewise.
36656         * modules/ldexpl-tests: Likewise.
36657         * modules/locale-tests: Likewise.
36658         * modules/math-tests: Likewise.
36659         * modules/netdb-tests: Likewise.
36660         * modules/netinet_in-tests: Likewise.
36661         * modules/printf-frexp-tests: Likewise.
36662         * modules/printf-frexpl-tests: Likewise.
36663         * modules/priv-set-tests: Likewise.
36664         * modules/random_r-tests: Likewise.
36665         * modules/round-tests: Likewise.
36666         * modules/roundf-tests: Likewise.
36667         * modules/roundl-tests: Likewise.
36668         * modules/search-tests: Likewise.
36669         * modules/select-tests: Likewise.
36670         * modules/signal-tests: Likewise.
36671         * modules/stdbool-tests: Likewise.
36672         * modules/stddef-tests: Likewise.
36673         * modules/stdint-tests: Likewise.
36674         * modules/stdio-tests: Likewise.
36675         * modules/stdlib-tests: Likewise.
36676         * modules/string-tests: Likewise.
36677         * modules/strings-tests: Likewise.
36678         * modules/sys_select-tests: Likewise.
36679         * modules/sys_socket-tests: Likewise.
36680         * modules/sys_stat-tests: Likewise.
36681         * modules/sys_time-tests: Likewise.
36682         * modules/sys_utsname-tests: Likewise.
36683         * modules/sysexits-tests: Likewise.
36684         * modules/time-tests: Likewise.
36685         * modules/trunc-tests: Likewise.
36686         * modules/truncf-tests: Likewise.
36687         * modules/truncl-tests: Likewise.
36688         * modules/tsearch-tests: Likewise.
36689         * modules/unistd-tests: Likewise.
36690         * modules/wchar-tests: Likewise.
36691         * modules/wctype-tests: Likewise.
36692
36693         tests: fix license on several tests
36694         * tests/test-des.c: Update to GPLv3+.
36695         * tests/test-flock.c: Likewise.
36696         * tests/test-fsync.c: Likewise.
36697         * tests/test-futimens.h: Likewise.
36698         * tests/test-gc-arcfour.c: Likewise.
36699         * tests/test-gc-arctwo.c: Likewise.
36700         * tests/test-gc-des.c: Likewise.
36701         * tests/test-gc-hmac-md5.c: Likewise.
36702         * tests/test-gc-hmac-sha1.c: Likewise.
36703         * tests/test-gc-md2.c: Likewise.
36704         * tests/test-gc-md4.c: Likewise.
36705         * tests/test-gc-md5.c: Likewise.
36706         * tests/test-gc-pbkdf2-sha1.c: Likewise.
36707         * tests/test-gc-rijndael.c: Likewise.
36708         * tests/test-gc-sha1.c: Likewise.
36709         * tests/test-gc.c: Likewise.
36710         * tests/test-getcwd.c: Likewise.
36711         * tests/test-link.c: Likewise.
36712         * tests/test-link.h: Likewise.
36713         * tests/test-lutimens.h: Likewise.
36714         * tests/test-md2.c: Likewise.
36715         * tests/test-md4.c: Likewise.
36716         * tests/test-mkdir.h: Likewise.
36717         * tests/test-rename.c: Likewise.
36718         * tests/test-rename.h: Likewise.
36719         * tests/test-safe-alloc.c: Likewise.
36720         * tests/test-utimens-common.h: Likewise.
36721         * tests/test-utimens.h: Likewise.
36722
36723         maint: sync license texts
36724         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
36725         * doc/gpl-3.0.texi: Revert copyright year update.
36726         * doc/lgpl-3.0.texi: Likewise.
36727
36728 2009-12-29  Jim Meyering  <meyering@redhat.com>
36729
36730         update nearly all FSF copyright year lists to include 2009
36731         The files named by the following are exempted:
36732             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
36733               test -f "$dst" && { echo "$dst"; continue; }
36734               test -d "$dst" || continue
36735               echo "$dst"/$(basename "$src")
36736             done > exempt
36737             git ls-files tests/unictype >> exempt
36738         In the remaining files, convert to all-interval notation if
36739         - there is already at least one year interval like 2000-2003
36740         - the file is maintained by me
36741         - the file is in lib/uni*/, where that style already prevails
36742         Otherwise, use update-copyright's default.
36743
36744 2009-12-29  Simon Josefsson  <simon@josefsson.org>
36745         and Eric Blake  <ebb9@byu.net>
36746
36747         tests: don't require debug system() to pass
36748         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
36749         * tests/test-rmdir.h (test_rmdir_func): Likewise.
36750         * tests/test-unlink.h (test_unlink_func): Likewise.
36751         * tests/test-fstatat.c (main): ...into callers.
36752         * tests/test-lstat.c (main): Likewise.
36753         * tests/test-rmdir.c (main): Likewise.
36754         * tests/test-unlink.c (main): Likewise.
36755         * tests/test-unlinkat.c (main): Likewise.
36756         * tests/test-areadlink-with-size.c (main): Don't require a
36757         debug-only system call to pass, aiding cross-testing to mingw.
36758         * tests/test-areadlink.c (main): Likewise.
36759         * tests/test-areadlinkat-with-size.c (main): Likewise.
36760         * tests/test-areadlinkat.c (main): Likewise.
36761         * tests/test-canonicalize-lgpl.c (main): Likewise.
36762         * tests/test-canonicalize.c (main): Likewise.
36763         * tests/test-chown.c (main): Likewise.
36764         * tests/test-fchownat.c (main): Likewise.
36765         * tests/test-lchown.c (main): Likewise.
36766         * tests/test-fdutimensat.c (main): Likewise.
36767         * tests/test-futimens.c (main): Likewise.
36768         * tests/test-link.c (main): Likewise.
36769         * tests/test-linkat.c (main): Likewise.
36770         * tests/test-mkdir.c (main): Likewise.
36771         * tests/test-mkdirat.c (main): Likewise.
36772         * tests/test-mkfifo.c (main): Likewise.
36773         * tests/test-mkfifoat.c (main): Likewise.
36774         * tests/test-mknod.c (main): Likewise.
36775         * tests/test-readlink.c (main): Likewise.
36776         * tests/test-remove.c (main): Likewise.
36777         * tests/test-rename.c (main): Likewise.
36778         * tests/test-renameat.c (main): Likewise.
36779         * tests/test-symlink.c (main): Likewise.
36780         * tests/test-symlinkat.c (main): Likewise.
36781         * tests/test-utimens.c (main): Likewise.
36782         * tests/test-utimensat.c (main): Likewise.
36783
36784 2009-12-29  Simon Josefsson  <simon@josefsson.org>
36785
36786         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
36787         on $(UNUSED_PARAMETER_H) to avoid build failure.
36788
36789 2009-12-28  Jim Meyering  <meyering@redhat.com>
36790
36791         update-copyright: you may specify a max. line length other than 72
36792         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
36793
36794         maint: use consistent FSF copyright line syntax
36795         * lib/posixtm.c: Add missing comma in FSF copyright line.
36796         * lib/posixtm.h: Likewise.
36797         * lib/getugroups.c: Add missing ", Inc.".
36798
36799         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
36800         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
36801         FSF copyright line.  Remove trailing blanks.
36802
36803 2009-12-28  Eric Blake  <ebb9@byu.net>
36804
36805         test-dup2: reduce dependencies
36806         * modules/cloexec (Configure.ac): Set witness.
36807         * modules/dup2-tests (Depends-on): Drop cloexec.
36808         * tests/test-dup2.c (main): Skip portion of test if cloexec module
36809         not present.
36810         Suggested by Bruno Haible.
36811
36812 2009-12-26  Bruno Haible  <bruno@clisp.org>
36813
36814         Remove an unneeded dependency.
36815         * modules/fseterr (Depends-on): Remove dup2.
36816
36817 2009-12-26  Eric Blake  <ebb9@byu.net>
36818
36819         tests: use macros.h in more places
36820         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
36821         (ASSERT_STREAM): Provide default of stderr.
36822         * tests/test-dirent-safer.c: Include macros.h, using alternate
36823         stream for assertions.
36824         * tests/test-dup-safer.c: Likewise.
36825         * tests/test-freopen-safer.c: Likewise.
36826         * tests/test-getopt.c: Likewise.
36827         * tests/test-openat-safer.c: Likewise.
36828         * tests/test-pipe.c: Likewise.
36829         * tests/test-popen-safer.c: Likewise.
36830         * modules/dirent-safer-tests (Files): Include macros.h.
36831         * modules/unistd-safer-tests (Files): Likewise.
36832         * modules/freopen-safer-tests (Files): Likewise.
36833         * modules/getopt-posix-tests (Files): Likewise.
36834         * modules/openat-safer-tests (Files): Likewise.
36835         * modules/pipe-tests (Files): Likewise.
36836
36837 2009-12-26  Bruno Haible  <bruno@clisp.org>
36838
36839         javacomp: Portability fix.
36840         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
36841         that it also works on Solaris.
36842
36843 2009-12-26  Bruno Haible  <bruno@clisp.org>
36844
36845         localename: Fix storage allocation of gl_locale_name_thread's result.
36846         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
36847         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
36848         all platforms that have 'uselocale'.
36849         (gl_locale_name_thread_unsafe): New function, extracted from
36850         gl_locale_name_thread.
36851         (gl_locale_name_thread): Call struniq on all platforms that have
36852         'uselocale'.
36853         * tests/test-localename.c (test_locale_name_thread): Check that the
36854         resulting strings are permanently allocated.
36855         * modules/localename-tests (Depends-on): Add strdup.
36856
36857 2009-12-26  Bruno Haible  <bruno@clisp.org>
36858
36859         * tests/test-localename.c (categories): Fill in the strings.
36860
36861 2009-12-26  Jim Meyering  <meyering@redhat.com>
36862
36863         isdir: complete the removal of m4/isdir.m4
36864         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
36865
36866         isdir: clean up, since at least grep still uses it
36867         * lib/isdir.c: Include "isdir.h".
36868         (S_ISDIR): Remove now-unneeded definition.
36869         * modules/isdir (Files): Add lib/isdir.h.
36870         * lib/isdir.h: New file, with declaration.
36871         * m4/isdir.m4: Remove file -- unneeded.
36872
36873 2009-12-25  Bruno Haible  <bruno@clisp.org>
36874
36875         selinux-h: Make generated .h files standalone.
36876         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
36877         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
36878         * lib/se-selinux.in.h: Likewise.
36879         * modules/selinux-h (Depends-on): Add unused-parameter.
36880         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
36881         selinux/selinux.h and selinux/context.h.
36882         Suggested by Eric Blake.
36883
36884 2009-12-25  Bruno Haible  <bruno@clisp.org>
36885
36886         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
36887         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
36888         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
36889         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
36890         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
36891
36892 2009-12-24  Bruno Haible  <bruno@clisp.org>
36893
36894         openat: Fix warning.
36895         * lib/openat-proc.c: Include <unistd.h>.
36896
36897 2009-12-24  Bruno Haible  <bruno@clisp.org>
36898
36899         New module 'unused-parameter'.
36900         * build-aux/unused-parameter.h: New file, extracted from earlier
36901         gnulib-common.m4.
36902         * modules/unused-parameter: New file.
36903         * lib/unistr.h: Include unused-parameter.h.
36904         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
36905         _GL_UNUSED.
36906         * modules/unistr/base (Depends-on): Add unused-parameter.
36907
36908 2009-12-24  Bruno Haible  <bruno@clisp.org>
36909
36910         Add missing dependencies to 'extensions' module.
36911         * m4/extensions.m4: Add comment.
36912         * modules/accept4 (Depends-on): Add extensions.
36913         * modules/dup3 (Depends-on): Likewise.
36914         * modules/fcntl (Depends-on): Likewise.
36915         * modules/futimens (Depends-on): Likewise.
36916         * modules/mknod (Depends-on): Likewise.
36917         * modules/pipe2 (Depends-on): Likewise.
36918         * modules/stat-time (Depends-on): Likewise.
36919         * modules/strcasestr-simple (Depends-on): Likewise.
36920         * modules/strsignal (Depends-on): Likewise.
36921         * modules/utimensat (Depends-on): Likewise.
36922         * modules/localcharset (Depends-on): Likewise. Needed because of
36923         gl_FCNTL_O_FLAGS.
36924         * modules/wcrtomb (Depends-on): Likewise. Needed because of
36925         AC_TYPE_MBSTATE_T.
36926         * modules/wcsnrtombs (Depends-on): Likewise.
36927         * modules/wcsrtombs (Depends-on): Likewise.
36928
36929 2009-12-24  Bruno Haible  <bruno@clisp.org>
36930
36931         binary-io: Avoid gcc warning due to SET_BINARY.
36932         * lib/binary-io.h (SET_BINARY): Cast the result to void.
36933         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
36934
36935 2009-12-24  Bruno Haible  <bruno@clisp.org>
36936
36937         Avoid future namespace pollution on glibc systems.
36938         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
36939         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
36940         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
36941         glibc systems.
36942
36943 2009-12-24  Bruno Haible  <bruno@clisp.org>
36944
36945         Refactor common macros used in tests.
36946         * tests/macros.h: New file.
36947         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
36948         and/or <stdlib.h>, if appropriate.
36949         (ASSERT, SIZEOF): Remove macros.
36950         * tests/test-areadlink-with-size.c: Likewise.
36951         * tests/test-areadlinkat.c: Likewise.
36952         * tests/test-areadlinkat-with-size.c: Likewise.
36953         * tests/test-argmatch.c: Likewise.
36954         * tests/test-argv-iter.c: Likewise.
36955         * tests/test-array-mergesort.c: Likewise.
36956         * tests/test-array_list.c: Likewise.
36957         * tests/test-array_oset.c: Likewise.
36958         * tests/test-avltree_list.c: Likewise.
36959         * tests/test-avltree_oset.c: Likewise.
36960         * tests/test-avltreehash_list.c: Likewise.
36961         * tests/test-base64.c: Likewise.
36962         * tests/test-binary-io.c: Likewise.
36963         * tests/test-bitrotate.c: Likewise.
36964         * tests/test-btowc.c: Likewise.
36965         * tests/test-byteswap.c: Likewise.
36966         * tests/test-c-ctype.c: Likewise.
36967         * tests/test-c-stack.c: Likewise.
36968         * tests/test-c-strcasecmp.c: Likewise.
36969         * tests/test-c-strcasestr.c: Likewise.
36970         * tests/test-c-strncasecmp.c: Likewise.
36971         * tests/test-c-strstr.c: Likewise.
36972         * tests/test-canonicalize-lgpl.c: Likewise.
36973         * tests/test-canonicalize.c: Likewise.
36974         * tests/test-carray_list.c: Likewise.
36975         * tests/test-ceilf1.c: Likewise.
36976         * tests/test-ceilf2.c: Likewise.
36977         * tests/test-ceill.c: Likewise.
36978         * tests/test-chown.c: Likewise.
36979         * tests/test-cloexec.c: Likewise.
36980         * tests/test-copy-acl.c: Likewise.
36981         * tests/test-copy-file.c: Likewise.
36982         * tests/test-count-one-bits.c: Likewise.
36983         * tests/test-dprintf-posix.c: Likewise.
36984         * tests/test-dup2.c: Likewise.
36985         * tests/test-dup3.c: Likewise.
36986         * tests/test-duplocale.c: Likewise.
36987         * tests/test-fbufmode.c: Likewise.
36988         * tests/test-fchdir.c: Likewise.
36989         * tests/test-fchownat.c: Likewise.
36990         * tests/test-fcntl-safer.c: Likewise.
36991         * tests/test-fcntl.c: Likewise.
36992         * tests/test-fdopendir.c: Likewise.
36993         * tests/test-fdutimensat.c: Likewise.
36994         * tests/test-fflush2.c: Likewise.
36995         * tests/test-file-has-acl.c: Likewise.
36996         * tests/test-filevercmp.c: Likewise.
36997         * tests/test-flock.c: Likewise.
36998         * tests/test-floorf1.c: Likewise.
36999         * tests/test-floorf2.c: Likewise.
37000         * tests/test-floorl.c: Likewise.
37001         * tests/test-fnmatch.c: Likewise.
37002         * tests/test-fopen.h: Likewise.
37003         * tests/test-fpending.c: Likewise.
37004         * tests/test-fprintf-posix.c: Likewise.
37005         * tests/test-fpurge.c: Likewise.
37006         * tests/test-freadable.c: Likewise.
37007         * tests/test-freadahead.c: Likewise.
37008         * tests/test-freading.c: Likewise.
37009         * tests/test-freadptr.c: Likewise.
37010         * tests/test-freadptr2.c: Likewise.
37011         * tests/test-freadseek.c: Likewise.
37012         * tests/test-freopen.c: Likewise.
37013         * tests/test-frexp.c: Likewise.
37014         * tests/test-frexpl.c: Likewise.
37015         * tests/test-fseek.c: Likewise.
37016         * tests/test-fseeko.c: Likewise.
37017         * tests/test-fstatat.c: Likewise.
37018         * tests/test-fstrcmp.c: Likewise.
37019         * tests/test-fsync.c: Likewise.
37020         * tests/test-ftell.c: Likewise.
37021         * tests/test-ftello.c: Likewise.
37022         * tests/test-func.c: Likewise.
37023         * tests/test-futimens.c: Likewise.
37024         * tests/test-fwritable.c: Likewise.
37025         * tests/test-fwriting.c: Likewise.
37026         * tests/test-getcwd.c: Likewise.
37027         * tests/test-getdate.c: Likewise.
37028         * tests/test-getdelim.c: Likewise.
37029         * tests/test-getdtablesize.c: Likewise.
37030         * tests/test-getgroups.c: Likewise.
37031         * tests/test-getline.c: Likewise.
37032         * tests/test-getndelim2.c: Likewise.
37033         * tests/test-glob.c: Likewise.
37034         * tests/test-hash.c: Likewise.
37035         * tests/test-i-ring.c: Likewise.
37036         * tests/test-iconv-utf.c: Likewise.
37037         * tests/test-iconv.c: Likewise.
37038         * tests/test-idpriv-drop.c: Likewise.
37039         * tests/test-idpriv-droptemp.c: Likewise.
37040         * tests/test-inet_ntop.c: Likewise.
37041         * tests/test-inet_pton.c: Likewise.
37042         * tests/test-isblank.c: Likewise.
37043         * tests/test-isfinite.c: Likewise.
37044         * tests/test-isinf.c: Likewise.
37045         * tests/test-isnan.c: Likewise.
37046         * tests/test-isnand.h: Likewise.
37047         * tests/test-isnanf.h: Likewise.
37048         * tests/test-isnanl.h: Likewise.
37049         * tests/test-lchown.c: Likewise.
37050         * tests/test-ldexpl.c: Likewise.
37051         * tests/test-link.c: Likewise.
37052         * tests/test-linkat.c: Likewise.
37053         * tests/test-linked_list.c: Likewise.
37054         * tests/test-linkedhash_list.c: Likewise.
37055         * tests/test-localename.c: Likewise.
37056         * tests/test-lseek.c: Likewise.
37057         * tests/test-lstat.c: Likewise.
37058         * tests/test-mbmemcasecmp.c: Likewise.
37059         * tests/test-mbmemcasecoll.c: Likewise.
37060         * tests/test-mbrtowc.c: Likewise.
37061         * tests/test-mbscasecmp.c: Likewise.
37062         * tests/test-mbscasestr1.c: Likewise.
37063         * tests/test-mbscasestr2.c: Likewise.
37064         * tests/test-mbscasestr3.c: Likewise.
37065         * tests/test-mbscasestr4.c: Likewise.
37066         * tests/test-mbschr.c: Likewise.
37067         * tests/test-mbscspn.c: Likewise.
37068         * tests/test-mbsinit.c: Likewise.
37069         * tests/test-mbsncasecmp.c: Likewise.
37070         * tests/test-mbsnrtowcs.c: Likewise.
37071         * tests/test-mbspbrk.c: Likewise.
37072         * tests/test-mbspcasecmp.c: Likewise.
37073         * tests/test-mbsrchr.c: Likewise.
37074         * tests/test-mbsrtowcs.c: Likewise.
37075         * tests/test-mbsspn.c: Likewise.
37076         * tests/test-mbsstr1.c: Likewise.
37077         * tests/test-mbsstr2.c: Likewise.
37078         * tests/test-mbsstr3.c: Likewise.
37079         * tests/test-memchr.c: Likewise.
37080         * tests/test-memchr2.c: Likewise.
37081         * tests/test-memcmp.c: Likewise.
37082         * tests/test-memmem.c: Likewise.
37083         * tests/test-memrchr.c: Likewise.
37084         * tests/test-mkdir.c: Likewise.
37085         * tests/test-mkdirat.c: Likewise.
37086         * tests/test-mkfifo.c: Likewise.
37087         * tests/test-mkfifoat.c: Likewise.
37088         * tests/test-mknod.c: Likewise.
37089         * tests/test-nanosleep.c: Likewise.
37090         * tests/test-nl_langinfo.c: Likewise.
37091         * tests/test-obstack-printf.c: Likewise.
37092         * tests/test-open.c: Likewise.
37093         * tests/test-openat.c: Likewise.
37094         * tests/test-pipe-filter-gi1.c: Likewise.
37095         * tests/test-pipe-filter-gi2-main.c: Likewise.
37096         * tests/test-pipe-filter-ii1.c: Likewise.
37097         * tests/test-pipe-filter-ii2-main.c: Likewise.
37098         * tests/test-pipe2.c: Likewise.
37099         * tests/test-popen.h: Likewise.
37100         * tests/test-posixtm.c: Likewise.
37101         * tests/test-pread.c: Likewise.
37102         * tests/test-printf-frexp.c: Likewise.
37103         * tests/test-printf-frexpl.c: Likewise.
37104         * tests/test-printf-posix.c: Likewise.
37105         * tests/test-priv-set.c: Likewise.
37106         * tests/test-quotearg.c: Likewise.
37107         * tests/test-random_r.c: Likewise.
37108         * tests/test-rawmemchr.c: Likewise.
37109         * tests/test-rbtree_list.c: Likewise.
37110         * tests/test-rbtree_oset.c: Likewise.
37111         * tests/test-rbtreehash_list.c: Likewise.
37112         * tests/test-readlink.c: Likewise.
37113         * tests/test-remove.c: Likewise.
37114         * tests/test-rename.c: Likewise.
37115         * tests/test-renameat.c: Likewise.
37116         * tests/test-rmdir.c: Likewise.
37117         * tests/test-round1.c: Likewise.
37118         * tests/test-roundf1.c: Likewise.
37119         * tests/test-roundl.c: Likewise.
37120         * tests/test-safe-alloc.c: Likewise.
37121         * tests/test-sameacls.c: Likewise.
37122         * tests/test-set-mode-acl.c: Likewise.
37123         * tests/test-setenv.c: Likewise.
37124         * tests/test-sigaction.c: Likewise.
37125         * tests/test-signbit.c: Likewise.
37126         * tests/test-sleep.c: Likewise.
37127         * tests/test-snprintf-posix.c: Likewise.
37128         * tests/test-snprintf.c: Likewise.
37129         * tests/test-sprintf-posix.c: Likewise.
37130         * tests/test-stat-time.c: Likewise.
37131         * tests/test-stat.c: Likewise.
37132         * tests/test-strcasestr.c: Likewise.
37133         * tests/test-strchrnul.c: Likewise.
37134         * tests/test-strerror.c: Likewise.
37135         * tests/test-striconv.c: Likewise.
37136         * tests/test-striconveh.c: Likewise.
37137         * tests/test-striconveha.c: Likewise.
37138         * tests/test-strsignal.c: Likewise.
37139         * tests/test-strstr.c: Likewise.
37140         * tests/test-strtod.c: Likewise.
37141         * tests/test-strverscmp.c: Likewise.
37142         * tests/test-symlink.c: Likewise.
37143         * tests/test-symlinkat.c: Likewise.
37144         * tests/test-trunc1.c: Likewise.
37145         * tests/test-trunc2.c: Likewise.
37146         * tests/test-truncf1.c: Likewise.
37147         * tests/test-truncf2.c: Likewise.
37148         * tests/test-truncl.c: Likewise.
37149         * tests/test-uname.c: Likewise.
37150         * tests/test-unlink.c: Likewise.
37151         * tests/test-unlinkat.c: Likewise.
37152         * tests/test-unsetenv.c: Likewise.
37153         * tests/test-usleep.c: Likewise.
37154         * tests/test-utimens.c: Likewise.
37155         * tests/test-utimensat.c: Likewise.
37156         * tests/test-vasnprintf-posix.c: Likewise.
37157         * tests/test-vasnprintf-posix2.c: Likewise.
37158         * tests/test-vasnprintf.c: Likewise.
37159         * tests/test-vasprintf-posix.c: Likewise.
37160         * tests/test-vasprintf.c: Likewise.
37161         * tests/test-vdprintf-posix.c: Likewise.
37162         * tests/test-vfprintf-posix.c: Likewise.
37163         * tests/test-vprintf-posix.c: Likewise.
37164         * tests/test-vsnprintf-posix.c: Likewise.
37165         * tests/test-vsnprintf.c: Likewise.
37166         * tests/test-vsprintf-posix.c: Likewise.
37167         * tests/test-wcrtomb.c: Likewise.
37168         * tests/test-wcsnrtombs.c: Likewise.
37169         * tests/test-wcsrtombs.c: Likewise.
37170         * tests/test-wctype.c: Likewise.
37171         * tests/test-wcwidth.c: Likewise.
37172         * tests/test-xfprintf-posix.c: Likewise.
37173         * tests/test-xmemdup0.c: Likewise.
37174         * tests/test-xprintf-posix.c: Likewise.
37175         * tests/test-xvasprintf.c: Likewise.
37176         * tests/unicase/test-locale-language.c: Likewise.
37177         * tests/unicase/test-mapping-part1.h: Likewise.
37178         * tests/unicase/test-predicate-part1.h: Likewise.
37179         * tests/unicase/test-u8-casecmp.c: Likewise.
37180         * tests/unicase/test-u8-casecoll.c: Likewise.
37181         * tests/unicase/test-u8-casefold.c: Likewise.
37182         * tests/unicase/test-u8-is-cased.c: Likewise.
37183         * tests/unicase/test-u8-is-casefolded.c: Likewise.
37184         * tests/unicase/test-u8-is-lowercase.c: Likewise.
37185         * tests/unicase/test-u8-is-titlecase.c: Likewise.
37186         * tests/unicase/test-u8-is-uppercase.c: Likewise.
37187         * tests/unicase/test-u8-tolower.c: Likewise.
37188         * tests/unicase/test-u8-totitle.c: Likewise.
37189         * tests/unicase/test-u8-toupper.c: Likewise.
37190         * tests/unicase/test-u16-casecmp.c: Likewise.
37191         * tests/unicase/test-u16-casecoll.c: Likewise.
37192         * tests/unicase/test-u16-casefold.c: Likewise.
37193         * tests/unicase/test-u16-is-cased.c: Likewise.
37194         * tests/unicase/test-u16-is-casefolded.c: Likewise.
37195         * tests/unicase/test-u16-is-lowercase.c: Likewise.
37196         * tests/unicase/test-u16-is-titlecase.c: Likewise.
37197         * tests/unicase/test-u16-is-uppercase.c: Likewise.
37198         * tests/unicase/test-u16-tolower.c: Likewise.
37199         * tests/unicase/test-u16-totitle.c: Likewise.
37200         * tests/unicase/test-u16-toupper.c: Likewise.
37201         * tests/unicase/test-u32-casecmp.c: Likewise.
37202         * tests/unicase/test-u32-casecoll.c: Likewise.
37203         * tests/unicase/test-u32-casefold.c: Likewise.
37204         * tests/unicase/test-u32-is-cased.c: Likewise.
37205         * tests/unicase/test-u32-is-casefolded.c: Likewise.
37206         * tests/unicase/test-u32-is-lowercase.c: Likewise.
37207         * tests/unicase/test-u32-is-titlecase.c: Likewise.
37208         * tests/unicase/test-u32-is-uppercase.c: Likewise.
37209         * tests/unicase/test-u32-tolower.c: Likewise.
37210         * tests/unicase/test-u32-totitle.c: Likewise.
37211         * tests/unicase/test-u32-toupper.c: Likewise.
37212         * tests/unicase/test-ulc-casecmp.c: Likewise.
37213         * tests/unicase/test-ulc-casecoll.c: Likewise.
37214         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
37215         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
37216         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
37217         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
37218         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
37219         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
37220         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
37221         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
37222         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
37223         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
37224         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
37225         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
37226         * tests/unictype/test-bidi_byname.c: Likewise.
37227         * tests/unictype/test-bidi_name.c: Likewise.
37228         * tests/unictype/test-bidi_of.c: Likewise.
37229         * tests/unictype/test-bidi_test.c: Likewise.
37230         * tests/unictype/test-block_list.c: Likewise.
37231         * tests/unictype/test-block_of.c: Likewise.
37232         * tests/unictype/test-block_test.c: Likewise.
37233         * tests/unictype/test-categ_and.c: Likewise.
37234         * tests/unictype/test-categ_and_not.c: Likewise.
37235         * tests/unictype/test-categ_byname.c: Likewise.
37236         * tests/unictype/test-categ_name.c: Likewise.
37237         * tests/unictype/test-categ_none.c: Likewise.
37238         * tests/unictype/test-categ_of.c: Likewise.
37239         * tests/unictype/test-categ_or.c: Likewise.
37240         * tests/unictype/test-categ_test_withtable.c: Likewise.
37241         * tests/unictype/test-combining.c: Likewise.
37242         * tests/unictype/test-decdigit.c: Likewise.
37243         * tests/unictype/test-digit.c: Likewise.
37244         * tests/unictype/test-mirror.c: Likewise.
37245         * tests/unictype/test-numeric.c: Likewise.
37246         * tests/unictype/test-pr_byname.c: Likewise.
37247         * tests/unictype/test-pr_test.c: Likewise.
37248         * tests/unictype/test-predicate-part1.h: Likewise.
37249         * tests/unictype/test-scripts.c: Likewise.
37250         * tests/unictype/test-sy_c_ident.c: Likewise.
37251         * tests/unictype/test-sy_java_ident.c: Likewise.
37252         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
37253         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
37254         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
37255         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
37256         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
37257         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
37258         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
37259         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
37260         * tests/uninorm/test-canonical-decomposition.c: Likewise.
37261         * tests/uninorm/test-compat-decomposition.c: Likewise.
37262         * tests/uninorm/test-composition.c: Likewise.
37263         * tests/uninorm/test-decomposing-form.c: Likewise.
37264         * tests/uninorm/test-decomposition.c: Likewise.
37265         * tests/uninorm/test-u8-nfc.c: Likewise.
37266         * tests/uninorm/test-u8-nfd.c: Likewise.
37267         * tests/uninorm/test-u8-nfkc.c: Likewise.
37268         * tests/uninorm/test-u8-nfkd.c: Likewise.
37269         * tests/uninorm/test-u8-normcmp.c: Likewise.
37270         * tests/uninorm/test-u8-normcoll.c: Likewise.
37271         * tests/uninorm/test-u16-nfc.c: Likewise.
37272         * tests/uninorm/test-u16-nfd.c: Likewise.
37273         * tests/uninorm/test-u16-nfkc.c: Likewise.
37274         * tests/uninorm/test-u16-nfkd.c: Likewise.
37275         * tests/uninorm/test-u16-normcmp.c: Likewise.
37276         * tests/uninorm/test-u16-normcoll.c: Likewise.
37277         * tests/uninorm/test-u32-nfc.c: Likewise.
37278         * tests/uninorm/test-u32-nfd.c: Likewise.
37279         * tests/uninorm/test-u32-nfkc.c: Likewise.
37280         * tests/uninorm/test-u32-nfkd.c: Likewise.
37281         * tests/uninorm/test-u32-normalize-big.c: Likewise.
37282         * tests/uninorm/test-u32-normcmp.c: Likewise.
37283         * tests/uninorm/test-u32-normcoll.c: Likewise.
37284         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
37285         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
37286         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
37287         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
37288         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
37289         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
37290         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
37291         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
37292         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
37293         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
37294         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
37295         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
37296         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
37297         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
37298         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
37299         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
37300         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
37301         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
37302         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
37303         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
37304         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
37305         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
37306         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
37307         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
37308         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
37309         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
37310         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
37311         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
37312         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
37313         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
37314         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
37315         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
37316         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
37317         * tests/uniwidth/test-u8-strwidth.c: Likewise.
37318         * tests/uniwidth/test-u8-width.c: Likewise.
37319         * tests/uniwidth/test-u16-strwidth.c: Likewise.
37320         * tests/uniwidth/test-u16-width.c: Likewise.
37321         * tests/uniwidth/test-u32-strwidth.c: Likewise.
37322         * tests/uniwidth/test-u32-width.c: Likewise.
37323         * tests/uniwidth/test-uc_width.c: Likewise.
37324         * tests/uniwidth/test-uc_width2.c: Likewise.
37325         * modules/acl-tests (Files): Add tests/macros.h.
37326         * modules/areadlink-tests (Files): Likewise.
37327         * modules/areadlink-with-size-tests (Files): Likewise.
37328         * modules/areadlinkat-tests (Files): Likewise.
37329         * modules/areadlinkat-with-size-tests (Files): Likewise.
37330         * modules/argmatch-tests (Files): Likewise.
37331         * modules/argv-iter-tests (Files): Likewise.
37332         * modules/array-list-tests (Files): Likewise.
37333         * modules/array-mergesort-tests (Files): Likewise.
37334         * modules/array-oset-tests (Files): Likewise.
37335         * modules/avltree-list-tests (Files): Likewise.
37336         * modules/avltree-oset-tests (Files): Likewise.
37337         * modules/avltreehash-list-tests (Files): Likewise.
37338         * modules/base64-tests (Files): Likewise.
37339         * modules/binary-io-tests (Files): Likewise.
37340         * modules/bitrotate-tests (Files): Likewise.
37341         * modules/btowc-tests (Files): Likewise.
37342         * modules/byteswap-tests (Files): Likewise.
37343         * modules/c-ctype-tests (Files): Likewise.
37344         * modules/c-stack-tests (Files): Likewise.
37345         * modules/c-strcase-tests (Files): Likewise.
37346         * modules/c-strcasestr-tests (Files): Likewise.
37347         * modules/c-strstr-tests (Files): Likewise.
37348         * modules/canonicalize-lgpl-tests (Files): Likewise.
37349         * modules/canonicalize-tests (Files): Likewise.
37350         * modules/carray-list-tests (Files): Likewise.
37351         * modules/ceilf-tests (Files): Likewise.
37352         * modules/ceill-tests (Files): Likewise.
37353         * modules/chown-tests (Files): Likewise.
37354         * modules/cloexec-tests (Files): Likewise.
37355         * modules/copy-file-tests (Files): Likewise.
37356         * modules/count-one-bits-tests (Files): Likewise.
37357         * modules/dprintf-posix-tests (Files): Likewise.
37358         * modules/dup2-tests (Files): Likewise.
37359         * modules/dup3-tests (Files): Likewise.
37360         * modules/duplocale-tests (Files): Likewise.
37361         * modules/fbufmode-tests (Files): Likewise.
37362         * modules/fchdir-tests (Files): Likewise.
37363         * modules/fcntl-safer-tests (Files): Likewise.
37364         * modules/fcntl-tests (Files): Likewise.
37365         * modules/fdopendir-tests (Files): Likewise.
37366         * modules/fdutimensat-tests (Files): Likewise.
37367         * modules/fflush-tests (Files): Likewise.
37368         * modules/filevercmp-tests (Files): Likewise.
37369         * modules/flock-tests (Files): Likewise.
37370         * modules/floorf-tests (Files): Likewise.
37371         * modules/floorl-tests (Files): Likewise.
37372         * modules/fnmatch-tests (Files): Likewise.
37373         * modules/fopen-safer-tests (Files): Likewise.
37374         * modules/fopen-tests (Files): Likewise.
37375         * modules/fpending-tests (Files): Likewise.
37376         * modules/fprintf-posix-tests (Files): Likewise.
37377         * modules/fpurge-tests (Files): Likewise.
37378         * modules/freadable-tests (Files): Likewise.
37379         * modules/freadahead-tests (Files): Likewise.
37380         * modules/freading-tests (Files): Likewise.
37381         * modules/freadptr-tests (Files): Likewise.
37382         * modules/freadseek-tests (Files): Likewise.
37383         * modules/freopen-tests (Files): Likewise.
37384         * modules/frexp-nolibm-tests (Files): Likewise.
37385         * modules/frexp-tests (Files): Likewise.
37386         * modules/frexpl-nolibm-tests (Files): Likewise.
37387         * modules/frexpl-tests (Files): Likewise.
37388         * modules/fseek-tests (Files): Likewise.
37389         * modules/fseeko-tests (Files): Likewise.
37390         * modules/fstrcmp-tests (Files): Likewise.
37391         * modules/fsync-tests (Files): Likewise.
37392         * modules/ftell-tests (Files): Likewise.
37393         * modules/ftello-tests (Files): Likewise.
37394         * modules/func-tests (Files): Likewise.
37395         * modules/futimens-tests (Files): Likewise.
37396         * modules/fwritable-tests (Files): Likewise.
37397         * modules/fwriting-tests (Files): Likewise.
37398         * modules/getcwd-tests (Files): Likewise.
37399         * modules/getdate-tests (Files): Likewise.
37400         * modules/getdelim-tests (Files): Likewise.
37401         * modules/getdtablesize-tests (Files): Likewise.
37402         * modules/getgroups-tests (Files): Likewise.
37403         * modules/getline-tests (Files): Likewise.
37404         * modules/getndelim2-tests (Files): Likewise.
37405         * modules/glob-tests (Files): Likewise.
37406         * modules/hash-tests (Files): Likewise.
37407         * modules/i-ring-tests (Files): Likewise.
37408         * modules/iconv-tests (Files): Likewise.
37409         * modules/iconv_open-utf-tests (Files): Likewise.
37410         * modules/idpriv-drop-tests (Files): Likewise.
37411         * modules/idpriv-droptemp-tests (Files): Likewise.
37412         * modules/inet_ntop-tests (Files): Likewise.
37413         * modules/inet_pton-tests (Files): Likewise.
37414         * modules/isblank-tests (Files): Likewise.
37415         * modules/isfinite-tests (Files): Likewise.
37416         * modules/isinf-tests (Files): Likewise.
37417         * modules/isnan-tests (Files): Likewise.
37418         * modules/isnand-nolibm-tests (Files): Likewise.
37419         * modules/isnand-tests (Files): Likewise.
37420         * modules/isnanf-nolibm-tests (Files): Likewise.
37421         * modules/isnanf-tests (Files): Likewise.
37422         * modules/isnanl-nolibm-tests (Files): Likewise.
37423         * modules/isnanl-tests (Files): Likewise.
37424         * modules/lchown-tests (Files): Likewise.
37425         * modules/ldexpl-tests (Files): Likewise.
37426         * modules/link-tests (Files): Likewise.
37427         * modules/linkat-tests (Files): Likewise.
37428         * modules/linked-list-tests (Files): Likewise.
37429         * modules/linkedhash-list-tests (Files): Likewise.
37430         * modules/localename-tests (Files): Likewise.
37431         * modules/lseek-tests (Files): Likewise.
37432         * modules/lstat-tests (Files): Likewise.
37433         * modules/mbmemcasecmp-tests (Files): Likewise.
37434         * modules/mbmemcasecoll-tests (Files): Likewise.
37435         * modules/mbrtowc-tests (Files): Likewise.
37436         * modules/mbscasecmp-tests (Files): Likewise.
37437         * modules/mbscasestr-tests (Files): Likewise.
37438         * modules/mbschr-tests (Files): Likewise.
37439         * modules/mbscspn-tests (Files): Likewise.
37440         * modules/mbsinit-tests (Files): Likewise.
37441         * modules/mbsncasecmp-tests (Files): Likewise.
37442         * modules/mbsnrtowcs-tests (Files): Likewise.
37443         * modules/mbspbrk-tests (Files): Likewise.
37444         * modules/mbspcasecmp-tests (Files): Likewise.
37445         * modules/mbsrchr-tests (Files): Likewise.
37446         * modules/mbsrtowcs-tests (Files): Likewise.
37447         * modules/mbsspn-tests (Files): Likewise.
37448         * modules/mbsstr-tests (Files): Likewise.
37449         * modules/memchr-tests (Files): Likewise.
37450         * modules/memchr2-tests (Files): Likewise.
37451         * modules/memcmp-tests (Files): Likewise.
37452         * modules/memmem-tests (Files): Likewise.
37453         * modules/memrchr-tests (Files): Likewise.
37454         * modules/mkdir-tests (Files): Likewise.
37455         * modules/mkfifo-tests (Files): Likewise.
37456         * modules/mkfifoat-tests (Files): Likewise.
37457         * modules/mknod-tests (Files): Likewise.
37458         * modules/nanosleep-tests (Files): Likewise.
37459         * modules/nl_langinfo-tests (Files): Likewise.
37460         * modules/obstack-printf-tests (Files): Likewise.
37461         * modules/open-tests (Files): Likewise.
37462         * modules/openat-tests (Files): Likewise.
37463         * modules/pipe-filter-gi-tests (Files): Likewise.
37464         * modules/pipe-filter-ii-tests (Files): Likewise.
37465         * modules/pipe2-tests (Files): Likewise.
37466         * modules/popen-safer-tests (Files): Likewise.
37467         * modules/popen-tests (Files): Likewise.
37468         * modules/posixtm-tests (Files): Likewise.
37469         * modules/pread-tests (Files): Likewise.
37470         * modules/printf-frexp-tests (Files): Likewise.
37471         * modules/printf-frexpl-tests (Files): Likewise.
37472         * modules/printf-posix-tests (Files): Likewise.
37473         * modules/priv-set-tests (Files): Likewise.
37474         * modules/quotearg-tests (Files): Likewise.
37475         * modules/random_r-tests (Files): Likewise.
37476         * modules/rawmemchr-tests (Files): Likewise.
37477         * modules/rbtree-list-tests (Files): Likewise.
37478         * modules/rbtree-oset-tests (Files): Likewise.
37479         * modules/rbtreehash-list-tests (Files): Likewise.
37480         * modules/readlink-tests (Files): Likewise.
37481         * modules/remove-tests (Files): Likewise.
37482         * modules/rename-tests (Files): Likewise.
37483         * modules/renameat-tests (Files): Likewise.
37484         * modules/rmdir-tests (Files): Likewise.
37485         * modules/round-tests (Files): Likewise.
37486         * modules/roundf-tests (Files): Likewise.
37487         * modules/roundl-tests (Files): Likewise.
37488         * modules/safe-alloc-tests (Files): Likewise.
37489         * modules/setenv-tests (Files): Likewise.
37490         * modules/sigaction-tests (Files): Likewise.
37491         * modules/signbit-tests (Files): Likewise.
37492         * modules/sleep-tests (Files): Likewise.
37493         * modules/snprintf-posix-tests (Files): Likewise.
37494         * modules/snprintf-tests (Files): Likewise.
37495         * modules/sprintf-posix-tests (Files): Likewise.
37496         * modules/stat-tests (Files): Likewise.
37497         * modules/stat-time-tests (Files): Likewise.
37498         * modules/strcasestr-tests (Files): Likewise.
37499         * modules/strchrnul-tests (Files): Likewise.
37500         * modules/strerror-tests (Files): Likewise.
37501         * modules/striconv-tests (Files): Likewise.
37502         * modules/striconveh-tests (Files): Likewise.
37503         * modules/striconveha-tests (Files): Likewise.
37504         * modules/strsignal-tests (Files): Likewise.
37505         * modules/strstr-tests (Files): Likewise.
37506         * modules/strtod-tests (Files): Likewise.
37507         * modules/strverscmp-tests (Files): Likewise.
37508         * modules/symlink-tests (Files): Likewise.
37509         * modules/symlinkat-tests (Files): Likewise.
37510         * modules/trunc-tests (Files): Likewise.
37511         * modules/truncf-tests (Files): Likewise.
37512         * modules/truncl-tests (Files): Likewise.
37513         * modules/uname-tests (Files): Likewise.
37514         * modules/unicase/cased-tests (Files): Likewise.
37515         * modules/unicase/ignorable-tests (Files): Likewise.
37516         * modules/unicase/locale-language-tests (Files): Likewise.
37517         * modules/unicase/tolower-tests (Files): Likewise.
37518         * modules/unicase/totitle-tests (Files): Likewise.
37519         * modules/unicase/toupper-tests (Files): Likewise.
37520         * modules/unicase/u8-casecmp-tests (Files): Likewise.
37521         * modules/unicase/u8-casecoll-tests (Files): Likewise.
37522         * modules/unicase/u8-casefold-tests (Files): Likewise.
37523         * modules/unicase/u8-is-cased-tests (Files): Likewise.
37524         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
37525         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
37526         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
37527         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
37528         * modules/unicase/u8-tolower-tests (Files): Likewise.
37529         * modules/unicase/u8-totitle-tests (Files): Likewise.
37530         * modules/unicase/u8-toupper-tests (Files): Likewise.
37531         * modules/unicase/u16-casecmp-tests (Files): Likewise.
37532         * modules/unicase/u16-casecoll-tests (Files): Likewise.
37533         * modules/unicase/u16-casefold-tests (Files): Likewise.
37534         * modules/unicase/u16-is-cased-tests (Files): Likewise.
37535         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
37536         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
37537         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
37538         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
37539         * modules/unicase/u16-tolower-tests (Files): Likewise.
37540         * modules/unicase/u16-totitle-tests (Files): Likewise.
37541         * modules/unicase/u16-toupper-tests (Files): Likewise.
37542         * modules/unicase/u32-casecmp-tests (Files): Likewise.
37543         * modules/unicase/u32-casecoll-tests (Files): Likewise.
37544         * modules/unicase/u32-casefold-tests (Files): Likewise.
37545         * modules/unicase/u32-is-cased-tests (Files): Likewise.
37546         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
37547         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
37548         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
37549         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
37550         * modules/unicase/u32-tolower-tests (Files): Likewise.
37551         * modules/unicase/u32-totitle-tests (Files): Likewise.
37552         * modules/unicase/u32-toupper-tests (Files): Likewise.
37553         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
37554         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
37555         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
37556         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
37557         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
37558         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
37559         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
37560         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
37561         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
37562         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
37563         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
37564         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
37565         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
37566         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
37567         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
37568         * modules/unictype/bidicategory-name-tests (Files): Likewise.
37569         * modules/unictype/bidicategory-of-tests (Files): Likewise.
37570         * modules/unictype/bidicategory-test-tests (Files): Likewise.
37571         * modules/unictype/block-list-tests (Files): Likewise.
37572         * modules/unictype/block-of-tests (Files): Likewise.
37573         * modules/unictype/block-test-tests (Files): Likewise.
37574         * modules/unictype/category-C-tests (Files): Likewise.
37575         * modules/unictype/category-Cc-tests (Files): Likewise.
37576         * modules/unictype/category-Cf-tests (Files): Likewise.
37577         * modules/unictype/category-Cn-tests (Files): Likewise.
37578         * modules/unictype/category-Co-tests (Files): Likewise.
37579         * modules/unictype/category-Cs-tests (Files): Likewise.
37580         * modules/unictype/category-L-tests (Files): Likewise.
37581         * modules/unictype/category-Ll-tests (Files): Likewise.
37582         * modules/unictype/category-Lm-tests (Files): Likewise.
37583         * modules/unictype/category-Lo-tests (Files): Likewise.
37584         * modules/unictype/category-Lt-tests (Files): Likewise.
37585         * modules/unictype/category-Lu-tests (Files): Likewise.
37586         * modules/unictype/category-M-tests (Files): Likewise.
37587         * modules/unictype/category-Mc-tests (Files): Likewise.
37588         * modules/unictype/category-Me-tests (Files): Likewise.
37589         * modules/unictype/category-Mn-tests (Files): Likewise.
37590         * modules/unictype/category-N-tests (Files): Likewise.
37591         * modules/unictype/category-Nd-tests (Files): Likewise.
37592         * modules/unictype/category-Nl-tests (Files): Likewise.
37593         * modules/unictype/category-No-tests (Files): Likewise.
37594         * modules/unictype/category-P-tests (Files): Likewise.
37595         * modules/unictype/category-Pc-tests (Files): Likewise.
37596         * modules/unictype/category-Pd-tests (Files): Likewise.
37597         * modules/unictype/category-Pe-tests (Files): Likewise.
37598         * modules/unictype/category-Pf-tests (Files): Likewise.
37599         * modules/unictype/category-Pi-tests (Files): Likewise.
37600         * modules/unictype/category-Po-tests (Files): Likewise.
37601         * modules/unictype/category-Ps-tests (Files): Likewise.
37602         * modules/unictype/category-S-tests (Files): Likewise.
37603         * modules/unictype/category-Sc-tests (Files): Likewise.
37604         * modules/unictype/category-Sk-tests (Files): Likewise.
37605         * modules/unictype/category-Sm-tests (Files): Likewise.
37606         * modules/unictype/category-So-tests (Files): Likewise.
37607         * modules/unictype/category-Z-tests (Files): Likewise.
37608         * modules/unictype/category-Zl-tests (Files): Likewise.
37609         * modules/unictype/category-Zp-tests (Files): Likewise.
37610         * modules/unictype/category-Zs-tests (Files): Likewise.
37611         * modules/unictype/category-and-not-tests (Files): Likewise.
37612         * modules/unictype/category-and-tests (Files): Likewise.
37613         * modules/unictype/category-byname-tests (Files): Likewise.
37614         * modules/unictype/category-name-tests (Files): Likewise.
37615         * modules/unictype/category-none-tests (Files): Likewise.
37616         * modules/unictype/category-of-tests (Files): Likewise.
37617         * modules/unictype/category-or-tests (Files): Likewise.
37618         * modules/unictype/category-test-withtable-tests (Files): Likewise.
37619         * modules/unictype/combining-class-tests (Files): Likewise.
37620         * modules/unictype/ctype-alnum-tests (Files): Likewise.
37621         * modules/unictype/ctype-alpha-tests (Files): Likewise.
37622         * modules/unictype/ctype-blank-tests (Files): Likewise.
37623         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
37624         * modules/unictype/ctype-digit-tests (Files): Likewise.
37625         * modules/unictype/ctype-graph-tests (Files): Likewise.
37626         * modules/unictype/ctype-lower-tests (Files): Likewise.
37627         * modules/unictype/ctype-print-tests (Files): Likewise.
37628         * modules/unictype/ctype-punct-tests (Files): Likewise.
37629         * modules/unictype/ctype-space-tests (Files): Likewise.
37630         * modules/unictype/ctype-upper-tests (Files): Likewise.
37631         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
37632         * modules/unictype/decimal-digit-tests (Files): Likewise.
37633         * modules/unictype/digit-tests (Files): Likewise.
37634         * modules/unictype/mirror-tests (Files): Likewise.
37635         * modules/unictype/numeric-tests (Files): Likewise.
37636         * modules/unictype/property-alphabetic-tests (Files): Likewise.
37637         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
37638         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
37639         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
37640         Likewise.
37641         * modules/unictype/property-bidi-block-separator-tests (Files):
37642         Likewise.
37643         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
37644         Likewise.
37645         * modules/unictype/property-bidi-common-separator-tests (Files):
37646         Likewise.
37647         * modules/unictype/property-bidi-control-tests (Files): Likewise.
37648         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
37649         Likewise.
37650         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
37651         Likewise.
37652         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
37653         Likewise.
37654         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
37655         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
37656         Likewise.
37657         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
37658         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
37659         Likewise.
37660         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
37661         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
37662         * modules/unictype/property-bidi-segment-separator-tests (Files):
37663         Likewise.
37664         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
37665         * modules/unictype/property-byname-tests (Files): Likewise.
37666         * modules/unictype/property-combining-tests (Files): Likewise.
37667         * modules/unictype/property-composite-tests (Files): Likewise.
37668         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
37669         * modules/unictype/property-dash-tests (Files): Likewise.
37670         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
37671         * modules/unictype/property-default-ignorable-code-point-tests (Files):
37672         Likewise.
37673         * modules/unictype/property-deprecated-tests (Files): Likewise.
37674         * modules/unictype/property-diacritic-tests (Files): Likewise.
37675         * modules/unictype/property-extender-tests (Files): Likewise.
37676         * modules/unictype/property-format-control-tests (Files): Likewise.
37677         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
37678         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
37679         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
37680         * modules/unictype/property-hex-digit-tests (Files): Likewise.
37681         * modules/unictype/property-hyphen-tests (Files): Likewise.
37682         * modules/unictype/property-id-continue-tests (Files): Likewise.
37683         * modules/unictype/property-id-start-tests (Files): Likewise.
37684         * modules/unictype/property-ideographic-tests (Files): Likewise.
37685         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
37686         * modules/unictype/property-ids-trinary-operator-tests (Files):
37687         Likewise.
37688         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
37689         * modules/unictype/property-iso-control-tests (Files): Likewise.
37690         * modules/unictype/property-join-control-tests (Files): Likewise.
37691         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
37692         * modules/unictype/property-line-separator-tests (Files): Likewise.
37693         * modules/unictype/property-logical-order-exception-tests (Files):
37694         Likewise.
37695         * modules/unictype/property-lowercase-tests (Files): Likewise.
37696         * modules/unictype/property-math-tests (Files): Likewise.
37697         * modules/unictype/property-non-break-tests (Files): Likewise.
37698         * modules/unictype/property-not-a-character-tests (Files): Likewise.
37699         * modules/unictype/property-numeric-tests (Files): Likewise.
37700         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
37701         * modules/unictype/property-other-default-ignorable-code-point-tests
37702         (Files): Likewise.
37703         * modules/unictype/property-other-grapheme-extend-tests (Files):
37704         Likewise.
37705         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
37706         * modules/unictype/property-other-id-start-tests (Files): Likewise.
37707         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
37708         * modules/unictype/property-other-math-tests (Files): Likewise.
37709         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
37710         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
37711         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
37712         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
37713         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
37714         * modules/unictype/property-private-use-tests (Files): Likewise.
37715         * modules/unictype/property-punctuation-tests (Files): Likewise.
37716         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
37717         * modules/unictype/property-radical-tests (Files): Likewise.
37718         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
37719         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
37720         * modules/unictype/property-space-tests (Files): Likewise.
37721         * modules/unictype/property-terminal-punctuation-tests (Files):
37722         Likewise.
37723         * modules/unictype/property-test-tests (Files): Likewise.
37724         * modules/unictype/property-titlecase-tests (Files): Likewise.
37725         * modules/unictype/property-unassigned-code-value-tests (Files):
37726         Likewise.
37727         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
37728         * modules/unictype/property-uppercase-tests (Files): Likewise.
37729         * modules/unictype/property-variation-selector-tests (Files): Likewise.
37730         * modules/unictype/property-white-space-tests (Files): Likewise.
37731         * modules/unictype/property-xid-continue-tests (Files): Likewise.
37732         * modules/unictype/property-xid-start-tests (Files): Likewise.
37733         * modules/unictype/property-zero-width-tests (Files): Likewise.
37734         * modules/unictype/scripts-tests (Files): Likewise.
37735         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
37736         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
37737         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
37738         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
37739         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
37740         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
37741         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
37742         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
37743         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
37744         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
37745         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
37746         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
37747         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
37748         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
37749         * modules/uninorm/composition-tests (Files): Likewise.
37750         * modules/uninorm/decomposing-form-tests (Files): Likewise.
37751         * modules/uninorm/decomposition-tests (Files): Likewise.
37752         * modules/uninorm/filter-tests (Files): Likewise.
37753         * modules/uninorm/nfc-tests (Files): Likewise.
37754         * modules/uninorm/nfd-tests (Files): Likewise.
37755         * modules/uninorm/nfkc-tests (Files): Likewise.
37756         * modules/uninorm/nfkd-tests (Files): Likewise.
37757         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
37758         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
37759         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
37760         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
37761         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
37762         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
37763         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
37764         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
37765         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
37766         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
37767         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
37768         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
37769         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
37770         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
37771         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
37772         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
37773         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
37774         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
37775         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
37776         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
37777         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
37778         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
37779         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
37780         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
37781         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
37782         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
37783         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
37784         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
37785         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
37786         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
37787         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
37788         * modules/uniwidth/u8-width-tests (Files): Likewise.
37789         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
37790         * modules/uniwidth/u16-width-tests (Files): Likewise.
37791         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
37792         * modules/uniwidth/u32-width-tests (Files): Likewise.
37793         * modules/uniwidth/width-tests (Files): Likewise.
37794         * modules/unlink-tests (Files): Likewise.
37795         * modules/unsetenv-tests (Files): Likewise.
37796         * modules/usleep-tests (Files): Likewise.
37797         * modules/utimens-tests (Files): Likewise.
37798         * modules/utimensat-tests (Files): Likewise.
37799         * modules/vasnprintf-posix-tests (Files): Likewise.
37800         * modules/vasnprintf-tests (Files): Likewise.
37801         * modules/vasprintf-posix-tests (Files): Likewise.
37802         * modules/vasprintf-tests (Files): Likewise.
37803         * modules/vdprintf-posix-tests (Files): Likewise.
37804         * modules/vfprintf-posix-tests (Files): Likewise.
37805         * modules/vprintf-posix-tests (Files): Likewise.
37806         * modules/vsnprintf-posix-tests (Files): Likewise.
37807         * modules/vsnprintf-tests (Files): Likewise.
37808         * modules/vsprintf-posix-tests (Files): Likewise.
37809         * modules/wcrtomb-tests (Files): Likewise.
37810         * modules/wcsnrtombs-tests (Files): Likewise.
37811         * modules/wcsrtombs-tests (Files): Likewise.
37812         * modules/wctype-tests (Files): Likewise.
37813         * modules/wcwidth-tests (Files): Likewise.
37814         * modules/xmemdup0-tests (Files): Likewise.
37815         * modules/xprintf-posix-tests (Files): Likewise.
37816         * modules/xvasprintf-tests (Files): Likewise.
37817
37818 2009-12-24  Eric Blake  <ebb9@byu.net>
37819
37820         test-nanosleep: fix typo
37821         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
37822         patch.
37823         Reported by Bruno Haible.
37824
37825 2009-12-24  Bruno Haible  <bruno@clisp.org>
37826
37827         Reduce namespace pollution on glibc systems.
37828         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
37829         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
37830         systems.
37831         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
37832         <getopt.h> on glibc systems.
37833         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
37834         systems.
37835         * lib/fcntl.c: Include <unistd.h> here instead.
37836
37837 2009-12-24  Bruno Haible  <bruno@clisp.org>
37838
37839         * lib/stdlib.in.h (includes): Fix typo in today's commit.
37840
37841 2009-12-24  Eric Blake  <ebb9@byu.net>
37842
37843         tests: add signature checks
37844         * tests/signature.h (SIGNATURE_CHECK): New file.
37845         * modules/atexit-tests (Files): Use it.
37846         * modules/btowc-tests (Files): Likewise.
37847         * modules/canonicalize-lgpl-tests (Files): Likewise.
37848         * modules/ceilf-tests (Files): Likewise.
37849         * modules/ceill-tests (Files): Likewise.
37850         * modules/chown-tests (Files): Likewise.
37851         * modules/dprintf-posix-tests (Files): Likewise.
37852         * modules/dup2-tests (Files): Likewise.
37853         * modules/dup3-tests (Files): Likewise.
37854         * modules/duplocale-tests (Files): Likewise.
37855         * modules/fchdir-tests (Files): Likewise.
37856         * modules/fcntl-tests (Files): Likewise.
37857         * modules/fdopendir-tests (Files): Likewise.
37858         * modules/fflush-tests (Files): Likewise.
37859         * modules/flock-tests (Files): Likewise.
37860         * modules/floorf-tests (Files): Likewise.
37861         * modules/floorl-tests (Files): Likewise.
37862         * modules/fnmatch-tests (Files): Likewise.
37863         * modules/fopen-tests (Files): Likewise.
37864         * modules/fprintf-posix-tests (Files): Likewise.
37865         * modules/freopen-tests (Files): Likewise.
37866         * modules/frexp-nolibm-tests (Files): Likewise.
37867         * modules/frexp-tests (Files): Likewise.
37868         * modules/frexpl-nolibm-tests (Files): Likewise.
37869         * modules/frexpl-tests (Files): Likewise.
37870         * modules/fseek-tests (Files): Likewise.
37871         * modules/fseeko-tests (Files): Likewise.
37872         * modules/fsync-tests (Files): Likewise.
37873         * modules/ftell-tests (Files): Likewise.
37874         * modules/ftello-tests (Files): Likewise.
37875         * modules/futimens-tests (Files): Likewise.
37876         * modules/getaddrinfo-tests (Files): Likewise.
37877         * modules/getcwd-tests (Files): Likewise.
37878         * modules/getdelim-tests (Files): Likewise.
37879         * modules/getdtablesize-tests (Files): Likewise.
37880         * modules/getgroups-tests (Files): Likewise.
37881         * modules/gethostname-tests (Files): Likewise.
37882         * modules/getline-tests (Files): Likewise.
37883         * modules/getopt-posix-tests (Files): Likewise.
37884         * modules/gettimeofday-tests (Files): Likewise.
37885         * modules/glob-tests (Files): Likewise.
37886         * modules/iconv-tests (Files): Likewise.
37887         * modules/inet_ntop-tests (Files): Likewise.
37888         * modules/inet_pton-tests (Files): Likewise.
37889         * modules/isblank-tests (Files): Likewise.
37890         * modules/lchown-tests (Files): Likewise.
37891         * modules/ldexpl-tests (Files): Likewise.
37892         * modules/link-tests (Files): Likewise.
37893         * modules/linkat-tests (Files): Likewise.
37894         * modules/lseek-tests (Files): Likewise.
37895         * modules/lstat-tests (Files): Likewise.
37896         * modules/mbrtowc-tests (Files): Likewise.
37897         * modules/mbsinit-tests (Files): Likewise.
37898         * modules/mbsnrtowcs-tests (Files): Likewise.
37899         * modules/mbsrtowcs-tests (Files): Likewise.
37900         * modules/memchr-tests (Files): Likewise.
37901         * modules/memcmp-tests (Files): Likewise.
37902         * modules/memmem-tests (Files): Likewise.
37903         * modules/memrchr-tests (Files): Likewise.
37904         * modules/mkdir-tests (Files): Likewise.
37905         * modules/mkfifo-tests (Files): Likewise.
37906         * modules/mkfifoat-tests (Files): Likewise.
37907         * modules/mknod-tests (Files): Likewise.
37908         * modules/nanosleep-tests (Files): Likewise.
37909         * modules/nl_langinfo-tests (Files): Likewise.
37910         * modules/obstack-printf-tests (Files): Likewise.
37911         * modules/open-tests (Files): Likewise.
37912         * modules/openat-tests (Files): Likewise.
37913         * modules/perror-tests (Files): Likewise.
37914         * modules/pipe2-tests (Files): Likewise.
37915         * modules/poll-tests (Files): Likewise.
37916         * modules/popen-tests (Files): Likewise.
37917         * modules/posix_spawn-tests (Files): Likewise.
37918         * modules/posix_spawnp-tests (Files): Likewise.
37919         * modules/pread-tests (Files): Likewise.
37920         * modules/printf-posix-tests (Files): Likewise.
37921         * modules/pty-tests (Files): Likewise.
37922         * modules/random_r-tests (Files): Likewise.
37923         * modules/rawmemchr-tests (Files): Likewise.
37924         * modules/readlink-tests (Files): Likewise.
37925         * modules/remove-tests (Files): Likewise.
37926         * modules/rename-tests (Files): Likewise.
37927         * modules/renameat-tests (Files): Likewise.
37928         * modules/rmdir-tests (Files): Likewise.
37929         * modules/round-tests (Files): Likewise.
37930         * modules/roundf-tests (Files): Likewise.
37931         * modules/roundl-tests (Files): Likewise.
37932         * modules/select-tests (Files): Likewise.
37933         * modules/setenv-tests (Files): Likewise.
37934         * modules/sigaction-tests (Files): Likewise.
37935         * modules/sleep-tests (Files): Likewise.
37936         * modules/snprintf-posix-tests (Files): Likewise.
37937         * modules/snprintf-tests (Files): Likewise.
37938         * modules/sprintf-posix-tests (Files): Likewise.
37939         * modules/stat-tests (Files): Likewise.
37940         * modules/strcasestr-tests (Files): Likewise.
37941         * modules/strchrnul-tests (Files): Likewise.
37942         * modules/strerror-tests (Files): Likewise.
37943         * modules/strsignal-tests (Files): Likewise.
37944         * modules/strstr-tests (Files): Likewise.
37945         * modules/strtod-tests (Files): Likewise.
37946         * modules/strverscmp-tests (Files): Likewise.
37947         * modules/symlink-tests (Files): Likewise.
37948         * modules/symlinkat-tests (Files): Likewise.
37949         * modules/times-tests (Files): Likewise.
37950         * modules/trunc-tests (Files): Likewise.
37951         * modules/truncf-tests (Files): Likewise.
37952         * modules/truncl-tests (Files): Likewise.
37953         * modules/tsearch-tests (Files): Likewise.
37954         * modules/uname-tests (Files): Likewise.
37955         * modules/unlink-tests (Files): Likewise.
37956         * modules/unsetenv-tests (Files): Likewise.
37957         * modules/usleep-tests (Files): Likewise.
37958         * modules/utimensat-tests (Files): Likewise.
37959         * modules/vasprintf-tests (Files): Likewise.
37960         * modules/vdprintf-posix-tests (Files): Likewise.
37961         * modules/vfprintf-posix-tests (Files): Likewise.
37962         * modules/vprintf-posix-tests (Files): Likewise.
37963         * modules/vsnprintf-posix-tests (Files): Likewise.
37964         * modules/vsnprintf-tests (Files): Likewise.
37965         * modules/vsprintf-posix-tests (Files): Likewise.
37966         * modules/wcrtomb-tests (Files): Likewise.
37967         * modules/wcsnrtombs-tests (Files): Likewise.
37968         * modules/wcsrtombs-tests (Files): Likewise.
37969         * modules/wcwidth-tests (Files): Likewise.
37970         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
37971         * tests/test-isinf.c (isinf): Likewise.
37972         * tests/test-isnan.c (isnan): Likewise.
37973         * tests/test-signbit.c (signbit): Likewise.
37974         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
37975         declaration, either as macro or with correct signature.
37976         (select): Ensure function under test is declared with correct
37977         signature in correct header.
37978         * tests/test-atexit.c (atexit): Likewise.
37979         * tests/test-btowc.c (btowc): Likewise.
37980         * tests/test-canonicalize-lgpl.c (realpath)
37981         (canonicalize_file_name): Likewise.
37982         * tests/test-ceilf1.c (ceilf): Likewise.
37983         * tests/test-ceill.c (ceill): Likewise.
37984         * tests/test-chown.c (chown): Likewise.
37985         * tests/test-dprintf-posix.c (dprintf): Likewise.
37986         * tests/test-dup2.c (dup2): Likewise.
37987         * tests/test-dup3.c (dup3): Likewise.
37988         * tests/test-duplocale.c (duplocale): Likewise.
37989         * tests/test-fchdir.c (fchdir): Likewise.
37990         * tests/test-fchownat.c (fchownat): Likewise.
37991         * tests/test-fcntl.c (fcntl): Likewise.
37992         * tests/test-fdopendir.c (fdopendir): Likewise.
37993         * tests/test-fflush.c (fflush): Likewise.
37994         * tests/test-flock.c (flock): Likewise.
37995         * tests/test-floorf1.c (floorf): Likewise.
37996         * tests/test-floorl.c (floorl): Likewise.
37997         * tests/test-fnmatch.c (fnmatch): Likewise.
37998         * tests/test-fopen.c (fopen): Likewise.
37999         * tests/test-fprintf-posix.c (fprintf): Likewise.
38000         * tests/test-freopen.c (freopen): Likewise.
38001         * tests/test-frexp.c (frexp): Likewise.
38002         * tests/test-frexpl.c (frexpl): Likewise.
38003         * tests/test-fseek.c (fseek): Likewise.
38004         * tests/test-fseeko.c (fseeko): Likewise.
38005         * tests/test-fstatat.c (fstatat): Likewise.
38006         * tests/test-fsync.c (fsync): Likewise.
38007         * tests/test-ftell.c (ftell): Likewise.
38008         * tests/test-ftello.c (ftello): Likewise.
38009         * tests/test-futimens.c (futimens): Likewise.
38010         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
38011         (gai_strerror): Likewise.
38012         * tests/test-getcwd.c (getcwd): Likewise.
38013         * tests/test-getdelim.c (getdelim): Likewise.
38014         * tests/test-getdtablesize.c (getdtablesize): Likewise.
38015         * tests/test-getgroups.c (getgroups): Likewise.
38016         * tests/test-gethostname.c (gethostname): Likewise.
38017         * tests/test-getline.c (getline): Likewise.
38018         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
38019         Likewise.
38020         * tests/test-gettimeofday.c (gettimeofday): Likewise.
38021         * tests/test-glob.c (glob, globfree): Likewise.
38022         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
38023         * tests/test-inet_ntop.c (inet_ntop): Likewise.
38024         * tests/test-inet_pton.c (inet_pton): Likewise.
38025         * tests/test-isblank.c (isblank): Likewise.
38026         * tests/test-lchown.c (lchown): Likewise.
38027         * tests/test-ldexpl.c (ldexpl): Likewise.
38028         * tests/test-link.c (link): Likewise.
38029         * tests/test-linkat.c (linkat): Likewise.
38030         * tests/test-lseek.c (lseek): Likewise.
38031         * tests/test-lstat.c (lstat): Likewise.
38032         * tests/test-mbrtowc.c (mbrtowc): Likewise.
38033         * tests/test-mbsinit.c (mbsinit): Likewise.
38034         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
38035         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
38036         * tests/test-memchr.c (memchr): Likewise.
38037         * tests/test-memcmp.c (memcmp): Likewise.
38038         * tests/test-memmem.c (memmem): Likewise.
38039         * tests/test-memrchr.c (memrchr): Likewise.
38040         * tests/test-mkdir.c (mkdir): Likewise.
38041         * tests/test-mkdirat.c (mkdirat): Likewise.
38042         * tests/test-mkfifo.c (mkfifo): Likewise.
38043         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
38044         * tests/test-mknod.c (mknod): Likewise.
38045         * tests/test-nanosleep.c (nanosleep): Likewise.
38046         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
38047         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
38048         Likewise.
38049         * tests/test-open.c (open): Likewise.
38050         * tests/test-openat.c (openat): Likewise.
38051         * tests/test-perror.c (perror): Likewise.
38052         * tests/test-pipe2.c (pipe2): Likewise.
38053         * tests/test-poll.c (poll): Likewise.
38054         * tests/test-popen.c (popen, pclose): Likewise.
38055         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
38056         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
38057         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
38058         (posix_spawn_file_actions_destroy)
38059         (posix_spawn_file_actions_addclose)
38060         (posix_spawn_file_actions_addopen)
38061         (posix_spawn_file_actions_adddup2): Likewise.
38062         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
38063         * tests/test-pread.c (pread): Likewise.
38064         * tests/test-printf-posix.c (printf): Likewise.
38065         * tests/test-pty.c (openpty, forkpty): Likewise.
38066         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
38067         (random_r): Likewise.
38068         * tests/test-rawmemchr.c (rawmemchr): Likewise.
38069         * tests/test-readlink.c (readlink): Likewise.
38070         * tests/test-remove.c (remove): Likewise.
38071         * tests/test-rename.c (rename): Likewise.
38072         * tests/test-renameat.c (renameat): Likewise.
38073         * tests/test-rmdir.c (rmdir): Likewise.
38074         * tests/test-round1.c (round): Likewise.
38075         * tests/test-roundf1.c (roundf): Likewise.
38076         * tests/test-roundl.c (roundl): Likewise.
38077         * tests/test-setenv.c (setenv): Likewise.
38078         * tests/test-sigaction.c (sigaction): Likewise.
38079         * tests/test-sleep.c (sleep): Likewise.
38080         * tests/test-snprintf.c (snprintf): Likewise.
38081         * tests/test-sprintf-posix.c (sprintf): Likewise.
38082         * tests/test-stat.c (stat): Likewise.
38083         * tests/test-stpncpy.c (stpncpy): Likewise.
38084         * tests/test-strcasestr.c (strcasestr): Likewise.
38085         * tests/test-strchrnul.c (strchrnul): Likewise.
38086         * tests/test-strerror.c (strerror): Likewise.
38087         * tests/test-strsignal.c (strsignal): Likewise.
38088         * tests/test-strstr.c (strstr): Likewise.
38089         * tests/test-strtod.c (strtod): Likewise.
38090         * tests/test-strverscmp.c (strverscmp): Likewise.
38091         * tests/test-symlink.c (symlink): Likewise.
38092         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
38093         * tests/test-times.c (times): Likewise.
38094         * tests/test-trunc1.c (trunc): Likewise.
38095         * tests/test-truncf1.c (truncf): Likewise.
38096         * tests/test-truncl.c (truncl): Likewise.
38097         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
38098         Likewise.
38099         * tests/test-uname.c (uname): Likewise.
38100         * tests/test-unlink.c (unlink): Likewise.
38101         * tests/test-unlinkat.c (unlinkat): Likewise.
38102         * tests/test-unsetenv.c (unsetenv): Likewise.
38103         * tests/test-usleep.c (usleep): Likewise.
38104         * tests/test-utimensat.c (utimensat): Likewise.
38105         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
38106         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
38107         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
38108         * tests/test-vprintf-posix.c (vprintf): Likewise.
38109         * tests/test-vsnprintf.c (vsnprintf): Likewise.
38110         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
38111         * tests/test-wcrtomb.c (wcrtomb): Likewise.
38112         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
38113         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
38114         * tests/test-wcwidth.c (wcwidth): Likewise.
38115
38116         build: pull in conditional headers during GNULIB_POSIXCHECK
38117         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
38118         definitions from any conditionally-included headers.
38119         * lib/stdlib.in.h (includes): Likewise.
38120         * lib/unistd.in.h (includes): Likewise.
38121
38122 2009-12-24  Bruno Haible  <bruno@clisp.org>
38123
38124         * tests/test-argv-iter.c: Include header file being tested immediately
38125         after config.h.
38126         * tests/test-base64.c: Likewise.
38127         * tests/test-flock.c: Likewise.
38128         * tests/test-fsync.c: Likewise.
38129         * tests/test-getdate.c: Likewise.
38130         * tests/test-getndelim2.c: Likewise.
38131         * tests/test-isfinite.c: Likewise.
38132         * tests/test-isinf.c: Likewise.
38133         * tests/test-strerror.c: Likewise.
38134         * tests/test-strsignal.c: Likewise.
38135
38136 2009-12-23  Eric Blake  <ebb9@byu.net>
38137
38138         unistd: work around cygwin bug
38139         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
38140         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
38141         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
38142
38143 2009-12-23  Bruno Haible  <bruno@clisp.org>
38144
38145         localename: More tests.
38146         * tests/test-localename.c (SIZEOF): New macro.
38147         (categories): New variable.
38148         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
38149         test_locale_name_default): Add test w.r.t. thread locale.
38150         (test_locale_name_thread): New function.
38151         (main): Invoke it.
38152
38153         localename: Make aware of thread locale.
38154         * lib/localename.h (gl_locale_name_thread): New declaration.
38155         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
38156         behaviour with respect to thread locale.
38157         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
38158         <langinfo.h>, glthread/lock.h.
38159         (SIZE_BITS): New macro.
38160         (string_hash): New function.
38161         (struct hash_node): New type.
38162         (HASH_TABLE_SIZE): New macro.
38163         (struniq_hash_table, struniq_lock): New variables.
38164         (struniq): New function.
38165         (gl_locale_name_thread): New function.
38166         (gl_locale_name): Invoke it.
38167         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
38168         * modules/localename (Depends-on): Add lock.
38169         Reported by Mike Gran <spk121@yahoo.com>.
38170
38171 2009-12-23  Eric Blake  <ebb9@byu.net>
38172
38173         va-args: new module
38174         * modules/va-args: New file.
38175         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
38176         * MODULES.html.sh (Core language properties): Mention it.
38177
38178         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
38179         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
38180         named alias for __attribute__((__unused__)).
38181         * lib/chown.c: Update client.
38182         * lib/fchmodat.c: Likewise.
38183         * lib/fts.c: Likewise.
38184         * lib/getdate.y: Likewise.
38185         * lib/getgroups.c: Likewise.
38186         * lib/getopt.c: Likewise.
38187         * lib/getugroups.c: Likewise.
38188         * lib/mkdir.c: Likewise.
38189         * lib/mkfifo.c: Likewise.
38190         * lib/mkfifoat.c: Likewise.
38191         * lib/mknod.c: Likewise.
38192         * lib/mknodat.c: Likewise.
38193         * lib/readlink.c: Likewise.
38194         * lib/se-context.in.h: Likewise.
38195         * lib/se-selinux.in.h: Likewise.
38196         * lib/sockets.c: Likewise.
38197         * lib/symlink.c: Likewise.
38198         * lib/symlinkat.c: Likewise.
38199         * lib/unicodeio.c: Likewise.
38200         * lib/unistr.h: Likewise.
38201         * tests/test-areadlink.c: Likewise.
38202         * tests/test-areadlinkat.c: Likewise.
38203         * tests/test-filenamecat.c: Likewise.
38204         * tests/test-fseeko.c: Likewise.
38205         * tests/test-ftello.c: Likewise.
38206         * tests/test-getdate.c: Likewise.
38207         * tests/test-getgroups.c: Likewise.
38208         * tests/test-gethostname.c: Likewise.
38209         * tests/test-quotearg.c: Likewise.
38210         * tests/test-version-etc.c: Likewise.
38211         * tests/test-xalloc-die.c: Likewise.
38212         * tests/test-xfprintf-posix.c: Likewise.
38213         * tests/test-xprintf-posix.c: Likewise.
38214         * tests/test-xvasprintf.c: Likewise.
38215
38216         tests: avoid compiler warnings
38217         * tests/test-fcntl.c (main): Delete unused parameters.
38218         * tests/test-freopen-safer.c (main): Likewise.
38219         * tests/test-xalloc-die.c (main): Mark unused parameters.
38220         * tests/test-fseeko.c (main): Likewise.
38221         * tests/test-ftello.c (main): Likewise.
38222         * tests/test-nanosleep.c (main): Avoid declaration warning.
38223         * tests/test-sleep.c (main): Likewise.
38224         * tests/test-unsetenv.c (main): Silence warning about string
38225         literal.
38226         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
38227
38228 2009-12-23  Bruno Haible  <bruno@clisp.org>
38229
38230         * tests/test-localename.c (test_locale_name): New function, extracted
38231         from main. Also test mixed situations.
38232         (test_locale_name_posix, test_locale_name_environ,
38233         test_locale_name_default): New functions.
38234         (main): Invoke them all.
38235         * modules/localename-tests (configure.ac): Test for newlocale.
38236
38237 2009-12-23  Bruno Haible  <bruno@clisp.org>
38238
38239         unistd: Ensure getcwd gets declared before being overridden.
38240         * lib/unistd.in.h: Conditionally include <io.h>.
38241
38242 2009-12-22  Bruno Haible  <bruno@clisp.org>
38243
38244         wchar: Diagnose broken combination of glibc and gcc versions and flags.
38245         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
38246         (gl_WCHAR_H): Invoke it.
38247         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
38248         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
38249         Reported by Karl Berry <karl@freefriends.org>.
38250
38251 2009-12-22  Eric Blake  <ebb9@byu.net>
38252
38253         math, unistd: avoid redundant includes
38254         * lib/math.in.h (isnan): No need to re-include <math.h>.
38255         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
38256
38257         getsubopt: work around cygwin bug
38258         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
38259         avoid conflicting with system getsubopt.
38260         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
38261         bug.
38262
38263         getopt: synchronize from glibc
38264         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
38265         parameter order.  Adjust all callers.
38266         (_getopt_internal_r, main): Adjust quoting in error messages.
38267         Drop considerations for outdated POSIX 1003.2 error message.
38268         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
38269         callers.
38270         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
38271
38272         test-getopt: test stderr behavior
38273         * modules/getopt-posix-tests (Depends-on): Add dup2.
38274         * tests/test-getopt.c (ASSERT): Avoid stderr.
38275         (main): Move stderr to a temporary file.
38276         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
38277         Instead, add parameter to inform caller if output occurred.
38278         (test_getopt): Adjust all existing tests to expect silence, and
38279         add new tests of leading ":".
38280         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
38281         glibc shortcomings with leading "-:" or "+:" in optstring.
38282         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
38283         Likewise.
38284         * doc/posix-functions/getopt.texi (getopt): Likewise.
38285
38286         test-getopt: enhance test
38287         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
38288         supports optind=0.
38289         * tests/test-getopt.c (OPTIND_MIN): Move...
38290         * tests/test-getopt.h (OPTIND_MIN): ...here.
38291         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
38292         Require that optind=0 works, since modern BSD supports it in
38293         addition to optreset, and since coreutils expects it.
38294         (test_getopt_long_only): New test.
38295         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
38296         glibc shortcomings with 'W;', and enforcement of optind=0.
38297         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
38298         Likewise.
38299
38300 2009-12-21  Bruno Haible  <bruno@clisp.org>
38301
38302         localename: Improvements for MacOS X and Cygwin.
38303         * lib/localename.h (gl_locale_name_environ): New declaration.
38304         * lib/localename.c (gl_locale_name_environ): New function, extracted from
38305         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
38306         (gl_locale_name_posix): Invoke it.
38307         (gl_locale_name_default): Add comments. Use Windows native API also on
38308         Cygwin.
38309
38310 2009-12-21  Bruno Haible  <bruno@clisp.org>
38311
38312         Update list of Win32 locale ids.
38313         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
38314         (LANG_SAMI): Renamed from LANG_SAAMI.
38315         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
38316         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
38317         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
38318         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
38319         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
38320         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
38321         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
38322         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
38323         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
38324         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
38325         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
38326         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
38327         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
38328         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
38329         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
38330         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
38331         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
38332         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
38333         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
38334         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
38335         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
38336         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
38337         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
38338         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
38339         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
38340         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
38341         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
38342         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
38343         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
38344         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
38345         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
38346         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
38347         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
38348         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
38349         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
38350         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
38351         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
38352         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
38353         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
38354         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
38355         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
38356         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
38357         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
38358         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
38359         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
38360         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
38361         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
38362         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
38363         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
38364         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
38365         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
38366         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
38367         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
38368         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
38369         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
38370         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
38371         Add more languages and countries for Sami, Sorbian. Add more countries
38372         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
38373         for Pashto. Change country for Syriac, Tswana.
38374
38375 2009-12-21  Eric Blake  <ebb9@byu.net>
38376
38377         test-utimens: avoid spurious failure
38378         * tests/test-chown.h (nap): Factor...
38379         * tests/nap.h: ...into new file.
38380         * tests/test-lchown.h (nap): Avoid duplication.
38381         * tests/test-utimens-common.h (nap): Use shared implementation,
38382         necessary on file systems with 1-second resolution.
38383         * modules/chown-tests (Files): Include new file.
38384         * modules/fdutimensat-tests (Files): Likewise.
38385         * modules/futimens-tests (Files): Likewise.
38386         * modules/lchown-tests (Files): Likewise.
38387         * modules/openat-tests (Files): Likewise.
38388         * modules/utimens-tests (Files): Likewise.
38389         * modules/utimensat-tests (Files): Likewise.
38390
38391 2009-12-19  Eric Blake  <ebb9@byu.net>
38392
38393         futimens, utimensat: work around Linux bug
38394         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
38395         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
38396         * lib/utimensat.c (rpl_utimensat): Work around it.
38397         * lib/futimens.c (rpl_futimens): Adjust comment.
38398
38399         utimens: work around Linux ctime bug
38400         * lib/utimens.c (detect_ctime_bug): New helper function.
38401         (update_timespec): Differentiate between workaround needed for
38402         this bug vs. what is needed for systems that lack utimensat.
38403         (fdutimens, lutimens): Work around bug.
38404
38405         utimens: check for ctime update
38406         * tests/test-utimens-common.h (check_ctime): Define.
38407         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
38408         * tests/test-futimens.h (test_futimens): Likewise.
38409         * tests/test-lutimens.h (test_lutimens): Likewise.
38410         * doc/posix-functions/futimens.texi (futimens): Document the bug.
38411         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
38412
38413 2009-12-19  Bruno Haible  <bruno@clisp.org>
38414
38415         dprintf-posix: Check against memory leak fixed on 2009-12-15.
38416         * tests/test-dprintf-posix2.sh: New file.
38417         * tests/test-dprintf-posix2.c: New file.
38418         * modules/dprintf-posix-tests (Files): Add them.
38419         (configure.ac): Check for getrlimit and setrlimit.
38420         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
38421
38422 2009-12-19  Bruno Haible  <bruno@clisp.org>
38423
38424         fprintf-posix: Check against memory leak fixed on 2009-12-15.
38425         * tests/test-fprintf-posix3.sh: New file.
38426         * tests/test-fprintf-posix3.c: New file.
38427         * modules/fprintf-posix-tests (Files): Add them.
38428         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
38429
38430 2009-12-19  Eric Blake  <ebb9@byu.net>
38431
38432         dirfd: fix prototype
38433         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
38434         * lib/dirfd.c (dirfd): Likewise.
38435
38436         canonicalize: reduce memory usage
38437         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
38438         allocation to size.
38439         Reported by Solar Designer <solar@openwall.com>.
38440
38441 2009-12-19  Bruno Haible  <bruno@clisp.org>
38442
38443         New module attribute 'Applicability'.
38444         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
38445         * gnulib-tool: New option --extract-applicability.
38446         (func_usage): Document it.
38447         (sed_extract_prog): Recognize it.
38448         (func_get_applicability): New function.
38449         (func_import): Generalize handling of 'link-warning' module.
38450         * modules/link-warning (Applicability): New section.
38451         * modules/arg-nonnull (Applicability): New section.
38452         Repoted by Simon Josefsson <simon@josefsson.org>.
38453
38454 2009-12-19  Bruno Haible  <bruno@clisp.org>
38455
38456         fflush: tweak
38457         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
38458         * lib/fseeko.c (rpl_fseeko): Likewise.
38459
38460 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
38461
38462         * lib/gl_list.h: Fix typo in comment.
38463
38464 2009-12-16  Eric Blake  <ebb9@byu.net>
38465
38466         fcntl: use to simplify other modules
38467         * modules/cloexec (Depends-on): Add fcntl.
38468         * modules/fchdir (Depends-on): Likewise.
38469         * modules/fd-safer-flag (Depends-on): Likewise.
38470         * modules/unistd-safer (Depends-on): Likewise.
38471         * modules/dup3 (configure.ac): Set module indicator.
38472         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
38473         missing.
38474         * lib/fchdir.c (_gl_register_dup): Fix comment.
38475         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
38476         * lib/dup-safer.c (dup_safer): Likewise.
38477         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
38478         * lib/dup3.c (dup3): Likewise.
38479         * tests/test-fchdir.c (main): Enhance test.
38480         Fixes a dup_cloexec bug reported by Ondřej Vašík.
38481
38482         fcntl: port portions of fcntl to mingw
38483         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
38484         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
38485         replacement for mingw.
38486         * modules/fcntl (Description): Update.
38487         (Depends-on): Add dup2.
38488         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
38489         * modules/fcntl-h (Makefile.am): Substitute it.
38490         * lib/fcntl.in.h (fcntl): Update declaration.
38491         (F_DUPFD, F_GETFD): New macros, when needed.
38492         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
38493         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
38494         * tests/test-fcntl.c (check_flags, main): Enhance test for items
38495         we now guarantee.
38496
38497         fcntl: work around cygwin bug in F_DUPFD
38498         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
38499         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
38500         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
38501         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
38502         * doc/posix-functions/fcntl.texi (fcntl): Document it.
38503
38504         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
38505         * modules/fcntl (Files): List new files.
38506         (configure.ac): Run a test.
38507         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
38508         * lib/fcntl.c (rpl_fcntl): Likewise.
38509         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
38510         (gl_FCNTL_H): Always replace fcntl.h.
38511         * modules/fcntl-h (Makefile.am): Substitute witnesses.
38512         * lib/fcntl.in.h (fcntl): Declare replacement.
38513         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
38514         needed, plus a witness.
38515         * doc/posix-functions/fcntl.texi (fcntl): Document this.
38516         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
38517         * tests/test-fcntl.c: New file.
38518         * modules/fcntl-tests: Likewise.
38519
38520         binary-io: avoid potential compilation warning
38521         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
38522         directives.
38523
38524         fflush: avoid compilation error on NetBSD
38525         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
38526         between off_t and fpos_t, since the latter is sometimes a struct.
38527         * lib/fseeko.c (rpl_fseeko): Likewise.
38528         Reported by Alexander Nasonov <alnsn@yandex.ru>.
38529
38530 2009-12-15  Eric Blake  <ebb9@byu.net>
38531
38532         fcntl-h, stdio, sys_ioctl: fix declarations
38533         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
38534         function must not take arguments.
38535         * lib/sys_ioctl.in.h (ioctl): Likewise.
38536         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
38537         (open): Add a link warning.
38538
38539 2009-12-15  Jim Meyering  <meyering@redhat.com>
38540
38541         areadlink, areadlink-with-size: relax license to LGPLv2+
38542         * modules/areadlink (License): Relax to LGPLv2+.
38543         * modules/areadlink-with-size (License): Likewise.
38544
38545 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
38546             Bruno Haible  <bruno@clisp.org>
38547
38548         *printf: Fix memory leak.
38549         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
38550         * lib/vfprintf.c (vfprintf): Likewise.
38551         * lib/dprintf.c (dprintf): Likewise.
38552         * lib/vdprintf.c (vdprintf): Likewise.
38553
38554 2009-12-14  Eric Blake  <ebb9@byu.net>
38555
38556         accept4: adjust module dependencies
38557         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
38558
38559         utimens: one more try at avoiding compiler warning
38560         * lib/utimens.c (lutimens): Lower scope of result.
38561
38562 2009-12-13  Bruno Haible  <bruno@clisp.org>
38563
38564         Move the malloc checking from module 'list' to new module 'xlist'.
38565         * modules/xlist: New file.
38566         * lib/gl_xlist.h: New file.
38567         * lib/gl_xlist.c: New file.
38568         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
38569         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
38570         gl_list_add_last, gl_list_add_before, gl_list_add_after,
38571         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
38572         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
38573         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
38574         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
38575         gl_sortedlist_nx_add): New declarations.
38576         (struct gl_list_implementation): Rename and change methods accordingly.
38577         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
38578         (gl_list_nx_create): Renamed from gl_list_create.
38579         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
38580         (gl_list_nx_set_at): Renamed from gl_list_set_at.
38581         (gl_list_nx_add_first): Renamed from gl_list_add_first.
38582         (gl_list_nx_add_last): Renamed from gl_list_add_last.
38583         (gl_list_nx_add_before): Renamed from gl_list_add_before.
38584         (gl_list_nx_add_after): Renamed from gl_list_add_after.
38585         (gl_list_nx_add_at): Renamed from gl_list_add_at.
38586         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
38587         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
38588         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_array_list.c: Don't include xalloc.h.
38599         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
38600         NULL upon out-of-memory.
38601         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
38602         out-of-memory.
38603         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
38604         Change return type to 'int'.
38605         (gl_array_nx_set_at): Renamed from gl_array_set_at.
38606         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
38607         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
38608         upon out-of-memory.
38609         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
38610         upon out-of-memory.
38611         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
38612         upon out-of-memory.
38613         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
38614         upon out-of-memory.
38615         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
38616         out-of-memory.
38617         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
38618         Update.
38619         (gl_array_list_implementation): Update.
38620         * lib/gl_carray_list.c: Don't include xalloc.h.
38621         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
38622         Return NULL upon out-of-memory.
38623         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
38624         out-of-memory.
38625         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
38626         Change return type to 'int'.
38627         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
38628         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
38629         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
38630         upon out-of-memory.
38631         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
38632         upon out-of-memory.
38633         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
38634         out-of-memory.
38635         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
38636         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
38637         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
38638         Update.
38639         (gl_carray_list_implementation): Update.
38640         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
38641         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
38642         gl_linked_create_empty. Return NULL upon out-of-memory.
38643         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
38644         out-of-memory.
38645         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
38646         Change return type to 'int'. Return -1 upon out-of-memory.
38647         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
38648         out-of-memory.
38649         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
38650         upon out-of-memory.
38651         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
38652         upon out-of-memory.
38653         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
38654         NULL upon out-of-memory.
38655         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
38656         upon out-of-memory.
38657         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
38658         out-of-memory.
38659         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
38660         Update.
38661         * lib/gl_linked_list.c: Don't include xalloc.h.
38662         (gl_linked_list_implementation): Update.
38663         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
38664         (add_to_bucket): Change return type to 'int'.
38665         (gl_linkedhash_list_implementation): Update.
38666         * lib/gl_anytree_list1.h (free_subtree): New function.
38667         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
38668         gl_tree_create_empty. Return NULL upon out-of-memory.
38669         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
38670         Change return type to 'int'. Return -1 upon out-of-memory.
38671         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
38672         out-of-memory.
38673         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
38674         (gl_tree_remove_node): New function, moved here from
38675         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
38676         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
38677         Update.
38678         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
38679         malloc, not xmalloc. Return NULL upon out-of-memory.
38680         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
38681         out-of-memory.
38682         (gl_tree_remove_node_from_tree): New function, extracted from
38683         gl_tree_remove_node.
38684         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
38685         upon out-of-memory.
38686         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
38687         out-of-memory.
38688         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
38689         upon out-of-memory.
38690         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
38691         upon out-of-memory.
38692         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
38693         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
38694         not xmalloc. Return NULL upon out-of-memory.
38695         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
38696         out-of-memory.
38697         (gl_tree_remove_node_from_tree): New function, extracted from
38698         gl_tree_remove_node.
38699         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
38700         upon out-of-memory.
38701         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
38702         out-of-memory.
38703         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
38704         upon out-of-memory.
38705         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
38706         upon out-of-memory.
38707         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
38708         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
38709         gl_anytree_list1.h before gl_anyavltree_list2.h.
38710         (gl_avltree_list_implementation): Update.
38711         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
38712         gl_anytree_list1.h before gl_anyavltree_list2.h.
38713         (gl_rbtree_list_implementation): Update.
38714         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
38715         Change return type to 'int'. Return -1 upon out-of-memory. Use
38716         __builtin_expect.
38717         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
38718         (gl_avltreehash_list_implementation): Update.
38719         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
38720         (gl_rbtreehash_list_implementation): Update.
38721         * modules/array-list (Depends-on): Remove xalloc.
38722         * modules/carray-list (Depends-on): Likewise.
38723         * modules/linked-list (Depends-on): Likewise.
38724         * modules/linkedhash-list (Depends-on): Likewise.
38725         * modules/avltree-list (Depends-on): Likewise.
38726         * modules/rbtree-list (Depends-on): Likewise.
38727         * modules/avltreehash-list (Depends-on): Likewise.
38728         * modules/rbtreehash-list (Depends-on): Likewise.
38729
38730         * modules/xsublist: New file.
38731         * lib/gl_xsublist.h: New file.
38732         * lib/gl_xsublist.c: New file.
38733         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
38734         (gl_sublist_nx_create): New declaration.
38735         * lib/gl_sublist.c: Don't include xalloc.h.
38736         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
38737         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
38738         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
38739         Change return type to 'int'. Return -1 upon out-of-memory.
38740         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
38741         upon out-of-memory.
38742         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
38743         NULL upon out-of-memory.
38744         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
38745         upon out-of-memory.
38746         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
38747         NULL upon out-of-memory.
38748         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
38749         NULL upon out-of-memory.
38750         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
38751         upon out-of-memory.
38752         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
38753         (gl_sublist_list_implementation): Update.
38754         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
38755         upon out-of-memory.
38756         * modules/sublist (Depends-on): Remove xalloc.
38757
38758         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
38759         * tests/test-carray_list.c: Likewise.
38760         * tests/test-linked_list.c: Likewise.
38761         * tests/test-linkedhash_list.c: Likewise.
38762         * tests/test-avltree_list.c: Likewise.
38763         * tests/test-rbtree_list.c: Likewise.
38764         * tests/test-avltreehash_list.c: Likewise.
38765         * tests/test-rbtreehash_list.c: Likewise.
38766         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
38767         * modules/carray-list-tests (Makefile.am): Likewise.
38768         * modules/linked-list-tests (Makefile.am): Likewise.
38769         * modules/linkedhash-list-tests (Makefile.am): Likewise.
38770         * modules/avltree-list-tests (Makefile.am): Likewise.
38771         * modules/rbtree-list-tests (Makefile.am): Likewise.
38772         * modules/avltreehash-list-tests (Makefile.am): Likewise.
38773         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
38774
38775         * NEWS: Mention the changes.
38776
38777         * lib/clean-temp.c: Include gl_xlist.h.
38778         * modules/clean-temp (Depends-on): Add xlist.
38779
38780         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
38781         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
38782
38783         * tests/test-array_oset.c: Include gl_xlist.h.
38784         * modules/array-oset-tests (Depends-on): Add xlist.
38785
38786         Reported by José E. Marchesi <jemarch@gnu.org>.
38787
38788 2009-12-13  Bruno Haible  <bruno@clisp.org>
38789
38790         Move the malloc checking from module 'oset' to new module 'xoset'.
38791         * modules/xoset: New file.
38792         * lib/gl_xoset.h: New file.
38793         * lib/gl_xoset.c: New file.
38794         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
38795         declarations.
38796         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
38797         (struct gl_oset_implementation): Rename and change methods accordingly.
38798         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
38799         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
38800         'int'. Mark as __warn_unused_result__.
38801         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
38802         gl_oset_create_empty.
38803         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
38804         'int'.
38805         * lib/gl_array_oset.c: Don't include xalloc.h.
38806         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
38807         malloc, not xmalloc.
38808         (grow): Change return type to 'int'. Don't call xalloc_die.
38809         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
38810         to 'int'.
38811         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
38812         'int'.
38813         (gl_array_oset_implementation): Update.
38814         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
38815         gl_tree_create_empty.
38816         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
38817         'int'.
38818         * lib/gl_avltree_oset.c: Don't include xalloc.h.
38819         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
38820         xmalloc.
38821         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
38822         not xmalloc.
38823         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
38824         xmalloc.
38825         (gl_avltree_oset_implementation): Update.
38826         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
38827         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
38828         xmalloc.
38829         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
38830         not xmalloc.
38831         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
38832         xmalloc.
38833         (gl_rbtree_oset_implementation): Update.
38834         * modules/array-oset (Depends-on): Remove xalloc.
38835         * modules/avltree-oset (Depends-on): Likewise.
38836         * modules/rbtree-oset (Depends-on): Likewise.
38837         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
38838         * tests/test-avltree_oset.c: Likewise.
38839         * tests/test-rbtree_oset.c: Likewise.
38840         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
38841         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
38842         * modules/rbtree-oset-tests (Makefile.am): Likewise.
38843         * NEWS: Mention the change.
38844
38845 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
38846
38847         maint.mk: allow a project to override release-prep commands
38848         * top/maint.mk (alpha, beta, stable): Move release-preparatory
38849         commands into a new rule.
38850         (release-prep): New rule.
38851         (release-prep-hook): New overridable variable.
38852
38853 2009-12-13  Bruno Haible  <bruno@clisp.org>
38854
38855         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
38856
38857 2009-12-13  Jim Meyering  <meyering@redhat.com>
38858
38859         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
38860         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
38861
38862 2009-12-12  Bruno Haible  <bruno@clisp.org>
38863
38864         duplocale: Tweak.
38865         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
38866
38867 2009-12-12  Karl Berry  <karl@gnu.org>
38868
38869         * config/srclist.txt (strtoll.c): tab changes, no more sync.
38870
38871 2009-12-12  Bruno Haible  <bruno@clisp.org>
38872
38873         * m4/po.m4: Undo incorrect untabification.
38874
38875 2009-12-12  Bruno Haible  <bruno@clisp.org>
38876
38877         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
38878         * modules/c-strtod (Depends-on): Add locale.
38879         * modules/c-strtold (Depends-on): Likewise.
38880
38881 2009-12-12  Bruno Haible  <bruno@clisp.org>
38882
38883         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
38884
38885 2009-12-11  Eric Blake  <ebb9@byu.net>
38886
38887         setenv: relax requirement in light of POSIX ruling
38888         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
38889         not NULL.
38890         * tests/test-setenv.c (main): Relax test.
38891         * tests/test-unsetenv.c (main): Likewise.
38892         * doc/posix-functions/setenv.texi (setenv): Document this.
38893         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
38894
38895 2009-12-11  Bruno Haible  <bruno@clisp.org>
38896
38897         New module 'fd-safer-flag'.
38898         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
38899         * lib/dup-safer.c (dup_safer_flag): Remove function.
38900         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
38901         * lib/fd-safer.c (fd_safer_flag): Remove function.
38902         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
38903         * modules/cloexec (configure.ac): Drop indicator macro.
38904         * modules/fd-safer-flag: New file.
38905         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
38906         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
38907         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
38908
38909 2009-12-11  Bruno Haible  <bruno@clisp.org>
38910
38911         Tests for module 'nl_langinfo'.
38912         * modules/nl_langinfo-tests: New file.
38913         * tests/test-nl_langinfo.sh: New file.
38914         * tests/test-nl_langinfo.c: New file.
38915
38916         New module 'nl_langinfo'.
38917         * lib/nl_langinfo.c: New file.
38918         * m4/nl_langinfo.m4: New file.
38919         * modules/nl_langinfo: New file.
38920         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
38921
38922 2009-12-11  Bruno Haible  <bruno@clisp.org>
38923
38924         Tests for module 'langinfo'.
38925         * modules/langinfo-tests: New file.
38926         * tests/test-langinfo.c: New file.
38927
38928         New module 'langinfo'.
38929         * lib/langinfo.in.h: New file.
38930         * m4/langinfo_h.m4: New file.
38931         * modules/langinfo: New file.
38932         * doc/posix-headers/langinfo.texi: Mention the new module.
38933
38934 2009-12-11  Bruno Haible  <bruno@clisp.org>
38935
38936         * lib/config.charset: Untabify.
38937
38938 2009-12-11  Bruno Haible  <bruno@clisp.org>
38939
38940         * modules/unistd-safer (configure.ac): Drop indicator macro.
38941
38942 2009-12-11  Bruno Haible  <bruno@clisp.org>
38943
38944         Move pipe2-safer code to its own file.
38945         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
38946         * lib/pipe-safer.c (pipe2_safer): Remove function.
38947         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
38948         (Makefile.am): Add it to lib_SOURCES.
38949
38950 2009-12-10  Bruno Haible  <bruno@clisp.org>
38951
38952         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
38953
38954 2009-12-10  Bruno Haible  <bruno@clisp.org>
38955
38956         Declare which arguments expect non-NULL values, for GCC and clang.
38957         * build-aux/arg-nonnull.h: New file.
38958         * modules/arg-nonnull: New file.
38959         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
38960         (inet_ntop, inet_pton): Use it.
38961         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
38962         (closedir, dirfd, opendir, scandir, alphasort): Use it.
38963         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
38964         (open, openat): Use it.
38965         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
38966         (fnmatch): Use it.
38967         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
38968         (getopt, getopt_long, getopt_long_only): Use it.
38969         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
38970         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
38971         Use it.
38972         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
38973         (iconv_open): Use it.
38974         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
38975         (strtoimax, strtoumax): Use it.
38976         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
38977         (duplocale): Use it.
38978         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
38979         (frexp, frexpl): Use it.
38980         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
38981         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
38982         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
38983         (tsearch, tfind, tdelete, twalk): Use it.
38984         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
38985         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
38986         sigpending): Use it.
38987         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
38988         (posix_spawn, posix_spawnp, posix_spawnattr_init,
38989         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
38990         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
38991         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
38992         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
38993         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
38994         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
38995         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
38996         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
38997         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
38998         Use it.
38999         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
39000         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
39001         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
39002         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
39003         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
39004         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
39005         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
39006         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
39007         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
39008         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
39009         strtoull, unsetenv): Use it.
39010         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
39011         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
39012         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
39013         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
39014         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
39015         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
39016         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
39017         (strcasecmp, strncasecmp): Use it.
39018         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
39019         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
39020         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
39021         rpl_setsockopt): Use it.
39022         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
39023         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
39024         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
39025         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
39026         (gettimeofday): Use it.
39027         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
39028         (times): Use it.
39029         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
39030         (uname): Use it.
39031         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
39032         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
39033         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
39034         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
39035         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
39036         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
39037         unlinkat, write): Use it.
39038         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
39039         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
39040         * lib/argv-iter.h: Include arg-nonnull.h.
39041         (_ATTRIBUTE_NONNULL_): Remove macro.
39042         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
39043         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
39044         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
39045         optimization.
39046         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
39047         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
39048         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
39049         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
39050         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
39051         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
39052         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
39053         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
39054         * modules/arpa_inet (Depends-on): Add arg-nonnull.
39055         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
39056         * modules/dirent (Depends-on): Add arg-nonnull.
39057         (Makefile.am): Insert arg-nonnull.h into dirent.h.
39058         * modules/fcntl-h (Depends-on): Add arg-nonnull.
39059         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
39060         * modules/fnmatch (Depends-on): Add arg-nonnull.
39061         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
39062         * modules/getopt-posix (Depends-on): Add arg-nonnull.
39063         (Makefile.am): Insert arg-nonnull.h into getopt.h.
39064         * modules/glob (Depends-on): Add arg-nonnull.
39065         (Makefile.am): Insert arg-nonnull.h into glob.h.
39066         * modules/iconv_open (Depends-on): Add arg-nonnull.
39067         (Makefile.am): Insert arg-nonnull.h into iconv.h.
39068         * modules/inttypes (Depends-on): Add arg-nonnull.
39069         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
39070         * modules/locale (Depends-on): Add arg-nonnull.
39071         (Makefile.am): Insert arg-nonnull.h into locale.h.
39072         * modules/math (Depends-on): Add arg-nonnull.
39073         (Makefile.am): Insert arg-nonnull.h into math.h.
39074         * modules/netdb (Depends-on): Add arg-nonnull.
39075         (Makefile.am): Insert arg-nonnull.h into netdb.h.
39076         * modules/search (Depends-on): Add arg-nonnull.
39077         (Makefile.am): Insert arg-nonnull.h into search.h.
39078         * modules/signal (Depends-on): Add arg-nonnull.
39079         (Makefile.am): Insert arg-nonnull.h into signal.h.
39080         * modules/spawn (Depends-on): Add arg-nonnull.
39081         (Makefile.am): Insert arg-nonnull.h into spawn.h.
39082         * modules/stdio (Depends-on): Add arg-nonnull.
39083         (Makefile.am): Insert arg-nonnull.h into stdio.h.
39084         * modules/stdlib (Depends-on): Add arg-nonnull.
39085         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
39086         * modules/string (Depends-on): Add arg-nonnull.
39087         (Makefile.am): Insert arg-nonnull.h into string.h.
39088         * modules/strings (Depends-on): Add arg-nonnull.
39089         (Makefile.am): Insert arg-nonnull.h into strings.h.
39090         * modules/sys_socket (Depends-on): Add arg-nonnull.
39091         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
39092         * modules/sys_stat (Depends-on): Add arg-nonnull.
39093         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
39094         * modules/sys_time (Depends-on): Add arg-nonnull.
39095         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
39096         * modules/sys_times (Depends-on): Add arg-nonnull.
39097         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
39098         * modules/sys_utsname (Depends-on): Add arg-nonnull.
39099         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
39100         * modules/time (Depends-on): Add arg-nonnull.
39101         (Makefile.am): Insert arg-nonnull.h into time.h.
39102         * modules/unistd (Depends-on): Add arg-nonnull.
39103         (Makefile.am): Insert arg-nonnull.h into unistd.h.
39104         * modules/wchar (Depends-on): Add arg-nonnull.
39105         (Makefile.am): Insert arg-nonnull.h into wchar.h.
39106         * modules/argv-iter (Depends-on): Add arg-nonnull.
39107         * tests/test-canonicalize.c (null_ptr): New function.
39108         (main): Use it.
39109         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
39110         (main): Use it.
39111         * tests/test-memmem.c (null_ptr): New function.
39112         (main): Use it.
39113         Reported by Jim Meyering.
39114
39115 2009-12-10  Bruno Haible  <bruno@clisp.org>
39116
39117         Use spaces for indentation, not tabs.
39118         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
39119         * m4/*.m4: Untabify.
39120         * build-aux/*.h: Untabify.
39121         * tests/**/*.[hc]: Untabify.
39122         * README: New section "Indent with spaces, not TABs", based on
39123         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
39124         * NEWS: Mention the change.
39125
39126 2009-12-10  Bruno Haible  <bruno@clisp.org>
39127
39128         pty test: Fix link error.
39129         * modules/pty-tests (Makefile.am): Add the default LDADD value to
39130         test_pty_LDADD.
39131
39132 2009-12-07  Simon Josefsson  <simon@josefsson.org>
39133
39134         * modules/pty: New file.
39135         * modules/pty-tests: New file.
39136         * m4/pty.m4: New file.
39137         * tests/test-pty.c: New file.
39138         * doc/glibc-headers/pty.texi: Modified.
39139         * doc/glibc-functions/forkpty.texi: Modified.
39140         * doc/glibc-functions/openpty.texi: Modified.
39141
39142 2009-12-10  Bruno Haible  <bruno@clisp.org>
39143
39144         Avoid syntax error in C++ mode.
39145         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
39146
39147 2009-12-10  Bruno Haible  <bruno@clisp.org>
39148
39149         Use sed with option -e.
39150         * gnulib-tool (func_version, func_emit_copyright_notice,
39151         func_emit_initmacro_end, func_import, func_create_testdir): Pass
39152         option -e to sed.
39153         * modules/link-warning (Makefile.am): Likewise.
39154
39155 2009-12-10  Jim Meyering  <meyering@redhat.com>
39156
39157         mgetgroups: do not write bytes beyond end of malloc'd buffer
39158         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
39159         username, we call getgroups with a one-element-shorter buffer,
39160         but still told it the length was original, max_n_groups.
39161
39162 2009-12-09  Eric Blake  <ebb9@byu.net>
39163
39164         cloexec: relax license
39165         * modules/cloexec (Maintainer): Add myself.
39166         (License): Use LGPL, not GPL.
39167
39168         link-warning: optimize generation
39169         * modules/link-warning (Makefile.am): Reduce process usage.
39170
39171 2009-12-09  Bruno Haible  <bruno@clisp.org>
39172
39173         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
39174         workaround was added on 2009-11-17.
39175
39176 2009-12-09  Jim Meyering  <meyering@redhat.com>
39177             Bruno Haible  <bruno@clisp.org>
39178
39179         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
39180         * modules/link-warning (Makefile.am): Make the comment-removing sed
39181         command more robust in the face of bootstrap-prepended comment lines.
39182
39183 2009-12-09  Bruno Haible  <bruno@clisp.org>
39184
39185         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
39186         most one group.
39187
39188 2009-12-09  Simon Josefsson <simon@josefsson.org>
39189             Bruno Haible  <bruno@clisp.org>
39190
39191         * build-aux/link-warning.h: Add copyright notice.
39192         * modules/link-warning (Makefile.am): Generate link-warning.h from
39193         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
39194         * NEWS: Mention change in link-warning module.
39195         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
39196         * modules/dirent (Makefile.am): Add dependency to dirent.h.
39197         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
39198         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
39199         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
39200         * modules/math (Makefile.am): Add dependency to math.h.
39201         * modules/search (Makefile.am): Add dependency to search.h.
39202         * modules/signal (Makefile.am): Add dependency to signal.h.
39203         * modules/spawn (Makefile.am): Add dependency to spawn.h.
39204         * modules/stdio (Makefile.am): Add dependency to stdio.h.
39205         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
39206         * modules/string (Makefile.am): Add dependency to string.h.
39207         * modules/strings (Makefile.am): Add dependency to strings.h.
39208         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
39209         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
39210         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
39211         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
39212         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
39213         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
39214         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
39215         * modules/unistd (Makefile.am): Add dependency to unistd.h.
39216         * modules/wchar (Makefile.am): Add dependency to wchar.h.
39217
39218 2009-12-09  Bruno Haible  <bruno@clisp.org>
39219
39220         fchdir: Optimize away rpl_fstat when possible.
39221         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
39222         REPLACE_OPEN_DIRECTORY.
39223         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
39224
39225 2009-12-09  Bruno Haible  <bruno@clisp.org>
39226
39227         * lib/fchdir.c: Update comment.
39228
39229 2009-12-09  Bruno Haible  <bruno@clisp.org>
39230
39231         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
39232
39233 2009-12-08  Eric Blake  <ebb9@byu.net>
39234
39235         fchdir: avoid memory leak on re-registration.
39236         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
39237
39238 2009-12-08  Jim Meyering  <meyering@redhat.com>
39239
39240         init.sh: avoid Solaris 10 /bin/sh portability problem
39241         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
39242         sourced script:
39243           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
39244           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
39245           bar
39246         tests/init.sh relied on that, accepting a --set-path=DIR argument,
39247         and two tests used that idiom.
39248         * tests/init.sh: Update suggested usage comments.
39249         (path_prepend_): New function, to be used in place
39250         of the --src-path=DIR option.
39251         (setup_): Move PATH-prepending code into path_prepend_.
39252         * tests/test-pread.sh: Adapt to new usage.
39253         * tests/test-xalloc-die.sh: Likewise.
39254
39255 2009-12-08  Simon Josefsson  <simon@josefsson.org>
39256
39257         * doc/gnulib.texi (Glibc pty.h): Add.
39258         * doc/glibc-functions/forkpty.texi: Add.
39259         * doc/glibc-functions/openpty.texi: Add.
39260         Suggested by Bruno Haible.
39261
39262 2009-12-08  Eric Blake  <ebb9@byu.net>
39263
39264         fchdir: fix logic bugs
39265         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
39266         * tests/test-fchdir.c (main): Enhance test.
39267         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
39268         is in use.
39269
39270         dup2: fix logic bugs
39271         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
39272         REPLACE_DUP2 to decide when rpl_dup2 is needed.
39273         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
39274         exists.
39275         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
39276
39277 2009-12-07  Eric Blake  <ebb9@byu.net>
39278
39279         unlink: fix m4 detection
39280         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
39281
39282         unistd-safer: add unit test
39283         * modules/unistd-safer-tests: New file.
39284         * tests/test-dup-safer.c: Likewise.
39285         * tests/test-cloexec.c (setmode): Avoid compiler warning.
39286         * tests/test-dup2.c (setmode): Likewise.
39287         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
39288
39289         cloexec: preserve text vs. binary across dup_cloexec
39290         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
39291         mode.
39292         * modules/dup2-tests (Depends-on): Add binary-io.
39293         * modules/cloexec-tests (Depends-on): Likewise.
39294         * tests/test-dup2.c (setmode, is_mode): New helpers.
39295         (main): Add tests that translation mode is preserved.
39296         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
39297         Reported by Bruno Haible.
39298
39299         mgetgroups: reduce duplicate listings
39300         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
39301         resulting array.
39302         * tests/test-chown.h (test_chown): Simplify client.
39303         * tests/test-lchown.h (test_lchown): Likewise.
39304
39305 2009-12-06  Bruno Haible  <bruno@clisp.org>
39306
39307         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
39308         value.
39309
39310 2009-12-06  Bruno Haible  <bruno@clisp.org>
39311
39312         * lib/progname.c: Include stdio.h, stdlib.h.
39313         (set_program_name): Reject a NULL argument.
39314
39315 2009-12-05  Eric Blake  <ebb9@byu.net>
39316
39317         pipe2-safer: new module
39318         * modules/pipe2-safer: New file.
39319         * lib/unistd-safer.h (pipe2_safer): New prototype.
39320         * lib/unistd--.h (pipe2): New wrapper.
39321         * lib/pipe-safer.c (pipe2_safer): New function.
39322         * modules/pipe (Depends-on): Add pipe2-safer.
39323         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
39324
39325         stdlib-safer: preserve cloexec flag for mkostemp[s]
39326         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
39327         fd_safer_flag.
39328
39329         unistd-safer: allow preservation of cloexec status via flag
39330         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
39331         prototypes.
39332         * lib/dup-safer.c (dup_safer_flag): New function.
39333         * lib/fd-safer.c (fd_safer_flag): Likewise.
39334         * modules/cloexec (configure.ac): Set witness.
39335
39336         test-dup2: enhance test
39337         * modules/dup2-tests (Depends-on): Add cloexec.
39338         * tests/test-dup2.c (main): Enhance test.
39339
39340         cloexec: add dup_cloexec
39341         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
39342         header and comments.
39343         * lib/cloexec.c (set_cloexec_flag): Add comments.
39344         (dup_cloexec): New function, with mingw implementation borrowed
39345         from...
39346         * lib/w32spawn.h (dup_noinherit): ...here.
39347         * modules/execute (Depends-on): Add cloexec.
39348         * modules/pipe (Depends-on): Likewise.
39349         * modules/cloexec (Depends-on): Add dup2.
39350         * modules/cloexec-tests (Files): New file.
39351         * tests/test-cloexec.c: Likewise.
39352
39353         test-xalloc-die: fix test for mingw
39354         * modules/xalloc-die-tests (Files): Add tests/init.sh.
39355         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
39356         directory and .exe suffix off argv[0] output.
39357
39358         test-fseeko: fix test for mingw
39359         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
39360         than undefining fseek, so test will pass on mingw.
39361
39362 2009-12-05  Bruno Haible  <bruno@clisp.org>
39363
39364         * lib/progname.h (set_program_name): Clarify specification.
39365         * lib/progname.c (set_program_name): Likewise.
39366         Reported by Jim Meyering.
39367
39368 2009-12-05  Jim Meyering  <meyering@redhat.com>
39369
39370         maint.mk: backslash-escape parens in default regexp
39371         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
39372         backslash-escape the literal parentheses.
39373
39374         maint.mk: news-date-check: use grep -E
39375         * top/maint.mk (today): Define a Make variable, not a...
39376         (news-date-check): ...shell variable.
39377         (news-date-regexp): Use the Make variable.
39378         Use grep's -E option.  Change the failing diagnostic to mention
39379         the variable, $(news-date-regexp).
39380
39381 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
39382
39383         maintainer-makefile: allow customization of NEWS entry format
39384         * top/maint.mk (news-date-regexp): New overridable variable.
39385         (news-date-check): Use it.
39386
39387 2009-12-04  Eric Blake  <ebb9@byu.net>
39388
39389         mgetgroups: add xgetgroups, and avoid ENOSYS failures
39390         * lib/mgetgroups.h (xgetgroups): New prototype.
39391         * lib/mgetgroups.c (xgetgroups): New wrapper.
39392         (mgetgroups): Handle ENOSYS.
39393         * modules/mgetgroups (Depends-on): Add realloc.
39394         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
39395
39396         mgetgroups: avoid argument promotion issues with -1
39397         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
39398         for invalid gid_t.
39399         * tests/test-chown.h (getegid, test_chown): Likewise.
39400         * tests/test-lchown.h (getegid, test_lchown): Likewise.
39401
39402 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
39403
39404         exclude: Fix header file problems.
39405         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
39406
39407 2009-12-01  Jim Meyering  <meyering@redhat.com>
39408
39409         fts: fts_open: do not let an empty string cause immediate failure
39410         This is required in support of GNU rm, for which the command
39411         "rm A '' B" must process and remove both A and B, in spite of
39412         the empty string argument.
39413         * lib/fts.c (fts_open): Do not let the presence of an empty string
39414         cause fts_open to fail immediately.  Most fts-using tools must be
39415         able to process all arguments, in order, and can be expected to
39416         diagnose such arguments themselves.
39417
39418 2009-11-30  Eric Blake  <ebb9@byu.net>
39419
39420         utimens: fix compilation error
39421         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
39422         Declare variable at right scope.
39423
39424 2009-11-29  Jim Meyering  <meyering@redhat.com>
39425
39426         bootstrap: handle perl-5.11's changed --version output
39427         * build-aux/bootstrap (get_version): Handle perl separately,
39428         since perl-5.11's --version output is different.
39429
39430 2009-11-28  Jim Meyering  <meyering@redhat.com>
39431
39432         userspec: depend on the inttostr module, too
39433         * modules/userspec (Depends-on): Add inttostr.
39434
39435         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
39436         * lib/userspec.c (parse_with_separator): Do not accept a user ID
39437         number of MAXUID when it evaluates to (uid_t) -1.
39438         Likewise for group ID.  Reported by Matt McCutchen in
39439         <http://savannah.gnu.org/bugs/?28113>
39440
39441         userspec: reformat to use spaces, not TABs
39442         * lib/userspec.c: Expand TABs to spaces.
39443         Add Emacs' "indent-tabs-mode: nil" hint.
39444
39445 2009-11-27  Eric Blake  <ebb9@byu.net>
39446
39447         getopt-gnu: flush out another BSD bug
39448         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
39449         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
39450         flush out BSD bug.
39451         * tests/test-getopt.h (test_getopt): End lists with NULL.
39452         * tests/test-getopt_long.h (test_getopt_long): Likewise.
39453         (test_getopt_long_posix): Enhance test.
39454         * modules/getopt-posix-tests (Depends-on): Add stdbool.
39455         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
39456         getopt-gnu.
39457         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
39458         Likewise.
39459
39460 2009-11-27  Simon Josefsson  <simon@josefsson.org>
39461
39462         * modules/idpriv-droptemp-tests (Notice): Fix text.
39463
39464 2009-11-27  Jim Meyering  <meyering@redhat.com>
39465
39466         test-xalloc-die: avoid spurious failure due to libtool argv difference
39467         In a libtool-enabled project, this test would fail due to a difference
39468         in the emitted program name, e.g.,
39469         -test-xalloc-die: memory exhausted
39470         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
39471         Use program to avoid that.
39472         * modules/xalloc-die-tests (Depends-on): Add progname.
39473         * tests/test-xalloc-die.c: Include progname.h".
39474         (program_name): Remove decl.
39475         (main): Call set_program_name.
39476         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
39477
39478 2009-11-26  Richard Jones  <rjones@redhat.com>
39479
39480         w32sock: leave win32 error in place.
39481         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
39482
39483 2009-11-26  Eric Blake  <ebb9@byu.net>
39484
39485         init.sh: suggest to use skip_ and fail_ functions in comments
39486         * tests/init.sh: Add a sentence.
39487
39488 2009-11-25  Bruno Haible  <bruno@clisp.org>
39489
39490         init.sh: add documentation in comments
39491         * tests/init.sh: Add some developer and user documentation.
39492
39493 2009-11-26  Jim Meyering  <meyering@redhat.com>
39494
39495         init.sh: accommodate even those who specify bogus srcdir manually
39496         * tests/init.sh: Normally, srcdir is guaranteed by automake and
39497         configure-time tests to be sanitized, so that there is no need to
39498         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
39499         (with no double quotes) suffices.  However, since tests may be
39500         invoked manually, and since you may explicitly set srcdir to the
39501         name of a directory containing spaces, do quote its uses here.
39502         * tests/test-pread.sh: Likewise.
39503         Suggested by Bruno Haible.
39504
39505         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
39506         * tests/test-pread.sh: Write no data into the pipe, because
39507         test-pread actually reads none.  This avoids a diagnostic,
39508         "bash: echo: write error: Broken pipe", that arises in the unusual
39509         event something is ignoring SIGPIPE, and might be interpreted
39510         as some sort of failure.  Reported by Bruno Haible.
39511
39512 2009-11-25  Jim Meyering  <meyering@redhat.com>
39513
39514         test-pread: cover failure with ESPIPE and EINVAL
39515         * tests/test-pread.c (main): Test for failure, too.
39516         * tests/test-pread.sh: Invoke with stdin on a pipe.
39517         Suggested by Eric Blake.
39518
39519         pread: improvement and fix
39520         * modules/pread (Depends-on): Depend on lseek, for portability to
39521         e.g., mingw.  Suggested by Eric Blake.
39522         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
39523
39524         unistd.in.h: correct declaration of pread
39525         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
39526         Reported by Richard W.M. Jones.
39527
39528         test-pread.sh: distribute the test script
39529         * modules/pread-tests (Files): Include test-pread.sh.
39530
39531         test-pread.sh: clean up
39532         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
39533         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
39534         That is unnecessary, since it's always ".".
39535         Suggestion from Eric Blake.
39536
39537         test-pread.sh: make executable
39538         * tests/test-pread.sh: Set executable bit.
39539         Reported by Eric Blake.
39540
39541         correct typo in test-pread.sh
39542         * tests/test-pread.sh: Add #! line.
39543
39544         test pread
39545         * tests/test-pread.c: New file.
39546         * tests/test-pread.sh: Likewise.
39547         * modules/pread-tests: Likewise.
39548
39549         pread: new module
39550         * modules/pread: New file.
39551         * lib/unistd.in.h (pread): Define/declare.
39552         * lib/pread.c (pread): New file.
39553         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
39554         * modules/unistd (Makefile.am): Substitute witnesses.
39555         * doc/posix-functions/pread.texi (pread): Update.
39556         * MODULES.html.sh: Add pread.
39557
39558 2009-11-25  Jim Meyering  <meyering@redhat.com>
39559
39560         tests/init.sh: new file to be used via most *.sh tests
39561         * tests/init.sh: New file.
39562
39563 2009-11-25  Eric Blake  <ebb9@byu.net>
39564
39565         utimens: work around older Linux failure with symlinks
39566         * lib/utimens.c (lutimensat_works_really): New variable.
39567         (fdutimens, lutimens): Use it to manage kernels that support
39568         nanosecond times on files, but not on symlinks.
39569         Reported by Ondřej Vašík.
39570
39571         utimes: fix configure grammar
39572         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
39573
39574 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
39575
39576         regex: Fix fastmap for multibyte character ranges.
39577         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
39578         characters when a multibyte character range is included.
39579
39580 2009-11-22  Andy Wingo  <wingo@pobox.com>
39581
39582         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
39583         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
39584
39585 2009-11-24  Bruno Haible  <bruno@clisp.org>
39586
39587         doc: Most *_l functions exist in MacOS X 10.5.
39588         * doc/posix-functions/duplocale.texi: Update platforms list.
39589         * doc/posix-functions/freelocale.texi: Likewise.
39590         * doc/posix-functions/newlocale.texi: Likewise.
39591         * doc/posix-functions/uselocale.texi: Likewise.
39592         * doc/posix-functions/isalnum_l.texi: Likewise.
39593         * doc/posix-functions/isalpha_l.texi: Likewise.
39594         * doc/posix-functions/isblank_l.texi: Likewise.
39595         * doc/posix-functions/iscntrl_l.texi: Likewise.
39596         * doc/posix-functions/isdigit_l.texi: Likewise.
39597         * doc/posix-functions/isgraph_l.texi: Likewise.
39598         * doc/posix-functions/islower_l.texi: Likewise.
39599         * doc/posix-functions/isprint_l.texi: Likewise.
39600         * doc/posix-functions/ispunct_l.texi: Likewise.
39601         * doc/posix-functions/isspace_l.texi: Likewise.
39602         * doc/posix-functions/isupper_l.texi: Likewise.
39603         * doc/posix-functions/iswalnum_l.texi: Likewise.
39604         * doc/posix-functions/iswalpha_l.texi: Likewise.
39605         * doc/posix-functions/iswblank_l.texi: Likewise.
39606         * doc/posix-functions/iswcntrl_l.texi: Likewise.
39607         * doc/posix-functions/iswctype_l.texi: Likewise.
39608         * doc/posix-functions/iswdigit_l.texi: Likewise.
39609         * doc/posix-functions/iswgraph_l.texi: Likewise.
39610         * doc/posix-functions/iswlower_l.texi: Likewise.
39611         * doc/posix-functions/iswprint_l.texi: Likewise.
39612         * doc/posix-functions/iswpunct_l.texi: Likewise.
39613         * doc/posix-functions/iswspace_l.texi: Likewise.
39614         * doc/posix-functions/iswupper_l.texi: Likewise.
39615         * doc/posix-functions/iswxdigit_l.texi: Likewise.
39616         * doc/posix-functions/isxdigit_l.texi: Likewise.
39617         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
39618         * doc/posix-functions/strcasecmp_l.texi: Likewise.
39619         * doc/posix-functions/strcoll_l.texi: Likewise.
39620         * doc/posix-functions/strfmon_l.texi: Likewise.
39621         * doc/posix-functions/strftime_l.texi: Likewise.
39622         * doc/posix-functions/strncasecmp_l.texi: Likewise.
39623         * doc/posix-functions/strxfrm_l.texi: Likewise.
39624         * doc/posix-functions/tolower_l.texi: Likewise.
39625         * doc/posix-functions/toupper_l.texi: Likewise.
39626         * doc/posix-functions/towctrans_l.texi: Likewise.
39627         * doc/posix-functions/towlower_l.texi: Likewise.
39628         * doc/posix-functions/towupper_l.texi: Likewise.
39629         * doc/posix-functions/wcscoll_l.texi: Likewise.
39630         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
39631         * doc/posix-functions/wctrans_l.texi: Likewise.
39632         * doc/posix-functions/wctype_l.texi: Likewise.
39633         * doc/glibc-functions/strptime_l.texi: Likewise.
39634         * doc/glibc-functions/strtod_l.texi: Likewise.
39635         * doc/glibc-functions/strtof_l.texi: Likewise.
39636         * doc/glibc-functions/strtol_l.texi: Likewise.
39637         * doc/glibc-functions/strtold_l.texi: Likewise.
39638         * doc/glibc-functions/strtoll_l.texi: Likewise.
39639         * doc/glibc-functions/strtoul_l.texi: Likewise.
39640         * doc/glibc-functions/strtoull_l.texi: Likewise.
39641         * doc/glibc-functions/wcsftime_l.texi: Likewise.
39642         * doc/glibc-functions/wcstod_l.texi: Likewise.
39643         * doc/glibc-functions/wcstof_l.texi: Likewise.
39644         * doc/glibc-functions/wcstol_l.texi: Likewise.
39645         * doc/glibc-functions/wcstold_l.texi: Likewise.
39646         * doc/glibc-functions/wcstoll_l.texi: Likewise.
39647         * doc/glibc-functions/wcstoul_l.texi: Likewise.
39648         * doc/glibc-functions/wcstoull_l.texi: Likewise.
39649
39650 2009-11-24  Bruno Haible  <bruno@clisp.org>
39651
39652         duplocale: Fix logic bug.
39653         * lib/duplocale.c: Don't include <langinfo.h>.
39654         (_NL_LOCALE_NAME): Remove macro.
39655         (rpl_duplocale): Use setlocale instead of nl_langinfo.
39656         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
39657
39658 2009-11-23  Jim Meyering  <meyering@redhat.com>
39659
39660         test-update-copyright: don't hard-code /usr/bin/perl
39661         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
39662         perl to print the current year.  Gilles Espinasse reported that
39663         the replaced use of perl was hard-coded as /usr/bin/perl.
39664
39665 2009-11-23  Bruno Haible  <bruno@clisp.org>
39666
39667         duplocale: Add support for glibc 2.3.x.
39668         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
39669
39670 2009-11-22  Bruno Haible  <bruno@clisp.org>
39671
39672         vasnprintf: Tiny optimization.
39673         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
39674         MacOS X.
39675
39676 2009-11-22  Bruno Haible  <bruno@clisp.org>
39677
39678         Tests for module 'duplocale'.
39679         * modules/duplocale-tests: New file.
39680         * tests/test-duplocale.c: New file.
39681
39682         New module 'duplocale'.
39683         * m4/duplocale.m4: New file.
39684         * lib/locale.in.h (duplocale): New declaration.
39685         * lib/duplocale.c: New file.
39686         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
39687         gl_LOCALE_H_DEFAULTS): New macros.
39688         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
39689         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
39690         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
39691         REPLACE_DUPLOCALE.
39692         * modules/duplocale: New file.
39693         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
39694
39695 2009-11-22  Bruno Haible  <bruno@clisp.org>
39696
39697         * modules/locale-tests (configure.ac): Test for newlocale function.
39698         * tests/test-locale.c: When the system has extended locale functions,
39699         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
39700
39701         locale: Make locale_t available when possible.
39702         * lib/locale.in.h: Include <xlocale.h> when it exists.
39703         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
39704         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
39705         * modules/locale (Depends-on): Add extensions.
39706         (Makefile.am): Also substitute HAVE_XLOCALE_H.
39707         * doc/posix-headers/locale.texi: Document the problem with locale_t.
39708
39709 2009-11-22  Bruno Haible  <bruno@clisp.org>
39710
39711         Add comments.
39712         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
39713         invocation.
39714         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
39715         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
39716         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
39717
39718 2009-11-22  Bruno Haible  <bruno@clisp.org>
39719
39720         error: account for the possibility of freopen (stdout).
39721         * lib/error.c: Include <unistd.h>.
39722         (flush_stdout): New function, extracted from error and error_at_line.
39723         Determine stdout's fd dynamically.
39724         (error, error_at_line): Invoke flush_stdout.
39725         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
39726         * modules/error (Depends-on): Add unistd.
39727
39728 2009-11-22  Bruno Haible  <bruno@clisp.org>
39729
39730         diffseq: Add comment.
39731         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
39732
39733 2009-11-22  Jim Meyering  <meyering@redhat.com>
39734
39735         c-stack: avoid defining an unused static function
39736         * lib/c-stack.c (find_stack_direction): Do not define this function
39737         when it will not be used.
39738
39739         diffseq: avoid spurious gcc warnings
39740         * lib/diffseq.h (IF_LINT2): Define.
39741         (compareseq): Use it to initialize two members of "part".
39742         This avoids two used-uninitialized warnings.
39743
39744 2009-11-21  Jim Meyering  <meyering@redhat.com>
39745
39746         c-stack: avoid "ignoring return value of `write'" warning
39747         * lib/c-stack.c: Include "ignore-value.h".
39748         (die): Explicitly ignore each write return value.
39749         * modules/c-stack (Depends-on): Add ignore-value.
39750
39751 2009-11-21  Bruno Haible  <bruno@clisp.org>
39752
39753         diffseq: reduce scope of variable 'best'.
39754         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
39755         variable, earlier used for two different purposes.
39756
39757 2009-11-21  Jim Meyering  <meyering@redhat.com>
39758
39759         diffseq: remove useless assignment to "best"
39760         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
39761         assignment.  At that point "best" is already guaranteed to be zero.
39762
39763 2009-11-20  Eric Blake  <ebb9@byu.net>
39764
39765         build: mention ftp redirector in release announcements
39766         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
39767         values that used to come from cfg.mk; mention FTP redirect URL.
39768         * build-aux/announce-gen: Mention the mirror list.
39769         Suggested by Karl Berry.
39770
39771         nanosleep: improve port to mingw
39772         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
39773         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
39774         LIB_NANOSLEEP, but only when needed.
39775         * modules/select (Link): Document LIBSOCKET.
39776         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
39777         enough.
39778
39779         nanosleep: work around cygwin bug
39780         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
39781         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
39782         bug.
39783         (getnow): Delete, not needed.
39784         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
39785         LIB_CLOCK_GETTIME.
39786         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
39787         clock-time, gettime.
39788         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
39789         bug.
39790         * modules/nanosleep-tests: New test.
39791         * tests/test-nanosleep.c: New file.
39792
39793         sleep: work around cygwin bug
39794         * lib/sleep.c (rpl_sleep): Work around the bug.
39795         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
39796         (gl_PREREQ_SLEEP): Delete unused macro.
39797         * modules/sleep (Depends-on): Add verify.
39798         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
39799         * modules/unistd (Makefile.am): Substitute witness.
39800         * lib/unistd.in.h (sleep): Update prototype.
39801         * doc/posix-functions/sleep.texi (sleep): Document the bug.
39802         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
39803         * modules/sleep-tests (Depends-on): Check for alarm.
39804
39805 2009-11-20  Jim Meyering  <meyering@redhat.com>
39806
39807         maint.mk: improve sc_prohibit_magic_number_exit
39808         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
39809         so it does not match uses like System.exit(1).
39810         Add comments showing how to correct all offenders.
39811
39812 2009-11-19  Eric Blake  <ebb9@byu.net>
39813
39814         xalloc-die-tests: add missing library
39815         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
39816
39817         test-xvasprintf: silence compiler warnings
39818         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
39819         empty string from gcc.
39820
39821 2009-11-19  Jim Meyering  <meyering@redhat.com>
39822
39823         xfreopen: new module, from coreutils
39824         * modules/xfreopen: New module.
39825         * lib/xfreopen.c: New file.
39826         * lib/xfreopen.h: New file.
39827         * MODULES.html.sh (File stream based Input/Output"): Add it.
39828
39829 2009-11-19  Eric Blake  <ebb9@byu.net>
39830
39831         manywarnings: depend on warnings
39832         * modules/manywarnings (Depends-on): Add warnings.
39833
39834         build: avoid compiler warnings
39835         * lib/select.c (rpl_select): Delete unused variable.
39836         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
39837
39838 2009-11-18  Eric Blake  <ebb9@byu.net>
39839
39840         tests: avoid false negative with --with-packager
39841         * tests/test-version-etc.sh: Discard packager information.
39842         * tests/test-argp-version-etc-1.sh: Likewise.
39843         Reported by Mike Frysinger.
39844
39845         utimens: fix regression on Solaris
39846         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
39847         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
39848         can only change fd timestamps via futimesat.  Instead, use an
39849         additional witness macro to avoid BSD bug.
39850         Reported by Jim Meyering.
39851
39852 2009-11-17  Eric Blake  <ebb9@byu.net>
39853
39854         usleep: use it to simplify tests
39855         * modules/stat-time-tests (Depends-on): Add usleep.
39856         (configure.ac): Drop usleep check.
39857         * modules/chown-tests (Depends-on, configure.ac): Likewise.
39858         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
39859         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
39860         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
39861         * modules/openat-tests (Depends-on, configure.ac): Likewise.
39862         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
39863         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
39864         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
39865         Likewise.
39866         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
39867         * tests/test-lchown.h (nap): Likewise.
39868         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
39869         * tests/test-stat-time.c (nap): Likewise.
39870         * tests/test-utimens-common.h (nap): Update comments.
39871
39872         usleep: new module
39873         * modules/usleep: New file.
39874         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
39875         * lib/usleep.c (usleep): Likewise.
39876         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
39877         * modules/unistd (Makefile.am): Substitute witnesses.
39878         * lib/unistd.in.h (usleep): Add declaration.
39879         * doc/pastposix-functions/usleep.texi (usleep): Document this.
39880         * MODULES.html.sh (Date and time): Likewise.
39881         * modules/usleep-tests (Depends-on): New test.
39882         * tests/test-usleep.c: New file.
39883
39884         chown: work around OpenBSD bug
39885         * lib/chown.c (rpl_chown): Work around the bug.
39886         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
39887         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
39888         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
39889         * modules/chown (Depends-on): Add stdbool.
39890         * modules/lchown (Depends-on): Likewise.
39891         * doc/posix-functions/chown.texi (chown): Document the bug.
39892         * doc/posix-functions/lchown.texi (lchown): Likewise.
39893         * tests/test-lchown.h (test_chown): Relax test.
39894
39895         mkstemp: avoid conflict with C++ keyword template
39896         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
39897         * lib/mkostemp.c (mkostemp): Likewise.
39898         * lib/mkostemps.c (mkostemps): Likewise.
39899         * lib/mkstemp.c (mkstemp): Likewise.
39900         * lib/mkstemps.c (mkstemps): Likewise.
39901
39902         xalloc-die-tests: optimize
39903         * tests/test-xalloc-die.sh: Reduce number of processes.
39904
39905 2009-11-17  Simon Josefsson  <simon@josefsson.org>
39906
39907         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
39908         patch from ludo@gnu.org (Ludovic Courtès).
39909
39910 2009-11-17  Jim Meyering  <meyering@redhat.com>
39911
39912         version-etc: use proper license string
39913         * modules/version-etc (License): Use LGPL, not LGPLv3+.
39914         * modules/version-etc-fsf: Likewise.
39915
39916 2009-11-17  Simon Josefsson  <simon@josefsson.org>
39917
39918         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
39919         printed to stdout.  Deal with EOL differences.
39920
39921 2009-11-17  Eric Blake  <ebb9@byu.net>
39922
39923         unsetenv: work around Solaris bug
39924         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
39925         * lib/unsetenv.c (rpl_unsetenv): Work around it.
39926         Reported by Jim Meyering.
39927
39928         vasnprintf: avoid compiler warnings
39929         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
39930         variables.
39931         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
39932
39933 2009-11-17  Simon Josefsson  <simon@josefsson.org>
39934
39935         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
39936         settings since xalloc-die is no longer the self test,
39937         xalloc-die.sh is.
39938
39939 2009-11-17  Jim Meyering  <meyering@redhat.com>
39940
39941         test-xalloc-die.sh: make the code agree with the commit log
39942         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
39943         at the end, just in case you happen to have a test-xalloc-die
39944         program in some other PATH directory.
39945
39946         test-xalloc-die.sh: fix a portability bug
39947         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
39948         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
39949         Otherwise, argv[0] (as often seen in diagnostics) would be too
39950         system-dependent, sometimes with, and sometimes without the leading "./".
39951
39952         version-etc-fsf: relax license to LGPLv3+
39953         * modules/version-etc-fsf (License): Relax license.
39954
39955 2009-11-16  Eric Blake  <ebb9@byu.net>
39956
39957         xalloc-die-tests: avoid printing null pointer
39958         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
39959         shell script.
39960         * tests/test-xalloc-die.c (program_name): Declare.
39961         * tests/test-xalloc-die.sh (tmpfiles): New file.
39962
39963         setenv, unsetenv: work around various bugs
39964         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
39965         (setenv) [HAVE_SETENV]: Work around bugs.
39966         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
39967         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
39968         for bugs.
39969         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
39970         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
39971         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
39972         * modules/stdlib (Makefile.am): Update substitutions.
39973         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
39974         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
39975         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
39976         * modules/setenv-tests: New test.
39977         * modules/unsetenv-tests: Likewise.
39978         * tests/test-setenv.c: New file.
39979         * tests/test-unsetenv.c: Likewise.
39980
39981 2009-11-16  Jim Meyering  <meyering@redhat.com>
39982
39983         version-etc: relax license to LGPLv3+
39984         * modules/version-etc (License): Relax license.
39985
39986         better AC_REQUIRE expanded-before-required-warning avoidance
39987         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
39988         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
39989         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
39990         which is no longer needed.
39991
39992 2009-11-16  Eric Blake  <ebb9@byu.net>
39993
39994         test-freading: clean up temporary file
39995         * tests/test-freading.c (main): Remove file on success, and use
39996         ASSERT more liberally.
39997         Reported by Jim Meyering.
39998
39999 2009-11-16  Jim Meyering  <meyering@redhat.com>
40000
40001         avoid new AC_REQUIRE expanded-before-required warnings
40002         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
40003         merely using it.
40004         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
40005         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
40006
40007 2009-11-15  Simon Josefsson  <simon@josefsson.org>
40008
40009         * tests/test-xalloc-die.c: New file.
40010         * modules/xalloc-die-tests: New file.
40011         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
40012         XFAIL_TESTS so it can be appended by modules.
40013
40014 2009-11-15  Simon Josefsson  <simon@josefsson.org>
40015
40016         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
40017         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
40018
40019 2009-11-14  Eric Blake  <ebb9@byu.net>
40020
40021         fnmatch: avoid compiler warning
40022         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
40023         to silence compiler warning about mismatch signedness in ?:.
40024         Reported by Robert Millan.
40025
40026         intprops: add double-inclusion guard
40027         * lib/intprops.h: Allow idempotent includes.
40028         Suggested by Bruce Korb.
40029
40030         openat: detect Solaris fchownat bug
40031         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
40032         penalizing glibc chownat when only lchownat is broken.
40033         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
40034         trailing slash bugs.
40035         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
40036         * modules/openat-tests (Files): Include more files.
40037         (Depends-on): Add mgetgroups, sleep, stat-time.
40038         (configure.ac): Add additional checks.
40039         (Makefile.am): Build new test.
40040         * tests/test-fchownat.c: New file.
40041
40042         lchown: detect Solaris and FreeBSD bug
40043         * lib/lchown.c (rpl_lchown): Work around bug.
40044         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
40045         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40046         * modules/unistd (Makefile.am): Populate it.
40047         * lib/unistd.in.h (lchown): Update declaration.
40048         * doc/posix-functions/lchown.texi (lchown): Document the bug.
40049         * modules/lchown-tests: New file.
40050         * tests/test-lchown.h (test_lchown): Likewise.
40051         * tests/test-lchown.c (main): Likewise.
40052
40053         chown: detect Solaris and FreeBSD bug
40054         * lib/chown.c (rpl_chown): Work around bug.
40055         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
40056         (gl_PREREQ_CHOWN): Delete.
40057         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40058         * modules/unistd (Makefile.am): Populate it.
40059         * lib/unistd.in.h (chown): Update declaration.
40060         * lib/lchown.c (chown): Update client.
40061         * modules/lchown (Depends-on): Add lstat.
40062         * doc/posix-functions/chown.texi (chown): Document the bug.
40063         * doc/posix-functions/getgroups.texi (getgroups): Document
40064         getgroups pitfall.
40065         * modules/chown-tests: New file.
40066         * tests/test-chown.h (test_chown): Likewise.
40067         * tests/test-chown.c (main): Likewise.
40068
40069 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
40070
40071         gnulib-tool: correctly detect absence of m4 directories
40072         * gnulib-tool: Avoid extra newline on data passed to wc -l.
40073
40074 2009-11-14  Jim Meyering  <meyering@redhat.com>
40075
40076         maint.mk: Prohibit inclusion of "xalloc.h" without use.
40077         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
40078
40079 2009-11-14  John W. Eaton  <jwe@gnu.org>
40080
40081         strftime.h: wrap function declaration in extern "C" block
40082         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
40083
40084 2009-11-13  Eric Blake  <ebb9@byu.net>
40085
40086         getgroups: avoid compiler warning
40087         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
40088
40089         getgroups: work around FreeBSD bug
40090         * lib/getgroups.c (rpl_getgroups): Work around the bug.
40091         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
40092         * doc/posix-functions/getgroups.texi (getgroups): Document it.
40093         * tests/test-getgroups.c (main): Fix buffer overrun.
40094
40095         getgroups: avoid compilation failure
40096         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
40097         * modules/getgroups (Depends-on): Add stdint.
40098
40099 2009-11-13  Jim Meyering  <meyering@redhat.com>
40100
40101         test-getgroups: avoid compilation failure
40102         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
40103
40104 2009-11-13  Eric Blake  <ebb9@byu.net>
40105
40106         mgetgroups: new module, taken from coreutils
40107         * modules/mgetgroups: New file.
40108         * lib/mgetgroups.h: Likewise.
40109         * lib/mgetgroups.c (mgetgroups): Likewise.
40110         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
40111         * MODULES.html.sh (Users and groups): Mention it.
40112
40113         getgroups: don't expose GETGROUPS_T to user
40114         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
40115         an element at a time if GETGROUPS_T is wrong size.
40116         * lib/getugroups.h (getugroups): Change signature.
40117         * lib/unistd.in.h (getgroups): Likewise.
40118         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
40119         signature needs fixing.
40120         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
40121         AC_TYPE_GETGROUPS.
40122         * modules/group-member (Depends-on): Add getgroups.
40123         * lib/group-member.c (group_info, get_group_info): Use gid_t.
40124         (group_member): Rely on getgroups replacement.
40125         * lib/getugroups.c (getugroups): Use gid_t.
40126         * tests/test-getgroups.c (main): Likewise.
40127         * NEWS: Mention the signature change.
40128         * doc/posix-functions/getgroups.texi (getgroups): Mention the
40129         problem with signature.
40130         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
40131         GETGROUPS_T is still useful for setgroups.
40132
40133         getgroups, getugroups: provide stubs for mingw
40134         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
40135         * lib/getugroups.c (getugroups): Likewise.
40136         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
40137         function.  Modernize replacement scheme.
40138         (gl_PREREQ_GETGROUPS): Delete.
40139         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
40140         * modules/getgroups (configure.ac): Declare witness.
40141         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
40142         * modules/unistd (Depends-on): Substitute witness.
40143         * lib/unistd.in.h (getgroups): Declare replacement.
40144
40145         getgroups: avoid calling exit
40146         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
40147         drop xalloc.
40148         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
40149         dependencies.
40150         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
40151         exiting, in the rare case of malloc failure.
40152
40153         getgroups: fix logic error
40154         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
40155         has more than 20 groups.
40156         * modules/getgroups-tests: New test.
40157         * tests/test-getgroups.c: New file.
40158
40159 2009-11-13  Simon Josefsson  <simon@josefsson.org>
40160
40161         * tests/test-base64.c: Improve.
40162
40163 2009-11-13  Simon Josefsson  <simon@josefsson.org>
40164
40165         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
40166         Blake <ebb9@byu.net>.
40167
40168 2009-11-13  Simon Josefsson  <simon@josefsson.org>
40169
40170         * tests/test-xvasprintf.c: Add %s%s related checks.
40171
40172 2009-11-12  Eric Blake  <ebb9@byu.net>
40173
40174         version-etc: match standards.texi style
40175         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
40176         and use <> only for URLs.
40177
40178 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
40179
40180         fts: do not fail on a submount during traversal
40181         * lib/fts.c (fts_build): Read the stat info again after opening
40182         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
40183         Original report at http://bugzilla.redhat.com/501848.
40184
40185 2009-11-12  Jim Meyering  <meyering@redhat.com>
40186
40187         bootstrap: sync from coreutils
40188         * build-aux/bootstrap (bootstrap_epilogue): New function.
40189         Use git_modules_config in one more place.  This make bootstrap's
40190         --gnulib-srcdir option more useful for testing.
40191
40192         bootstrap: generalize autoheader check
40193         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
40194         AC_CONFIG_HEADERS.
40195
40196 2009-11-11  Eric Blake  <ebb9@byu.net>
40197
40198         mkfifoat: use new modules for Solaris and BSD bugs
40199         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
40200         * lib/mkfifoat.c (mknodat): Split...
40201         * lib/mknodat.c (mknodat): ...into new file.
40202         * modules/mkfifoat (Files): Ship new file.
40203         (Depends-on): Add mkfifo, mknod.
40204         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
40205         (Depends-on): Add symlink.
40206         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
40207         redundant with test_mkfifo.h.
40208         (do_mkfifoat, do_mknodat): New helpers.
40209
40210         mknod: new module
40211         * modules/mknod: New file.
40212         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
40213         * lib/mknod.c (mknod): Likewise.
40214         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
40215         defaults.
40216         * modules/sys_stat (Makefile.am): Substitute them.
40217         * lib/sys_stat.in.h (mknod): Declare replacement.
40218         * MODULES.html.sh (Support for systems lacking POSIX:2008):
40219         Document it.
40220         * doc/posix-functions/mknod.texi (mknod): Likewise.
40221         * modules/mknod-tests: New test.
40222         * tests/test-mknod.c: Likewise.
40223
40224         mkfifo: new module
40225         * modules/mkfifo: New file.
40226         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
40227         * lib/mkfifo.c (mkfifo): Likewise.
40228         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
40229         defaults.
40230         * modules/sys_stat (Makefile.am): Substitute them.
40231         * lib/sys_stat.in.h (mkfifo): Declare replacement.
40232         * MODULES.html.sh (Support for systems lacking POSIX:2008):
40233         Document it.
40234         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
40235         * modules/mkfifo-tests: New test.
40236         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
40237         from test-mkfifoat.c.
40238         * tests/test-mkfifo.c: New file.
40239
40240         readlink: detect FreeBSD bug
40241         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
40242         slash on symlink.
40243         * doc/posix-functions/readlink.texi (readlink): Document the bug.
40244         * tests/test-readlink.h (test_readlink): Enhance test.
40245
40246         symlink: detect FreeBSD bug
40247         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
40248         slash on symlink.
40249         * doc/posix-functions/symlink.texi (symlink): Document the bug.
40250         * tests/test-symlink.h (test_symlink): Enhance test.
40251
40252 2009-11-10  Eric Blake  <ebb9@byu.net>
40253
40254         link: detect FreeBSD bug
40255         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
40256         symlink.
40257         * doc/posix-functions/link.texi (link): Document the bug.
40258         * tests/test-link.h (test_link): Enhance test.
40259         * tests/test-linkat.c (main): Update caller.
40260
40261         unlink, remove: detect FreeBSD bug
40262         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
40263         slash on symlink.
40264         * doc/posix-functions/unlink.texi (unlink): Document the bug.
40265         * doc/posix-functions/remove.texi (remove): Likewise.
40266         * tests/test-unlink.h (test_unlink): Enhance test.
40267         * tests/test-remove.c (main): Likewise.
40268
40269 2009-11-09  Eric Blake  <ebb9@byu.net>
40270
40271         rename: detect FreeBSD bug
40272         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
40273         slash on symlink.
40274         * modules/renameat-tests (Depends-on): Add filenamecat.
40275         * tests/test-rename.h (test_rename): Allow one more errno.
40276         * tests/test-renameat.c (main): Likewise.
40277         * doc/posix-functions/rename.texi (rename): Document the bug.
40278
40279         open: detect FreeBSD bug
40280         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
40281         symlink.
40282         * doc/posix-functions/open.texi (open): Document the bug.
40283         * doc/posix-functions/utimes.texi (utimes): Likewise.
40284         * tests/test-open.h (test_open): Add parameters, and test symlink
40285         handling.
40286         * tests/test-open.c (main): Adjust caller.
40287         * tests/test-fcntl-safer.c (main): Likewise.
40288         * modules/open-tests (Depends-on): Add stdbool, symlink.
40289         * modules/fcntl-safer-tests (Depends-on): Likewise.
40290         * tests/test-openat.c (main): Add test-open tests.
40291
40292         stat: detect FreeBSD bug
40293         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
40294         symlink.
40295         * doc/posix-functions/stat.texi (stat): Document the bug.
40296         * tests/test-stat.h (test_stat_func): Add argument.
40297         * tests/test-stat.c (main): Adjust caller.
40298         * tests/test-fstatat.c (main): Likewise.
40299         * modules/stat-tests (Depends-on): Add stdbool, symlink.
40300         Reported by Jim Meyering.
40301
40302 2009-11-09  James Youngman  <jay@gnu.org>
40303
40304         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
40305         * lib/strftime.c: Correct placement of #include "ignore-value.h".
40306
40307 2009-11-08  Jim Meyering  <meyering@redhat.com>
40308
40309         utimens: remove invalid futimesat call
40310         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
40311         It used the file descriptor of the target file as the DIR_FD
40312         parameter and NULL as the file name.  That caused failure with
40313         errno == EFAULT on FreeBSD-8.0-rc2
40314
40315 2009-11-07  Eric Blake  <ebb9@byu.net>
40316
40317         fflush, freadseek: use fseeko, not fseek
40318         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
40319         (clear_ungetc_buffer): Avoid potential problems on large files.
40320         * lib/freadseek.c (freadseek): Likewise.
40321         * modules/freadseek (Depends-on): Add fseeko.
40322         * modules/fseek (configure.ac): Set a witness.
40323         * tests/test-fflush.c (main): Use fseeko.
40324         * tests/test-fpurge.c (fseek): Disable link warning.
40325         * tests/test-freadable.c (fseek): Likewise.
40326         * tests/test-freading.c (fseek): Likewise.
40327         * tests/test-fseeko.c (fseek): Likewise.
40328         * tests/test-ftell.c (fseek): Likewise.
40329         * tests/test-ftello.c (fseek): Likewise.
40330         * tests/test-fwritable.c (fseek): Likewise.
40331         * tests/test-fwriting.c (fseek): Likewise.
40332
40333 2009-11-06  Simon Josefsson  <simon@josefsson.org>
40334
40335         * modules/memchr (Depends-on): Drop getpagesize dependency.
40336
40337 2009-11-06  Simon Josefsson  <simon@josefsson.org>
40338
40339         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
40340         Reported by Ludovic Courtès.
40341         * build-aux/pmccabe2html: Improve example usage.
40342         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
40343
40344 2009-11-06  Jim Meyering  <meyering@redhat.com>
40345
40346         do-release-commit-and-tag: New module.
40347         Automate the release-commit and tag process.
40348         * build-aux/do-release-commit-and-tag: New script, from coreutils.
40349         * modules/do-release-commit-and-tag: New file.
40350         * MODULES.html.sh (Support for maintaining and releasing): Add it.
40351
40352 2009-11-06  Simon Josefsson  <simon@josefsson.org>
40353
40354         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
40355         because test-select.c uses inet_pton.
40356
40357 2009-11-06  Simon Josefsson  <simon@josefsson.org>
40358
40359         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
40360         GETADDRINFO_LIB.  Bump serial number.
40361         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
40362         Suggested by Eric Blake <ebb9@byu.net>.
40363
40364 2009-11-05  Eric Blake  <ebb9@byu.net>
40365
40366         strtod: detect darwin bug
40367         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
40368         Reported by Leo Davis.
40369
40370         freopen-safer: new module
40371         * modules/freopen-safer: New module.
40372         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
40373         * lib/freopen-safer.c (freopen_safer): New file.
40374         * lib/stdio-safer.h (freopen_safer): New declaration.
40375         * lib/stdio--.h (freopen): New override.
40376         * MODULES.html.sh (File stream based Input/Output): Mention it.
40377         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
40378         freopen-safer module.
40379         * doc/posix-functions/stderr.texi (stderr): Likewise.
40380         * doc/posix-functions/stdin.texi (stdin): Likewise.
40381         * doc/posix-functions/stdout.texi (stdout): Likewise.
40382         * modules/freopen-safer-tests: New test.
40383         * tests/test-reopen-safer.c: New file.
40384
40385 2009-11-05  Jim Meyering  <meyering@redhat.com>
40386
40387         maint.mk: Prohibit inclusion of "close-stream.h" without use.
40388         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
40389
40390 2009-11-05  Simon Josefsson  <simon@josefsson.org>
40391
40392         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
40393
40394 2009-11-05  Simon Josefsson  <simon@josefsson.org>
40395
40396         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
40397
40398 2009-11-05  Simon Josefsson  <simon@josefsson.org>
40399
40400         Fix link error.
40401         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
40402         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
40403
40404 2009-11-05  Simon Josefsson  <simon@josefsson.org>
40405
40406         * tests/test-func.c: Also test value of __func__.
40407
40408 2009-11-05  Simon Josefsson  <simon@josefsson.org>
40409
40410         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
40411         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
40412
40413 2009-11-05  Bruno Haible  <bruno@clisp.org>
40414
40415         Fix link error.
40416         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
40417         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
40418         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
40419
40420 2009-11-05  Bruno Haible  <bruno@clisp.org>
40421
40422         Tests for module 'inet_pton'.
40423         * modules/inet_pton-tests: New file.
40424         * tests/test-inet_pton.c: New file.
40425
40426 2009-11-05  Bruno Haible  <bruno@clisp.org>
40427
40428         Tests for module 'inet_ntop'.
40429         * modules/inet_ntop-tests: New file.
40430         * tests/test-inet_ntop.c: New file.
40431
40432 2009-11-04  Eric Blake  <ebb9@byu.net>
40433
40434         stdlib-safer: wrap all mkstemp variants
40435         * modules/mkostemp (configure.ac): Set witness.
40436         * modules/mkostemps (configure.ac): Likewise.
40437         * modules/mkstemps (configure.ac): Likewise.
40438         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
40439         (mkstemps_safer): Wrap more functions.
40440         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
40441         wrapping.
40442         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
40443         (mkstemps_safer): Implement the wrappers.
40444
40445         mkstemps, mkostemps: new modules
40446         * modules/mkostemps: New module.
40447         * modules/mkstemps: Likewise.
40448         * lib/mkostemps.c (mkostemps): New file.
40449         * lib/mkstemps.c (mkstemps): Likewise.
40450         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
40451         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
40452         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
40453         * modules/stdlib (Makefile.am): Substitute them.
40454         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
40455         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
40456         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
40457         * doc/gnulib.texi (Glibc stdlib.h): Include them.
40458         * MODULES.html.sh (File system functions): Mention them.
40459
40460         tempname: resync from glibc
40461         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
40462         same values for __GT_FILE as glibc.  Abort even when assertions
40463         are disabled.
40464         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
40465         match its value otherwise.  Allow idempotent inclusion.
40466         * lib/mkdtemp.c (mkdtemp): Adjust caller.
40467         * lib/mkostemp.c (mkostemp): Likewise.
40468         * lib/mkstemp.c (mkstemp): Likewise.
40469         * lib/tmpfile.c (tmpfile): Likewise.
40470         * NEWS: Document this.
40471
40472         utimens: fix use of futimens on older Linux
40473         * lib/utimens.c (fdutimens): Use updated, rather than original,
40474         timespec to avoid bug in older Linux kernel.
40475         Reported by Simon Josefsson.
40476
40477 2009-11-04  Bruno Haible  <bruno@clisp.org>
40478
40479         Make num_processors more flexible and consistent.
40480         * lib/nproc.h (enum nproc_query): New type.
40481         (num_processors): Add a 'query' argument.
40482         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
40483         (num_processors): Add a 'query' argument. Test the value of the
40484         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
40485         mingw, count the number of CPUs available for the current process.
40486         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
40487         Check for sched_getaffinity and sched_getaffinity_np.
40488         * modules/nproc (Depends-on): Add c-ctype, extensions.
40489         * NEWS: Mention the change.
40490
40491 2009-11-03  Bruno Haible  <bruno@clisp.org>
40492
40493         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
40494
40495 2009-11-03  Jim Meyering  <meyering@redhat.com>
40496
40497         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
40498         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
40499         if it is defined.
40500
40501 2009-11-02  Eric Blake  <ebb9@byu.net>
40502
40503         mktime, timegm: share common declaration
40504         * lib/mktime-internal.h: New file.
40505         * lib/mktime.c: Use it rather than open-coding a declaration.
40506         * lib/timegm.c: Likewise.
40507         * modules/mktime (Files): Ship it.
40508         * modules/timegm (Files): Likewise.
40509         Suggested by Bruno Haible.
40510
40511         test-update-copyright: update test to match script changes
40512         * tests/test-update-copyright.sh: Avoid hard-coding perl
40513         location.  Don't update *.bak created by earlier runs.
40514
40515 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
40516             Simon Josefsson  <simon@josefsson.org>
40517             Bruno Haible  <bruno@clisp.org>
40518
40519         Fix link error on Solaris 8.
40520         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
40521         also in libnsl. Define also INET_PTON_LIB.
40522         * modules/inet_pton (Link): New section.
40523
40524 2009-11-02  Simon Josefsson  <simon@josefsson.org>
40525             Bruno Haible  <bruno@clisp.org>
40526
40527         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
40528         * modules/inet_ntop (Link): New section.
40529         Reported by Boyan Kasarov <bkasarov@gmail.com>.
40530
40531 2009-11-02  Eric Blake  <ebb9@byu.net>
40532
40533         maint: avoid compiler warnings in m4 macros
40534         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
40535         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
40536
40537 2009-11-02  Simon Josefsson  <simon@josefsson.org>
40538
40539         * m4/pmccabe2html.m4: Remove file.
40540         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
40541         function.  Change maintainer.
40542         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
40543         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
40544         Courtès).
40545
40546 2009-10-31  Eric Blake  <ebb9@byu.net>
40547
40548         fseeko: fix m4 regression
40549         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
40550         regression from 2009-10-27.
40551         Reported by Ralf Wildenhues.
40552
40553 2009-10-31  Jim Meyering  <meyering@redhat.com>
40554
40555         inttostr: aesthetics and improved (compile-time) safety
40556         Define inttype_is_signed rather than inttype_is_unsigned,
40557         since the sole use is via "#if inttype_is_signed".
40558         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
40559         inttype_is_unsigned.
40560         * lib/offtostr.c (inttype_is_signed): Likewise.
40561         * lib/uinttostr.c (inttype_is_signed): Likewise.
40562         * lib/umaxtostr.c (inttype_is_signed): Likewise.
40563         * lib/inttostr.c (inttostr): Use verify to cross-check the
40564         inttype_is_signed value and the signedness of the actual type.
40565         * modules/inttostr (Depends-on): Add verify.
40566
40567 2009-10-30  Eric Blake  <ebb9@byu.net>
40568
40569         build: avoid compiler warnings
40570         * lib/fchmodat.c (lchmod): Mark unused variables.
40571         * lib/getopt.c (_getopt_initialize): Likewise.
40572         * lib/mktime.c (__mktime_internal): Provide prototype.
40573         * lib/inttostr.c (inttostr): Avoid compiler warning even with
40574         older gcc that do not understand #pragma GCC diagnostic.
40575         * lib/uinttostr.c (inttype_is_unsigned): Define.
40576         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
40577
40578 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
40579
40580         stat: fix compilation on AIX
40581         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
40582         only see struct stat64.
40583
40584 2009-10-30  Eric Blake  <ebb9@byu.net>
40585
40586         exclude: make more robust
40587         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
40588         rather than masking a coding bug.
40589         Suggested by Bruno Haible.
40590
40591 2009-10-30  Jim Meyering  <meyering@redhat.com>
40592
40593         perl scripts: remove #!/usr/bin/perl in favor of more portable...
40594         Rather than putting #!/usr/bin/perl on the first line,
40595         start with a variant of what's recommended by "man perlrun" that
40596         invokes the first "perl" program from your shell's search path.
40597         * build-aux/gitlog-to-changelog: Replace #!... as above.
40598         Add a "Local Variables" perl mode setting.
40599         Prompted by a patch from Ludovic Courtès.
40600         Improved by Eric Blake.
40601         * build-aux/useless-if-before-free: Likewise.
40602         * build-aux/announce-gen: Likewise.
40603         * build-aux/update-copyright: Likewise.
40604
40605 2009-10-29  Eric Blake  <ebb9@byu.net>
40606
40607         filenamecat-lgpl: adjust clients
40608         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
40609         filenamecat.
40610         * modules/renameat (Depends-on): Likewise.
40611
40612         filenamecat: split into filenamecat-lgpl
40613         * modules/filenamecat-lgpl: New module.
40614         * modules/filenamecat (Files): Move library-safe files into
40615         filenamecat-lgpl.
40616         (Depends-on): Add filenamecat-lgpl.
40617         (configure.ac): Declare witness.
40618         * lib/filenamecat.h (file_name_concat): Only declare when using
40619         GPL module.
40620         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
40621         Move...
40622         * lib/filenamecat-lgpl.c: ...into new file.
40623         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
40624         (gl_FILE_NAME_CONCAT): Use it.
40625         * MODULES.html.sh (File system functions): Mention new module.
40626
40627         argp: avoid memory leak
40628         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
40629         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
40630         base_name, since the latter malloc()s and can call exit().
40631         Leak introduced 2006-07-03.
40632
40633         dirname-lgpl: adjust clients that don't need full dirname
40634         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
40635         * modules/filenamecat (Depends-on): Likewise.
40636         * modules/linkat (Depends-on): Likewise.
40637         * modules/mkancesdirs (Depends-on): Likewise.
40638         * modules/mkdir (Depends-on): Likewise.
40639         * modules/openat (Depends-on): Likewise.
40640         * modules/savewd (Depends-on): Likewise.
40641         * modules/rename (Depends-on): Likewise.
40642         (License): Relax license.
40643         * modules/mkdir-tests (Depends-on): Drop progname.
40644         (Makefile.am): Delete unneeded LDADD.
40645         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
40646
40647         dirname: split into dirname-lgpl
40648         * modules/dirname-lgpl: New module.
40649         * modules/dirname (Files): Move library-safe files into
40650         dirname-lgpl.
40651         (Depends-on): Add dirname-lgpl.
40652         (configure.ac): Declare witness.
40653         * modules/double-slash-root (License): Relax license.
40654         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
40655         module.
40656         * lib/dirname.c (dir_len, mdir_name): Move...
40657         * lib/dirname-lgpl.c: ...into new file.
40658         * lib/basename.c (last_component, base_len): Move...
40659         * lib/basename-lgpl.c: ...into new file.
40660         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
40661         (gl_DIRNAME): Use it.
40662         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
40663         Mention new module.
40664         * modules/dirname-tests (Depends-on): Add progname.
40665         * tests/test-dirname.c (program_name): Delete.
40666
40667         mkdir: make safe for libraries
40668         * modules/mkdir (Depends-on): Drop xalloc.
40669         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
40670         exit.
40671
40672         tests: avoid some compiler warnings
40673         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
40674         literals.
40675         * tests/test-memchr.c (main): Avoid type mismatch.
40676         * tests/test-arpa_inet.c (main): Avoid unused parameters.
40677         * tests/test-base64.c (main): Likewise.
40678         * tests/test-getdelim.c (main): Likewise.
40679         * tests/test-gethostname.c (main): Likewise.
40680         * tests/test-getline.c (main): Likewise.
40681         * tests/test-netinet_in.c (main): Likewise.
40682         * tests/test-select.c (open_server_socket, main): Likewise.
40683         * tests/test-select-stdin.c (main): Likewise.
40684         * tests/test-sockets.c (main): Likewise.
40685         * tests/test-strsignal.c (main): Likewise.
40686         * tests/test-sys_select.c (main): Likewise.
40687         * tests/test-sys_socket.c (main): Likewise.
40688         * tests/test-u64.c (main): Likewise.
40689         * tests/test-xfprintf-posix.c (main): Likewise.
40690         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
40691
40692         sockets: avoid compiler warning
40693         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
40694
40695         maint: detect usage(1) and other suspicious exits
40696         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
40697
40698 2009-10-29  Jim Meyering  <meyering@redhat.com>
40699
40700         timespec: long-to-int truncation could make timespec_cmp malfunction
40701         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
40702         a multiple of 2^32 nanoseconds as no difference.
40703
40704 2009-10-28  Jim Meyering  <meyering@redhat.com>
40705
40706         fprintftime: wrap macro code argument in "do {...} while(0)"
40707         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
40708         cpy macro must be a statement that can be followed by a semicolon.
40709         Now that the else clause contains a comment and is hence longer
40710         than one line, I require curly braces.  That in turn requires
40711         that we wrap this code block in the standard do...while(0).
40712
40713         fprintftime: remove stray semicolon from previous change
40714         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
40715
40716         fprintftime: avoid a warning about ignored fwrite return value
40717         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
40718         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
40719         that is unsafe.
40720         * modules/fprintftime (Depends-on): Add ignore-value.
40721
40722         exclude: avoid an unwarranted warning
40723         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
40724
40725 2009-10-27  Eric Blake  <ebb9@byu.net>
40726
40727         fseek: avoid compilation failure when fflush is replaced
40728         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
40729         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
40730         module is in use.
40731         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
40732         module is not in use; since REPLACE_FSEEK worked otherwise.
40733         (GNULIB_FTELLO): Likewise for ftell.
40734         Reported by Ian Beckwith and others.
40735
40736 2009-10-27  Bruno Haible  <bruno@clisp.org>
40737
40738         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
40739         Reported by Jim Meyering.
40740
40741 2009-10-27  Jim Meyering  <jim@meyering.net>
40742             Bruno Haible  <bruno@clisp.org>
40743
40744         Avoid warning despite dropping the return value of fwrite.
40745         * lib/unicodeio.c: Include ignore-value.h.
40746         (fwrite_success_callback): Explicitly ignore fwrite's return value.
40747         * modules/unicodeio (Depends-on): Add ignore-value.
40748
40749 2009-10-26  Eric Blake  <ebb9@byu.net>
40750
40751         areadlinkat: fix fallback path
40752         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
40753         pointer and zero.
40754
40755 2009-10-22  Pádraig Brady  <P@draigBrady.com>
40756
40757         Use a better IO block size for modern systems
40758         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
40759         * lib/md2.c: Likewise.
40760         * lib/md4.c: Likewise.
40761         * lib/md5.c: Likewise.
40762         * lib/sha1.c: Likewise.
40763         * lib/sha256.c: Likewise.
40764         * lib/sha512.c: Likewise.
40765
40766 2009-10-22  Eric Blake  <ebb9@byu.net>
40767
40768         tests: avoid several compiler warnings
40769         * tests/test-getcwd.c (main): Avoid buffer underflow.
40770         * tests/test-getdate.c (main): String literals are not safe with
40771         putenv, so use setenv.  Declare unused argument.
40772         * modules/getdate-tests (Depends-on): Add setenv.
40773         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
40774         problems with string literals in char *.
40775         * tests/test-hash.c (main): Avoid shadowing declaration.
40776         (insert_new): Treat string literals as char const *.
40777         * tests/test-getopt.h (test_getopt): Likewise.
40778         (getopt_loop): Alter types to minimize casting elsewhere.
40779         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
40780         (test_getopt_long_posix): Likewise.
40781         (do_getopt_long): Add wrapper to minimize casting.
40782         * tests/test-atexit.c (clear_temp_file): Use void.
40783         * tests/test-areadlink-with-size.c (main): Declare unused
40784         arguments.
40785         * tests/test-areadlink.c (main): Likewise.
40786         * tests/test-areadlinkat-with-size.c (main): Likewise.
40787         * tests/test-areadlinkat.c (main): Likewise.
40788         * tests/test-canonicalize-lgpl.c (main): Likewise.
40789         * tests/test-canonicalize.c (main): Likewise.
40790         * tests/test-dirent-safer.c (main): Likewise.
40791         * tests/test-dirname.c (main): Likewise.
40792         * tests/test-dup2.c (main): Likewise.
40793         * tests/test-fchdir.c (main): Likewise.
40794         * tests/test-fcntl-h.c (main): Likewise.
40795         * tests/test-fcntl-safer.c (main): Likewise.
40796         * tests/test-fdopendir.c (main): Likewise.
40797         * tests/test-fdutimensat.c (main): Likewise.
40798         * tests/test-fflush.c (main): Likewise.
40799         * tests/test-filenamecat.c (main): Likewise.
40800         * tests/test-filevercmp.c (main): Likewise.
40801         * tests/test-fopen-safer.c (main): Likewise.
40802         * tests/test-fopen.c (main): Likewise.
40803         * tests/test-fpending.c (main): Likewise.
40804         * tests/test-fpurge.c (main): Likewise.
40805         * tests/test-freading.c (main): Likewise.
40806         * tests/test-fstatat.c (main): Likewise.
40807         * tests/test-fsync.c (main): Likewise.
40808         * tests/test-futimens.c (main): Likewise.
40809         * tests/test-getndelim2.c (main): Likewise.
40810         * tests/test-gettimeofday.c (main): Likewise.
40811         * tests/test-getopt.c (main): Likewise.
40812         * tests/test-i-ring.c (main): Likewise.
40813         * tests/test-inttypes.c (main): Likewise.
40814         * tests/test-link.c (main): Likewise.
40815         * tests/test-lstat.c (main): Likewise.
40816         * tests/test-math.c (main): Likewise.
40817         * tests/test-md5.c (main): Likewise.
40818         * tests/test-memchr2.c (main): Likewise.
40819         * tests/test-memrchr.c (main): Likewise.
40820         * tests/test-mkdir.c (main): Likewise.
40821         * tests/test-mkdirat.c (main): Likewise.
40822         * tests/test-mkfifoat.c (main): Likewise.
40823         * tests/test-open.c (main): Likewise.
40824         * tests/test-openat-safer.c (main): Likewise.
40825         * tests/test-openat.c (main): Likewise.
40826         * tests/test-quotearg.c (main): Likewise.
40827         * tests/test-rawmemchr.c (main): Likewise.
40828         * tests/test-readlink.c (main): Likewise.
40829         * tests/test-remove.c (main): Likewise.
40830         * tests/test-rename.c (main): Likewise.
40831         * tests/test-renameat.c (main): Likewise.
40832         * tests/test-rmdir.c (main): Likewise.
40833         * tests/test-sha1.c (main): Likewise.
40834         * tests/test-signal.c (main): Likewise.
40835         * tests/test-sigaction.c (main): Likewise.
40836         * tests/test-stat.c (main): Likewise.
40837         * tests/test-stat-time.c (main): Likewise.
40838         * tests/test-stddef.c (main): Likewise.
40839         * tests/test-stdint.c (main): Likewise.
40840         * tests/test-stdio.c (main): Likewise.
40841         * tests/test-stdlib.c (main): Likewise.
40842         * tests/test-strchrnul.c (main): Likewise.
40843         * tests/test-strerror.c (main): Likewise.
40844         * tests/test-string.c (main): Likewise.
40845         * tests/test-strtod.c (main): Likewise.
40846         * tests/test-strverscmp.c (main): Likewise.
40847         * tests/test-symlink.c (main): Likewise.
40848         * tests/test-symlinkat.c (main): Likewise.
40849         * tests/test-sys_stat.c (main): Likewise.
40850         * tests/test-sys_time.c (main): Likewise.
40851         * tests/test-time.c (main): Likewise.
40852         * tests/test-unistd.c (main): Likewise.
40853         * tests/test-unlink.c (main): Likewise.
40854         * tests/test-unlinkat.c (main): Likewise.
40855         * tests/test-utimens.c (main): Likewise.
40856         * tests/test-utimensat.c (main): Likewise.
40857         * tests/test-version-etc.c (main): Likewise.
40858         * tests/test-wchar.c (main): Likewise.
40859         * tests/test-wctype.c (main): Likewise.
40860         * tests/test-xprintf-posix.c (main): Likewise.
40861         * tests/test-posixtm.c (main): Likewise.
40862         (STREQ): Delete unused macro.
40863         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
40864         shadowed variables.
40865         * tests/test-memchr.c (main): Likewise.
40866
40867 2009-10-21  Eric Blake  <ebb9@byu.net>
40868
40869         areadlinkat: avoid failure on older glibc
40870         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
40871         rather than mis-comparing 0 against FUNC_RESULT of char*.
40872
40873 2009-10-21  Bruno Haible  <bruno@clisp.org>
40874
40875         * modules/stpncpy (License): Relicense under LGPLv2+.
40876         Reported by David Lutterkort <lutter@redhat.com>.
40877
40878 2009-10-20  Eric Blake  <ebb9@byu.net>
40879
40880         utimensat: work around Solaris 9 bug
40881         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
40882         has trailing slash bugs.
40883         * tests/test-lutimens.h (test_lutimens): Enhance test.
40884         * tests/test-utimens.h (test_utimens): Likewise.
40885         * doc/posix-functions/utime.texi (utime): Enhance documentation.
40886         * doc/posix-functions/utimes.texi (utimes): Likewise.
40887         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
40888         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
40889         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
40890         * doc/posix-functions/futimens.texi (futimens): Likewise.
40891
40892         fdutimensat: new module
40893         * modules/fdutimensat: New file.
40894         * lib/fdutimensat.c (fdutimensat): Likewise.
40895         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
40896         * MODULES.html.sh (File system functions): Mention module.
40897         * modules/fdutimensat-tests: New test.
40898         * tests/test-fdutimensat.c: Likewise.
40899
40900         doc: regenerate INSTALL
40901         * doc/INSTALL: Reflect recent autoconf update.
40902         * doc/INSTALL.ISO: Likewise.
40903         * doc/INSTALL.UTF-8: Likewise.
40904
40905 2009-10-20  Pádraig Brady  <P@draigBrady.com>
40906
40907         acl: warn if ACL support is not detected
40908         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
40909
40910 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
40911
40912         * lib/nproc.h: Add extern "C" block for C++.
40913
40914 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
40915             Bruno Haible  <bruno@clisp.org>
40916
40917         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
40918         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
40919         * doc/posix-functions/isalpha.texi: Likewise.
40920         * doc/posix-functions/isblank.texi: Likewise.
40921         * doc/posix-functions/iscntrl.texi: Likewise.
40922         * doc/posix-functions/isdigit.texi: Likewise.
40923         * doc/posix-functions/isgraph.texi: Likewise.
40924         * doc/posix-functions/islower.texi: Likewise.
40925         * doc/posix-functions/isprint.texi: Likewise.
40926         * doc/posix-functions/ispunct.texi: Likewise.
40927         * doc/posix-functions/isspace.texi: Likewise.
40928         * doc/posix-functions/isupper.texi: Likewise.
40929         * doc/posix-functions/isxdigit.texi: Likewise.
40930
40931 2009-10-18  Bruno Haible  <bruno@clisp.org>
40932
40933         Tests for module 'isblank'.
40934         * modules/isblank-tests: New file.
40935         * tests/test-isblank.c: New file.
40936
40937         New module 'isblank'.
40938         * lib/isblank.c: New file.
40939         * m4/isblank.m4: New file.
40940         * modules/isblank: New file.
40941         * doc/posix-functions/isblank.texi: Mention the new module.
40942
40943 2009-10-18  Bruno Haible  <bruno@clisp.org>
40944
40945         New module 'ctype'.
40946         * lib/ctype.in.h: New file.
40947         * m4/ctype.m4: New file.
40948         * modules/ctype: New file.
40949         * doc/posix-headers/ctype.texi: Mention the new module.
40950
40951 2009-10-18  Jim Meyering  <meyering@redhat.com>
40952
40953         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
40954         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
40955         right after its initialization, rather than farther down.
40956         Keeping these in close proximity makes it easier to ensure
40957         that each such variable is initialized.  E.g.,
40958
40959             LIB_CLOCK_GETTIME=
40960             AC_SUBST([LIB_CLOCK_GETTIME])
40961
40962         This change also increments these serial numbers.
40963         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
40964         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
40965         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
40966
40967 2009-10-18  Bruno Haible  <bruno@clisp.org>
40968
40969         Don't let environment variables perturb build.
40970         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
40971         (gl_PREREQ_GETHRXTIME): ... not here.
40972
40973 2009-10-18  Bruno Haible  <bruno@clisp.org>
40974
40975         Avoid symlink attack in localcharset module.
40976         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
40977         (O_NOFOLLOW): Define fallback.
40978         (get_charset_aliases): Don't open the file if it is a symbolic link.
40979         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
40980         gl_FCNTL_H.
40981         (gl_FCNTL_H): Require it.
40982         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
40983         * modules/localcharset (Files): Add m4/fcntl_h.m4.
40984         Reported by Fergal Glynn <fglynn@veracode.com>.
40985
40986 2009-10-18  Bruno Haible  <bruno@clisp.org>
40987
40988         Implement nproc for mingw.
40989         * lib/nproc.c: Include <windows.h>
40990         (num_processors): On native Windows platforms, try GetSystemInfo.
40991
40992 2009-10-18  Bruno Haible  <bruno@clisp.org>
40993
40994         Implement nproc for IRIX.
40995         * lib/nproc.c: Include <sys/sysmp.h>.
40996         (num_processors): On IRIX systems, try sysmp.
40997         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
40998
40999 2009-10-18  Bruno Haible  <bruno@clisp.org>
41000
41001         Implement nproc for HP-UX.
41002         * lib/nproc.c: Include <sys/pstat.h>
41003         (num_processors): On HP-UX systems, try pstat_getdynamic.
41004         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
41005         pstat_getdynamic.
41006
41007 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
41008             Bruno Haible  <bruno@clisp.org>
41009
41010         Implement nproc for NetBSD, OpenBSD.
41011         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
41012         (ARRAY_SIZE): New macro.
41013         (num_processors): On BSD systems, try sysctl of HW_NCPU.
41014         * m4/nproc.m4: New file.
41015         * modules/nproc (Files): Add m4/nproc.m4.
41016         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
41017         (Makefile.am): Instead, augment lib_SOURCES.
41018
41019 2009-10-18  Bruno Haible  <bruno@clisp.org>
41020
41021         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
41022         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
41023         sys/param.h.
41024
41025 2009-10-16  Eric Blake  <ebb9@byu.net>
41026
41027         utimensat: new module
41028         * modules/utimensat: New file.
41029         * lib/utimensat.c (utimensat): Likewise.
41030         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
41031         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
41032         so we can work around Linux bugs.
41033         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
41034         * modules/sys_stat (Makefile.am): Substitute them.
41035         * lib/sys_stat.in.h (utimensat): Declare it.
41036         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41037         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
41038         * modules/utimensat-tests: New test.
41039         * tests/test-utimensat.c: Likewise.
41040
41041         utimens: let lutimens work on non-symlinks
41042         * lib/utimens.c (lutimens): Fall back to utimens rather than
41043         failing with ENOSYS, when file is not a symlink.
41044         (utimens): Reduce redirection.
41045         * tests/test-lutimens.h (test_lutimens): Update test to cover
41046         non-symlinks.
41047         * tests/test-utimens.h (test_utimens): Update test to cover
41048         symlinks.
41049         * tests/test-utimens.c (main): Update caller.
41050
41051         utimens: cache whether utimensat syscall works
41052         * lib/utimens.c (utimensat_works_really): New cache variable.
41053         (fdutimens, lutimens): Use it to avoid failing syscall.
41054
41055         test-stat-time, test-utimens: improve portability
41056         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
41057         ext4 on alpha, and for cygwin.
41058         * tests/test-utimens-common.h: New file.
41059         (nap): Factor delays into single function.
41060         * tests/test-lutimens.h (test_lutimens): Use new header.
41061         * tests/test-futimens.h (test_futimens): Likewise.
41062         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
41063         timestamps to occur from same machine, as was done previously for
41064         test_utimens.
41065         * modules/utimens-tests (Files): Ship new file.
41066         * modules/futimens-tests (Files): Likewise.
41067         Reported in part by Jim Meyering.
41068
41069         sys_stat: sort replacement declarations
41070         * lib/sys_stat.in.h: Sort declarations.
41071         * lib/futimens.c (futimens): Fix typo.
41072
41073 2009-10-15  Jim Meyering  <meyering@redhat.com>
41074
41075         don't let environment settings perturb build
41076         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
41077         could cause a configure-time and/or build-time malfunction.
41078         Typically, a configure-time function-in-library test is performed
41079         via code like this:
41080
41081           LIB_VAR=
41082           AC_SUBST([LIB_VAR])
41083           prefix_saved_LIBS=$LIBS
41084             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
41085                        [test "$ac_cv_search_FUNC" = "none required" ||
41086                         LIB_VAR=$ac_cv_search_FUNC])
41087           LIBS=$prefix_saved_LIBS
41088
41089         However, in each of the files affected by this change, the LIB_VAR=
41090         initialization was omitted.  Thus, when set in the environment, its
41091         value would propagate into generated Makefiles when FUNC is not found
41092         in LIB_NAME.
41093         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
41094         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
41095         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
41096
41097 2009-10-14  Eric Blake  <ebb9@byu.net>
41098
41099         fchdir: avoid infinite recursion in mingw
41100         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
41101         recursing.
41102
41103         test-stat-time: port to mingw
41104         * tests/test-stat-time.c (force_unlink): Return a value.
41105         (test_ctime) [W32]: Fix compilation error.
41106         (nap): Don't call usleep with too large an argument.  Use
41107         force_unlink.
41108         * doc/pastposix-functions/usleep.texi (usleep): Document the
41109         portability issue.
41110
41111 2009-10-13  Jim Meyering  <meyering@redhat.com>
41112
41113         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
41114         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
41115         * modules/pipe-filter-ii: Likewise.
41116         * modules/sys_socket-tests: Likewise.
41117         * modules/tsearch-tests: Likewise.
41118         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
41119         (check): Depend on it.
41120
41121 2009-10-12  Eric Blake  <ebb9@byu.net>
41122
41123         utimens-tests: port to NFS file systems
41124         * tests/test-utimens.h (test_utimens): Refactor utimecmp
41125         comparisons to avoid spurious failures from timestamp drift
41126         between NFS machines.
41127
41128 2009-10-12  Eric Blake  <ebb9@byu.net>
41129
41130         stat-time-tests: minor cleanups
41131         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
41132         * tests/test-stat-time.c (nap): Separate assignment from call.
41133         Suggested by Paolo Bonzini and Bruno Haible.
41134
41135         sys_stat: guarantee struct timespec
41136         * lib/sys_stat.in.h (includes): Always include <time.h>
41137         * modules/sys_stat (Depends-on): Add time.
41138         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
41139         mode_t permission values.
41140         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
41141         get at subsecond timestamps.
41142
41143 2009-10-10  Eric Blake  <ebb9@byu.net>
41144
41145         futimens: new module
41146         * modules/futimens: New file.
41147         * lib/futimens.c (futimens): Likewise.
41148         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
41149         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
41150         we can work around Linux bugs.
41151         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
41152         * modules/sys_stat (Makefile.am): Substitute them.
41153         * lib/sys_stat.in.h (futimens): Declare it.
41154         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41155         * doc/posix-functions/futimens.texi (futimens): Likewise.
41156         * modules/futimens-tests: New test.
41157         * tests/test-futimens.c: Likewise.
41158
41159         utimens: introduce fdutimens
41160         * lib/utimens.h (fdutimens): New prototype.
41161         * lib/utimens.c (gl_futimens): Move guts...
41162         (fdutimens): ...to new interface.
41163         * tests/test-utimens.c (do_fdutimens): Use it.
41164
41165         utimens: add UTIME_NOW and UTIME_OMIT support
41166         * lib/utimens.c (validate_timespec, update_timespec): New helper
41167         functions.
41168         (gl_futimens, lutimens): Use them.
41169         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
41170         stdbool, sys_stat.
41171         (Link): Mention resulting library dependency.
41172         * modules/utimecmp (Link): Likewise.
41173         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
41174         (Makefile.am): Pick up library dependency.
41175         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
41176         definition.
41177         * tests/test-sys_stat.c: Test the definitions.
41178         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
41179         * NEWS: Document library dependency.
41180
41181         utimecmp: support symlink timestamps
41182         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
41183         hashing when possible.  Use pathconf when available.
41184         (SYSCALL_RESOLUTION): Recognize tighter resolution.
41185         * modules/utimecmp (Depends-on): Add lstat.
41186
41187         utimens: add lutimens interface
41188         * lib/utimens.c (lutimens): New function.
41189         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
41190         * lib/utimens.h (lutimens): Declare new interface.
41191         * tests/test-utimens.c (main): Enhance test.
41192         * tests/test-lutimens.h (test_lutimens): New file.
41193         * modules/utimens-tests (Files): Distribute it.
41194         (Depends-on): Add symlink.
41195         (configure.ac): Check for usleep.
41196
41197         utimens: validate futimens usage
41198         * lib/utimens.c (gl_futimens): Require valid fd up front, using
41199         fewer syscalls on failure later on.  Avoid compiler warning on
41200         mingw.
41201         * modules/utimens (Depends-on): Add dup2.
41202
41203         utimens: add test
41204         * modules/utimens-tests: New test.
41205         * tests/test-utimens.h: New file.
41206         * tests/test-futimens.h: Likewise.
41207         * tests/test-utimens.c: Likewise.
41208
41209         doc: mention timestamp portability issues
41210         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
41211         instead.
41212         * doc/posix-functions/utime.texi (utime): Likewise.
41213         * doc/posix-functions/utimes.texi (utimes): Likewise.
41214         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
41215         instead.
41216         * doc/posix-functions/futimens.texi (futimens): Mention utimens
41217         module.
41218         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
41219         Mention weakness with symlink timestamps.
41220         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
41221         to utimensat/futimens instead.
41222         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
41223
41224         test-dup2: enhance test
41225         * tests/test-dup2.c (main): Also check AT_FDCWD.
41226
41227         test-stat-time: avoid more spurious failures
41228         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
41229         xfs; and avoid race if the two timestamps cross quantization edge.
41230
41231         relocatable: prefer 'file system' over 'filesystem'
41232         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
41233         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
41234         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
41235         * doc/relocatable.texi (Enabling Relocatability): Likewise.
41236         * lib/relocatable.c (compute_curr_prefix): Likewise.
41237
41238 2009-10-10  Jim Meyering  <meyering@redhat.com>
41239
41240         stat-time-tests: check for the usleep function
41241         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
41242
41243 2009-10-10  Bruno Haible  <bruno@clisp.org>
41244
41245         * modules/xnanosleep: Put the Link section after the Include section.
41246
41247 2009-10-09  Eric Blake  <ebb9@byu.net>
41248
41249         dup2: work around FreeBSD 6.1 bug
41250         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
41251         * doc/posix-functions/dup2.texi (dup2): Document it.
41252         Reported by Nelson H. F. Beebe and Jim Meyering.
41253
41254         test-stat-time: port to buggy NFS clients
41255         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
41256         (test_ctime): Also skip test if mtime and ctime are skewed.
41257
41258         maint: prefer 'file system' over 'filesystem'
41259         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
41260         * doc/posix-functions/lstat.texi (lstat): Likewise.
41261         * lib/file-has-acl.c (file_has_acl): Likewise.
41262         * lib/fwriteerror.c [TEST]: Likewise.
41263         * tests/test-areadlink.h (test_areadlink): Likewise.
41264         * tests/test-areadlinkat-with-size.c (main): Likewise.
41265         * tests/test-areadlinkat.c (main): Likewise.
41266         * tests/test-canonicalize-lgpl.c (main): Likewise.
41267         * tests/test-canonicalize.c (main): Likewise.
41268         * tests/test-fstatat.c (main): Likewise.
41269         * tests/test-linkat.c (main): Likewise.
41270         * tests/test-lstat.h (test_lstat_func): Likewise.
41271         * tests/test-mkdir.h (test_mkdir): Likewise.
41272         * tests/test-readlink.h (test_readlink): Likewise.
41273         * tests/test-remove.c (main): Likewise.
41274         * tests/test-rename.h (test_rename): Likewise.
41275         * tests/test-renameat.c (main): Likewise.
41276         * tests/test-rmdir.h (test_rmdir_func): Likewise.
41277         * tests/test-symlink.h (test_symlink): Likewise.
41278         * tests/test-symlinkat.c (main): Likewise.
41279         * tests/test-unlink.h (test_unlink_func): Likewise.
41280         * tests/test-unlinkat.c (main): Likewise.
41281
41282         maint: make realtime library usage explicit
41283         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
41284         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
41285         * modules/settime (Link): Likewise.
41286         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
41287
41288         test-stat-time: speed up execution
41289         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
41290         warning on mingw.
41291         (nap): New helper function.
41292         (prepare_test): Use it to reduce sleep time.
41293         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
41294         execution.
41295         * modules/stat-time-tests (configure.ac): Check for usleep.
41296
41297 2009-10-09  Jim Meyering  <meyering@redhat.com>
41298
41299         selinux-h: always use getfilecon wrappers
41300         * lib/getfilecon.c: New file.
41301         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
41302         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
41303         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
41304         (fgetfilecon): Provide a stub.
41305         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
41306         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
41307         file unconditionally.
41308         When <selinux/selinux.h> is found, arrange to use wrappers.
41309         * modules/selinux-h (Files): Add getfilecon.c.
41310         (Makefile.am): Substitute include-next-related bits
41311         into the now-always-generated selinux/selinux.h file.
41312         * doc/glibc-functions/lgetfilecon.texi: New file.
41313         * doc/glibc-functions/fgetfilecon.texi: New file.
41314         * doc/glibc-functions/getfilecon.texi: New file.
41315         * doc/glibc-functions/getfilecon-desc.texi: New file.
41316         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
41317         which to pull in the new files.
41318         * MODULES.html.sh (Misc): Add selinux-h.
41319
41320 2009-10-08  Jim Meyering  <meyering@redhat.com>
41321
41322         unistd: fix comment typo
41323         * lib/unistd.in.h (euidaccess): Fix a comment typo.
41324
41325 2009-10-08  Eric Blake  <ebb9@byu.net>
41326
41327         areadlink: use SIZE_MAX consistently
41328         * modules/areadlink (Depends-on): Add stdint.
41329         * modules/areadlink-with-size (Depends-on): Likewise.
41330         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
41331         gives NULL; drop sys/types, since unistd gives size_t; and add
41332         stdint for SIZE_MAX.
41333         (SIZE_MAX): Rely on headers.
41334         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
41335         and add stdint.
41336         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
41337         (SIZE_MAX): Likewise.
41338         (INITIAL_BUF_SIZE): Turn into enum.
41339         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
41340
41341 2009-10-08  Jim Meyering  <meyering@redhat.com>
41342
41343         areadlinkat: avoid compilation failure
41344         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
41345         Fix typo in comment.
41346
41347 2009-10-07  Eric Blake  <ebb9@byu.net>
41348
41349         areadlinkat-with-size: new module
41350         * modules/areadlinkat-with-size: New module.
41351         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
41352         * lib/areadlink.h (areadlinkat): Declare it.
41353         * MODULES.html.sh (File system functions): Mention it.
41354         * modules/areadlinkat-with-size-tests: New test.
41355         * tests/test-areadlinkat-with-size.c: New file.
41356
41357         xreadlinkat: new module
41358         * modules/xreadlinkat: New module.
41359         * lib/xreadlinkat.c (xreadlinkat): New file.
41360         * lib/xreadlink.h (xreadlinkat): Declare it.
41361         * MODULES.html.sh (File system functions): Mention it.
41362
41363         areadlinkat: new module
41364         * lib/at-func.c (FUNC_FAIL): New define.
41365         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
41366         * modules/areadlinkat: New module.
41367         * lib/linkat.c (areadlinkat): Move...
41368         * lib/areadlinkat.c (areadlinkat): ...to new file.
41369         * lib/areadlink.h (areadlinkat): Declare it.
41370         * modules/linkat (Depends-on): Add areadlinkat.
41371         * MODULES.html.sh (File system functions): Mention it.
41372         * modules/areadlinkat-tests: New test.
41373         * tests/test-areadlinkat.c: New file.
41374
41375         areadlink, areadlink-with-size: add tests
41376         * modules/areadlink-tests: New test.
41377         * modules/areadlink-with-size-tests: Likewise.
41378         * tests/test-areadlink.h: New file.
41379         * tests/test-areadlink.c: Likewise.
41380         * tests/test-areadlink-with-size.c: Likewise.
41381
41382         maint: minor cleanups
41383         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
41384         _UNUSED_PARAMETER_ instead.
41385         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
41386         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
41387         * modules/linkat-tests (Files): Distribute test-link.h.
41388
41389         openat, utimens: whitespace cleanup
41390         * lib/openat.c: Prefer space throughout, rather than mix of 8
41391         spaces vs. tabs.
41392         * lib/at-func.c: Likewise.
41393         * lib/utimens.c: Likewise.
41394
41395         openat: avoid using wrong fd
41396         * lib/openat.c (openat_permissive): Reject user's fd if saving the
41397         working directory chooses same fd.
41398         * lib/at-func.c (AT_FUNC_NAME): Likewise.
41399
41400         mkdir, mkdirat: fix cygwin 1.5.x bug
41401         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
41402         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
41403         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
41404         bug.
41405         (gl_PREREQ_MKDIR): Delete unused macro.
41406         * modules/mkdir (Files): Track file rename.
41407         (configure.ac): Update macro name.
41408         * modules/openat (Depends-on): Add mkdir.
41409         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
41410
41411         mkdir, mkdirat: add tests
41412         * modules/mkdir-tests: New test.
41413         * tests/test-mkdir.h: New file.
41414         * tests/test-mkdir.c: Likewise.
41415         * tests/test-mkdirat.c: Likewise.
41416         * modules/openat-tests (Files): Add new files.
41417         (Makefile.am): Run new test.
41418
41419 2009-10-06  Eric Blake  <ebb9@byu.net>
41420
41421         doc: tweak *at function documentation
41422         * doc/posix-functions/faccessat.texi (faccessat): Mention
41423         known issue with replacement.
41424         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
41425         * doc/posix-functions/linkat.texi (linkat): Likewise.
41426         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
41427         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
41428         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
41429         * doc/posix-functions/renameat.texi (renameat): Likewise.
41430         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
41431
41432         openat: fix GNU/Hurd bug in unlinkat
41433         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
41434         broken.
41435         * doc/posix-functions/unlink.texi (unlink): Document this.
41436         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
41437
41438         fdopendir: fix GNU/Hurd bug
41439         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
41440         allowing non-directory fds.
41441         * lib/fdopendir.c (rpl_fdopendir): Work around it.
41442         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
41443         * modules/dirent (Makefile.am): Substitute it.
41444         * lib/dirent.in.h (fdopendir): Declare replacement.
41445         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
41446         * tests/test-fdopendir.c (main): Test something other than
41447         /dev/null, since on Hurd that behaves like a directory.
41448
41449         test-symlink: port to GNU/Hurd
41450         * tests/test-symlink.h (test_symlink): Relax expected errno.
41451
41452         doc: tweak more cygwin information
41453         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
41454         now compatible with glibc.
41455         * doc/posix-functions/getopt.texi (getopt): Likewise.
41456
41457         getopt-gnu: add another test
41458         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
41459         guarantee behavior relied on by m4.
41460         * tests/test-getopt.c (main): Use it.
41461         * modules/getopt-posix-tests (Depends-on): Add setenv.
41462         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
41463
41464         getopt: fix compilation on darwin
41465         * lib/getopt.in.h (includes): Leave breadcrumbs during system
41466         include.
41467         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
41468         Reported by Ludovic Courtès.
41469
41470 2009-10-06  Bruno Haible  <bruno@clisp.org>
41471
41472         * modules/size_max (Description): Discourage its use.
41473         Reported by Simon Josefsson.
41474
41475 2009-10-06  Jim Meyering  <meyering@redhat.com>
41476
41477         linkat: avoid compilation failure
41478         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
41479
41480 2009-10-05  Eric Blake  <ebb9@byu.net>
41481
41482         linkat: support Linux 2.6.17
41483         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
41484         linkat on Linux, but allow cache variable override.
41485         * lib/linkat.c (rpl_linkat): Define override.
41486         * modules/linkat (Depends-on): Add symlinkat.
41487         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
41488         * modules/unistd (Makefile.am): Substitute it.
41489         * lib/unistd.in.h (linkat): Declare replacement.
41490         Reported by Pádraig Brady.
41491
41492         quotearg: port test to systems with C.UTF-8 locale
41493         * tests/test-quotearg.c (struct result_strings): Add another
41494         member, differentiating between C.ASCII and C.UTF-8 handling.
41495         (compare_strings): Add parameter.
41496         (main): Adjust all callers.
41497
41498         getopt: avoid clash with FreeBSD _getopt_internal
41499         * lib/getopt.in.h (_getopt_internal): Override the name.
41500         * lib/getopt_int.h (includes): Pick up any overrides.
41501         Reported by Reuben Thomas.
41502
41503         hash: allow C89 compilation
41504         * lib/hash.c (check_tuning): Move declaration before statement.
41505         Reported by Reuben Thomas.
41506
41507 2009-10-05  Karl Berry  <karl@gnu.org>
41508
41509         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
41510
41511 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
41512             Bruno Haible  <bruno@clisp.org>
41513
41514         * lib/uname.c (uname): Use a table-driven algorithm to compute
41515         Windows NT versions.
41516
41517 2009-10-04  Bruno Haible  <bruno@clisp.org>
41518
41519         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
41520         program_invocation_short_name.
41521         * modules/progname (configure.ac): Test for presence of
41522         program_invocation_short_name.
41523         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
41524
41525 2009-10-04  Bruno Haible  <bruno@clisp.org>
41526
41527         * lib/progname.c (set_program_name): Fix comment.
41528         Reported by Jim Meyering.
41529
41530 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
41531             Bruno Haible  <bruno@clisp.org>
41532
41533         * lib/uname.c: Include <string.h>.
41534         (uname): Do only one call to GetVersionEx in the common case.
41535
41536 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
41537             Bruno Haible  <bruno@clisp.org>
41538
41539         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
41540         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
41541         (uname): Add support for Windows CE and various non-x86 CPU types.
41542
41543 2009-10-03  Bruno Haible  <bruno@clisp.org>
41544
41545         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
41546         invocation to tests/configure.ac.
41547         Reported by Ian Beckwith <ianb@erislabs.net>.
41548
41549 2009-10-02  Eric Blake  <ebb9@byu.net>
41550
41551         fchdir: avoid compiler warning
41552         * lib/fchdir.c (canonicalize_file_name)
41553         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
41554
41555         test-open: support mingw errno values
41556         * tests/test-open.h (test_open): Relax test.
41557         * tests/test-fopen.h (test_fopen): Likewise.
41558         * tests/test-openat-safer.c (main): Likewise.
41559
41560         open: fix opening directory on mingw
41561         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
41562
41563         test-open: on GNU/Hurd, /dev/null is a directory
41564         * tests/test-fopen.h (main): Rename...
41565         (test_fopen): ...to this.  Use a guaranteed non-directory when
41566         confirming open behavior on trailing slash.
41567         * tests/test-openat-safer.c (main): Likewise.
41568         * tests/test-open.h (main): Likewise....
41569         (test_open): ...to this.
41570         * tests/test-fopen.c (main): Adjust caller.
41571         * tests/test-fopen-safer.c (main): Likewise.
41572         * tests/test-open.c (main): Likewise.
41573         * tests/test-fcntl-safer.c (main): Likewise.
41574         Reported by Samuel Thibault.
41575
41576         rename, fchdir: don't ignore chdir failure
41577         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
41578         * lib/rename.c (rpl_rename) [W32]: Likewise.
41579         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
41580         an empty destination directory if source cannot be renamed,
41581         although there is still possibility for failure.
41582         * doc/posix-functions/rename.texi (rename): Document the race.
41583         Reported by Jim Meyering.
41584
41585         maint: cleanup whitespace in recent commits
41586         * lib/rename.c (rpl_rename): Remove tabs.
41587         * tests/test-link.h (test_link): Likewise.
41588         * lib/fchdir.c (get_name): Likewise.
41589         Reported by Jim Meyering.
41590
41591 2009-10-02  Ben Pfaff  <blp@gnu.org>
41592
41593         relocatable-prog-wrapper: Add missing dependency on
41594         double-slash-root.
41595         * modules/relocatable-prog-wrapper: Add dependency.
41596         Reported by Ian Beckwith <ianb@erislabs.net>.
41597
41598 2009-10-02  Eric Blake  <ebb9@byu.net>
41599
41600         renameat: fix Solaris bugs
41601         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
41602         needed fixing.
41603         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
41604         * modules/stdio (Makefile.am): Substitute it.
41605         * lib/stdio.in.h (renameat): Declare replacement.
41606         * lib/renameat.c (rpl_renameat): Implement fix.
41607
41608         renameat: new module
41609         * modules/renameat: New file.
41610         * lib/renameat.c (renameat): Likewise.
41611         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
41612         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
41613         * modules/stdio (Makefile.am): Substitute them.
41614         * lib/stdio.in.h (renameat): Declare it.
41615         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41616         * doc/posix-functions/renameat.texi (renameat): Likewise.
41617         * modules/renameat-tests: New test.
41618         * tests/test-renameat.c: Likewise.
41619
41620         rename: fix mingw bugs
41621         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
41622         directory overwrite bugs.
41623
41624         rename: fix another cygwin 1.5 bug
41625         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
41626         checks.
41627         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
41628         unnecessary cygwin workarounds.  Also work around bug with moving
41629         full directory onto an empty one.
41630         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
41631
41632         rename-dest-slash: merge into rename module
41633         * modules/rename-dest-slash (Status): Mark obsolete.
41634         (Depends-on): Add rename.
41635         (Files): Let rename do it all.
41636         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
41637         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
41638         * m4/rename-dest-slash.m4: ...so this file can be deleted.
41639         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
41640         * lib/rename.c (rpl_rename): Update comments.
41641
41642         rename: fix cygwin 1.5.x bugs
41643         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
41644         * lib/rename.c (rpl_rename): Work around them.
41645         * modules/rename (Depends-on): Add same-inode.
41646
41647         rename: fix Solaris 10 bug
41648         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
41649         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
41650         was the only bug.
41651
41652         rename: fix Solaris 9 bug
41653         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
41654         on non-directory.  Avoid calling exit.
41655         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
41656         strdup.
41657         * modules/rename-tests (Depends-on): Drop lstat.
41658         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
41659         (gl_PREREQ_RENAME): Delete unused macro.
41660
41661         rename-dest-slash: fix NetBSD bug
41662         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
41663         links.
41664         * modules/rename-dest-slash (Depends-on): Add same-inode.
41665
41666         rename-tests: new test, exposes several platform bugs
41667         * modules/rename-tests: New file.
41668         * tests/test-rename.h: Likewise.
41669         * tests/test-rename.c: Likewise.
41670         * doc/posix-functions/rename.texi (rename): Improve documentation,
41671         including bugs that will eventually be fixed in gnulib.
41672
41673 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
41674
41675         * lib/uname.c: Include <stdlib.h>
41676         (uname): Assume version info is available.
41677
41678 2009-10-02  Jim Meyering  <meyering@redhat.com>
41679
41680         gnu-web-doc-update: correct --help output
41681         * build-aux/gnu-web-doc-update: Make --help output relevant.
41682
41683         gnu-web-doc-update: add standard options
41684         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
41685
41686         gnu-web-doc-update: New module.
41687         Use this script to automatically update the on-line web documentation
41688         for your GNU project at http://www.gnu.org/software/$pkg/manual/
41689         * modules/gnu-web-doc-update: New file, from coreutils.
41690         * build-aux/gnu-web-doc-update: New script.
41691
41692 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
41693
41694         link: LoadLibrary is not needed.
41695         * lib/link.c: Use GetModuleHandle.
41696
41697 2009-10-01  Eric Blake  <ebb9@byu.net>
41698
41699         getopt: bump serial number
41700         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
41701         change.
41702
41703         tests: tighten link, rmdir, and remove tests
41704         * tests/test-link.h (includes): No need to use <config.h> here.
41705         Clean up if directory hard link was created, otherwise test for
41706         trailing '.'.
41707         * tests/test-linkat.c (main): Simplify.
41708         * tests/test-remove.c (main): Enhance test for trailing '.'.
41709         * tests/test-rmdir.h (test_rmdir_func): Likewise.
41710
41711 2009-10-01  Jim Meyering  <meyering@redhat.com>
41712
41713         maint.mk: requiring "make major" was annoying, for a "minor" release.
41714         What is intended is "stable", to contrast with alpha and beta,
41715         so require "make stable", not "make major".
41716         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
41717         (get_tool_versions): Likewise.
41718         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
41719
41720 2009-09-30  Ben Pfaff  <blp@gnu.org>
41721
41722         Fix broken build of replacement for Windows tmpfile().
41723         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
41724         flags argument added along with the 'mkostemp' module.
41725
41726 2009-09-28  Bruno Haible  <bruno@clisp.org>
41727
41728         Avoid identifier clash with POSIX function 'remove' defined as a macro.
41729         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
41730         to 'remove_elt'.
41731         (gl_list_remove): Update.
41732         * lib/gl_list.c (gl_list_remove): Update.
41733         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
41734         to 'remove_elt'.
41735         (gl_oset_remove): Update.
41736         * lib/gl_list.c (gl_oset_remove): Update.
41737         Reported by Eric Blake.
41738
41739 2009-09-28  Eric Blake  <ebb9@byu.net>
41740
41741         doc: mention yet more cygwin 1.7 status
41742         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
41743         cygwin.
41744         * doc/glibc-functions/execvpe.texi (execvpe): New file.
41745         * doc/gnulib.texi (Glibc unistd.h): Mention it.
41746
41747         argp: fix test failure
41748         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
41749         that are not upper-case.  Pass correct range to tolower.
41750
41751 2009-09-27  Jim Meyering  <meyering@redhat.com>
41752
41753         test-yesno: work around sparc-dash here-document infelicity
41754         Without this change, the literal \177 byte in a here document
41755         would make dash 0.5.5.1-3 access uninitialized memory.
41756         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
41757         Instead, use a marker, "@", and filter through tr to create the desired
41758         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
41759
41760 2009-09-27  Bruno Haible  <bruno@clisp.org>
41761
41762         Disable untested support for new flavours of ACLs on AIX.
41763         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
41764         progress.
41765         * lib/set-mode-acl.c (qset_acl): Likewise.
41766
41767 2008-12-07  Bruno Haible  <bruno@clisp.org>
41768
41769         Add support for new flavours of ACLs on AIX. (Untested.)
41770         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
41771         (file_has_acl): Add support for newer AIX.
41772         * lib/set-mode-acl.c (qset_acl): Likewise.
41773         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
41774         Rainer Tammer <tammer@tammer.net>.
41775
41776 2009-09-26  Eric Blake  <ebb9@byu.net>
41777
41778         argp: fix compilation of getopt
41779         * lib/getopt.in.h (includes): Use different guard than glibc.
41780         Reported by Sergey Poznyakoff.
41781
41782         doc: mention more cygwin 1.7 status
41783         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
41784         bug.
41785         * doc/posix-functions/execl.texi (execl): Likewise.
41786         * doc/posix-functions/execle.texi (execle): Likewise.
41787         * doc/posix-functions/execlp.texi (execlp): Likewise.
41788         * doc/posix-functions/execv.texi (execv): Likewise.
41789         * doc/posix-functions/execve.texi (execve): Likewise.
41790         * doc/posix-functions/execvp.texi (execvp): Likewise.
41791         * doc/glibc-functions/canonicalize_file_name.texi
41792         (canonicalize_file_name): Cygwin 1.7 now provides this.
41793         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
41794         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
41795         on AT_SYMLINK_NOFOLLOW.
41796
41797 2009-09-24  Eric Blake  <ebb9@byu.net>
41798
41799         test-linkat: make test more robust
41800         * tests/test-linkat.c (main): Avoid collision with EEXIST.
41801
41802         getopt: fix inclusion guards for cygwin
41803         * modules/getopt-posix (Depends-on): Add include-next.
41804         (Makefile.am): Substitute more items in replacement header.
41805         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
41806         <getopt.h>.
41807         * lib/getopt.in.h (includes): Use split inclusion guard, and
41808         prefer <getopt.h> over include <unistd.h> when one is present.
41809         (option): Also override name of 'struct option'.
41810
41811         same-inode: revert prior change; it is not yet ready
41812         * NEWS: Undo mention of this change.
41813         * lib/same-inode.h (same-inode.h): Undo tri-state change.
41814         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
41815         * lib/cycle-check.c (cycle_check): Likewise.
41816         * lib/same.c (same_name): Likewise.
41817         * lib/at-func2.c (at_func2): Likewise.
41818
41819 2009-09-23  Eric Blake  <ebb9@byu.net>
41820
41821         linkat: new module
41822         * modules/linkat: New file.
41823         * lib/at-func2.c (at_func2): Likewise.
41824         * lib/linkat.c (linkat): Likewise.
41825         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
41826         * lib/openat-priv.h (at_func2): Add declaration.
41827         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
41828         * modules/unistd (Makefile.am): Substitute them.
41829         * lib/unistd.in.h (linkat): Declare it.
41830         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41831         * doc/posix-functions/linkat.texi (linkat): Likewise.
41832         * doc/posix-functions/link.texi (link): Tweak wording.
41833         * tests/test-link.c (main): Move guts...
41834         * tests/test-link.h (test_link): ...into new file.
41835         * modules/linkat-tests: New test.
41836         * tests/test-linkat.c: Likewise.
41837         * modules/link-tests (Files): Ship new file.
41838         (Depends-on): Add stdbool.
41839
41840         dirname: add library-safe mdir_name
41841         * lib/dirname.h (mdir_name): New prototype.
41842         * lib/dirname.c (dir_name): Move guts...
41843         (mdir_name): ...to new function that avoids xalloc_die.
41844
41845         fchdir: another mingw fix
41846         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
41847         * lib/fchdir.c (get_name): New helper method; skips canonicalize
41848         on mingw (where it has not yet been ported), and make it optional
41849         elsewhere.
41850         (_gl_register_fd): Use it.
41851
41852         same-inode: make SAME_INODE tri-state, to port to mingw
41853         * NEWS: Mention this change.
41854         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
41855         st_ino always being 0.
41856         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
41857         * lib/cycle-check.c (cycle_check): Likewise.
41858         * lib/same.c (same_name): Likewise.
41859
41860         lstat: avoid mingw compilation error
41861         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
41862         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
41863         lstat ourselves.
41864         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
41865         was adequate.
41866         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
41867         the checks for lstat.
41868         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
41869
41870         link: fix test failure on Solaris 9
41871         * lib/link.c (rpl_link): Don't assume link will catch bogus
41872         trailing slash on source.
41873
41874         test-symlinkat: enhance test
41875         * tests/test-readlink.c (main): Move guts...
41876         * tests/test-readlink.h (test_readlink): ...into new file.
41877         * tests/test-symlink.c (main): Move guts...
41878         * tests/test-symlink.h (test_symlink): ...into new file.
41879         * tests/test-symlinkat.c (main): Use new files for further
41880         coverage.
41881         (do_symlink, do_readlink): New helper functions.
41882         * modules/symlink-tests (Files): Ship new file.
41883         (Depends-on): Add stdbool.
41884         * modules/readlink-tests (Files): Ship new file.
41885         (Depends-on): Add stdbool.
41886         * modules/symlinkat-tests (Files): Use new files.
41887
41888 2009-09-23  Eric Blake  <ebb9@byu.net>
41889
41890         readlink: document portability issue with symlink length
41891         * doc/posix-functions/lstat.texi (lstat): Mention that some file
41892         systems have bogus st_size on symlinks, and mention the
41893         areadlink-with-size module.
41894         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
41895         * doc/posix-functions/readlink.texi (readlink): Mention the
41896         areadlink module, and ERANGE failure.
41897         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
41898         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
41899
41900         readlink: fix Solaris 9 bug with trailing slash
41901         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
41902         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
41903         * doc/posix-functions/readlink.texi (readlink): Document this.
41904         * modules/readlink-tests: New test.
41905         * tests/test-readlink.c: Likewise.
41906
41907         readlink: fix cygwin 1.5.x bug with return type
41908         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
41909         * lib/unistd.in.h (readlink): Use ssize_t.
41910         * lib/readlink.c (readlink): Likewise.
41911         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41912         * modules/unistd (Makefile.am): Substitute it.
41913         * lib/unistd.in.h (readlink): Declare replacement.
41914         * doc/posix-functions/readlink.texi (readlink): Document this.
41915
41916         symlink: use throughout gnulib
41917         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
41918         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
41919         symlink is not used.
41920         * modules/symlinkat (Depends-on): Add symlink.
41921         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
41922         * modules/canonicalize-tests (Depends-on): Likewise.
41923         * modules/lstat-tests (Depends-on): Likewise.
41924         * modules/openat-tests (Depends-on): Likewise.
41925         * modules/remove-tests (Depends-on): Likewise.
41926         * modules/rmdir-tests (Depends-on): Likewise.
41927         * modules/unlink-tests (Depends-on): Likewise.
41928         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
41929         * tests/test-canonicalize.c (symlink): Likewise.
41930         * tests/test-fstatat.c (symlink): Likewise.
41931         * tests/test-lstat.c (symlink): Likewise.
41932         * tests/test-remove.c (symlink): Likewise.
41933         * tests/test-rmdir.c (symlink): Likewise.
41934         * tests/test-unlink.c (symlink): Likewise.
41935         * tests/test-unlinkat.c (symlink): Likewise.
41936
41937         symlink: new module, for Solaris 9 bug
41938         * modules/symlink: New file.
41939         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
41940         * lib/symlink.c: Likewise.
41941         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
41942         * modules/unistd (Makefile.am): Substitute them.
41943         * lib/unistd.in.h (symlink): Declare replacement.
41944         * MODULES.html.sh (File system functions): Mention it.
41945         * doc/posix-functions/symlink.texi (symlink): Likewise.
41946         * modules/symlink-tests: New test.
41947         * tests/test-symlink.c: Likewise.
41948
41949 2009-09-23  Bruno Haible  <bruno@clisp.org>
41950
41951         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
41952         when needed.
41953         Test case: gnulib-tool --import --with-tests atexit inttypes.
41954         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
41955
41956 2009-09-23  Bruno Haible  <bruno@clisp.org>
41957
41958         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
41959         subcommand, not in a subshell.
41960
41961 2009-09-22  Eric Blake  <ebb9@byu.net>
41962
41963         unistd: sort replacement declarations
41964         * lib/unistd.in.h: Sort declarations.
41965
41966         open, openat: minor optimization
41967         * lib/open.c (open): If open succeeded, len is non-zero.
41968         * lib/openat.c (rpl_openat): Likewise.
41969
41970         link-follow: ensure correct result
41971         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
41972         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
41973         distinguish between possible failures.
41974
41975 2009-09-21  Eric Blake  <ebb9@byu.net>
41976
41977         fts: avoid compiler warning
41978         * lib/fts.c (dirent_inode_sort_may_be_useful)
41979         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
41980
41981 2009-09-19  Bruno Haible  <bruno@clisp.org>
41982
41983         * lib/progreloc.c (canonicalize_file_name): New declaration.
41984
41985 2009-09-19  Eric Blake  <ebb9@byu.net>
41986
41987         link: fix quoting
41988         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
41989
41990         openat: fix openat bugs on Solaris 9
41991         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
41992         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
41993         * modules/openat (Depends-on): Add open.
41994         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
41995         * modules/fcntl-h (Makefile.am): Substitute it.
41996         * lib/fcntl.in.h (openat): Declare replacement.
41997         * doc/posix-functions/openat.texi (openat): Document this.
41998
41999         openat: move fstatat and unlinkat into correct files
42000         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
42001         compiled.
42002         * lib/openat.c (fstatat, unlinkat): Move...
42003         * lib/fstatat.c (fstatat): ...into correct files.
42004         * lib/unlinkat.c (unlinkat): Likewise.
42005
42006         openat: fix unlinkat bugs on Solaris 9
42007         * lib/unlinkat.c (unlinkat): New file.
42008         * modules/openat (Depends-on): Add unlink.
42009         (Files): Distribute it.
42010         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
42011         trailing slash behavior is broken.
42012         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
42013         * modules/unistd (Makefile.am): Substitute it.
42014         * lib/unistd.in.h (unlinkat): Declare replacement.
42015         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
42016
42017         openat: fix fstatat bugs on Solaris 9
42018         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
42019         stat.
42020         * doc/posix-functions/fstatat.texi (fstatat): Document this.
42021
42022         test-unlinkat: enhance test, to expose Solaris 9 bug
42023         * tests/test-unlink.c (main): Factor guts...
42024         * tests/test-unlink.h (test_rmdir_func): ...into new file.
42025         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
42026         * tests/test-rmdir.c (main): Adjust caller.
42027         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
42028         (unlinker): New helper function.
42029         (rmdirat): Enhance check.
42030         * modules/rmdir-tests (Depends-on): Add stdbool.
42031         * modules/unlink-tests (Depends-on): Likewise.
42032         (Files): Add test-unlink.h.
42033         * modules/openat-tests (Files): Likewise.
42034         (Depends-on): Add unlinkdir.
42035
42036         test-fstatat: new test, to expose Solaris 9 bugs
42037         * tests/test-stat.c (main): Factor guts...
42038         * tests/test-stat.h (test_stat_func): ...into new file.
42039         * tests/test-lstat.c (main): Factor guts...
42040         * tests/test-lstat.h (test_lstat_func): ...into new file.
42041         * tests/test-fstatat.c: New file.
42042         * modules/stat-tests (Files): Add test-stat.h.
42043         * modules/lstat-tests (Files): Add test-lstat.h.
42044         (Depends-on): Add stdbool.
42045         * modules/openat-tests (Depends-on): Add pathmax.
42046         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
42047         (Makefile.am): Run new test.
42048
42049         remove: new module, for mingw and Solaris 9 bugs
42050         * modules/remove: New file.
42051         * lib/remove.c: Likewise.
42052         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
42053         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
42054         * modules/stdio (Makefile.am): Use them.
42055         * lib/stdio.in.h (remove): Declare replacement.
42056         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
42057         * doc/posix-functions/remove.texi (remove): Likewise.
42058         * modules/remove-tests: New test.
42059         * tests/test-remove.c: Likewise.
42060
42061         unlink: new module, for Solaris 9 bug
42062         * modules/unlink: New file.
42063         * lib/unlink.c: Likewise.
42064         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
42065         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
42066         * modules/unistd (Makefile.am): Use them.
42067         * lib/unistd.in.h (stat): Declare replacement.
42068         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
42069         * doc/posix-functions/unlink.texi (unlink): Likewise.
42070         * modules/unlink-tests: New test.
42071         * tests/test-unlink.c: Likewise.
42072
42073         lstat: fix Solaris 9 bug
42074         * lib/lstat.c (lstat): Also check for trailing slash on
42075         non-symlink, non-directories.  Use stat module to simplify logic.
42076         * doc/posix-functions/lstat.texi (lstat): Document it.
42077         * modules/lstat-tests (Depends-on): Add errno, same-inode.
42078         (configure.ac): Check for symlink.
42079         * tests/test-lstat.c (main): Add more tests.
42080
42081         stat: add as dependency to other modules
42082         * modules/chown (Depends-on): Add stat.
42083         * modules/euidaccess (Depends-on): Likewise.
42084         * modules/fchdir (Depends-on): Likewise.
42085         * modules/isdir (Depends-on): Likewise.
42086         * modules/link (Depends-on): Likewise.
42087         * modules/lstat (Depends-on): Likewise.
42088         * modules/mkdir-p (Depends-on): Likewise.
42089         * modules/modechange (Depends-on): Likewise.
42090         * modules/open (Depends-on): Likewise.
42091         * modules/readlink (Depends-on): Likewise.
42092         * modules/same (Depends-on): Likewise.
42093
42094         stat: fix Solaris 9 bug
42095         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
42096         slash.
42097         * lib/stat.c (rpl_stat): Work around it.
42098         * doc/posix-functions/stat.texi (stat): Update documentation.
42099
42100         stat: new module, for mingw bug
42101         * modules/stat: New file.
42102         * lib/stat.c: Likewise.
42103         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
42104         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
42105         * modules/sys_stat (Makefile.am): Use them.
42106         * lib/sys_stat.in.h (stat): Declare replacement.
42107         * lib/openat.c (fstatat): Deal with lstat and stat being function
42108         macros.
42109         * modules/openat (Depends-on): Add inline.
42110         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
42111         * doc/posix-functions/stat.texi (stat): Likewise.
42112         * modules/stat-tests: New test.
42113         * tests/test-stat.c: Likewise.
42114
42115 2009-09-19  Jim Meyering  <meyering@redhat.com>
42116
42117         syntax-check: detect unnecessary inclusion of canonicalize.h
42118         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
42119
42120 2009-09-19  Eric Blake  <ebb9@byu.net>
42121
42122         canonicalize-lgpl: adjust clients to use correct header
42123         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
42124         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
42125         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
42126         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
42127         * lib/progreloc.c (includes): Likewise.
42128
42129 2009-09-19  Jim Meyering  <meyering@redhat.com>
42130
42131         test-posixtm.c: correct a comment
42132         * tests/test-posixtm.c: Correct first-line comment.
42133         Spotted by Eric Blake.
42134
42135 2009-09-16  Jim Meyering  <meyering@redhat.com>
42136
42137         posixtm-tests: make T const-correct; add a test case
42138         * tests/test-posixtm.c (T): Declare const.
42139         Add a test for -(2^31+1).
42140         Remove useless can-succeed-only-in-2002 test.
42141
42142         posixtm-tests: adjust the sole failing test
42143         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
42144         expected output matches what mktime now produces.  Cross-checked via
42145         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
42146
42147         posixtm: move #ifdef'd tests into a new module
42148         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
42149         * tests/test-posixtm.c: ... this new file.
42150         * modules/posixtm-tests: New module.
42151
42152 2009-09-19  Eric Blake  <ebb9@byu.net>
42153
42154         openat: simplify use of at-func.c
42155         * lib/at-func.c (includes): Include prerequisites here, to
42156         simplify requirements on client files.
42157         * lib/openat-priv.h: Add double-inclusion guard.
42158         * lib/faccessat.c (includes): Simplify.
42159         * lib/fchmodat.c (includes): Likewise.
42160         * lib/fchownat.c (includes): Likewise.
42161         * lib/mkdirat.c (includes): Likewise.
42162         * lib/mkfifoat.c (includes): Likewise.
42163         * lib/symlinkat.c (includes): Likewise.
42164
42165         openat: allow return of fd 0
42166         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
42167         * modules/save-cwd (Depends-on): Replace fcntl-safer with
42168         unistd-safer.
42169         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
42170         <fcntl.h>; this module does not leak fds.
42171         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
42172         must be allowed to return 0, leaving openat_safer to add the
42173         safety.
42174         (openat_permissive): Avoid writing to just-opened fd 2 if
42175         restoring the current directory fails.
42176         * lib/openat-die.c (openat_restore_fail): Add comment.
42177         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
42178         (save_cwd): Guarantee safe fd, but without use of open_safer.
42179         * tests/test-openat.c: New test.
42180         * modules/openat-tests (Files, Makefile.am): Distribute and build
42181         new file.
42182
42183         relocatable-prog-wrapper: fix build
42184         * modules/relocatable-prog-wrapper (Files): Update name of
42185         canonicalize m4 file, broken on 2009-09-17.
42186         Reported by emad hajjar <aleppos@hotmail.com>.
42187
42188 2009-09-19  Bruno Haible  <bruno@clisp.org>
42189
42190         * lib/safe-alloc.h: Use the standard header with GPL copyright.
42191         * lib/safe-alloc.c: Likewise.
42192         Reported by Ian Beckwith <ianb@erislabs.net>.
42193
42194 2009-09-18  Bruno Haible  <bruno@clisp.org>
42195
42196         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
42197         Reported by <erobles@sensacd.com.mx>.
42198
42199 2009-09-17  Eric Blake  <ebb9@byu.net>
42200
42201         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
42202         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
42203         slashes when checking if last component is missing.
42204         * tests/test-canonicalize.c (main): Test this.
42205
42206         canonicalize, canonicalize-lgpl: honor // if distinct from /
42207         * modules/canonicalize (Files): Add double-slash-root.m4.
42208         * modules/canonicalize-lgpl (Files): Likewise.
42209         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
42210         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
42211         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
42212         fallback definition.
42213         (canonicalize_filename_mode): Use it to protect //.
42214         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
42215         (__realpath): Likewise.
42216         * tests/test-canonicalize.c (main): Test this.
42217         * tests/test-canonicalize-lgpl.c (main): Likewise.
42218         * modules/canonicalize-tests (Depends-on): Add same-inode.
42219         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
42220
42221         canonicalize-lgpl: fix glibc bug with trailing slash
42222         * m4/canonicalize-lgpl.m4: Move contents...
42223         * m4/canonicalize.m4: ...here.
42224         (gl_CANONICALIZE_LGPL): Factor realpath check...
42225         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
42226         glibc 2.3.5 bug, fixed 2005-04-27.
42227         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
42228         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
42229         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
42230         * modules/canonicalize-lgpl (Files): Manage file rename.
42231         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
42232         * modules/stdlib (Makefile.am): Substitute witness.
42233         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
42234         is needed.
42235         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
42236         replacement is required.
42237         * lib/canonicalize.c (canonicalize_file_name): Likewise.
42238         * doc/glibc-functions/canonicalize_file_name.texi
42239         (canonicalize_file_name): Document this.
42240         * doc/posix-functions/realpath.texi (realpath): Likewise.
42241
42242         canonicalize-lgpl: reject non-directory with trailing slash
42243         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
42244         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
42245         catches failures in glibc 2.3.5.
42246         * tests/test-canonicalize.c (main): Likewise.
42247
42248         canonicalize-lgpl: use native realpath if it works
42249         * lib/canonicalize-lgpl.c (realpath): Guard with
42250         FUNC_REALPATH_WORKS.
42251         * lib/stdlib.in.h (realpath): Make declaration optional based on
42252         HAVE_REALPATH.
42253         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
42254         native realpath works.
42255         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
42256         * modules/stdlib (Makefile.am): Substitute witness.
42257
42258         canonicalize, canonicalize-lgpl: use <stdlib.h>
42259         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
42260         (Include): Mention <stdlib.h>.
42261         (configure.ac): Mention functions we provide.
42262         * modules/canonicalize (configure.ac): Likewise.
42263         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
42264         realpath if canonicalize_file_name is missing.
42265         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
42266         * modules/stdlib (Makefile.am): Substitute witnesses.
42267         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
42268         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
42269         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
42270         * NEWS: Document this.
42271         * doc/glibc-functions/canonicalize_file_name.texi
42272         (canonicalize_file_name): Likewise.
42273         * doc/posix-functions/realpath.texi (realpath): Likewise.
42274         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
42275
42276         test-canonicalize: consolidate into single C program
42277         * tests/test-canonicalize.sh: Delete; move setup into...
42278         * tests/test-canonicalize.c (main): ...the program, making it
42279         easier to run in debugger.  Add some tests.
42280         * modules/canonicalize-tests (Files): Remove unused file.
42281         (Depends-on): Add progname.
42282         (configure.ac, Makefile.am): Simplify.
42283
42284         test-canonicalize-lgpl: consolidate into single C program
42285         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
42286         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
42287         easier to run in debugger.  Add some tests.
42288         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
42289         (configure.ac, Makefile.am): Simplify.
42290
42291         canonicalize: avoid resolvepath
42292         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
42293         unnecessary checks.
42294         * lib/canonicalize.c (includes): Simplify.
42295         (canonicalize_file_name): Drop resolvepath implementation.
42296         * modules/canonicalize (Depends-on): Drop filenamecat.
42297
42298         canonicalize: don't lose errno
42299         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
42300         over calls to free.
42301
42302         canonicalize: simplify errno handling
42303         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
42304         assignment.
42305
42306         canonicalize, canonicalize-lgpl: update module dependencies
42307         * modules/canonicalize (Depends-on): Add extensions, lstat,
42308         pathmax, stdlib.
42309         (Files): Drop pathmax.h.
42310         (configure.ac): Adjust macro name.
42311         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
42312         lstat, stdlib, sys_stat.
42313         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
42314         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
42315         extensions.
42316         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
42317         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
42318         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
42319         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
42320         declaration, if available.
42321         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
42322         we can rely on the readlink module.
42323         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
42324         (includes): Use <unistd.h> unconditionally.
42325
42326 2009-09-17  Eric Blake  <ebb9@byu.net>
42327
42328         maint: make Include sections of modules consistent
42329         * modules/alloca: Use only header name; no need to list #include.
42330         * modules/alloca-opt: Likewise.
42331         * modules/arpa_inet: Likewise.
42332         * modules/canon-host: Likewise.
42333         * modules/configmake: Likewise.
42334         * modules/dirent: Likewise.
42335         * modules/eealloc: Likewise.
42336         * modules/environ: Likewise.
42337         * modules/fchdir: Likewise.
42338         * modules/fcntl: Likewise.
42339         * modules/fcntl-h: Likewise.
42340         * modules/gethrxtime: Likewise.
42341         * modules/gettime: Likewise.
42342         * modules/ignore-value: Likewise.
42343         * modules/inet_ntop: Likewise.
42344         * modules/inet_pton: Likewise.
42345         * modules/inttypes: Likewise.
42346         * modules/isnand-nolibm: Likewise.
42347         * modules/isnanf-nolibm: Likewise.
42348         * modules/mbchar: Likewise.
42349         * modules/mbfile: Likewise.
42350         * modules/mbiter: Likewise.
42351         * modules/mbuiter: Likewise.
42352         * modules/netdb: Likewise.
42353         * modules/netinet_in: Likewise.
42354         * modules/nproc: Likewise.
42355         * modules/pagealign_alloc: Likewise.
42356         * modules/poll: Likewise.
42357         * modules/printf-frexp: Likewise.
42358         * modules/pthread: Likewise.
42359         * modules/putenv: Likewise.
42360         * modules/random_r: Likewise.
42361         * modules/relocatable-prog: Likewise.
42362         * modules/search: Likewise.
42363         * modules/select: Likewise.
42364         * modules/selinux-h: Likewise.
42365         * modules/settime: Likewise.
42366         * modules/signal: Likewise.
42367         * modules/size_max: Likewise.
42368         * modules/socklen: Likewise.
42369         * modules/ssize_t: Likewise.
42370         * modules/stdarg: Likewise.
42371         * modules/stdbool: Likewise.
42372         * modules/stddef: Likewise.
42373         * modules/stdint: Likewise.
42374         * modules/stdio: Likewise.
42375         * modules/stdlib: Likewise.
42376         * modules/string: Likewise.
42377         * modules/strings: Likewise.
42378         * modules/sys_file: Likewise.
42379         * modules/sys_ioctl: Likewise.
42380         * modules/sys_select: Likewise.
42381         * modules/sys_socket: Likewise.
42382         * modules/sys_stat: Likewise.
42383         * modules/sys_time: Likewise.
42384         * modules/sys_times: Likewise.
42385         * modules/sys_utsname: Likewise.
42386         * modules/sys_wait: Likewise.
42387         * modules/sysexits: Likewise.
42388         * modules/time: Likewise.
42389         * modules/times: Likewise.
42390         * modules/tmpfile: Likewise.
42391         * modules/trim: Likewise.
42392         * modules/unistd: Likewise.
42393         * modules/wchar: Likewise.
42394         * modules/wctype: Likewise.
42395
42396 2009-09-17  Bruno Haible  <bruno@clisp.org>
42397
42398         Make getdate.y compile on QNX and NetBSD 5 / i386.
42399         * m4/getdate.m4 (gl_GETDATE): Conditionally define
42400         TIME_T_FITS_IN_LONG_INT.
42401         * lib/getdate.y (long_time_t): New type.
42402         (relative_time): Change type of 'seconds' field to long_time_t.
42403         (get_date): Update types of local variables. Check against overflow
42404         during conversion from long_time_t to time_t.
42405         Reported by Matt Kraai <kraai@ftbfs.org>
42406         and Hasso Tepper <hasso@netbsd.org>.
42407
42408 2009-09-17  Bruno Haible  <bruno@clisp.org>
42409
42410         * modules/COPYING: Update copyright years.
42411         * modules/README: Likeiwse.
42412         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
42413         Reported by Ian Beckwith <ianb@erislabs.net>.
42414
42415 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
42416
42417         * users.txt: Update references for gnuit package.
42418
42419 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
42420
42421         * m4/getdelim.m4: Fix typo in copyright line.
42422
42423 2009-09-17  Bruno Haible  <bruno@clisp.org>
42424
42425         * lib/atoll.c: Use the standard header with GPL copyright.
42426         * lib/argz.in.h: Likewise.
42427         * lib/glob.c: Likewise.
42428         * lib/glob-libc.h: Likewise.
42429         * lib/random_r.c: Likewise.
42430         * lib/siglist.h: Likewise.
42431         * lib/strsignal.c: Likewise.
42432         Reported by Ian Beckwith <ianb@erislabs.net>.
42433
42434 2009-09-17  Eric Blake  <ebb9@byu.net>
42435
42436         rmdir: ensure correct dependency order
42437         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
42438
42439 2009-09-17  Bruno Haible  <bruno@clisp.org>
42440
42441         Disable assertion that fails on NetBSD 5 / i386.
42442         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
42443         Reported by Sam Steingold <sds@gnu.org>
42444         and Hasso Tepper <hasso@netbsd.org>.
42445
42446 2009-09-16  Eric Blake  <ebb9@byu.net>
42447
42448         unlinkdir: port to mingw
42449         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
42450         on which no one can unlink a directory.
42451
42452         stdlib: sort witness names
42453         * modules/stdlib (Makefile.am): Sort replacements.
42454         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
42455         * lib/stdlib.in.h: Likewise.
42456
42457         parse-duration-tests: avoid link failure
42458         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
42459         LIBINTL.
42460         Reported by Tom G. Christensen.
42461
42462         openat-tests: ensure unlinkat behaves like rmdir
42463         * tests/test-rmdir.c (main): Factor guts...
42464         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
42465         * modules/rmdir-tests (Files): Ship new file.
42466         * modules/openat-tests: New test.
42467         * tests/test-unlinkat.c: Likewise.
42468
42469         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
42470         * modules/rmdir-errno (Status, Notice): Now obsolete.
42471
42472         rmdir: work around cygwin 1.5.x and mingw bugs
42473         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
42474         * lib/rmdir.c (rmdir): Work around it.
42475         * modules/rmdir (Status, Notice): No longer obsolete.
42476         (Files): Add dos.m4.
42477         (Depends-on): Add unistd.
42478         (configure.ac): Set witnesses.
42479         (License): Relax to LGPLv2+.
42480         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
42481         * modules/unistd (Makefile.am): Substitute witnesses.
42482         * lib/unistd.in.h (rmdir): Declare replacement.
42483         * doc/posix-functions/rmdir.texi (rmdir): Document this.
42484         * modules/rmdir-tests: New tests.
42485         * tests/test-rmdir.c: Likewise.
42486
42487 2009-09-15  Eric Blake  <ebb9@byu.net>
42488
42489         fchdir: improve use of replacement functions
42490         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
42491         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
42492         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
42493         REPLACE_CLOSEDIR.
42494         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
42495         * modules/sys_stat (Makefile.am): Substitute correct witness.
42496         * modules/dirent (Makefile.am): Likewise.
42497         * modules/unistd (Makefile.am): Likewise.
42498         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
42499         * lib/unistd.in.h (dup): Likewise.
42500         * lib/sys_stat.in.h (fstat): Likewise.
42501
42502         maint: ignore gnulib-tool temp files
42503         * .gitignore: Ignore files created during gnulib-tool --test.
42504
42505 2009-09-13  Jim Meyering  <meyering@redhat.com>
42506
42507         posixtm: don't reject a time that specify "60" as the number of seconds
42508         * lib/posixtm.c (posixtime): The code to reject invalid dates
42509         would also reject a time specified with the .60 suffix.
42510         But POSIX allows that, in order to accommodate leap seconds.
42511         So don't reject it.
42512         (main): Adjust tests accordingly.
42513         * modules/posixtm (Depends-on): Add stpcpy.
42514
42515 2009-09-11  Jim Meyering  <meyering@redhat.com>
42516
42517         announce-gen: include [$release_type] in emitted Subject:
42518         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
42519         e.g., [stable] in the emitted Subject: line.
42520
42521 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42522
42523         Remove obsolete macros from several modules.
42524         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
42525         obsolete Autoconf macros with their modern counterparts.
42526         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
42527         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
42528         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
42529         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
42530         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
42531         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
42532         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
42533         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
42534         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
42535         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
42536         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
42537         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
42538         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
42539         * m4/sockets.m4 (gl_SOCKETS): Likewise.
42540         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
42541         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
42542         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
42543         * m4/time_r.m4 (gl_TIME_R): Likewise.
42544         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
42545         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
42546         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
42547
42548         Fix copyright header in build-aux scripts.
42549         * build-aux/git-version-gen: Fix copyright header to match GPLv3
42550         recommendation.
42551         * build-aux/ncftpput-ftp: Likewise.
42552         * build-aux/update-copyright: Likewise.
42553
42554 2009-09-09  Eric Blake  <ebb9@byu.net>
42555
42556         test-link: allow Linux choice of errno
42557         * tests/test-link.c (main): Relax test for alternate error.
42558
42559         strndup: fix improper m4 caching
42560         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
42561         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
42562         (gl_PREREQ_STRNDUP): Delete.
42563         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
42564         * modules/string (Makefile.am): Substitute it.
42565         * lib/string.in.h (strndup): Modernize prototype.
42566
42567         getcwd: port to mingw
42568         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
42569         different from the POSIX assumptions made throughout the getcwd
42570         module; fortunately, the mingw getcwd does not need replacement.
42571         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
42572         * modules/getcwd-tests: New test.
42573         * tests/test-getcwd.c: Likewise.
42574
42575         link: fix platform bugs
42576         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
42577         * lib/link.c (link): Work around them.  Fix related mingw bug.
42578         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
42579         * modules/unistd (Makefile.am): Substitute it.
42580         * lib/unistd.in.h (link): Declare replacement.
42581         * doc/posix-functions/link.texi (link): Document this.
42582         * modules/link (Depends-on): Add strdup-posix, sys_stat.
42583
42584         test-link: consolidate into single C program, test more cases
42585         * tests/test-link.sh: Delete.
42586         * tests/test-link.c: Test more error conditions.  Exposes bugs on
42587         at least Cygwin and Solaris.
42588         * modules/link-tests (Files): Remove unused file.
42589         (Depends-on): Add errno, sys_stat.
42590         (Makefile.am): Simplify.
42591
42592 2009-09-08  Bruno Haible  <bruno@clisp.org>
42593
42594         Work around towlower, towupper bug on mingw.
42595         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
42596         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
42597         * doc/posix-functions/towlower.texi: Mention the mingw bug.
42598         * doc/posix-functions/towupper.texi: Likewise.
42599         Reported by Eric Blake.
42600
42601 2009-09-08  Jim Meyering  <meyering@redhat.com>
42602
42603         build: don't try to run autoheader if we don't use it
42604         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
42605         is not used in configure.ac.
42606
42607 2009-09-08  Eric Blake  <ebb9@byu.net>
42608
42609         euidaccess: fix compilation error
42610         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
42611
42612         rawmemchr: relax license
42613         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
42614         okay.
42615         Reported by Jim Meyering.
42616
42617         mkfifoat: new module
42618         * modules/mkfifoat: New file.
42619         * lib/mkfifoat.c: Likewise.
42620         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
42621         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
42622         * modules/sys_stat (Makefile.am): Use them.
42623         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
42624         * MODULES.html.sh (File system functions): Mention module.
42625         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
42626         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
42627         * modules/mkfifoat-tests: New test.
42628         * tests/test-mkfifoat.c: Likewise.
42629
42630         strchrnul: relax license
42631         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
42632         okay.
42633         Reported by Jim Meyering.
42634
42635 2009-09-08  Eric Blake  <ebb9@byu.net>
42636
42637         fstatat: fix compilation on Solaris
42638         * lib/fstatat.c (includes): Add fcntl.h.
42639         Reported by Pádraig Brady.
42640
42641 2009-09-07  Eric Blake  <ebb9@byu.net>
42642
42643         rename: modernize replacement
42644         * modules/rename (Depends-on): Add stdio.
42645         (configure.ac): Declare witness.
42646         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
42647         stdio take care of replacement.
42648         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
42649         * modules/stdio (Makefile.am): Substitute them.
42650         * lib/stdio.in.h (rename): Declare replacement.
42651         * lib/rename.c (includes): Allow cross-compilation to non-windows
42652         machines.
42653         * doc/posix-functions/rename.texi (rename): Improve
42654         documentation.
42655
42656         stdio: sort witness names
42657         * modules/stdio (Makefile.am): Sort replacements.
42658         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
42659         * lib/stdio.in.h: Likewise.
42660
42661         getcwd: minor cleanups
42662         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
42663         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
42664
42665         openat: provide more convenience names
42666         * modules/faccessat (configure.ac): Add C witness.
42667         * lib/unistd.in.h (readlinkat): Fix typo.
42668         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
42669         convenience wrappers.
42670         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
42671         wrappers in syntax checks.
42672
42673 2009-09-06  Eric Blake  <ebb9@byu.net>
42674
42675         doc: fix comments in recent patches
42676         * lib/faccessat.c: Mention correct function.
42677         * lib/fchmodat.c: Likewise.
42678         * lib/fchownat.c: Likewise.
42679         * lib/symlinkat.c: Likewise.
42680         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
42681         constants.
42682
42683         faccessat, symlinkat: continue cleanup of previous patch
42684         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
42685         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
42686         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
42687         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
42688         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
42689         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
42690         set.
42691
42692 2009-09-06  Bruno Haible  <bruno@clisp.org>
42693
42694         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
42695         (fstatat): Declare if GNULIB_FSTATAT is set.
42696         (mkdirat): Declare if GNULIB_MKDIRAT is set.
42697         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
42698         (unlinkat): Declare if GNULIB_UNLINKAT is set.
42699         * modules/fcntl-h (Files): Remove m4/openat.m4.
42700         * modules/sys_stat (Files): Remove m4/openat.m4.
42701         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
42702         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
42703         * modules/unistd (Files): Remove m4/openat.m4.
42704         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
42705         GNULIB_OPENAT.
42706         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
42707         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
42708         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
42709         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
42710         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
42711         gl_OPENAT_DEFAULTS.
42712         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
42713         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
42714         Don't require gl_OPENAT_DEFAULTS.
42715         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
42716         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
42717         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
42718         (gl_OPENAT_DEFAULTS): Remove macro.
42719
42720 2009-09-06  Bruno Haible  <bruno@clisp.org>
42721
42722         * modules/openat (configure.ac): Remove unneeded witness.
42723
42724 2009-09-06  Bruno Haible  <bruno@clisp.org>
42725
42726         Set errno to ENOSYS when a function is entirely unsupported.
42727         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
42728         EOPNOTSUPP.
42729         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
42730         * modules/chown (Depends-on): Remove errno.
42731
42732 2009-09-06  Bruno Haible  <bruno@clisp.org>
42733
42734         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
42735
42736 2009-09-06  Bruno Haible  <bruno@clisp.org>
42737
42738         * lib/sys_stat.in.h: Fix preprocessor command indentation.
42739
42740 2009-09-06  Ben Pfaff  <blp@gnu.org>
42741             Bruno Haible  <bruno@clisp.org>
42742
42743         Work around a glibc bug in strtok_r.
42744         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
42745         Undefine if UNDEFINE_STRTOK_R is set.
42746         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
42747         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
42748         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
42749         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
42750         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
42751         UNDEFINE_STRTOK_R.
42752         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
42753
42754 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
42755
42756         exclude: minor fix
42757         * lib/exclude.c: Include wctype.h
42758
42759 2009-09-06  Akim Demaille  <demaille@gostai.com>
42760
42761         bootstrap: improve error message
42762         * build-aux/bootstrap (find_tool): Upon failure, report the list
42763         of candidates.
42764         Honor the initial value of the envvar.
42765
42766 2009-09-05  Eric Blake  <ebb9@byu.net>
42767
42768         symlinkat: new module
42769         * modules/symlinkat: New file.
42770         * lib/symlinkat.c: Likewise.
42771         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
42772         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
42773         * modules/unistd (Makefile.am): Use them.
42774         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
42775         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
42776         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
42777         * MODULES.html.sh (File system functions): Mention module.
42778         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
42779         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
42780         * modules/symlinkat-tests: New test.
42781         * tests/test-symlinkat.c: Likewise.
42782
42783         test-openat-safer: add more checks
42784         * tests/test-openat-safer.c (main): Check more code paths.
42785
42786 2009-09-05  Jim Meyering  <meyering@redhat.com>
42787
42788         syntax-check: detect unnecessary inclusion of openat.h
42789         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
42790
42791 2009-09-05  Bruno Haible  <bruno@clisp.org>
42792
42793         Support towlower, towupper.
42794         * doc/posix-functions/towlower.texi: Mention module wctype.
42795         * doc/posix-functions/towupper.texi: Likewise.
42796         * lib/wctype.in.h (towlower, towupper): New functions.
42797         * tests/test-wctype.c: Include stdio.h, stdlib.h.
42798         (ASSERT): New macro.
42799         (e): New variable.
42800         (main): Test also towlower, towupper. Test WEOF argument.
42801         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
42802
42803 2009-09-05  Bruno Haible  <bruno@clisp.org>
42804
42805         Fix conversion behaviour when the input is invalid.
42806         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
42807         mark occurring in first pass of indirect conversion.
42808         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
42809         input.
42810         Found by clang's static analyzer.
42811
42812 2009-09-05  Bruno Haible  <bruno@clisp.org>
42813
42814         * tests/test-striconveh.c (main): Test indirect conversion on platforms
42815         where direct conversion is possible.
42816
42817 2009-09-04  Eric Blake  <ebb9@byu.net>
42818
42819         openat: fail with ENOENT on empty name
42820         * lib/openat-proc.c (openat_proc_name): Special-case the empty
42821         buffer.
42822
42823         link-follow: fix logic bug in prior patch
42824         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
42825         reversed sense of yes and no in prior patch.  Avoid confusing
42826         compilation failure with desired semantics.
42827
42828         link-follow: accommodate mingw and cross-compilation
42829         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
42830         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
42831         cross-compilation results to -1, to make linkat easier to
42832         implement when cross-compiling.  Trivially support mingw.
42833         * modules/link-follow (configure.ac): Call new name.
42834         * NEWS: Mention this.
42835
42836 2009-09-03  Eric Blake  <ebb9@byu.net>
42837
42838         faccessat: compile replacement
42839         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
42840         needed.
42841
42842         fts: fix compilation error
42843         * lib/fts.c (includes): Re-add "openat.h", for
42844         openat_needs_fchdir.
42845
42846         faccessat: new module
42847         * modules/faccessat: New file.
42848         * lib/faccessat.c: Likewise.
42849         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
42850         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
42851         * modules/unistd (Makefile.am): Use it.
42852         * lib/unistd.in.h (faccessat): Declare it.
42853         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
42854         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
42855         * MODULES.html.sh (File system functions): Mention it.
42856         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
42857         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
42858
42859         euidaccess: prefer POSIX over non-standard implementation
42860         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
42861         * lib/euidaccess.c (euidaccess): Use it if available.
42862
42863         openat: make template easier to use
42864         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
42865         AT_FUNC_F2 to be undefined.
42866         (VALIDATE_FLAG): New macro; use it to reject bad flags.
42867         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
42868         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
42869         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
42870         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
42871         Likewise.
42872         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
42873         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
42874         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
42875         Likewise.
42876
42877         openat: declare in POSIX headers
42878         * NEWS: Mention this.
42879         * modules/openat (configure.ac): Declare witnesses.
42880         (Depends-on): Add fcntl-h, sys_stat, unistd.
42881         (Include): Mention correct headers.
42882         * modules/fcntl-h (Depends-on): Add link-warning.
42883         (Files): Add openat.m4.
42884         (Makefile.am): Substitute witnesses.
42885         * modules/sys_stat (Files, Makefile.am): Likewise.
42886         * modules/unistd (Files, Makefile.am): Likewise.
42887         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
42888         (gl_OPENAT_DEFAULTS): New macro.
42889         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
42890         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
42891         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
42892         (SYS_STAT_H): Remove unused variable.
42893         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
42894         * lib/fcntl--.h (includes): Remove unneeded header.
42895         * lib/openat-safer.c (includes): Likewise.
42896         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
42897         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
42898         appropriate headers.
42899         (__OPENAT_PREFIX): Delete.
42900         * lib/fcntl.in.h (openat): Provide declaration.
42901         (AT_FDCWD): Fix Solaris bug.
42902         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
42903         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
42904         * lib/fchmodat.c (includes):  Adjust to find declaration.
42905         * lib/fchownat.c (includes): Likewise.
42906         * lib/mkdirat.c (includes): Likewise.
42907         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
42908         still visible.
42909
42910 2009-09-02  Eric Blake  <ebb9@byu.net>
42911
42912         errno: use consistently
42913         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
42914         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
42915         * lib/canonicalize.c (ELOOP): Likewise.
42916         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
42917         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
42918         * lib/lchown.c (EOPNOTSUPP): Likewise.
42919         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
42920         * lib/savewd.c (ESTALE): Likewise.
42921         * lib/settime.c (ENOSYS): Likewise.
42922         * lib/utimens.c (ENOSYS): Likewise.
42923         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
42924         * lib/chdir-safer.c (ELOOP): Likewise.
42925         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
42926         * modules/c-stack (Depends-on): Add errno.
42927         * modules/canonicalize (Depends-on): Likewise.
42928         * modules/chdir-safer (Depends-on): Likewise.
42929         * modules/fdopendir (Depends-on): Likewise.
42930         * modules/inet_ntop (Depends-on): Likewise.
42931         * modules/inet_pton (Depends-on): Likewise.
42932         * modules/lchown (Depends-on): Likewise.
42933         * modules/openat (Depends-on): Likewise.
42934         * modules/savewd (Depends-on): Likewise.
42935         * modules/settime (Depends-on): Likewise.
42936         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
42937
42938         fts: avoid leaking fds
42939         * modules/fts (Depends-on): Add cloexec.
42940         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
42941         flag.
42942
42943         fts: make directory fds more robust
42944         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
42945         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
42946
42947         backupfile, chdir-long, fts, savedir: make safer
42948         * lib/backupfile.c (includes): Use "dirent--.h", since
42949         numbered_backup can write to stderr during readdir.
42950         * lib/savedir.c (includes): Likewise.
42951         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
42952         emulation can write to stderr on failure.
42953         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
42954         * lib/getcwd.c: Document why opendir_safer is unused.
42955         * lib/glob.c: Likewise.
42956         * lib/scandir.c: Likewise.
42957         * lib/openat-proc.c: Likewise, for open_safer.
42958         * modules/backupfile (Depends-on): Add dirent-safer.
42959         * modules/savedir (Depends-on): Likewise.
42960         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
42961         * modules/chdir-long (Depends-on): Add openat-safer.
42962
42963         openat-safer: new module
42964         * modules/openat-safer: New file.
42965         * lib/openat-safer.c: Likewise.
42966         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
42967         * lib/fcntl-safer.h (openat_safer): Declare.
42968         * lib/fcntl--.h (openat): Override.
42969         * MODULES.html.sh (File descriptor based I/O): Mention it.
42970         * lib/openat.h: Add double-inclusion guards.
42971         * lib/openat.c (includes): Only include "fcntl-safer.h", not
42972         "fcntl--.h", so we can implement openat.
42973         * modules/openat-safer-tests: New test.
42974         * tests/test-openat-safer.c: New file.
42975
42976         dirent-safer: new module
42977         * modules/dirent-safer: New file.
42978         * lib/dirent--.h: Likewise.
42979         * lib/dirent-safer.h: Likewise.
42980         * lib/opendir-safer.c: Likewise.
42981         * m4/dirent-safer.m4: Likewise.
42982         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
42983         * modules/dirent-safer-tests: New test.
42984         * tests/test-dirent-safer.c: New file.
42985         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
42986
42987         fdopendir: optimize on mingw
42988         * lib/unistd.in.h (_gl_directory_name): New prototype.
42989         * lib/fchdir.c (_gl_directory_name): Implement it.
42990         (fchdir): Use it to simplify implementation.
42991         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
42992         fchdir, when available, to avoid calling [f]chdir().
42993
42994         fdopendir: split into its own module
42995         * lib/openat.c (fdopendir): Move...
42996         * lib/fdopendir.c: ...into new file.
42997         * modules/fdopendir: New module.
42998         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
42999         * modules/openat (Depends-on): Add fdopendir.
43000         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
43001         fdopendir here.
43002         * modules/savedir (Depends-on): Only need fdopendir, not full
43003         openat.
43004         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
43005         * lib/openat.h (fdopendir): Drop prototype.
43006         * lib/dirent.in.h (fdopendir): Provide prototype.
43007         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
43008         * modules/dirent (Makefile.am): Substitute them.
43009         * MODULES.html.sh (File system functions): Mention it.
43010         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
43011         * modules/fdopendir-tests: New file.
43012         * tests/test-fdopendir.c: Likewise.
43013
43014         fchdir: use more consistent macro convention
43015         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
43016         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
43017         REPLACE_FCHDIR, rather than relying on config.h macros.
43018         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
43019         inside a single make-time REPLACE_FCHDIR block, rather than using
43020         the config.h FCHDIR_REPLACEMENT.
43021         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
43022         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
43023         Manage fstat replacement.
43024         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
43025         REPLACE_FCHDIR.
43026         * modules/sys_stat (Files): Add m4/unistd_h.m4.
43027         (Makefile.am): Substitute REPLACE_FCHDIR.
43028         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
43029         FCHDIR_REPLACEMENT.
43030         * lib/dup-safer.c (dup_safer): Likewise.
43031         * lib/dup2.c (rpl_dup2): Likewise.
43032         * lib/dup3.c (rpl_dup3): Likewise.
43033         * lib/open.c (rpl_open): Likewise.
43034
43035         fchdir: simplify error handling, and support dup3
43036         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
43037         stdbool, malloc-posix, realloc-posix.
43038         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
43039         (ensure_dirs_slot): Return false on allocation failure.
43040         (rpl_dup2): Delete.
43041         (_gl_register_dup): New function.
43042         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
43043         (_gl_register_fd): Close fd on allocation failure.
43044         * lib/fcntl.in.h (_gl_register_fd): Update signature.
43045         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
43046         prototype.
43047         (rpl_dup2_fchdir): Delete prototype.
43048         * lib/open.c (open): Update caller.
43049         * lib/dup2.c (dup2): Track fchdir metadata.
43050         * lib/dup3.c (dup3): Likewise.
43051         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
43052         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
43053
43054 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43055
43056         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
43057         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
43058         don't pass arguments to AC_OUTPUT.
43059
43060 2009-09-02  Bruno Haible  <bruno@clisp.org>
43061
43062         * modules/mkdtemp (License): Relicense under LGPLv2+.
43063         Reported by Paolo Bonzini.
43064
43065 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43066
43067         Replace uses of obsolete autoconf macros in Jim's modules.
43068         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
43069         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
43070         can evoke a warning from autoconf when run with -Wobsolete
43071         enabled.  They were declared obsolete for good reasons (see
43072         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
43073         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
43074         should not continue using the deprecated macros.
43075         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
43076         obsolete Autoconf macros with modern counterparts.
43077         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
43078         * m4/dos.m4 (gl_AC_DOS): Likewise.
43079         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
43080         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
43081         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
43082         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
43083         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
43084         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
43085         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
43086         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
43087         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
43088         Likewise.
43089         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
43090         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
43091         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
43092         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
43093         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
43094         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
43095
43096 2009-09-01  Eric Blake  <ebb9@byu.net>
43097
43098         fchdir: fix off-by-one bug in previous patch
43099         * lib/fchdir.c (rpl_fstat): Use correct bounds.
43100         (_gl_unregister_fd): Delete useless if.
43101
43102 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
43103
43104         maint.mk: sort the list of syntax-check rules
43105         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
43106         easier to get a sense of progress when the rules are run sequentially
43107         and take a long time.
43108
43109 2009-09-01  Simon Josefsson  <simon@josefsson.org>
43110
43111         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
43112         * modules/netinet_in: Likewise.
43113         * modules/sys_file: Likewise.
43114         * modules/sys_ioctl: Likewise.
43115         * modules/sys_select: Likewise.
43116         * modules/sys_socket: Likewise.
43117         * modules/sys_stat: Likewise.
43118         * modules/sys_time: Likewise.
43119         * modules/sys_times: Likewise.
43120         * modules/sys_utsname: Likewise.
43121         * modules/sys_wait: Likewise.
43122
43123 2009-09-01  Jim Meyering  <meyering@redhat.com>
43124
43125         fts: help ensure that return values are not ignored
43126         * lib/fts_.h (__GNUC_PREREQ): Define.
43127         (__attribute_warn_unused_result__): Define.
43128         (fts_children, fts_close, fts_open, fts_read): Declare with
43129         __attribute_warn_unused_result__.
43130
43131         fts: fts_close now fails also when closing a dir file descriptor fails
43132         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
43133         and propagate to caller, along with errno.
43134
43135         announce-gen: correct formatting in --help output
43136         * build-aux/announce-gen (usage): Move the one-line description in
43137         --help output "up", to where it belongs, just after Usage:.
43138
43139 2009-08-31  Eric Blake  <ebb9@byu.net>
43140
43141         fchdir: port to mingw
43142         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
43143         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
43144         opened, then use a substitute.
43145         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
43146         replacement.
43147         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
43148         (_gl_register_fd): No need to check stat if open already filters
43149         all directories.
43150         (fchdir): Fix error condition to match POSIX.
43151         * modules/fchdir (Depends-on): Add sys_stat.
43152         * doc/posix-functions/open.texi (open): Document the limitation.
43153         * modules/fchdir-tests: New file.
43154         * tests/test-fchdir.c: Likewise.
43155
43156         canonicalize: allow cross-testing from cygwin to mingw
43157         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
43158         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
43159         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
43160         Likewise.
43161         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
43162         target does not support symlinks.
43163         * tests/test-canonicalize-lgpl.sh: Likewise.
43164
43165         chown: avoid compilation warning on mingw
43166         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
43167         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
43168         mingw.
43169         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
43170         * modules/chown (Depends-on): Add errno.
43171
43172 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
43173
43174         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
43175         command.
43176
43177 2009-08-31  Jim Meyering  <meyering@redhat.com>
43178
43179         canonicalize: remove useless initialization
43180         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
43181         initialization of local, "end".
43182
43183 2009-08-30  Bruno Haible  <bruno@clisp.org>
43184
43185         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
43186         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
43187         ENOSYS.
43188
43189 2009-08-30  Bruno Haible  <bruno@clisp.org>
43190
43191         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
43192         /usr/xpg4/bin/tr when it exists.
43193         * tests/test-pipe-filter-gi1.sh: Likewise.
43194
43195 2009-08-30  Bruno Haible  <bruno@clisp.org>
43196
43197         Work around deficient /usr/bin/id program on Solaris.
43198         * tests/test-file-has-acl.sh (ID): New variable.
43199         * tests/test-set-mode-acl.sh (ID): Likewise.
43200         * tests/test-copy-acl.sh (ID): Likewise.
43201         * tests/test-copy-file.sh (ID): Likewise.
43202
43203 2009-08-30  Bruno Haible  <bruno@clisp.org>
43204
43205         New module 'xstriconveh'.
43206         * lib/xstriconveh.h: New file.
43207         * lib/xstriconveh.c: New file.
43208         * modules/xstriconveh: New file.
43209
43210 2009-08-30  Bruno Haible  <bruno@clisp.org>
43211
43212         Make it easier to use mem_cd_iconveh.
43213         * lib/striconveh.h (iconveh_t): New type.
43214         (iconveh_open, iconveh_close): New declarations.
43215         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
43216         with a single 'const iconveh_t *' argument.
43217         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
43218         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
43219         with a single 'const iconveh_t *' argument.
43220         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
43221         * tests/test-striconveh.c (main): Update.
43222         * NEWS: Mention the change.
43223
43224 2009-08-30  Bruno Haible  <bruno@clisp.org>
43225
43226         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
43227         problem.
43228
43229 2009-08-30  Bruno Haible  <bruno@clisp.org>
43230
43231         Work around iconv_open problem on Solaris.
43232         * lib/iconv_open-solaris.gperf: New file.
43233         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
43234         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
43235         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
43236         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
43237         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
43238         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
43239
43240 2009-08-29  Jim Meyering  <meyering@redhat.com>
43241
43242         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
43243         * top/maint.mk (cvs-check): Remove target; it was just an alias
43244         to the better-named vc-diff-check.
43245         (maintainer-distcheck): Remove rule.  It was used only from
43246         the (alpha/beta/major) target, and all of its commands but one
43247         were coreutils-specific.
43248         (vc-dist): Remove rule.
43249         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
43250         Run vc-diff-check, not vc-dist.
43251         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
43252
43253 2009-08-27  Bruno Haible  <bruno@clisp.org>
43254
43255         * tests/test-bitrotate.c (main): Remove test that uses a shift count
43256         of 0.
43257
43258 2009-08-27  Bruno Haible  <bruno@clisp.org>
43259
43260         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
43261         compilers.
43262         * doc/func.texi: Document the SunPRO C bug.
43263
43264 2009-08-27  Bruno Haible  <bruno@clisp.org>
43265
43266         Fix link error on Solaris.
43267         * tests/test-parse-duration.c (xstrdup): Remove function.
43268
43269 2009-08-26  Pádraig Brady  <P@draigbrady.com>
43270
43271         ignore-value: handle pointer types, too
43272         * lib/ignore-value.h (__attribute__): Remove definition.
43273         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
43274         of a more concise and more-often effective "(void) i" statement.
43275         (ignore_ptr): New function to suppress warnings from functions that
43276         return pointers, and to make it explicit that one function doesn't
43277         handle all cases.
43278
43279 2009-08-25  Bruno Haible  <bruno@clisp.org>
43280
43281         dup2: work around a Linux bug.
43282         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
43283         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
43284         * doc/posix-functions/dup2.texi: Mention the Linux bug.
43285         Reported by Simon Josefsson.
43286
43287 2009-08-25  Jim Meyering  <meyering@redhat.com>
43288
43289         libguestfs uses gnulib
43290         * users.txt: Add libguestfs.
43291
43292 2009-08-24  Eric Blake  <ebb9@byu.net>
43293
43294         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
43295         * lib/pipe2.c (includes): Add binary-io.h.
43296         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
43297
43298 2009-08-24  Bruno Haible  <bruno@clisp.org>
43299
43300         Tolerate declared but missing accept4 syscall.
43301         * lib/accept4.c (accept4): Invoke original accept4 function first, if
43302         available.
43303         * lib/sys_socket.in.h (accept4): If the function is already present,
43304         override it.
43305         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
43306         * modules/accept4 (Makefile.am): Compile accept4.c always.
43307         Reported by Paolo Bonzini and Eric Blake.
43308
43309 2009-08-23  Bruno Haible  <bruno@clisp.org>
43310
43311         New module 'accept4'.
43312         * lib/sys_socket.in.h (accept4): New declaration.
43313         * lib/accept4.c: New file.
43314         * m4/accept4.m4: New file.
43315         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
43316         GNULIB_ACCEPT4, HAVE_ACCEPT4.
43317         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
43318         HAVE_ACCEPT4.
43319         * modules/accept4: New file.
43320         * doc/glibc-functions/accept4.texi: Mention the new module.
43321
43322 2009-08-24  Jim Meyering  <meyering@redhat.com>
43323
43324         progname: also set global program_invocation_name, when possible
43325         Before this change, a libtool-enabled program that calls glibc's
43326         error function would report the program name as
43327         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
43328         * modules/progname (configure.ac): Check for a declaration of
43329         program_invocation_name.
43330         * lib/progname.c:  Include <errno.h>.
43331         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
43332         Set program_invocation_name.
43333
43334 2009-08-23  Bruno Haible  <bruno@clisp.org>
43335
43336         * lib/dup3.c: Include <string.h>.
43337
43338 2009-08-23  Bruno Haible  <bruno@clisp.org>
43339
43340         * lib/dup3.c (dup3): Test only once whether the system actually exists.
43341         * lib/pipe2.c (pipe2): Likewise.
43342         Suggested by Eric Blake.
43343
43344 2009-08-23  Bruno Haible  <bruno@clisp.org>
43345
43346         Tolerate declared but missing dup3 syscall.
43347         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
43348         * lib/unistd.in.h (dup3): If the function is already present,
43349         override it.
43350         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
43351         * modules/dup3 (Makefile.am): Compile dup3.c always.
43352         Reported by Paolo Bonzini.
43353
43354 2009-08-23  Bruno Haible  <bruno@clisp.org>
43355
43356         Tolerate declared but missing pipe2 syscall.
43357         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
43358         available.
43359         * lib/unistd.in.h (pipe2): If the function is already present,
43360         override it.
43361         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
43362         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
43363         Reported by Paolo Bonzini.
43364
43365 2009-08-23  Bruno Haible  <bruno@clisp.org>
43366
43367         * lib/pipe2.c (pipe2): Move #ifs inside function.
43368
43369 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
43370
43371         quotearg: document limitations of quote_these_too
43372         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
43373         those limitations are created.
43374         * lib/quotearg.h (set_char_quoting): Document that digits and
43375         letters that are special after backslash are not permitted.
43376         (quotearg_char): Cross-reference set_char_quoting documentation.
43377
43378 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
43379
43380         quotearg: implement custom_quoting_style
43381         * lib/quotearg.c: (struct quoting_options): Add left_quote and
43382         right_quote fields.
43383         (set_custom_quoting): New public function.
43384         (quotearg_buffer_restyled): Add left_quote and right_quote
43385         arguments, handle them very much like locale quoting, and update
43386         all uses.
43387         (quotearg_n_custom): New public function.
43388         (quotearg_n_custom_mem): New public function.
43389         (quotearg_custom): New public function.
43390         (quotearg_custom_mem): New public function.
43391         * lib/quotearg.h: Prototype and document new public functions.
43392         (enum quoting_style): For escape_quoting_style and
43393         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
43394         ignored even though they're otherwise like c_quoting_style.
43395         Add custom_quoting_style member and document with comparison to
43396         clocale_quoting_style.
43397         * tests/test-quotearg.c (custom_quotes): New array.
43398         (custom_results): New array.
43399         (main): Extend to test custom quoting.
43400
43401 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
43402
43403         quotearg: fix right quote escaping when it's in quote_these_too
43404         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
43405         quote, be sure to prepend only one backslash.
43406         * tests/test-quotearg.c (use_quote_double_quotes): New function.
43407         (main): Test it.
43408
43409 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
43410
43411         quotearg-tests: test escaping of embedded locale quotes
43412         * tests/test-quotearg.c (struct result_strings): Add member for
43413         new input.
43414         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
43415         (inputs): Add new input.
43416         (results_g): Add expected results.
43417         (flag_results): Likewise.
43418         (locale_results): Likewise.
43419         (compare_strings): Check those.
43420
43421 2009-08-23  Bruno Haible  <bruno@clisp.org>
43422
43423         Tests for module 'dup3'.
43424         * modules/dup3-tests: New file.
43425         * tests/test-dup3.c: New file.
43426
43427         New module 'dup3'.
43428         * lib/unistd.in.h (dup3): New declaration.
43429         * lib/dup3.c: New file.
43430         * m4/dup3.m4: New file.
43431         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
43432         HAVE_DUP3.
43433         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
43434         * modules/dup3: New file.
43435         * doc/glibc-functions/dup3.texi: Mention the new module.
43436
43437 2009-08-23  Bruno Haible  <bruno@clisp.org>
43438
43439         Tweak the dup2 test.
43440         * tests/test-dup2.c (main): Create the test file empty. Verify that an
43441         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
43442         the test file is still empty. Fix argument order of lseek.
43443
43444 2009-08-23  Bruno Haible  <bruno@clisp.org>
43445
43446         Avoid test link errors when the modules getopt-gnu, gettext are used.
43447         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
43448         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43449
43450 2009-08-23  Bruno Haible  <bruno@clisp.org>
43451
43452         Fix getdtablesize() on mingw.
43453         * lib/getdtablesize.c (getdtablesize): Implement differently.
43454         * lib/unistd.in.h (getdtablesize): Improve comment.
43455
43456 2009-08-23  Bruno Haible  <bruno@clisp.org>
43457
43458         New module 'mkostemp'.
43459         Based on Ulrich Drepper's 2007-08-10 change in glibc.
43460         * lib/stdlib.in.h (mksotemp): New declaration.
43461         * lib/mkostemp.c: New file, from glibc with modifications.
43462         * lib/tempname.h (GT_FILE): Remove outdated comment.
43463         (gen_tempname): Add flags argument.
43464         * lib/tempname.c (__GT_BIGFILE): Remove macro.
43465         (__GT_FILE): Map to 1.
43466         (small_open, large_open): Remove macros.
43467         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
43468         * lib/mkstemp.c (mkstemp): Update.
43469         * lib/mkdtemp.c (mkdtemp): Likewise.
43470         * m4/mkostemp.m4: New file.
43471         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
43472         HAVE_MKOSTEMP.
43473         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
43474         HAVE_MKOSTEMP.
43475         * modules/mkostemp: New file, based on modules/mkstemp.
43476         * doc/glibc-functions/mkostemp.texi: Mention the new module.
43477         * NEWS: Mention the change.
43478
43479 2009-08-23  Bruno Haible  <bruno@clisp.org>
43480
43481         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
43482         Reported by Eric Blake.
43483
43484 2009-08-23  Bruno Haible  <bruno@clisp.org>
43485
43486         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
43487         Reported by Eric Blake.
43488
43489 2009-08-23  Bruno Haible  <bruno@clisp.org>
43490
43491         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
43492         * modules/pipe2 (Depends-on): Likewise.
43493
43494 2009-08-23  Eric Blake  <ebb9@byu.net>
43495
43496         fcntl-h: add O_TTY_INIT support
43497         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
43498         * tests/test-fcntl-h.c (o): Test it.
43499         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
43500
43501         fcntl-h: rename from fcntl, in preparation for fcntl(2)
43502         * modules/fcntl: Move <fcntl.h> header replacement...
43503         * modules/fcntl-h: ...to new name, so as not to collide with
43504         like-named function.
43505         * tests/test-fcntl.c: Rename...
43506         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
43507         * modules/fcntl-tests: Rename...
43508         * modules/fcntl-h-tests: ...to this.  Update test file name.
43509         * modules/chdir-long (Depends-on): Update clients.
43510         * modules/chdir-safer (Depends-on): Likewise.
43511         * modules/fcntl-safer (Depends-on): Likewise.
43512         * modules/fts (Depends-on): Likewise.
43513         * modules/mkancesdirs (Depends-on): Likewise.
43514         * modules/mkdir-p (Depends-on): Likewise.
43515         * modules/open (Depends-on): Likewise.
43516         * modules/savewd (Depends-on): Likewise.
43517         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
43518         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
43519
43520 2009-08-22  Bruno Haible  <bruno@clisp.org>
43521
43522         * modules/binary-io (License): Relicense under LGPL.
43523         * modules/pipe2 (License): Likewise.
43524
43525 2009-08-22  Bruno Haible  <bruno@clisp.org>
43526
43527         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
43528         return value.
43529         * lib/pipe-filter-gi.c (filter_init): Likewise.
43530         Reported by Eric Blake.
43531
43532 2009-08-22  Bruno Haible  <bruno@clisp.org>
43533
43534         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
43535         * modules/pipe (Depends-on): Add pipe2.
43536
43537 2009-08-22  Bruno Haible  <bruno@clisp.org>
43538
43539         Tests for module 'pipe2'.
43540         * modules/pipe2-tests: New file.
43541         * tests/test-pipe2.c: New file.
43542
43543         New module 'pipe2'.
43544         * lib/unistd.in.h (pipe2): New declaration.
43545         * lib/pipe2.c: New file.
43546         * m4/pipe2.m4: New file.
43547         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
43548         HAVE_PIPE2.
43549         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
43550         * modules/pipe2: New file.
43551         * doc/glibc-functions/pipe2.texi: Mention the new module.
43552
43553 2009-08-22  Bruno Haible  <bruno@clisp.org>
43554
43555         Reference some new glibc functions.
43556         * doc/glibc-functions/accept4.texi: New file.
43557         * doc/glibc-functions/dup3.texi: New file.
43558         * doc/glibc-functions/mkostemp.texi: New file.
43559         * doc/glibc-functions/pipe2.texi: New file.
43560         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
43561         (Glibc sys/socket.h): Refer to accept4.
43562         (Glibc unistd.h): Refer to dup3, pipe2.
43563         Reported by Eric Blake.
43564
43565 2009-08-22  Jim Meyering  <meyering@redhat.com>
43566             Bruno Haible  <bruno@clisp.org>
43567
43568         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
43569         This makes it so packages using automake-1.11's silent-rules option
43570         can print e.g., a single "GEN    configmake.h" line, rather than
43571         the 30+ statements that perform the job.  If you want to see the
43572         actual commands, you can still run "make V=1".
43573         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
43574         so that make output is abbreviated when those variables are defined
43575         appropriately.
43576         * modules/argz: Likewise.
43577         * modules/arpa_inet: Likewise.
43578         * modules/byteswap: Likewise.
43579         * modules/configmake: Likewise.
43580         * modules/dirent: Likewise.
43581         * modules/errno: Likewise.
43582         * modules/fcntl: Likewise.
43583         * modules/float: Likewise.
43584         * modules/fnmatch: Likewise.
43585         * modules/getopt-posix: Likewise.
43586         * modules/glob: Likewise.
43587         * modules/iconv_open: Likewise.
43588         * modules/inttypes: Likewise.
43589         * modules/localcharset: Likewise.
43590         * modules/locale: Likewise.
43591         * modules/math: Likewise.
43592         * modules/netdb: Likewise.
43593         * modules/netinet_in: Likewise.
43594         * modules/poll: Likewise.
43595         * modules/posix_spawnp-tests: Likewise.
43596         * modules/sched: Likewise.
43597         * modules/search: Likewise.
43598         * modules/selinux-h: Likewise.
43599         * modules/signal: Likewise.
43600         * modules/spawn: Likewise.
43601         * modules/stdarg: Likewise.
43602         * modules/stdbool: Likewise.
43603         * modules/stddef: Likewise.
43604         * modules/stdint: Likewise.
43605         * modules/stdio: Likewise.
43606         * modules/stdlib: Likewise.
43607         * modules/string: Likewise.
43608         * modules/strings: Likewise.
43609         * modules/sys_file: Likewise.
43610         * modules/sys_ioctl: Likewise.
43611         * modules/sys_select: Likewise.
43612         * modules/sys_socket: Likewise.
43613         * modules/sys_stat: Likewise.
43614         * modules/sys_time: Likewise.
43615         * modules/sys_times: Likewise.
43616         * modules/sys_utsname: Likewise.
43617         * modules/sys_wait: Likewise.
43618         * modules/sysexits: Likewise.
43619         * modules/time: Likewise.
43620         * modules/unistd: Likewise.
43621         * modules/wchar: Likewise.
43622         * modules/wctype: Likewise.
43623
43624 2009-08-22  Jim Meyering  <meyering@redhat.com>
43625
43626         announce-gen: detect write failure
43627         * build-aux/announce-gen: Add Coda at end.
43628         Remove equivalent-but-more-verbose block at top.
43629
43630 2009-08-19  Akim Demaille  <demaille@gostai.com>
43631
43632         bootstrap: --help to stdout.
43633         * bootstrap (usage): Don't send --help to stderr.
43634         Use a here doc instead of a long string.
43635
43636 2009-08-21  Eric Blake  <ebb9@byu.net>
43637
43638         test-popen-safer: split from test-popen
43639         * tests/test-popen.c (main): Move...
43640         * tests/test-popen.h: ...into new file.
43641         * tests/test-popen-safer2.c: New file.
43642         * modules/popen-tests (Files): Add test-popen.h.
43643         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
43644         Suggested by Bruno Haible.
43645
43646         test-fcntl-safer: split from test-open
43647         * tests/test-open.c (main): Move...
43648         * tests/test-open.h: ...into new file.
43649         * tests/test-fcntl-safer.c: New file.
43650         * modules/open-tests (Files): Add test-open.h.
43651         * modules/fcntl-safer-tests: New file.
43652         Suggested by Bruno Haible.
43653
43654         test-fopen-safer: split from test-fopen
43655         * tests/test-fopen.c (main): Move...
43656         * tests/test-fopen.h: ...into new file.
43657         * tests/test-fopen-safer.c: New file.
43658         * modules/fopen-tests (Files): Add test-fopen.h.
43659         * modules/fopen-safer-tests: New file.
43660         Suggested by Bruno Haible.
43661
43662 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
43663
43664         popen-safer: test O_CLOEXEC at run-time.
43665         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
43666
43667 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
43668
43669         fcntl: move more flags to the header
43670         * lib/cloexec.c: Do not define FD_CLOEXEC here.
43671         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
43672         * lib/fcntl.in.h: Do both things here.
43673
43674 2009-08-21  Jim Meyering  <meyering@redhat.com>
43675
43676         consistently remove $@-t before redirecting to it
43677         * modules/argz: Remove $@-t and $@ before redirecting to the former.
43678         * modules/alloca-opt: Likewise.
43679         * modules/byteswap: Likewise.
43680         * modules/fnmatch: Likewise.
43681         * modules/getopt-posix: Likewise.
43682         * modules/glob: Likewise.
43683         * modules/poll: Likewise.
43684         * modules/posix_spawnp-tests: Likewise.
43685         * modules/sys_socket: Likewise.
43686         * modules/sysexits: Likewise.
43687
43688 2009-08-21  Eric Blake  <ebb9@byu.net>
43689
43690         popen: simplify access to original popen
43691         * lib/popen.c (rpl_popen): No need to worry about popen being a
43692         macro.
43693         Reported by Bruno Haible.
43694
43695 2009-08-20  Eric Blake  <ebb9@byu.net>
43696
43697         build: avoid some compiler warnings
43698         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
43699         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
43700         type.
43701         (new_exclude_segment, excluded_file_pattern_p)
43702         (excluded_file_name_p): Reduce scope.
43703         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
43704         old-style declaration.
43705
43706 2009-08-20  Simon Josefsson  <simon@josefsson.org>
43707
43708         * tests/test-exclude1.sh: Handle Windows EOL.
43709         * tests/test-exclude2.sh: Likewise.
43710         * tests/test-exclude3.sh: Likewise.
43711         * tests/test-exclude4.sh: Likewise.
43712         * tests/test-exclude5.sh: Likewise.
43713         * tests/test-exclude6.sh: Likewise.
43714         * tests/test-exclude7.sh: Likewise.
43715
43716 2009-08-19  Akim Demaille  <demaille@gostai.com>
43717
43718         bootstrap: find sha1sum when named gsha1sum.
43719         * bootstrap (find_tool): New.
43720         ($SHA1SUM): New.
43721         Use it.
43722
43723 2009-08-20  Jim Meyering  <meyering@redhat.com>
43724
43725         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
43726         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
43727         expression that converts "." in a file name to "\." in the resulting
43728         regexp.  Start with a dummy statement, so that prior shell variable
43729         definitions are expanded portably.  Reported by Simon Josefsson.
43730
43731 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
43732
43733         Fix polling for writeability of a screen buffer.
43734         * lib/poll.c: Distinguish input and screen buffers for the
43735         Win32 implementation.
43736         * lib/select.c: Likewise.
43737
43738 2009-08-19  Eric Blake  <ebb9@byu.net>
43739
43740         popen-safer: prevent popen from clobbering std descriptors
43741         * modules/popen-safer: New file.
43742         * lib/popen-safer.c: Likewise.
43743         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
43744         * lib/stdio--.h (popen): Provide override.
43745         * lib/stdio-safer.h (popen_safer): Provide declaration.
43746         * tests/test-popen.c (includes): Partially test this.
43747         * modules/popen-safer-tests: New file, for more tests.
43748         * tests/test-popen-safer.c: Likewise.
43749         * MODULES.html.sh (file stream based Input/Output): Mention it.
43750
43751         tests: test some of the *-safer modules
43752         * modules/fopen-safer (Depends-on): Add fopen.
43753         * modules/fcntl-safer (Depends-on): Add fcntl.
43754         * modules/stdlib-safer (Depends-on): Add stdlib.
43755         (configure.ac): Set indicator.
43756         * modules/unistd-safer (configure.ac): Likewise.
43757         * modules/tmpfile-safer (configure.ac): Likewise.
43758         (Depends-on): Add tmpfile.
43759         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
43760         active.
43761         * tests/test-fopen.c (includes): Test safer versions when they are
43762         in use.
43763         * tests/test-open.c (includes): Likewise.
43764
43765         popen: fix cygwin 1.5 bug when stdin closed
43766         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
43767         * modules/popen: New file.
43768         * modules/popen-tests: Likewise.
43769         * tests/test-popen.c: Likewise.
43770         * m4/popen.m4: Likewise.
43771         * lib/popen.c: Likewise.
43772         * lib/stdio.in.h (popen): New declaration.
43773         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
43774         * modules/stdio (Makefile.am): Likewise.
43775         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
43776
43777 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
43778
43779         maint.mk: give full control over update-copyright exclusions
43780         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
43781         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
43782         (update-copyright): Don't force inclusion of top-level
43783         ChangeLog.  Don't force exclusion of all COPYING files, but make
43784         them the default exclusion instead.
43785
43786 2009-08-16  Bruno Haible  <bruno@clisp.org>
43787
43788         Fix test failures on Solaris 10.
43789         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
43790         tests when Solaris iconv() is used.
43791         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
43792         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
43793         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
43794         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
43795         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
43796
43797 2009-08-16  Bruno Haible  <bruno@clisp.org>
43798
43799         Fix test failures on Solaris 10.
43800         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
43801         'tr' program and pass it as first argument.
43802         * tests/test-pipe-filter-gi1.sh: Likewise.
43803         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
43804         program as first argument.
43805         * tests/test-pipe-filter-gi1.c (main): Likewise.
43806
43807 2009-08-16  Eric Blake  <ebb9@byu.net>
43808
43809         fpurge: fix previous commits
43810         * modules/fpurge (Makefile.am): Make replacement conditional,
43811         partially reverting 2007-04-29 change; missed in previous
43812         attempt.
43813         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
43814         is missing.
43815
43816 2009-08-16  Bruno Haible  <bruno@clisp.org>
43817
43818         Clarify fpurge's effect on the file position.
43819         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
43820         * tests/test-fpurge.c (main): Make a second pass for checking the file
43821         position.
43822
43823 2009-08-16  Bruno Haible  <bruno@clisp.org>
43824
43825         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
43826         declaration of fpurge is missing.
43827         * tests/test-fpurge.c (main): Check that the file has not more contents
43828         than expected. Close the file before removing it.
43829
43830 2009-08-15  Eric Blake  <ebb9@byu.net>
43831
43832         fpurge: don't wrap working cygwin implementation
43833         * lib/fpurge.c (fpurge): Fix comment typo.
43834         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
43835         1.7 to avoid replacement.
43836         * tests/test-fpurge.c (main): Enhance test.
43837
43838 2009-08-15  Eric Blake  <ebb9@byu.net>
43839         and Jim Meyering  <meyering@redhat.com>
43840
43841         test-update-copyright: skip if perl is insufficient
43842         * tests/test-update-copyright.sh: Failure to run maintainer tool
43843         should not cause testsuite failure on cygwin 1.5.
43844
43845 2009-08-14  Eric Blake  <ebb9@byu.net>
43846
43847         doc: mention more functions added in cygwin 1.7.0
43848         * doc/posix-headers/limits.texi (limits.h): Update for recent
43849         cygwin additions.
43850         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
43851         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
43852         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
43853         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
43854         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
43855
43856 2009-08-14  Eric Blake  <ebb9@byu.net>
43857
43858         maint.mk: simplify update-copyright rule
43859         * top/maint.mk (update-copyright-local): Delete, and document how
43860         to do it in cfg.mk instead.
43861         (update-copyright-exclude-regexp): Delete, and document how to do
43862         it in .x-update-copyright instead.
43863         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
43864         exclude ChangeLog.
43865
43866 2009-08-14  Bruno Haible  <bruno@clisp.org>
43867
43868         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
43869
43870 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
43871
43872         maint.mk: support update-copyright-env
43873         * top/maint.mk (update-copyright-env): Define place-holder.
43874         (update-copyright): Expand $(update-copyright-env) before
43875         invoking update-copyright.
43876
43877 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
43878
43879         update-copyright: implement forced reformatting
43880         * build-aux/update-copyright: Implement and document
43881         UPDATE_COPYRIGHT_FORCE.
43882         * tests/test-update-copyright.sh: Test it.
43883
43884 2009-08-14  Eric Blake  <ebb9@byu.net>
43885         and Bruno Haible  <bruno@clisp.org>
43886
43887         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
43888         * tests/test-locale.c: Revert previous patch related to NULL.
43889         * tests/test-stdio.c: Likewise.
43890         * tests/test-stdlib.c: Likewise.
43891         * tests/test-string.c: Likewise.
43892         * tests/test-unistd.c: Likewise.
43893         * modules/time-tests (Depends-on): Add verify.
43894         * modules/wchar-tests (Depends-on): Likewise.
43895         * tests/test-time.c: Test for NULL compliance.
43896         * tests/test-wchar.c: Likewise.
43897         * modules/locale (Depends-on): Add stddef.
43898         * modules/stdio (Depends-on): Likewise.
43899         * modules/stdlib (Depends-on): Likewise.
43900         * modules/string (Depends-on): Likewise.
43901         * modules/time (Depends-on): Likewise.
43902         * modules/unistd (Depends-on): Likewise.
43903         * modules/wchar (Depends-on): Likewise.
43904         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
43905         * lib/stdlib.in.h (includes): Likewise.
43906         * lib/string.in.h (includes): Likewise.
43907         * lib/time.in.h (includes): Likewise.
43908         * lib/unistd.in.h (includes): Likewise.
43909         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
43910         replaced.
43911         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
43912         * m4/stddef_h.m4: New file.
43913         * modules/stddef: Likewise.
43914         * lib/stddef.in.h: Likewise.
43915         * modules/stddef-tests: Likewise.
43916         * tests/test-stddef.c: Likewise.
43917         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
43918         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
43919         * doc/posix-headers/locale.texi (locale.h): Likewise.
43920         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
43921         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
43922         * doc/posix-headers/string.texi (string.h): Likewise.
43923         * doc/posix-headers/time.texi (time.h): Likewise.
43924         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
43925         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
43926
43927 2009-08-14  Eric Blake  <ebb9@byu.net>
43928
43929         doc: improve git diff of texinfo files
43930         * .gitattributes: Add rule for *.texi files, with hint on how to
43931         use it.
43932         Copied from m4, and based on a report by Bruno Haible.
43933
43934 2009-08-14  Bruno Haible  <bruno@clisp.org>
43935
43936         Disable multithread support by default on Cygwin 1.5.x for real.
43937         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
43938
43939 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
43940
43941         update-copyright: much ado about intervals
43942         * build-aux/update-copyright: Implement and document
43943         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
43944         of copyright year intervals.
43945         Also, document UPDATE_COPYRIGHT_YEAR.
43946         * tests/test-update-copyright.sh: Test it.
43947
43948         update-copyright: convert 2-digit to 4-digit years
43949         * build-aux/update-copyright: Implement and document.
43950         * tests/test-update-copyright.sh: Update.
43951
43952 2009-08-14  Jim Meyering  <meyering@redhat.com>
43953
43954         test-exclude: avoid coreutils "make check" failure
43955         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
43956         just as in test-argmatch.c.
43957
43958 2009-08-13  Eric Blake  <ebb9@byu.net>
43959
43960         test-dup2: fix bad assumption
43961         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
43962         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
43963
43964         test-version-etc: fix CRLF portability issue
43965         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
43966         recognize \r.
43967         * tests/test-argp-version-etc-1.sh: Likewise.
43968
43969         getopt: update client modules
43970         * modules/argp (Depends-on): Use getopt-gnu.
43971         * modules/git-merge-changelog (Depends-on): Likewise.
43972         * modules/long-options (Depends-on): Likewise.
43973         * modules/xstrtol (Depends-on): Likewise.
43974
43975 2009-08-13  Simon Josefsson  <simon@josefsson.org>
43976
43977         * tests/test-version-etc.sh: Don't fail on different
43978         project/version.  Don't fail on CRLF differences.  Rewrite to use
43979         multiple -e instead of multiple sed forks, suggested by Eric Blake
43980         <ebb9@byu.net>.
43981         * tests/test-argp-version-etc-1.sh: Likewise.
43982
43983 2009-08-13  Simon Josefsson  <simon@josefsson.org>
43984
43985         * tests/test-version-etc.sh: Don't fail on different
43986         project/version.
43987
43988 2009-08-12  Bruno Haible  <bruno@clisp.org>
43989
43990         Tests for modules 'getopt-posix', 'getopt-gnu'.
43991         * modules/getopt-posix-tests: New file.
43992         * tests/test-getopt.c: New file.
43993         * tests/test-getopt.h: New file.
43994         * tests/test-getopt_long.h: New file.
43995
43996         New modules 'getopt-posix', 'getopt-gnu'.
43997         * modules/getopt-gnu: New file, renamed from modules/getopt.
43998         * modules/getopt-posix: New file.
43999         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
44000         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
44001         (gl_GETOPT): Remove macro.
44002         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
44003         Disable the test against BSD systems that declare optreset. Test
44004         against mingw bug. Test against lack of support of optional arguments
44005         on many platforms.
44006         * doc/glibc-headers/getopt.texi: Update module name and list of
44007         relevant platforms.
44008         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
44009         'getopt-gnu' and more portability problems.
44010         * NEWS: Mention the changes.
44011
44012 2009-08-12  Bruno Haible  <bruno@clisp.org>
44013
44014         Ensure that optarg etc. get declared by <unistd.h>.
44015         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
44016         AC_USE_SYSTEM_EXTENSIONS.
44017         * modules/getopt (Depends-on): Add 'extensions'.
44018
44019 2009-08-12  Bruno Haible  <bruno@clisp.org>
44020
44021         Avoid test link errors.
44022         * modules/pipe-filter-ii-tests (Makefile.am): Define
44023         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
44024         * modules/pipe-filter-gi-tests (Makefile.am): Define
44025         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
44026         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
44027
44028 2009-08-12  Bruno Haible  <bruno@clisp.org>
44029
44030         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
44031         gl_GETOPT_SUBSTITUTE before.
44032         (gl_GETOPT): Use it.
44033         * m4/argp.m4 (gl_ARGP): Update.
44034         Reported by Sergey Poznyakoff.
44035
44036         * m4/getopt.m4: Reorder macros.
44037         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
44038         (gl_GETOPT_SUBSTITUTE): Remove macro.
44039
44040 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
44041
44042         Minor improvement in gitlog-to-changelog
44043
44044         * build-aux/gitlog-to-changelog: New option `--format' makes
44045         output format string configurable.
44046
44047 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
44048
44049         Optimize exclude: use hash tables for non-wildcard patterns.
44050
44051         * lib/exclude.c: Include hash.h and mbuiter.h
44052         (struct exclude_pattern, exclude_segment): New data types.
44053         (struct exclude): Rewrite.
44054         (fnmatch_pattern_has_wildcards): New function.
44055         (new_exclude_segment, free_exclude_segment): New functions.
44056         (excluded_file_pattern_p, excluded_file_name_p): New functions.
44057         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
44058         * lib/exclude.h (is_fnmatch_pattern): New prototype.
44059         * modules/exclude: Depend on hash and mbuiter.
44060
44061         * modules/exclude-tests: New file.
44062         * tests/test-exclude.c: New file.
44063         * tests/test-exclude1.sh: New file.
44064         * tests/test-exclude2.sh: New file.
44065         * tests/test-exclude3.sh: New file.
44066         * tests/test-exclude4.sh: New file.
44067         * tests/test-exclude5.sh: New file.
44068         * tests/test-exclude6.sh: New file.
44069         * tests/test-exclude7.sh: New file.
44070
44071 2009-08-12  Bruno Haible  <bruno@clisp.org>
44072
44073         Ensure that getopt() gets declared by <unistd.h>.
44074         * lib/unistd.in.h: Conditionally include getopt.h.
44075         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
44076         Set GNULIB_UNISTD_H_GETOPT.
44077         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
44078         GNULIB_UNISTD_H_GETOPT.
44079         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
44080
44081 2009-08-12  Bruno Haible  <bruno@clisp.org>
44082
44083         Clarify logic.
44084         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
44085         gl_replace_getopt instead of GETOPT_H.
44086
44087 2009-08-12  Bruno Haible  <bruno@clisp.org>
44088
44089         * m4/getopt.m4: Add comments.
44090
44091 2009-08-12  Bruno Haible  <bruno@clisp.org>
44092
44093         Disable multithread support by default on Cygwin 1.5.x.
44094         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
44095         set gl_use_threads=no if not specified otherwise.
44096
44097 2009-08-11  Bruno Haible  <bruno@clisp.org>
44098
44099         Avoid compilation error on NetBSD 5.0.
44100         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
44101         * tests/test-stdio.c: Likewise.
44102         * tests/test-stdlib.c: Likewise.
44103         * tests/test-string.c: Likewise.
44104         * tests/test-unistd.c: Likewise.
44105         Reported by Greg Troxel <gdt@ir.bbn.com>
44106         at <https://savannah.gnu.org/support/?106973>.
44107
44108 2009-08-11  Bruno Haible  <bruno@clisp.org>
44109
44110         * modules/dup2-tests (Depends-on): Remove close.
44111
44112         Undo 2009-07-19 commit.
44113         * modules/acl-tests (Depends-on): Remove close.
44114         * modules/binary-io-tests (Depends-on): Likewise.
44115         * modules/closein-tests (Depends-on): Likewise.
44116         * modules/flock-tests (Depends-on): Likewise.
44117         * modules/fsync-tests (Depends-on): Likewise.
44118         * modules/lseek-tests (Depends-on): Likewise.
44119         * modules/pipe-tests (Depends-on): Likewise.
44120         * modules/posix_spawn-tests (Depends-on): Likewise.
44121         * modules/posix_spawnp-tests (Depends-on): Likewise.
44122         * modules/stat-time-tests (Depends-on): Likewise.
44123         * modules/yesno-tests (Depends-on): Likewise.
44124
44125 2009-08-10  Bruno Haible  <bruno@clisp.org>
44126
44127         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
44128
44129 2009-08-10  Bruno Haible  <bruno@clisp.org>
44130
44131         Fix a gcc warning.
44132         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
44133
44134 2009-08-10  Bruno Haible  <bruno@clisp.org>
44135
44136         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
44137         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
44138         not only the first time.
44139         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
44140         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
44141         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
44142         is 1, not only the the first time.
44143
44144 2009-08-10  Bruno Haible  <bruno@clisp.org>
44145
44146         Make it possible to use module 'gethostname' without module 'close'.
44147         * lib/unistd.in.h (close): Evoke a link error only if
44148         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
44149         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
44150         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
44151         * modules/unistd (Makefile.am): Substitute
44152         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
44153         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
44154         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
44155         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
44156         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
44157         * modules/sys_ioctl (Makefile.am): Substitute
44158         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
44159         * modules/socket (configure.ac): On native Windows, set
44160         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
44161         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
44162         Reported by Sam Steingold <sds@gnu.org>.
44163
44164 2009-08-10  Bruno Haible  <bruno@clisp.org>
44165
44166         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
44167         * modules/ioctl (configure.ac): Likewise.
44168
44169 2009-08-10  Bruno Haible  <bruno@clisp.org>
44170
44171         Avoid collision between gnulib wrapper and libintl wrapper.
44172         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
44173         already defined in intl/printf.c.
44174         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
44175         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
44176
44177 2009-08-09  Bruno Haible  <bruno@clisp.org>
44178
44179         Make <sys/select.h> really self-contained, also on Solaris 10.
44180         * lib/sys_select.in.h: Include <string.h>.
44181         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
44182         Solaris 10 problem.
44183         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
44184         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
44185         Reported by Jim Meyering.
44186
44187 2009-08-09  Bruno Haible  <bruno@clisp.org>
44188
44189         Avoid warnings from 'aclocal' that are due to a use of macro name
44190         AM_XGETTEXT_OPTION that is not defined in automake.
44191         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
44192         automake.
44193         * modules/error (configure.ac): Likewise.
44194         * modules/propername (configure.ac): Likewise.
44195         * modules/vasprintf (configure.ac): Likewise.
44196         * modules/verror (configure.ac): Likewise.
44197         * modules/xprintf (configure.ac): Likewise.
44198         * modules/xvasprintf (configure.ac): Likewise.
44199
44200 2009-08-08  Bruno Haible  <bruno@clisp.org>
44201
44202         Avoid compilation error in C++ mode.
44203         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
44204         Reported by Sam Steingold <sds@gnu.org>.
44205
44206 2009-08-08  Bruno Haible  <bruno@clisp.org>
44207
44208         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
44209         for the various Unix platforms.
44210         * doc/posix-headers/limits.texi: Update platforms list regarding
44211         HOST_NAME_MAX.
44212         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
44213
44214 2009-08-07  Jim Meyering  <meyering@redhat.com>
44215
44216         selinux-at: fix typo in a comment
44217         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
44218         Spotted by Paolo Bonzini.
44219
44220         selinux-at: remove redundant m4 code, add documentation
44221         * modules/selinux-at (configure.ac): Remove redundant code.
44222         LIB_SELINUX is already set via the dependent module, selinux-h.
44223         (Include): Add quotes around selinux-at.h.
44224         * lib/selinux-at.h: Add documentation.
44225         Reported by Bruno Haible in
44226         http://marc.info/?l=gnulib-bug&m=124958988300749
44227
44228 2009-08-07  Bruno Haible  <bruno@clisp.org>
44229
44230         Avoid link error on MacOS X 10.3 and 10.4.
44231         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
44232         on non-ELF systems.
44233         * lib/argp-pv.c (argp_program_version): Likewise.
44234         Reported by Simon Josefsson.
44235
44236 2009-08-07  Simon Josefsson  <simon@josefsson.org>
44237
44238         * tests/test-version-etc.sh: Use $EXEEXT.
44239
44240 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
44241
44242         update-copyright: update documentation to point to maint.mk
44243         * build-aux/update-copyright: Here.
44244
44245 2009-08-06  Jim Meyering  <meyering@redhat.com>
44246
44247         maint.mk: support update-copyright-local
44248         * top/maint.mk (update-copyright-local): Define place-holder.
44249         (update-copyright): Depend on $(update-copyright-local).
44250
44251 2009-08-06  Jim Meyering  <meyering@redhat.com>
44252
44253         selinux-at: new module
44254         Initially written for coreutils, this module will soon be
44255         used by findutils, too.
44256         * MODULES.html.sh [Misc]: Add selinux-at.
44257         * lib/selinux-at.h: New file, from coreutils.
44258         * lib/selinux-at.c: Likewise.
44259         * modules/selinux-at: Likewise.
44260         (License): Change from LGPL to GPL, since it depends
44261         on the GPL'd openat module.
44262
44263         doc: update README
44264         * README: Remove references to cogito.
44265         Remove cvs-repo-updating instructions from 2007.
44266         Don't imply that CVS is better if you have limited disk space.
44267
44268 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
44269
44270         update-copyright: support C-style comments
44271         * build-aux/update-copyright: Implement and document.
44272         * tests/test-update-copyright.sh: Test.
44273
44274 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
44275
44276         update-copyright: support omitted "(C)"
44277         * build-aux/update-copyright: Implement and document.  Also,
44278         allow variable whitespace before "(C)".
44279         * tests/test-update-copyright.sh: Test.
44280
44281 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
44282
44283         update-copyright: don't trip on non-FSF copyright statements
44284         * build-aux/update-copyright: Fix so that the first correctly
44285         formatted FSF copyright statement is recognized no matter what
44286         appears before it.  Update documentation.
44287         * tests/test-update-copyright.sh: Test that.
44288
44289 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
44290
44291         update-copyright: clean up code a little
44292         * build-aux/update-copyright: Append "_re" to the name of any
44293         variable holding a regular expression.
44294         Replace "old" and "new" with "stmt" in variable names.
44295         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
44296         handled correctly.
44297         Format code more consistently.
44298
44299 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
44300
44301         update-copyright-tests: improve portability
44302         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
44303         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
44304
44305 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
44306
44307         update-copyright: support @copyright{} and &copy;
44308         * build-aux/update-copyright: Implement and document.
44309         * tests/test-update-copyright.sh: Test.
44310
44311 2009-08-04  Jim Meyering  <meyering@redhat.com>
44312
44313         update-copyright-tests: correctly test EOL=\r\n handling
44314         * tests/test-update-copyright.sh: Put \r at the end of some lines
44315         for the dos-eol tests.  Based on a patch by Joel E. Denny.
44316
44317         maint.mk: make update-copyright exclusion list more configurable
44318         * top/maint.mk (update-copyright): Default to excluding COPYING,
44319         but allow an override, in case someone does want to update that file.
44320
44321         maint.mk: don't update copyright date in COPYING
44322         * top/maint.mk (update-copyright): Exclude COPYING.
44323
44324         maint.mk: add a copyright-updating rule
44325         * top/maint.mk (update-copyright): New rule.
44326         Derived from coreutils/Makefile.am.
44327
44328         update-copyright: rename some variables
44329         * build-aux/update-copyright: Rename a few variables for clarity.
44330         Tweak syntax.  List Joel E. Denny as coauthor.
44331
44332 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
44333
44334         update-copyright: fix bug for 2-digit last year and add tests
44335         * build-aux/update-copyright: Fix bug.
44336         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
44337         specified.
44338         * modules/update-copyright-tests: New
44339         * tests/test-update-copyright.sh: New.
44340
44341 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
44342
44343         update-copyright: handle leading tabs in line prefix
44344         * build-aux/update-copyright: Count leading tabs as 8 spaces
44345         when computing margin.  This helps with the formatting of
44346         ChangeLogs, for example.
44347         Fix documentation a little.
44348
44349 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
44350
44351         update-copyright: support EOL=\r\n
44352         * build-aux/update-copyright: Implement that.
44353
44354 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
44355
44356         update-copyright: automatically format copyright statements
44357         * build-aux/update-copyright: Implement that.
44358         Also, be a little more predictable and safer by always failing
44359         when the full copyright format is not perfectly recognized as an
44360         unbroken whole.  Discussed at
44361         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
44362         Rewrite documentation.
44363
44364 2009-08-03  Bruno Haible  <bruno@clisp.org>
44365
44366         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
44367
44368 2009-08-02  Bruno Haible  <bruno@clisp.org>
44369
44370         Tests for module 'uname'.
44371         * modules/uname-tests: New file.
44372         * tests/test-uname.c: New file.
44373
44374         New module 'uname'.
44375         * lib/uname.c: New file.
44376         * m4/uname.m4: New file.
44377         * modules/uname: New file.
44378         * doc/posix-functions/uname.texi: Mention the new module.
44379
44380 2009-08-02  Bruno Haible  <bruno@clisp.org>
44381
44382         Tests for module 'sys_utsname'.
44383         * modules/sys_utsname-tests: New file.
44384         * tests/test-sys_utsname.c: New file.
44385
44386         New module 'sys_utsname'.
44387         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
44388         * m4/sys_utsname_h.m4: New file.
44389         * modules/sys_utsname: New file.
44390         * doc/posix-headers/sys_utsname.texi: Mention the new module.
44391
44392 2009-08-02  Bruno Haible  <bruno@clisp.org>
44393
44394         Implicitly initialize the sockets library.
44395         * lib/gethostname.c: Include sockets.h.
44396         (rpl_gethostname): Invoke gl_sockets_startup.
44397         * lib/socket.c: Include sockets.h.
44398         (rpl_socket): Invoke gl_sockets_startup.
44399         * modules/gethostname (Depends-on): Add sockets.
44400         * modules/socket (Depends-on): Likewise.
44401         * tests/test-poll.c: Don't include sockets.h.
44402         (main): Don't invoke gl_sockets_startup.
44403         * tests/test-select.c: Don't include sockets.h.
44404         (main): Don't invoke gl_sockets_startup.
44405
44406 2009-08-02  Bruno Haible  <bruno@clisp.org>
44407
44408         Allow multiple calls to gl_sockets_startup.
44409         * lib/sockets.c (initialized_sockets_version): New variable.
44410         (gl_sockets_startup): Do nothing if already called for this or a higher
44411         version.
44412         (gl_sockets_cleanup): Reset initialized_sockets_version.
44413
44414 2009-08-03  Simon Josefsson  <simon@josefsson.org>
44415
44416         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
44417         different project/version.
44418
44419 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
44420             Bruno Haible  <bruno@clisp.org>
44421
44422         Tests for module 'pipe-filter-gi'.
44423         * modules/pipe-filter-gi-tests: New file.
44424         * tests/test-pipe-filter-gi1.sh: New file.
44425         * tests/test-pipe-filter-gi1.c: New file.
44426         * tests/test-pipe-filter-gi2.sh: New file.
44427         * tests/test-pipe-filter-gi2-main.c: New file.
44428         * tests/test-pipe-filter-gi2-child.c: New file.
44429
44430         New module 'pipe-filter-gi'.
44431         * lib/pipe-filter-gi.c: New file.
44432         * modules/pipe-filter-gi: New file.
44433
44434 2009-08-02  Bruno Haible  <bruno@clisp.org>
44435             Paolo Bonzini  <bonzini@gnu.org>
44436
44437         Tests for module 'pipe-filter-ii'.
44438         * modules/pipe-filter-ii-tests: New file.
44439         * tests/test-pipe-filter-ii1.sh: New file.
44440         * tests/test-pipe-filter-ii1.c: New file.
44441         * tests/test-pipe-filter-ii2.sh: New file.
44442         * tests/test-pipe-filter-ii2-main.c: New file.
44443         * tests/test-pipe-filter-ii2-child.c: New file.
44444
44445         New module 'pipe-filter-ii'.
44446         * lib/pipe-filter.h: New file.
44447         * lib/pipe-filter-ii.c: New file.
44448         * lib/pipe-filter-aux.h: New file.
44449         * modules/pipe-filter-ii: New file.
44450
44451 2009-08-02  Simon Josefsson  <simon@josefsson.org>
44452
44453         * lib/gc-libgcrypt.c: Change copyright to FSF.
44454         * lib/gc-gnulib.c: Likewise.
44455
44456 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
44457
44458         * lib/gethostname.c: Include limits.h.
44459
44460 2009-08-02  Simon Josefsson  <simon@josefsson.org>
44461             Bruno Haible  <bruno@clisp.org>
44462
44463         Ensure HOST_NAME_MAX as part of the gethostname module.
44464         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
44465         define also HOST_NAME_MAX.
44466         * tests/test-gethostname.c: Include <limits.h>.
44467         (main): Check also HOST_NAME_MAX.
44468         * doc/posix-headers/limits.texi: Document the mingw problem.
44469
44470 2009-08-02  Bruno Haible  <bruno@clisp.org>
44471
44472         * lib/gethostname.c (gethostname): Fix handling of large len argument.
44473         Add comments.
44474
44475 2009-03-31  Simon Josefsson  <simon@josefsson.org>
44476
44477         * lib/gethostname.c: Add Windows wrapper.
44478         * m4/gethostname.m4: Look for gethostname in -lws2_32.
44479         * modules/gethostname: Depend on sys_socket & errno, for also
44480         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
44481         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
44482
44483 2009-07-31  Jim Meyering  <meyering@redhat.com>
44484
44485         getloadavg: fix symbol name in comment
44486         * lib/getloadavg.c: Correct a typo I introduced when adding
44487         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
44488         Matt Kraai spotted the problem.
44489
44490 2009-07-29  Matt Kraai  <mkraai@beckman.com>
44491
44492         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
44493         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
44494         code also if ! defined N_NAME_POINTER.
44495         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
44496         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
44497         but the n_name member is a 12-byte array.
44498
44499 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
44500
44501         update-copyright: generalize comment handling
44502         * build-aux/update-copyright: Handle copyright statements
44503         within more comment styles.
44504         Document usage.
44505         Report any file with an external copyright holder or parse failure.
44506
44507 2009-07-29  Jim Meyering  <meyering@redhat.com>
44508
44509         mktime: correct setting of REPLACE_MKTIME
44510         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
44511
44512         update-copyright: new module
44513         * modules/update-copyright: New file.
44514         * build-aux/update-copyright: New file.
44515         * MODULES.html.sh (maint+release support): Add update-copyright.
44516
44517 2009-07-27  Bruno Haible  <bruno@clisp.org>
44518
44519         Fix compilation error when <ctime> is used and mktime is replaced.
44520         * lib/time.in.h (mktime): New declaration.
44521         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
44522         REPLACE_MKTIME instead of defining mktime in config.h.
44523         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
44524         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
44525         Reported by Ross McFarland <rwmcfa1@neces.com>.
44526
44527 2009-07-27  Bruno Haible  <bruno@clisp.org>
44528
44529         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
44530         Reported by Matt Kraai <mkraai@beckman.com>.
44531
44532 2009-07-25  Jim Meyering  <meyering@redhat.com>
44533
44534         maint.mk: avoid warnings about missing files
44535         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
44536         diagnostic when .prev-version does not exist.
44537         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
44538         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
44539         nonexistent cfg.mk.
44540         Suggestions from Simon Josefsson.
44541
44542 2009-07-25  Bruno Haible  <bruno@clisp.org>
44543
44544         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
44545         defined as macros. Needed on QNX 6.4.1.
44546         Reported by Matt Kraai <mkraai@beckman.com>.
44547
44548 2009-07-23  Jim Meyering  <meyering@redhat.com>
44549
44550         maint.mk: invoke "make dist" with a working value of XZ_OPT
44551         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
44552
44553 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
44554
44555         Make fseeko.c compile on QNX.
44556         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
44557
44558 2009-07-22  Peter Simons  <simons@cryp.to>
44559
44560         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
44561         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
44562         * lib/md4.h: Likewise.
44563         * lib/md5.h: Likewise.
44564         * lib/sha1.h: Likewise.
44565         * lib/sha256.h: Likewise.
44566         * lib/sha512.h: Likewise.
44567
44568         tests-sha1: don't assign literal string to 'char *' variable
44569         * tests/test-sha1.c (main): Declare locals with "const" to match
44570         attributes of the right hand side.
44571
44572 2009-07-21  Eric Blake  <ebb9@byu.net>
44573
44574         dup2: fix more mingw problems
44575         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
44576         fd to itself.
44577         * doc/posix-functions/dup2.texi (dup2): Document the bug.
44578         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
44579         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
44580         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
44581         care of mingw bugs.
44582
44583 2009-07-21  Jim Meyering  <meyering@redhat.com>
44584
44585         vc-list-files: avoid failure when /bin/sh is dash
44586         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
44587         On some Debian based systems, /bin/sh is a symlink to dash, and running
44588         this command would omit the "/" following each 'tests' prefix:
44589           dash -x build-aux/vc-list-files -C . tests
44590         That is because bash and dash work differently:
44591           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
44592           bash ok
44593           dash odd
44594
44595 2009-07-21  Eric Blake  <ebb9@byu.net>
44596
44597         dup2-tests: test previous patch
44598         * modules/dup2-tests: New file.
44599         * tests/test-dup2.c: Likewise.
44600         * tests/test-open.c (main): Avoid unspecified behavior.
44601         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
44602         test.
44603
44604         dup2: work around mingw and cygwin 1.5 bug
44605         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
44606         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
44607         * modules/unistd (Makefile.am): Substitute it.
44608         * lib/unistd.in.h (dup2): Declare the replacement.
44609         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
44610         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
44611         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
44612         * modules/execute (Depends-on): Add dup2.
44613         * modules/fseterr (Depends-on): Likewise.
44614         * modules/pipe (Depends-on): Likewise.
44615         * modules/posix_spawn-internal (Depends-on): Likewise.
44616
44617 2009-07-21  Bruno Haible  <bruno@clisp.org>
44618
44619         * modules/.gitattributes: New file.
44620
44621 2009-07-20  Bruno Haible  <bruno@clisp.org>
44622
44623         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
44624         (main): Use it.
44625
44626 2009-07-20  Eric Blake  <ebb9@byu.net>
44627
44628         test-pipe: make a bit more robust.
44629         * tests/test-pipe.c (myerr): Allow error messages regardless of
44630         what we do to stderr.
44631         (test_pipe): Rearrange to avoid deadlock.
44632         (child_main): Try a larger read, to ensure we avoided deadlock.
44633         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
44634         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
44635         if misused.
44636
44637 2009-07-19  Jim Meyering  <meyering@redhat.com>
44638
44639         fts: avoid false-positive cycle-detection
44640         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
44641         for each new command line argument.
44642
44643 2009-07-19  Bruno Haible  <bruno@clisp.org>
44644
44645         Fix build error on mingw with the modules sys_select and unistd.
44646         * modules/acl-tests (Depends-on): Add close.
44647         * modules/binary-io-tests (Depends-on): Likewise.
44648         * modules/closein-tests (Depends-on): Likewise.
44649         * modules/flock-tests (Depends-on): Likewise.
44650         * modules/fsync-tests (Depends-on): Likewise.
44651         * modules/lseek-tests (Depends-on): Likewise.
44652         * modules/pipe-tests (Depends-on): Likewise.
44653         * modules/posix_spawn-tests (Depends-on): Likewise.
44654         * modules/posix_spawnp-tests (Depends-on): Likewise.
44655         * modules/stat-time-tests (Depends-on): Likewise.
44656         * modules/yesno-tests (Depends-on): Likewise.
44657
44658 2009-07-19  Bruno Haible  <bruno@clisp.org>
44659
44660         Unify conditionals.
44661         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
44662         macros, not at the compiler macros.
44663         * lib/pipe.c: Likewise.
44664         * lib/execute.c: Likewise.
44665         * lib/spawni.c: Likewise.
44666
44667 2009-07-19  Bruno Haible  <bruno@clisp.org>
44668
44669         Fix handling of closed stdin/stdout/stderr on mingw.
44670         * lib/w32spawn.h: Include unistd.h.
44671         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
44672         file descriptor with O_NOINHERIT flag.
44673         (fd_safer_noinherit): New function, based on fd-safer.c.
44674         (dup_safer_noinherit): New function, based on dup-safer.c.
44675         (undup_safer_noinherit): New function.
44676         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
44677         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
44678         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
44679         instead of fd_safer.
44680         * tests/test-pipe.c: Include <windows.h>.
44681         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
44682         result.
44683
44684         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
44685         from main.
44686         (test_pipe): Pass an extra argument for disambiguation.
44687         (main): Invoke parent_main or child_main.
44688
44689         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
44690         consistently.
44691
44692 2009-07-18  Eric Blake  <ebb9@byu.net>
44693
44694         test-pipe: fix mingw build
44695         * tests/test-pipe.c (main): Avoid fcntl on mingw.
44696
44697 2009-07-18  Bruno Haible  <bruno@clisp.org>
44698
44699         * modules/pipe-tests (Makefile.am): Fix typo.
44700
44701 2009-07-18  Eric Blake  <ebb9@byu.net>
44702
44703         error: fix mingw build
44704         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
44705         Reported by Bruno Haible.
44706
44707         error: avoid undefined use of stdout
44708         * lib/error.c (error, error_at_line): Check that fd 1 is open
44709         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
44710         is handling faults and the close_stdout module wants to report the
44711         detection of closed stdout as an error.
44712
44713 2009-07-17  Eric Blake  <ebb9@byu.net>
44714
44715         pipe: be robust in face of closed fds
44716         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
44717         should cause child to misbehave.
44718         * modules/pipe-tests: New module.
44719         * tests/test-pipe.c: New file.
44720         * tests/test-pipe.sh: New file.
44721         Reported by Akim Demaille.
44722
44723 2009-07-14  Bruno Haible  <bruno@clisp.org>
44724
44725         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
44726         Reported by anonymous kc.
44727
44728 2009-07-07  Jim Meyering  <meyering@redhat.com>
44729
44730         maint.mk: don't look for translatable strings in *.m4 or *.mk
44731         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
44732         when searching for translatable strings.
44733
44734 2009-07-05  Jim Meyering  <meyering@redhat.com>
44735
44736         remove superfluous parentheses in STREQ definition
44737         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
44738         * lib/getugroups.c (STREQ): Likewise.
44739         * lib/fnmatch.c (STREQ): Likewise.
44740         Spotted by Bruno Haible.
44741
44742 2009-07-04  Jim Meyering  <meyering@redhat.com>
44743
44744         argv-iter: new module
44745         * MODULES.html.sh: Add argv-iter.
44746         * lib/argv-iter.c, lib/argv-iter.h: New files.
44747         * modules/argv-iter: New file.
44748         * modules/argv-iter-tests: New file.
44749         * tests/test-argv-iter.c: Test it.
44750
44751 2009-07-04  Bruno Haible  <bruno@clisp.org>
44752
44753         Fix assertion.
44754         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
44755         contains more exact copies of a given entry than file2, leave the extra
44756         copies unpaired rather than aborting.
44757         Reported by Eric Blake.
44758
44759 2009-07-02  Bruno Haible  <bruno@clisp.org>
44760
44761         Speedup git-merge-changelog for git cherry-pick.
44762         * lib/git-merge-changelog.c (struct entries_mapping): New type.
44763         (entries_mapping_get): New function, extracted from compute_mapping.
44764         (entries_mapping_reverse_get): New function.
44765         (compute_mapping): Add a 'full' argument. Return the result in a
44766         'struct entries_mapping'.
44767         (main): Update. Access the mappings through entries_mapping_get.
44768         Reported by Eric Blake.
44769
44770 2009-07-02  Bruno Haible  <bruno@clisp.org>
44771
44772         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
44773         best_i.
44774
44775 2009-07-02  Bruno Haible  <bruno@clisp.org>
44776
44777         Speed up approximate search for matching ChangeLog entries.
44778         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
44779         argument. Call fstrcmp_bounded instead of fstrcmp.
44780         (compute_mapping, try_split_merged_entry, main): Update callers.
44781
44782 2009-07-02  Bruno Haible  <bruno@clisp.org>
44783
44784         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
44785
44786 2009-06-30  Bruno Haible  <bruno@clisp.org>
44787
44788         Reduce the number of uc_is_cased calls.
44789         * lib/unicase.h (casing_suffix_context_t): Add
44790         'first_char_except_ignorable' field.
44791         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
44792         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
44793         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
44794         Update initializer.
44795         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
44796         case-ignorable characters.
44797         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
44798         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
44799         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
44800         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
44801         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
44802
44803 2009-06-30  Bruno Haible  <bruno@clisp.org>
44804
44805         Tests for module 'unicase/ignorable'.
44806         * modules/unicase/ignorable-tests: New file.
44807         * tests/unicase/test-ignorable.c: New file, generated by
44808         gen-uni-tables.
44809
44810         Tests for module 'unicase/cased'.
44811         * modules/unicase/cased-tests: New file.
44812         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
44813         * tests/unicase/test-predicate-part1.h: New file, derived from
44814         tests/unictype/test-predicate-part1.h.
44815         * tests/unicase/test-predicate-part2.h: New file, same as
44816         tests/unictype/test-predicate-part2.h.
44817
44818         Fix evaluation of "Before C" condition of FINAL_SIGMA.
44819         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
44820         (output_casing_properties): New function.
44821         (main): Call it.
44822         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
44823         * lib/unicase/cased.c: Include unictype/bitmap.h.
44824         (uc_is_cased): Define through a bitmap lookup.
44825         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
44826         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
44827         (uc_is_case_ignorable): Define through a bitmap lookup.
44828         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
44829         lib/unictype/bitmap.h.
44830         (Depends-on): Add inline. Clean up.
44831         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
44832         lib/unictype/bitmap.h.
44833         (Depends-on): Add inline. Clean up.
44834         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
44835         recognition.
44836         * tests/unicase/test-u16-tolower.c (main): Likewise.
44837         * tests/unicase/test-u32-tolower.c (main): Likewise.
44838
44839 2009-06-30  Bruno Haible  <bruno@clisp.org>
44840
44841         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
44842         * lib/unicase/u16-casemap.c: Likewise.
44843         * lib/unicase/u32-casemap.c: Likewise.
44844
44845 2009-06-29  Bruno Haible  <bruno@clisp.org>
44846
44847         Define u32_casefold as a wrapper around u32_ct_casefold.
44848         * lib/unicase/u32-casefold.c: Update.
44849         * modules/unicase/u32-casefold (Depends-on): Add
44850         unicase/u32-ct-casefold, unicase/empty-prefix-context,
44851         unicase/empty-suffix-context. Clean up.
44852
44853         Define u16_casefold as a wrapper around u16_ct_casefold.
44854         * lib/unicase/u16-casefold.c: Update.
44855         * modules/unicase/u16-casefold (Depends-on): Add
44856         unicase/u16-ct-casefold, unicase/empty-prefix-context,
44857         unicase/empty-suffix-context. Clean up.
44858
44859         Define u8_casefold as a wrapper around u8_ct_casefold.
44860         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
44861         * lib/unicase/u8-casefold.c: Update.
44862         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
44863         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
44864
44865         Define u32_totitle as a wrapper around u32_ct_totitle.
44866         * lib/unicase/u32-totitle.c: Update.
44867         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
44868         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
44869
44870         Define u16_totitle as a wrapper around u16_ct_totitle.
44871         * lib/unicase/u16-totitle.c: Update.
44872         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
44873         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
44874
44875         Define u8_totitle as a wrapper around u8_ct_totitle.
44876         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
44877         functions.
44878         (FUNC): Delegate to U_CT_TOTITLE.
44879         * lib/unicase/u8-totitle.c: Update.
44880         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
44881         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
44882
44883         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
44884         invocation.
44885         * modules/unicase/u32-tolower (Depends-on): Add
44886         unicase/empty-prefix-context, unicase/empty-suffix-context.
44887
44888         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
44889         invocation.
44890         * modules/unicase/u16-tolower (Depends-on): Add
44891         unicase/empty-prefix-context, unicase/empty-suffix-context.
44892
44893         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
44894         * modules/unicase/u8-tolower (Depends-on): Add
44895         unicase/empty-prefix-context, unicase/empty-suffix-context.
44896
44897         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
44898         invocation.
44899         * modules/unicase/u32-toupper (Depends-on): Add
44900         unicase/empty-prefix-context, unicase/empty-suffix-context.
44901
44902         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
44903         invocation.
44904         * modules/unicase/u16-toupper (Depends-on): Add
44905         unicase/empty-prefix-context, unicase/empty-suffix-context.
44906
44907         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
44908         * modules/unicase/u8-toupper (Depends-on): Add
44909         unicase/empty-prefix-context, unicase/empty-suffix-context.
44910
44911         New module 'unicase/u32-ct-casefold'.
44912         * lib/unicase/u32-ct-casefold.c: New file.
44913         * modules/unicase/u32-ct-casefold: New file.
44914
44915         New module 'unicase/u16-ct-casefold'.
44916         * lib/unicase/u16-ct-casefold.c: New file.
44917         * modules/unicase/u16-ct-casefold: New file.
44918
44919         New module 'unicase/u8-ct-casefold'.
44920         * lib/unicase/u8-ct-casefold.c: New file.
44921         * lib/unicase/u-ct-casefold.h: New file, derived from
44922         lib/unicase/u-casefold.h.
44923         * modules/unicase/u8-ct-casefold: New file.
44924
44925         New module 'unicase/u32-ct-totitle'.
44926         * lib/unicase/u32-ct-totitle.c: New file.
44927         * modules/unicase/u32-ct-totitle: New file.
44928
44929         New module 'unicase/u16-ct-totitle'.
44930         * lib/unicase/u16-ct-totitle.c: New file.
44931         * modules/unicase/u16-ct-totitle: New file.
44932
44933         New module 'unicase/u8-ct-totitle'.
44934         * lib/unicase/u8-ct-totitle.c: New file.
44935         * lib/unicase/u-ct-totitle.h: New file, derived from
44936         lib/unicase/u-totitle.h.
44937         * modules/unicase/u8-ct-totitle: New file.
44938
44939         New module 'unicase/u32-ct-tolower'.
44940         * lib/unicase/u32-ct-tolower.c: New file.
44941         * modules/unicase/u32-ct-tolower: New file.
44942
44943         New module 'unicase/u16-ct-tolower'.
44944         * lib/unicase/u16-ct-tolower.c: New file.
44945         * modules/unicase/u16-ct-tolower: New file.
44946
44947         New module 'unicase/u8-ct-tolower'.
44948         * lib/unicase/u8-ct-tolower.c: New file.
44949         * modules/unicase/u8-ct-tolower: New file.
44950
44951         New module 'unicase/u32-ct-toupper'.
44952         * lib/unicase/u32-ct-toupper.c: New file.
44953         * modules/unicase/u32-ct-toupper: New file.
44954
44955         New module 'unicase/u16-ct-toupper'.
44956         * lib/unicase/u16-ct-toupper.c: New file.
44957         * modules/unicase/u16-ct-toupper: New file.
44958
44959         New module 'unicase/u8-ct-toupper'.
44960         * lib/unicase/u8-ct-toupper.c: New file.
44961         * modules/unicase/u8-ct-toupper: New file.
44962
44963         Add context arguments to u*_casemap functions.
44964         * lib/unicase/unicasemap.h: Include unicase.h.
44965         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
44966         suffix_context arguments.
44967         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
44968         functions.
44969         (FUNC): Add prefix_context and suffix_context arguments. Use
44970         uc_is_cased and uc_is_case_ignorable.
44971         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
44972         * lib/unicase/u16-casemap.c: Likewise.
44973         * lib/unicase/u32-casemap.c: Likewise.
44974         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
44975         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
44976         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
44977         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
44978         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
44979         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
44980
44981         New module 'unicase/u32-suffix-context'.
44982         * lib/unicase/u32-suffix-context.c: New file.
44983         * modules/unicase/u32-suffix-context: New file.
44984
44985         New module 'unicase/u16-suffix-context'.
44986         * lib/unicase/u16-suffix-context.c: New file.
44987         * modules/unicase/u16-suffix-context: New file.
44988
44989         New module 'unicase/u8-suffix-context'.
44990         * lib/unicase/u8-suffix-context.c: New file.
44991         * lib/unicase/u-suffix-context.h: New file.
44992         * modules/unicase/u8-suffix-context: New file.
44993
44994         New module 'unicase/empty-suffix-context'.
44995         * lib/unicase/empty-suffix-context.c: New file.
44996         * modules/unicase/empty-suffix-context: New file.
44997
44998         New module 'unicase/u32-prefix-context'.
44999         * lib/unicase/u32-prefix-context.c: New file.
45000         * modules/unicase/u32-prefix-context: New file.
45001
45002         New module 'unicase/u16-prefix-context'.
45003         * lib/unicase/u16-prefix-context.c: New file.
45004         * modules/unicase/u16-prefix-context: New file.
45005
45006         New module 'unicase/u8-prefix-context'.
45007         * lib/unicase/u8-prefix-context.c: New file.
45008         * lib/unicase/u-prefix-context.h: New file.
45009         * lib/unicase/context.h: New file.
45010         * modules/unicase/u8-prefix-context: New file.
45011
45012         New module 'unicase/empty-prefix-context'.
45013         * lib/unicase/empty-prefix-context.c: New file.
45014         * modules/unicase/empty-prefix-context: New file.
45015
45016         New module 'unicase/ignorable'.
45017         * lib/unicase/ignorable.c: New file.
45018         * modules/unicase/ignorable: New file.
45019
45020         New module 'unicase/cased'.
45021         * lib/unicase/caseprop.h: New file.
45022         * lib/unicase/cased.c: New file.
45023         * modules/unicase/cased: New file.
45024
45025         New functions for case mapping of substrings.
45026         * lib/unicase.h (casing_prefix_context_t): New type.
45027         (unicase_empty_prefix_context): New variable.
45028         (u8_casing_prefix_context, u16_casing_prefix_context,
45029         u32_casing_prefix_context, u8_casing_prefixes_context,
45030         u16_casing_prefixes_context, u32_casing_prefixes_context): New
45031         declarations.
45032         (casing_suffix_context_t): New type.
45033         (unicase_empty_suffix_context): New variable.
45034         (u8_casing_suffix_context, u16_casing_suffix_context,
45035         u32_casing_suffix_context, u8_casing_suffixes_context,
45036         u16_casing_suffixes_context, u32_casing_suffixes_context,
45037         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
45038         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
45039         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
45040         declarations.
45041
45042 2009-06-28  Jim Meyering  <meyering@redhat.com>
45043
45044         boostrap: indent only with spaces
45045         * build-aux/bootstrap: Indent only with spaces, never TABs.
45046
45047         bootstrap: split long lines
45048         * build-aux/bootstrap: Keep line length < 80.
45049
45050         bootstrap: sync from coreutils
45051         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
45052         just as autoreconf does.  Verify a list of prerequisite
45053         package-name,version-number pairs if defined in bootstrap.conf.
45054         Refer to README-prereq, if prerequisites are not satisfied.
45055
45056 2009-06-27  Eric Blake  <ebb9@byu.net>
45057
45058         tests: add test for bogus NULL definition
45059         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
45060         * tests/test-stdlib.c: Likewise.
45061         * tests/test-string.c: Likewise.
45062         * tests/test-locale.c: Likewise.
45063         * tests/test-unistd.c: Likewise.
45064         * modules/stdio-tests (Depends-on): Add verify.
45065         * modules/stdlib-tests (Depends-on): Likewise.
45066         * modules/string-tests (Depends-on): Likewise.
45067         * modules/locale-tests (Depends-on): Likewise.
45068         * modules/unistd-tests (Depends-on): Likewise.
45069
45070 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
45071
45072         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
45073         self-explaining comment.
45074         * m4/selinux-selinux-h: Update serial.
45075         (gl_LIBSELINUX): New macro, adding a warning for missing development
45076         packages to code extracted from...
45077         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
45078         Add warning for missing development packages here, too.
45079
45080 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
45081
45082         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
45083
45084 2009-06-25  Eric Blake  <ebb9@byu.net>
45085
45086         version-etc: fix regression
45087         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
45088         gcc.
45089         (version_etc): Use it, to catch bugs with trailing NULL.
45090         * lib/version-etc.c (version_etc_arn): Delete unused argument.
45091         (version_etc_va): Fix logic bug.
45092         * modules/version-etc-tests: Add test.
45093         * tests/test-version-etc.c: New file.
45094         * tests/test-version-etc.sh: Likewise.
45095
45096 2009-06-25  Sam Steingold  <sds@gnu.org>
45097
45098         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
45099         mbtowc declaration.
45100
45101 2009-06-25  Eric Blake  <ebb9@byu.net>
45102
45103         fpurge: migrate into <stdio.h>
45104         * lib/fpurge.h: Delete...
45105         * lib/stdio.in.h (fpurge): ...and declare here, instead.
45106         * lib/fpurge.c (fpurge): Change declaring header.
45107         * modules/fpurge (Files): Drop deleted file.
45108         (Depends-on): Add stdio.
45109         (configure.ac): Set witness.
45110         * modules/stdio (Makefile.am): Support fpurge macros.
45111         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
45112         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
45113         * lib/fflush.c: Update client.
45114         * tests/test-fpurge.c: Likewise.
45115         * NEWS: Mention the change.
45116
45117 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
45118
45119         * lib/argp-version-etc.c (program_authors): Add const
45120         qualifier.
45121         * lib/version-etc.c: Fix typos in the comments.
45122         * modules/argp-version-etc: Depends on version-etc.
45123
45124 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
45125
45126         argp-version-etc: new module.
45127
45128         * lib/argp-version-etc.c: New file.
45129         * lib/argp-version-etc.h: New file.
45130         * modules/argp-version-etc: New file.
45131         * modules/argp-version-etc-tests: New file.
45132         * tests/test-argp-version-etc.c: New test.
45133         * tests/test-argp-version-etc-1.sh: New test.
45134
45135 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
45136
45137         Provide additional interfaces and documentation for version-etc
45138         module.
45139
45140         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
45141         interfaces.
45142         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
45143         prototypes.
45144
45145 2009-06-24  Bruno Haible  <bruno@clisp.org>
45146
45147         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
45148         HAVE_LIB${NAME} macro.
45149         Reported by Sam Steingold <sds@gnu.org>.
45150
45151 2009-06-23  Simon Josefsson  <simon@josefsson.org>
45152
45153         * modules/hash-tests (test_hash_LDADD): Link to libintl when
45154         needed.
45155
45156 2009-06-21  Bruno Haible  <bruno@clisp.org>
45157
45158         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
45159         work.
45160         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
45161         together with LIB${NAME}, LTLIB${NAME}.
45162         Reported by Sam Steingold <sds@gnu.org>.
45163
45164 2009-06-20  Jim Meyering  <meyering@redhat.com>
45165
45166         tests: make sc_require_test_exit_idiom more generic
45167         * top/maint.mk (Exit_witness_file): New overridable variable.
45168         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
45169         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
45170
45171 2009-06-19  Jim Meyering  <meyering@redhat.com>
45172
45173         hash: reverse order of src/dst parameters in an internal interface
45174         * lib/hash.c (transfer_entries): Reverse order of parameters to
45175         put DST before SRC.  Adjust callers.
45176
45177         tests: test-hash: avoid wholesale duplication
45178         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
45179         Instead, use a loop and add a single conditional.
45180
45181         tests: test-hash: allow seed selection via a command line argument
45182         * tests/test-hash.c (get_seed): New function.
45183         (main): Use it.
45184
45185 2009-06-19  Eric Blake  <ebb9@byu.net>
45186
45187         hash: avoid memory leak on allocation failure
45188         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
45189         failure.  Factor repeated algorithm...
45190         (transfer_entries): ...into new helper routine.
45191         (hash_delete): React to hash_rehash return value.
45192
45193         hash: reduce memory pressure in hash_rehash no-op case
45194         * lib/hash.c (next_prime): Avoid overflow.
45195         (hash_initialize): Factor bucket size computation...
45196         (compute_bucket_size): ...into new helper function.
45197         (hash_rehash): Use new function and open coding to reduce memory
45198         pressure, and avoid a memory leak in USE_OBSTACK code.
45199         Reported by Jim Meyering.
45200
45201 2009-06-18  Eric Blake  <ebb9@byu.net>
45202
45203         hash: make rotation more obvious
45204         * modules/hash (Depends-on): Add bitrotate and stdint.
45205         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
45206         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
45207         (SIZE_MAX): Rely on headers for definition.
45208         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
45209         (raw_hasher): Use rotr_sz.
45210         Suggested by Jim Meyering.
45211
45212         hash: fix memory leak in last patch
45213         * lib/hash.c (hash_rehash): Avoid memory leak.
45214
45215         hash: avoid no-op rehashing
45216         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
45217
45218         hash: provide default callback functions
45219         * lib/hash.c (raw_hasher, raw_comparator): New functions.
45220         (hash_initialize): Use them as defaults.
45221         * tests/test-hash.c (main): Test this.
45222
45223         hash: minor optimization
45224         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
45225         when possible.
45226         (hash_initialize): Document this promise.
45227         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
45228         * tests/test-hash.c (hash_compare_strings): Test this.
45229
45230 2009-06-18  Bruno Haible  <bruno@clisp.org>
45231
45232         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
45233         going to be replaced anyway.
45234
45235 2009-06-18  Bruno Haible  <bruno@clisp.org>
45236
45237         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
45238         in one place.
45239         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
45240         be replaced anyway.
45241
45242 2009-06-18  Eric Blake  <ebb9@byu.net>
45243
45244         hash: check for resize before insertion
45245         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
45246         threshold before insertion, so that a pathological hash_rehash
45247         that fills every bucket can still trigger another rehash.
45248
45249 2009-06-18  Jim Meyering  <meyering@redhat.com>
45250
45251         hash-tests: add a loop around the small tests
45252         * tests/test-hash.c (main): Repeat small tests with selected
45253         small initial table sizes.
45254
45255 2009-06-17  Eric Blake  <ebb9@byu.net>
45256
45257         hash: minor cleanups
45258         * lib/hash.h (hash_entry): Make opaque, by moving...
45259         * lib/hash.c (hash_entry): ...here.
45260         (hash_insert): Clarify restrictions on what can be inserted.
45261         (hash_get_next): Clarify when it is safe to remove an element
45262         during traversal.
45263         (check_tuning): Skip verification when tuning is known safe.
45264         (hash_initialize): Clarify restrictions on tuning.
45265
45266 2009-06-17  Jim Meyering  <jim@meyering.net>
45267         and Eric Blake  <ebb9@byu.net>
45268
45269         hash-tests: new module
45270         * modules/hash-tests: New file.
45271         * tests/test-hash.c: New file.
45272
45273 2009-06-17  Eric Blake  <ebb9@byu.net>
45274
45275         strstr-simple: document new module
45276         * MODULES.html.sh: Document new module.
45277
45278         strstr, strcasestr: replace on platforms with broken memchr
45279         * modules/strstr: Split into...
45280         * modules/strstr-simple: ...new module that does not care about
45281         performance, but does care about glibc bug.
45282         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
45283         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
45284         if platform memchr is broken, per Debian bug 521737.
45285         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
45286         memchr.
45287         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
45288         * doc/posix-functions/strstr.texi (strstr): Document the fix.
45289         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
45290         * modules/mountlist (Depends-on): Add strstr-simple.
45291         * modules/gen-uni-tables (Depends-on): Likewise.
45292         * modules/argz (Depends-on): Add strstr.
45293
45294 2009-06-17  Bruno Haible  <bruno@clisp.org>
45295
45296         * modules/posix_spawn-internal (Depends-on): Add errno.
45297
45298 2009-06-17  Bruno Haible  <bruno@clisp.org>
45299
45300         Define missing ESTALE on Interix 3.5.
45301         * lib/errno.in.h (ESTALE): Assign a value if missing.
45302         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
45303         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
45304         missing.
45305         * doc/posix-headers/errno.texi: Mention the Interix bug.
45306         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
45307
45308 2009-06-15  Eric Blake  <ebb9@byu.net>
45309
45310         memchr, memchr2: add valgrind exception
45311         * lib/memchr.valgrind: New file.
45312         * lib/memchr2.valgrind: New file.
45313         * modules/memchr (Files): Distribute valgrind file.
45314         * modules/memchr2 (Files): Likewise.
45315
45316         docs: memchr is no longer obsolete
45317         * MODULES.html.sh: Move memchr from obsolete to string.h section.
45318         * lib/string.in.h (memchr): Simplify logic.
45319
45320 2009-06-14  Jim Meyering  <meyering@redhat.com>
45321
45322         link-follow: fix the "checking..." message to not mention trailing slash
45323         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
45324         never considered trailing slashes.
45325
45326 2009-06-14  Bruno Haible  <bruno@clisp.org>
45327
45328         * m4/memchr.m4: Mention also the bug on IA-64.
45329         * doc/posix-functions/memchr.texi: Likewise.
45330
45331 2009-06-12  Eric Blake  <ebb9@byu.net>
45332
45333         memchr: detect broken x86_64 and alpha implementations
45334         * modules/memchr-tests (Depends-on): Move mmap detection...
45335         * modules/memchr (Depends-on): ...here.
45336         (configure.ac): Set indicator.
45337         * lib/string.in.h (memchr): Declare replacement.
45338         * modules/string (Makefile.am): Trigger replacement.
45339         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
45340         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
45341         bugs.
45342         * doc/posix-functions/memchr.texi (memchr): Document the bug.
45343         * modules/getpagesize (License): Relax license.
45344
45345 2009-06-11  Bruno Haible  <bruno@clisp.org>
45346
45347         * lib/idpriv.h: Add more references.
45348
45349 2009-06-08  Bruno Haible  <bruno@clisp.org>
45350
45351         Tests for module 'idpriv-droptemp'.
45352         * modules/idpriv-droptemp-tests: New file.
45353         * tests/test-idpriv-droptemp.sh: New file.
45354         * tests/test-idpriv-droptemp.su.sh: New file.
45355         * tests/test-idpriv-droptemp.c: New file.
45356
45357         New module 'idpriv-droptemp'.
45358         * lib/idpriv-droptemp.c: New file.
45359         * modules/idpriv-droptemp: New file.
45360
45361 2009-06-08  Bruno Haible  <bruno@clisp.org>
45362
45363         Tests for module 'idpriv-drop'.
45364         * modules/idpriv-drop-tests: New file.
45365         * tests/test-idpriv-drop.sh: New file.
45366         * tests/test-idpriv-drop.su.sh: New file.
45367         * tests/test-idpriv-drop.c: New file.
45368
45369         New module 'idpriv-drop'.
45370         * lib/idpriv.h: New file.
45371         * lib-idpriv-drop.c: New file.
45372         * m4/idpriv.m4: New file.
45373         * modules/idpriv-drop: New file.
45374
45375 2009-06-08  Bruno Haible  <bruno@clisp.org>
45376
45377         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
45378         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
45379         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
45380         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
45381         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
45382         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
45383         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
45384
45385 2009-06-08  Eric Blake  <ebb9@byu.net>
45386
45387         test-strstr: use memory fence, when possible
45388         * tests/test-strstr.c (main): Use memory fence, in order to be
45389         more likely to trigger Debian bug 521737.
45390         * modules/strstr-tests (Files): Pull in additional files.
45391
45392         memchr: no longer obsolete, for wider field testing
45393         * modules/memchr (Status, Notice): Delete, this module is no
45394         longer obsolete.
45395         * modules/vasnprintf (Depends-on): Add memchr.
45396
45397 2009-06-07  Jim Meyering  <meyering@redhat.com>
45398
45399         hash: declare some functions with the warn_unused_result attribute
45400         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
45401
45402 2009-06-07  Bruno Haible  <bruno@clisp.org>
45403
45404         * tests/test-alignof.c: Don't test int64_t if it does not exist.
45405         Reported by Eric Blake.
45406
45407 2009-06-06  Eric Blake  <ebb9@byu.net>
45408
45409         test-alignof: fix typo with long double
45410         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
45411         compiler error.
45412
45413 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
45414
45415         Escape non-texinfo { and }s.
45416         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
45417         markup error.
45418
45419 2009-06-04  Jim Meyering  <meyering@redhat.com>
45420
45421         gitlog-to-changelog: don't infloop on an empty commit log
45422         * build-aux/gitlog-to-changelog: Warn about an empty log message.
45423         Reported by Boris Petersen <transacid@centerim.org>.
45424
45425 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
45426
45427         version-etc: extend for packagers
45428         Add three new configure options, intended for packagers:
45429           --with-packager="packager name"
45430           --with-packager-version="packager-specific version"
45431           --with-packager-bug-reports="packager bug reporting"
45432         An example with coreutils:
45433           $ ./configure \
45434             --with-packager=Gentoo \
45435             --with-packager-bug-report=http://bugs.gentoo.org/ \
45436             --with-packager-version="patchset 1.6"
45437           $ ./src/ls --version | head -n2
45438           ls (GNU coreutils) 7.1-dirty
45439           Packaged by Gentoo (patchset 1.6)
45440         Note that the bug reporting info via --help doesn't show up because
45441         coreutils uses its own custom emit_bug_reporting_address() implementation
45442         in src/system.h.  If it didn't, it'd look like:
45443           $ ./src/ls --help | tail -n4
45444           Report bugs to <bug-coreutils@gnu.org>.
45445           Report Gentoo bugs to <http://bugs.gentoo.org/>.
45446           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
45447           General help using GNU software: <http://www.gnu.org/gethelp/>.
45448         * lib/version-etc.c: Print new information, if provided.
45449         * m4/version-etc.m4: New file.
45450         * modules/version-etc (Files): Add m4/version-etc.m4.
45451         (configure.ac): Add gl_VERSION_ETC.
45452
45453 2009-05-31  Bruno Haible  <bruno@clisp.org>
45454
45455         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
45456         and 'int64_t'.
45457         * modules/alignof-tests (Dependencies): Add stdint.
45458         Reported by Eric Blake.
45459
45460 2009-05-31  Bruno Haible  <bruno@clisp.org>
45461
45462         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
45463         restriction due to compiler bugs.
45464         Reported by Eric Blake.
45465
45466 2009-05-31  Simon Josefsson  <simon@josefsson.org>
45467             Bruno Haible  <bruno@clisp.org>
45468
45469         Fix test-alignof failure.
45470         * lib/alignof.h (alignof_slot): New macro.
45471         (alignof_type): New macro, with the same semantics as the previous
45472         'alignof'.
45473         (alignof): Alias to alignof_slot.
45474         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
45475         check that the results are usable as constant expressions.
45476
45477 2009-05-31  Bruno Haible  <bruno@clisp.org>
45478
45479         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
45480         * tests/test-memchr.c (main): Check that memchr does not read past the
45481         first occurrence of the byte.
45482         * tests/test-strstr.c (main): Update comment.
45483         Suggested by Eric Blake.
45484
45485 2009-05-30  Bruno Haible  <bruno@clisp.org>
45486
45487         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
45488         detail how to use dumpbin.
45489         Reported by David Byron <dbyron@dbyron.com>.
45490
45491 2009-06-02  Simon Josefsson  <simon@josefsson.org>
45492
45493         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
45494
45495 2009-06-02  Simon Josefsson  <simon@josefsson.org>
45496
45497         * m4/manywarnings.m4: Add GCC 4.4 warnings.
45498
45499 2009-05-28  Bruno Haible  <bruno@clisp.org>
45500
45501         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
45502         build-aux/ files.
45503
45504 2009-05-28  Simon Josefsson  <simon@josefsson.org>
45505
45506         * gnulib-tool (func_import): Transform license on build-aux/ files too.
45507
45508 2009-05-27  Simon Josefsson  <simon@josefsson.org>
45509
45510         * gnulib-tool (sed_transform_main_lib_file)
45511         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
45512         regexps.
45513
45514 2009-05-26  Simon Josefsson  <simon@josefsson.org>
45515
45516         * tests/test-strstr.c: Add another self-test.
45517         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
45518         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
45519
45520 2009-05-23  Bruno Haible  <bruno@clisp.org>
45521
45522         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
45523         change.
45524
45525 2009-05-21  Bruno Haible  <bruno@clisp.org>
45526
45527         Simplify use of mode_t varargs.
45528         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
45529         uses 'mode_t' or 'int'.
45530         * lib/openat.c (openat): Likewise.
45531         * lib/open-safer.c (open_safer): Likewise.
45532         * m4/mode_t.m4: New file.
45533         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
45534         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
45535         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
45536         * modules/open (Files): Add m4/mode_t.m4.
45537         * modules/openat (Files): Likewise.
45538         * modules/fcntl-safer (Files): Likewise.
45539         Suggested by Eric Blake.
45540
45541 2009-05-21  Pádraig Brady  <P@draigbrady.com>
45542
45543         * doc/glibc-functions/fallocate.texi: New file.
45544         * doc/gnulib.texi: Include it.
45545
45546 2009-05-21  Eric Blake  <ebb9@byu.net>
45547             Bruno Haible  <bruno@clisp.org>
45548
45549         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
45550         invocations.
45551         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
45552
45553 2009-05-21  Eric Blake  <ebb9@byu.net>
45554             Bruno Haible  <bruno@clisp.org>
45555
45556         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
45557         include_next. Fix of 2008-11-20 commit.
45558         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
45559         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
45560         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
45561         NEXT_MATH_H.
45562         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
45563         instead of NEXT_MATH_H.
45564
45565 2009-05-21  Bruno Haible  <bruno@clisp.org>
45566
45567         Avoid redefinition warnings for SIZE_MAX.
45568         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
45569         Reported by Simon Josefsson.
45570
45571 2009-05-21  Bruno Haible  <bruno@clisp.org>
45572
45573         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
45574         AC_CACHE_VAL.
45575
45576 2009-05-20  Bruno Haible  <bruno@clisp.org>
45577
45578         Make zeroptr.h work on mingw.
45579         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
45580         mprotect.
45581         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
45582         * modules/memchr2-tests (configure.ac): Likewise.
45583         * modules/memcmp-tests (configure.ac): Likewise.
45584         * modules/memmem-tests (configure.ac): Likewise.
45585         * modules/memrchr-tests (configure.ac): Likewise.
45586         Reported by Simon Josefsson.
45587
45588 2009-05-20  Simon Josefsson  <simon@josefsson.org>
45589
45590         * tests/test-glob.c: Include string.h for strcmp prototype.
45591
45592 2009-05-20  Simon Josefsson  <simon@josefsson.org>
45593
45594         * modules/getdelim (Depends-on): Add explicit stdint, although it
45595         was implicitly already pulled in via realloc-posix.
45596         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
45597
45598 2009-05-20  Simon Josefsson  <simon@josefsson.org>
45599
45600         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
45601         G. Christensen" <tgc@jupiterrise.com>.
45602         * m4/sys_socket_h.m4: Check for sa_family_t.
45603         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
45604         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
45605         * tests/test-sys_socket.c: Check that sa_family_t works.
45606
45607 2009-05-18  Eric Blake  <ebb9@byu.net>
45608
45609         maint.mk: allow gnulib_dir in VPATH build
45610         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
45611
45612 2009-05-15  Jim Meyering  <meyering@redhat.com>
45613
45614         maint.mk: Give gnulib_dir a default definition.
45615         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
45616         Thus, most packages no longer need to specify this variable in cfg.mk
45617
45618 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
45619
45620         rename.m4: fix typos that would make non-mingw cross-configure fail
45621         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
45622
45623 2009-05-13  Eric Blake  <ebb9@byu.net>
45624
45625         mmap-anon: avoid out-of-order autoconf expansion
45626         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
45627         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
45628         * modules/memchr-tests (Depends-on): Add extensions.
45629         * modules/memchr2-tests (Depends-on): Add extensions.
45630         * modules/memcmp-tests (Depends-on): Add extensions.
45631         * modules/memmem-tests (Depends-on): Add extensions.
45632         * modules/memrchr-tests (Depends-on): Add extensions.
45633
45634 2009-05-13  Bruno Haible  <bruno@clisp.org>
45635
45636         Make some tests ISO C 99 compliant.
45637         * tests/zerosize-ptr.h: New file.
45638         * tests/test-memchr.c: Include zerosize-ptr.h.
45639         (main): Use a zero-size object pointer instead of NULL.
45640         * tests/test-memchr2.c: Include zerosize-ptr.h.
45641         (main): Use a zero-size object pointer instead of NULL.
45642         * tests/test-memcmp.c: Include zerosize-ptr.h.
45643         (main): Use a zero-size object pointer instead of NULL.
45644         * tests/test-memmem.c: Include zerosize-ptr.h.
45645         (main): Use a zero-size object pointer instead of NULL.
45646         * tests/test-memrchr.c: Include zerosize-ptr.h.
45647         (main): Use a zero-size object pointer instead of NULL.
45648         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
45649         m4/mmap-anon.m4.
45650         (Depends-on): Add getpagesize.
45651         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
45652         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
45653         m4/mmap-anon.m4.
45654         (Depends-on): Add getpagesize.
45655         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
45656         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
45657         m4/mmap-anon.m4.
45658         (Depends-on): Add getpagesize.
45659         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
45660         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
45661         m4/mmap-anon.m4.
45662         (Depends-on): Add getpagesize.
45663         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
45664         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
45665         m4/mmap-anon.m4.
45666         (Depends-on): Add getpagesize.
45667         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
45668
45669 2009-05-12  Bruno Haible  <bruno@clisp.org>
45670
45671         Tests for module 'alignof'.
45672         * modules/alignof-tests: New file.
45673         * tests/test-alignof.c: New file.
45674
45675 2009-05-12  Bruno Haible  <bruno@clisp.org>
45676
45677         Fix alignof macro.
45678         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
45679         vendor compilers that are always correct.
45680
45681 2009-05-12  Bruno Haible  <bruno@clisp.org>
45682
45683         Make the MAP_ANONYMOUS detection work on HP-UX 11.
45684         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
45685         not whether its fully works.
45686
45687 2009-05-12  Bruno Haible  <bruno@clisp.org>
45688
45689         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
45690
45691 2009-05-12  Jim Meyering  <meyering@redhat.com>
45692
45693         * top/maint.mk: Adjust backslash alignment.
45694
45695 2009-05-11  Simon Josefsson  <simon@josefsson.org>
45696
45697         * top/maint.mk: Make $(srcdir)/build-aux configurable.
45698
45699 2009-05-11  Eric Blake  <ebb9@byu.net>
45700
45701         argp: avoid undefined behavior
45702         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
45703         macros.
45704
45705 2009-05-08  Simon Josefsson  <simon@josefsson.org>
45706
45707         * tests/test-vc-list-files-git.sh: Do git config of user.email and
45708         user.name to prevent git commit from complaining.
45709
45710 2009-05-10  Bruno Haible  <bruno@clisp.org>
45711
45712         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
45713         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
45714         it rewrites every file name only once.
45715         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
45716
45717 2009-05-08  Bruno Haible  <bruno@clisp.org>
45718
45719         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
45720         instead of 'max'.
45721
45722 2009-05-08  Simon Josefsson  <simon@josefsson.org>
45723
45724         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
45725         sockaddr_storage test.
45726
45727 2009-05-07  Simon Josefsson  <simon@josefsson.org>
45728
45729         * modules/sys_socket (Makefile.am): Substitute
45730         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
45731         * m4/sys_socket_h.m4: Check for sockaddr_storage.
45732         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
45733         * tests/test-sys_socket.c: Check sockaddr_storage.
45734
45735 2009-05-08  Bruno Haible  <bruno@clisp.org>
45736
45737         New module 'alignof'.
45738         * lib/alignof.h: New file.
45739         * modules/alignof: New file.
45740
45741 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
45742             Bruno Haible  <bruno@clisp.org>
45743
45744         Fix test-file-has-acl on FreeBSD.
45745         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
45746         mask is implicitly added.
45747         * tests/test-file-has-acl.c: Include <signal.h>.
45748         (main): Terminate the test after 5 seconds.
45749         * modules/acl-tests (configure.ac): Check for alarm function.
45750
45751 2009-05-04  Bruno Haible  <bruno@clisp.org>
45752
45753         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
45754         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
45755         * modules/errno (configure.ac): Drop AC_REQUIRE.
45756         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
45757         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
45758
45759 2009-05-04  Simon Josefsson  <simon@josefsson.org>
45760
45761         * modules/glob-tests: New module.
45762         * tests/test-glob.c: Add.
45763
45764 2009-05-04  Simon Josefsson  <simon@josefsson.org>
45765
45766         * modules/fnmatch-tests: New module.
45767         * tests/test-fnmatch.c: Add.
45768
45769 2009-05-04  Eric Blake  <ebb9@byu.net>
45770
45771         maint: make the new no-submodule-changes rule VPATH-safe
45772         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
45773
45774 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
45775             Bruno Haible  <bruno@clisp.org>
45776
45777         acl: Fix infinite loop on FreeBSD.
45778         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
45779         of return value from acl_get_entry.
45780         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
45781         Likewise.
45782
45783 2009-05-03  Bruno Haible  <bruno@clisp.org>
45784
45785         * lib/acl-internal.h (acl_entries): Clarify return value.
45786         * lib/acl_entries.c (acl_entries): Likewise.
45787
45788 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
45789
45790         Bug fix in acl module.
45791         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
45792
45793 2009-05-03  Bruno Haible  <bruno@clisp.org>
45794
45795         Create gperf-generated file in the source dir, not in the build dir.
45796         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
45797         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
45798         * modules/unicase/locale-language (unicase/locale-languages.h):
45799         Likewise.
45800         * modules/unicase/special-casing (unicase/special-casing-table.h):
45801         Likewise.
45802         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
45803         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
45804         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
45805         Reported by Ralf Wildenhues.
45806
45807 2009-05-03  Bruno Haible  <bruno@clisp.org>
45808
45809         * modules/fnmatch (Description, configure.ac): Taken from
45810         fnmatch-posix.
45811         * modules/fnmatch-posix: Turn into a symbolic reference to the
45812         'fnmatch' module, and deprecate.
45813         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
45814
45815 2009-05-03  Bruno Haible  <bruno@clisp.org>
45816
45817         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
45818         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
45819         Reported by Ralf Wildenhues.
45820
45821 2009-05-04  Simon Josefsson  <simon@josefsson.org>
45822
45823         * m4/fnmatch.m4: Fix fnmatch re-define.
45824
45825 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
45826
45827         priv-set: new module and tests; adapt write-any-file
45828         * lib/priv-set.c: New file.
45829         * lib/priv-set.h: New file.
45830         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
45831         * lib/write-any-file.c: Simplify by using priv-set module.
45832         * m4/priv-set.m4: New file.
45833         * modules/priv-set: New file.
45834         * modules/unlinkdir: Add dependency on priv-set module.
45835         * modules/write-any-file: Likewise.
45836
45837         Tests for module 'priv-set'.
45838         * modules/priv-set-tests: New file.
45839         * tests/test-priv-set.c: New file.
45840
45841 2009-05-03  Jim Meyering  <meyering@redhat.com>
45842             Bruno Haible  <bruno@clisp.org>
45843
45844         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
45845         use the converted UTF-8 variant of the name instead.
45846
45847 2009-05-03  Jim Meyering  <meyering@redhat.com>
45848
45849         tests: tighten some getdate tests
45850         * tests/test-getdate.c (main): Tighten tests: require equality,
45851         not just greater than.  Set TZ envvar to UTC0.
45852
45853 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
45854
45855         getdate: correctly interpret "next monday" when run on a Monday
45856         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
45857         that e.g., "next tues" (when run on a tuesday) results in a date
45858         that is one week in the future, and not today's date.
45859         I.e., add a week when the wday is the same as the current one.
45860         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
45861         and earlier by Martin Bernreuther and Jan Minář.
45862         * tests/test-getdate.c (main): Check that "next DAY" is always in
45863         the future and that "last DAY" is always in the past.
45864
45865 2009-05-02  Jim Meyering  <meyering@redhat.com>
45866
45867         build: ensure that a release build fails when a submodule is unclean
45868         * top/maint.mk (no-submodule-changes): New rule.
45869         (alpha beta major): Depend on it.
45870
45871 2009-05-02  Bruno Haible  <bruno@clisp.org>
45872
45873         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
45874         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
45875         shell variable gl_fnmatch_required to detect which variant is
45876         requested.
45877         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
45878         gl_FUNC_FNMATCH_POSIX.
45879         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
45880         exclude fnmatch-posix.
45881
45882 2009-05-02  Bruno Haible  <bruno@clisp.org>
45883
45884         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
45885         * modules/mbsrtowcs (License): Change to LGPLv2+.
45886         * modules/strnlen1 (License): Likewise.
45887         Reported by Simon Josefsson.
45888
45889 2009-05-02  Bruno Haible  <bruno@clisp.org>
45890
45891         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
45892         "cross".
45893         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
45894         gnulib-tool was called with option --source-base=lib.
45895
45896 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45897
45898         Use automake *-local hooks without commands, for extensibility.
45899         * modules/localcharset (Makefile.am): Rename install-exec-local
45900         rule to install-exec-localcharset, and make it a prerequisite of
45901         install-exec-local.  Likewise, rename the uninstall-local rule to
45902         uninstall-localcharset, and make it a prerequisite of the former.
45903
45904 2009-05-01  Bruno Haible  <bruno@clisp.org>
45905
45906         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
45907         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
45908         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
45909         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
45910         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
45911         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
45912         m4/locale-zh.m4, m4/codeset.m4.
45913
45914         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
45915         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
45916         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
45917         m4/locale-zh.m4.
45918
45919         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
45920         REPLACE_WCRTOMB if mbstate_t must be replaced.
45921         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
45922         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
45923
45924 2009-05-01  Bruno Haible  <bruno@clisp.org>
45925
45926         Avoid compiler warnings when redefining macros defined by <libintl.h>.
45927         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
45928         dngettext, dcngettext, textdomain, bindtextdomain,
45929         bind_textdomain_codeset): Undefine before redefining.
45930
45931 2009-04-30  Bruno Haible  <bruno@clisp.org>
45932
45933         Fix bug introduced on 2009-04-25.
45934         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
45935         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
45936         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
45937         is defined.
45938         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
45939         is defined.
45940         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
45941         is defined.
45942         Reported by Elbert_Pol <elbert.pol@gmail.com>.
45943
45944 2009-04-28  Bruno Haible  <bruno@clisp.org>
45945
45946         Comment tweaks.
45947         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
45948         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
45949         * lib/unicase.h (u*_casexfrm): Likewise.
45950         Reported by Paolo Bonzini.
45951
45952 2009-04-28  Bruno Haible  <bruno@clisp.org>
45953
45954         Fix a compilation error.
45955         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
45956         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
45957         Reported by Jim Meyering.
45958
45959 2009-04-27  Bruno Haible  <bruno@clisp.org>
45960
45961         New module 'libunistring'.
45962         * modules/libunistring: New file.
45963         * m4/libunistring.m4: New file.
45964         * MODULES.html.sh (Unicode string functions): Add it.
45965
45966 2009-04-27  Eric Blake  <ebb9@byu.net>
45967
45968         maint.mk: allow package-specific header to provide <config.h>
45969         * top/maint.mk (sc_require_config_h): New variable.
45970         (sc_require_config_h, sc_require_config_h_first): Use it.
45971
45972 2009-04-27  Simon Josefsson  <simon@josefsson.org>
45973
45974         * top/maint.mk (sc_avoid_if_before_free): Except
45975         useless-if-before-free script.
45976
45977 2009-04-27  Eric Blake  <ebb9@byu.net>
45978
45979         maintainer-makefile: depend on all required helper scripts
45980         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
45981         useless-if-before-free.
45982         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
45983         version, rather than assuming gnulib checkout is available.
45984         Reported by Simen Josefsson.
45985
45986 2009-04-26  Bruno Haible  <bruno@clisp.org>
45987
45988         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
45989         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
45990         "../" or "..".
45991
45992 2009-04-26  Bruno Haible  <bruno@clisp.org>
45993
45994         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
45995         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
45996         AC_LIB_HAVE_LINKFLAGS.
45997
45998 2009-04-26  Bruno Haible  <bruno@clisp.org>
45999
46000         Simplify calling convention of u*_conv_from_encoding.
46001         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
46002         u32_conv_from_encoding): Expect a resultbuf argument and return the
46003         result directly as a pointer.
46004         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
46005         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
46006         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
46007         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
46008         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
46009         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
46010         Update.
46011         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
46012         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
46013         * lib/vasnprintf.c (VASNPRINTF): Update.
46014         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
46015         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
46016         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
46017         * NEWS: Mention the change.
46018
46019 2009-04-26  Bruno Haible  <bruno@clisp.org>
46020
46021         Simplify calling convention of u*_conv_to_encoding.
46022         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
46023         u32_conv_to_encoding): Expect a resultbuf argument and return the
46024         result directly as a pointer.
46025         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
46026         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
46027         freeing scaled_offsets if mem_iconveha failed.
46028         * lib/unicase/u-casexfrm.h (FUNC): Update.
46029         * lib/uninorm/u-normxfrm.h (FUNC): Update.
46030         * lib/vasnprintf.c (VASNPRINTF): Update.
46031         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
46032         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
46033         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
46034         * NEWS: Mention the change.
46035
46036 2009-04-26  Bruno Haible  <bruno@clisp.org>
46037
46038         Avoid test failures on AIX and OSF/1.
46039         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
46040         malloc(0).
46041         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
46042         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
46043         Likewise.
46044         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
46045         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
46046         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
46047         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
46048         * doc/posix-functions/malloc.texi: Document the portability problem
46049         related to malloc(0).
46050
46051 2009-04-26  Bruno Haible  <bruno@clisp.org>
46052
46053         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
46054         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
46055         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
46056
46057 2009-04-25  Bruno Haible  <bruno@clisp.org>
46058
46059         Avoid link error when creating a namespace clean library.
46060         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
46061         as macro with arguments if already defined as an alias.
46062         * lib/signbitf.c (gl_signbitf): Don't undefine.
46063         * lib/signbitd.c (gl_signbitd): Don't undefine.
46064         * lib/signbitl.c (gl_signbitl): Don't undefine.
46065
46066 2009-04-25  Jim Meyering  <meyering@redhat.com>
46067
46068         vc-list-files: fix another quoting bug
46069         * build-aux/vc-list-files: Avoid sed backslash expansion
46070         of pathological directory names.
46071
46072 2009-04-25  Eric Blake  <ebb9@byu.net>
46073
46074         vc-list-files: fix shell quoting error
46075         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
46076         timestamp.
46077
46078 2009-04-25  Jim Meyering  <meyering@redhat.com>
46079
46080         vc-list-files: restore lost functionality with subdir argument
46081         * build-aux/vc-list-files: When given a non-"." sub-directory
46082         argument, substitute the $dir/ prefix back onto each resulting name.
46083         Otherwise, coreutils' root_tests check would fail.
46084
46085 2009-04-24  Eric Blake  <ebb9@byu.net>
46086
46087         vc-list-files: ignore git symlinks
46088         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
46089         than ls-files, to ignore git symlinks.
46090
46091         maint.mk: import improvements from m4
46092         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
46093         (move_if_change): Delete unused macro.
46094         (news-date-check, vc-diff-check): Support VPATH builds.
46095         (announcement): Likewise.  Split --bootstrap-tools list...
46096         (boostrap-tools): ...into separate list, which can be overridden
46097         in cfg.mk.
46098         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
46099         requiring dependency on useless-if-before-free module.
46100         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
46101         Support VPATH builds.
46102
46103 2009-04-24  Jim Meyering  <meyering@redhat.com>
46104
46105         maint.mk: remove coreutils-specific rules and variables
46106         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
46107         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
46108         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
46109
46110         maint.mk: remove obsolete rule
46111         * top/maint.mk (rel-check): Remove rule.
46112         (WGET, WGETFLAGS): Remove now-unused variables.
46113
46114 2009-04-24  Simon Josefsson  <simon@josefsson.org>
46115
46116         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
46117         consistency.
46118
46119         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
46120         '$(PATH_SEPARATOR)' instead of ':'.
46121
46122 2009-04-24  Simon Josefsson  <simon@josefsson.org>
46123
46124         * lib/getopt1.c (main): Use 'const' for static array.
46125
46126 2009-04-24  Simon Josefsson  <simon@josefsson.org>
46127
46128         * top/maint.mk: Sync with coreutils.
46129         * NEWS: Explain incompatibilities.
46130
46131 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46132             Bruno Haible  <bruno@clisp.org>
46133
46134         Fix cross-compilation results.
46135         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
46136         statement, as third argument of AC_TRY_RUN.
46137         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
46138         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
46139         Likewise.
46140         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
46141         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
46142         Likewise.
46143         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
46144         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
46145         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
46146
46147 2009-04-20  Bruno Haible  <bruno@clisp.org>
46148
46149         Avoid test failure on mingw.
46150         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
46151
46152 2009-04-20  Bruno Haible  <bruno@clisp.org>
46153
46154         Avoid compilation error on mingw.
46155         * modules/localename-tests (Depends-on): Add locale.
46156
46157 2009-04-19  Bruno Haible  <bruno@clisp.org>
46158
46159         Support for building a shared library on Windows platforms.
46160         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
46161         (main): Test the presence of UNINORM_NFC here.
46162         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
46163         (main): Test the presence of UNINORM_NFD here.
46164         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
46165         (main): Test the presence of UNINORM_NFKC here.
46166         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
46167         (main): Test the presence of UNINORM_NFKD here.
46168
46169 2009-04-19  Bruno Haible  <bruno@clisp.org>
46170
46171         Avoid a compiler warning.
46172         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
46173         Change type of variable 'sequence'.
46174
46175 2009-04-19  Bruno Haible  <bruno@clisp.org>
46176
46177         * modules/configmake (Makefile.am): When the contents of configmake.h
46178         does not change, arrange to preserve its modification time.
46179
46180 2009-04-17  Simon Josefsson  <simon@josefsson.org>
46181
46182         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
46183         gettext domain.
46184
46185 2009-04-16  Jim Meyering  <meyering@redhat.com>
46186
46187         useless-if-before-free: improve conversion code
46188         * build-aux/useless-if-before-free: Adjust code-in-comment to match
46189         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
46190
46191 2009-04-14  Bruno Haible  <bruno@clisp.org>
46192
46193         * modules/fcntl (Depends-on): Add extensions.
46194         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
46195
46196 2009-04-12  Ben Pfaff  <blp@gnu.org>
46197
46198         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
46199         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
46200
46201 2009-03-20  Ben Pfaff  <blp@gnu.org>
46202
46203         Make rename replace existing destinations on Windows.
46204         * m4/rename.m4: Add test for Mingw.
46205         * lib/rename.c: Add rename replacement that uses MoveFileEx with
46206         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
46207         * doc/posix-functions/rename.texi: Document.
46208
46209 2009-04-10  Bruno Haible  <bruno@clisp.org>
46210
46211         New include file "iconveh.h".
46212         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
46213         * lib/striconveh.h: Include it.
46214         (enum iconv_ilseq_handler): Remove definition.
46215         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
46216         striconveh.h.
46217         * lib/striconveha.c: Include striconveh.h.
46218         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
46219         * modules/striconveh (Files): Add lib/iconveh.h.
46220         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
46221         lib/striconveh.h.
46222
46223 2009-04-10  Bruno Haible  <bruno@clisp.org>
46224
46225         * lib/uniconv.h: Update comment.
46226
46227 2009-04-10  Bruno Haible  <bruno@clisp.org>
46228
46229         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
46230         always.
46231         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
46232         * lib/unistr/u16-mbtouc-aux.c: Likewise.
46233         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
46234         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
46235         "unistring-notinline.h", so that the function gets defined always.
46236         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
46237         * lib/unistr/u8-uctomb.c: Likewise.
46238         * lib/unistr/u16-mbtouc.c: Likewise.
46239         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
46240         * lib/unistr/u16-uctomb.c: Likewise.
46241         * lib/unistr/u32-mbtouc.c: Likewise.
46242         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
46243         * lib/unistr/u32-uctomb.c: Likewise.
46244
46245 2009-04-10  Bruno Haible  <bruno@clisp.org>
46246
46247         Mark 'utime' obsolete.
46248         * modules/utime (Status, Notice): New sections.
46249         Suggested by Jim Meyering.
46250
46251         Fix cross-compile guess for utime test.
46252         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
46253         autoconf.
46254         * doc/posix-functions/utime.texi: Give more precisions.
46255         Reported by Jan <ipif@ymail.com>.
46256
46257 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
46258
46259         filevercmp: correct today's change
46260         * lib/filevercmp.c: Also handle coreutils' test inputs.
46261         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
46262
46263         Fix regression in 'filevercmp' module. Thanks Sven Joachim
46264         for reporting it.
46265         * lib/filevercmp.c: Special handle for "", "." and "..".
46266         * tests/test-filevercmp.c: Enlarge the set suite.
46267
46268 2009-04-07  Jim Meyering  <meyering@redhat.com>
46269
46270         useless-if-before-free: show how to remove braced useless free, too
46271         * build-aux/useless-if-before-free: still only in a comment, though.
46272
46273 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
46274
46275         maint.mk: import changes to syntax-check macros from coreutils
46276         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
46277         Use them in the relevant macros.
46278
46279 2009-04-06  Bruno Haible  <bruno@clisp.org>
46280
46281         Fix unportable use of bit-fields.
46282         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
46283         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
46284         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
46285
46286 2009-04-06  Bruno Haible  <bruno@clisp.org>
46287
46288         Avoid test failures on AIX and OSF/1.
46289         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
46290         that malloc(0) = NULL.
46291         * tests/unicase/test-u8-tolower.c (check): Likewise.
46292         * tests/unicase/test-u8-totitle.c (check): Likewise.
46293         * tests/unicase/test-u8-toupper.c (check): Likewise.
46294         * tests/unicase/test-u16-casefold.c (check): Likewise.
46295         * tests/unicase/test-u16-tolower.c (check): Likewise.
46296         * tests/unicase/test-u16-totitle.c (check): Likewise.
46297         * tests/unicase/test-u16-toupper.c (check): Likewise.
46298         * tests/unicase/test-u32-casefold.c (check): Likewise.
46299         * tests/unicase/test-u32-tolower.c (check): Likewise.
46300         * tests/unicase/test-u32-totitle.c (check): Likewise.
46301         * tests/unicase/test-u32-toupper.c (check): Likewise.
46302         * tests/uninorm/test-u8-nfc.c (check): Likewise.
46303         * tests/uninorm/test-u8-nfd.c (check): Likewise.
46304         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
46305         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
46306         * tests/uninorm/test-u16-nfc.c (check): Likewise.
46307         * tests/uninorm/test-u16-nfd.c (check): Likewise.
46308         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
46309         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
46310         * tests/uninorm/test-u32-nfc.c (check): Likewise.
46311         * tests/uninorm/test-u32-nfd.c (check): Likewise.
46312         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
46313         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
46314
46315 2009-04-05  Bruno Haible  <bruno@clisp.org>
46316
46317         Work around an autoconf limitation.
46318         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
46319         comment line if it would be longer than 3 KB.
46320
46321 2009-04-05  Bruno Haible  <bruno@clisp.org>
46322
46323         Avoid test failure with libiconv-1.13.
46324         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
46325         of the expected test results.
46326
46327 2009-04-05  Bruno Haible  <bruno@clisp.org>
46328
46329         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
46330         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
46331         that it should be installed.
46332
46333 2009-04-05  Bruno Haible  <bruno@clisp.org>
46334
46335         * gnulib-tool: New option --copy-file.
46336         (func_usage): Document it.
46337         (func_dest_tmpfilename): Moved out of func_import.
46338         (func_add_file, func_update_file): New functions, extracted from
46339         func_import.
46340         (func_import): Update.
46341
46342 2009-04-05  Karl Berry  <karl@gnu.org>
46343
46344         * README: prominently mention gnulib-tool.
46345         Rearrange sections so getting the code is near the top.
46346
46347 2009-04-05  Bruno Haible  <bruno@clisp.org>
46348
46349         * lib/unicase.h: Mention u*_cmp2.
46350         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
46351         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
46352         * lib/unicase/ulc-casecmp.c: Likewise.
46353         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
46354         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
46355         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
46356         unistr/u8-cmp.
46357         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
46358         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
46359         unistr/u16-cmp.
46360         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
46361         unistr/u32-cmp.
46362
46363         * lib/uninorm.h: Mention u*_cmp2.
46364         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
46365         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
46366         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
46367         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
46368         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
46369         unistr/u8-cmp.
46370         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
46371         unistr/u16-cmp.
46372         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
46373         unistr/u32-cmp.
46374
46375         New module 'unistr/u32-cmp2'.
46376         * lib/unistr/u32-cmp2.c: New file.
46377         * modules/unistr/u32-cmp2: New file.
46378
46379         New module 'unistr/u16-cmp2'.
46380         * lib/unistr/u16-cmp2.c: New file.
46381         * modules/unistr/u16-cmp2: New file.
46382
46383         New module 'unistr/u8-cmp2'.
46384         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
46385         * lib/unistr/u8-cmp2.c: New file.
46386         * lib/unistr/u-cmp2.h: New file.
46387         * modules/unistr/u8-cmp2: New file.
46388
46389 2009-04-05  Bruno Haible  <bruno@clisp.org>
46390
46391         * lib/unictype.h (uc_property_is_valid): New macro.
46392         * tests/unictype/test-pr_byname.c (main): Use it.
46393
46394         * lib/unistr.h: Doc fixes.
46395         * lib/uniconv.h: Doc fixes.
46396         * lib/unictype.h: Doc fixes.
46397
46398 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
46399
46400         Port coreutils 7.2 to Solaris 8.
46401
46402         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
46403         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
46404         for Solaris 8.  This is a bit of a hack, as it means it's the
46405         caller's responsibility to add -lnsl if needed, but most likely it
46406         won't be needed since only getaddrinfo uses this and getaddrinfo
46407         isn't needed on Solaris 8.
46408
46409         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
46410         problem to Solaris 8 encountered with coreutils 7.2, which
46411         resulted in a message "fnmatch.c:292: warning: passing argument 4
46412         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
46413         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
46414
46415 2009-04-03  Simon Josefsson  <simon@josefsson.org>
46416
46417         * m4/ld-version-script.m4: Add FIXME comment.
46418
46419 2009-04-02  Simon Josefsson  <simon@josefsson.org>
46420
46421         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
46422         SOVERSION variable.
46423
46424 2009-04-02  Bruno Haible  <bruno@clisp.org>
46425
46426         * Makefile (info, html, dvi, pdf): Combine the rules.
46427         Suggested by Jim Meyering.
46428
46429 2009-04-01  Bruno Haible  <bruno@clisp.org>
46430
46431         * Makefile (info, html, dvi, pdf): New targets.
46432         Reported by Reuben Thomas <rrt@sc3d.org>.
46433
46434 2009-04-01  Bruno Haible  <bruno@clisp.org>
46435
46436         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
46437         can be put into PATH.
46438         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
46439
46440 2009-04-01  Bruno Haible  <bruno@clisp.org>
46441
46442         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
46443
46444 2009-04-01  Bruno Haible  <bruno@clisp.org>
46445
46446         Rename module 'visibility'.
46447         * modules/lib-symbol-visibility: Renamed from modules/visibility.
46448         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
46449         * doc/gnulib.texi: Update.
46450         * MODULES.html.sh (Misc): Update.
46451         * NEWS: Mention the change.
46452
46453 2009-04-01  Simon Josefsson  <simon@josefsson.org>
46454
46455         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
46456         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
46457         Eric Blake <ebb9@byu.net> for review.
46458         * MODULES.html.sh: Add lib-msvc-compat.
46459         * doc/gnulib.texi: Link to new section.
46460         * m4/ld-output-def.m4: New file.
46461         * doc/ld-output-def.texi: New file.
46462
46463 2009-04-01  Simon Josefsson  <simon@josefsson.org>
46464
46465         Rename ld-version-script to lib-symbol-versions.  Suggested by
46466         Bruno Haible <bruno@clisp.org>.
46467         * modules/ld-version-script: Renamed to lib-symbol-versions.
46468         * doc/ld-version-script.texi: Fix module name.
46469         * MODULES.html.sh: Add lib-symbol-versions.
46470
46471 2009-03-31  Simon Josefsson  <simon@josefsson.org>
46472
46473         * modules/u64-tests: New file.
46474         * tests/test-u64.c: New file.
46475
46476 2009-03-04  Simon Josefsson  <simon@josefsson.org>
46477
46478         * MODULES.html.sh: Mention u64.
46479         * modules/u64: New module.
46480         * modules/crypto/sha512: Depend on u64 module instead of providing
46481         u64.h.
46482
46483 2009-03-27  Eric Blake  <ebb9@byu.net>
46484
46485         test-strerror: make debugging EAI_SYSTEM easier
46486         * modules/getaddrinfo-tests (Depends-on): Add strerror.
46487         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
46488         failure was EAI_SYSTEM.
46489
46490 2009-03-25  Bruno Haible  <bruno@clisp.org>
46491
46492         Fix a problem with --enable-relocatable on Solaris 7.
46493         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
46494         since 2008-02-24.
46495
46496 2009-03-25  Eric Blake  <ebb9@byu.net>
46497
46498         test-sockets: avoid gcc warning
46499         * tests/test-sockets.c (main): Silence compiler warning.
46500
46501 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
46502
46503         New modules nproc, pthread, contributed by Glen Lenker.
46504
46505         * MODULES.html.sh: Add pthread, nproc.
46506         * lib/nproc.c: New file.
46507         * lib/nproc.h: New file.
46508         * lib/pthread.in.h: New file.
46509         * m4/pthread.m4: New file.
46510         * modules/nproc: New file.
46511         * modules/pthread: New file.
46512
46513 2009-03-24  Simon Josefsson  <simon@josefsson.org>
46514
46515         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
46516         New variable.
46517
46518 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
46519
46520         filevercmp: handle simple~ and numbered.~3~ backup suffixes
46521         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
46522         * tests/test-filevercmp.c: Add tests for backup suffixes.
46523
46524 2009-03-24  Simon Josefsson  <simon@josefsson.org>
46525
46526         * modules/stdlib (Depends-on): Add stdint, needed when defining
46527         struct random_data on, for example, HP-UX 10.20.  Reported by
46528         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
46529
46530 2009-03-24  Simon Josefsson  <simon@josefsson.org>
46531
46532         * lib/readline.c (readline): Call fflush on stdout after printing
46533         prompt.
46534
46535 2009-03-20  Bruno Haible  <bruno@clisp.org>
46536
46537         Remove dependency from 'close' module to -lws2_32 on native Windows.
46538         * lib/close-hook.h: New file.
46539         * lib/close-hook.c: New file.
46540         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
46541         w32sock.h.
46542         (_gl_close_fd_maybe_socket): Remove function.
46543         (rpl_close): Invoke execute_all_close_hooks instead of
46544         _gl_close_fd_maybe_socket.
46545         * lib/sockets.c: Include close-hook.h, w32sock.h.
46546         (close_fd_maybe_socket): New function, essentially from lib/close.c.
46547         (close_sockets_hook): New variable.
46548         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
46549         (gl_sockets_cleanup): Unregister it.
46550         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
46551         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
46552         * modules/close-hook: New file.
46553         * modules/close (Files): Remove lib/w32sock.h.
46554         (Depends-on): Add close-hook.
46555         (Link): Remove section.
46556         * modules/sockets (Files): Add lib/w32sock.h.
46557         (Depends-on): Add close-hook.
46558         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
46559         invocation.
46560         * NEWS: Mention that LIB_CLOSE is gone.
46561
46562 2009-03-23  Eric Blake  <ebb9@byu.net>
46563
46564         signal-tests: test previous patch
46565         * tests/test-signal.c: New file.
46566         * modules/signal-tests: Likewise.
46567
46568         signal.h: always support 'volatile sig_atomic_t'
46569         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
46570         (gl_SIGNAL_H_DEFAULTS): Add a default.
46571         * modules/signal (Makefile.am): Substitute if needed.
46572         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
46573         users can blindly add volatile.
46574         * doc/posix-headers/signal.texi (signal.h): Document it.
46575         Reported by Matthew Woehlke.
46576
46577 2009-03-23  Jim Meyering  <meyering@redhat.com>
46578
46579         pathmax: PATH_MAX: use pathconf only when available
46580         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
46581         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
46582         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
46583         This avoids a link failure in a PSP cross-compilation environment
46584         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
46585
46586         * lib/vasnprintf.c (divide): Fix typo in comment.
46587
46588 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46589
46590         * gnulib-tool (func_filter_filelist): Fix comment.
46591
46592 2009-03-20  Bruno Haible  <bruno@clisp.org>
46593
46594         Make sockets.h self-contained.
46595         * lib/sockets.c: Include sockets.h first.
46596         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
46597
46598 2009-03-19  Eric Blake  <ebb9@byu.net>
46599
46600         doc: mention more functions added in cygwin 1.7.0
46601         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
46602         addition.
46603         * doc/posix-functions/log2f.texi: Likewise.
46604
46605 2009-03-19  Jim Meyering  <meyering@redhat.com>
46606
46607         fsusage: avoid syntax error due to statement-before-declaration
46608         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
46609         after all declarations.  Reported by Matthew Woehlke in
46610         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
46611
46612 2009-03-18  Eric Blake  <ebb9@byu.net>
46613
46614         build-aux/compile: sync from automake
46615         * build-aux/compile: New file, from automake.
46616         * config/srclist.txt: Mention build-aux/compile.
46617
46618 2009-03-17  Bruno Haible  <bruno@clisp.org>
46619
46620         * lib/git-merge-changelog.c: Fix typo in comment.
46621         Reported by Reuben Thomas <rrt@sc3d.org>.
46622
46623 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
46624
46625         * m4/regex.m4: update and improve help for
46626         --without-included-regex.
46627
46628 2009-03-17  Simon Josefsson  <simon@josefsson.org>
46629
46630         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
46631         failure on missing include files.
46632
46633 2009-03-17  Eric Blake  <ebb9@byu.net>
46634
46635         doc: mention more functions added in cygwin 1.7.0
46636         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
46637         addition.
46638         * doc/posix-functions/fwscanf.texi: Likewise.
46639         * doc/posix-functions/swprintf.texi: Likewise.
46640         * doc/posix-functions/swscanf.texi: Likewise.
46641         * doc/posix-functions/vfwprintf.texi: Likewise.
46642         * doc/posix-functions/vfwscanf.texi: Likewise.
46643         * doc/posix-functions/vswprintf.texi: Likewise.
46644         * doc/posix-functions/vswscanf.texi: Likewise.
46645         * doc/posix-functions/vwprintf.texi: Likewise.
46646         * doc/posix-functions/vwscanf.texi: Likewise.
46647         * doc/posix-functions/wcscasecmp.texi: Likewise.
46648         * doc/posix-functions/wcsdup.texi: Likewise.
46649         * doc/posix-functions/wcsftime.texi: Likewise.
46650         * doc/posix-functions/wcsncasecmp.texi: Likewise.
46651         * doc/posix-functions/wprintf.texi: Likewise.
46652         * doc/posix-functions/wscanf.texi: Likewise.
46653         * doc/glibc-functions/gethostbyname2.texi: Likewise.
46654
46655 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46656
46657         maint.mk: really add $(AM_MAKEFLAGS)
46658         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
46659         was inadvertently omitted in the last commit.
46660         Spotted by Bruno Haible.
46661
46662         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
46663         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
46664         $(AM_MAKEFLAGS)' rather than plain `make'.
46665
46666         gnulib-tool: execute $MAKE not make
46667         * gnulib-tool: Default $MAKE to 'make'.
46668         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
46669         than make.  Initialize $MAKE in the do-autobuild script.
46670
46671         gnulib-tool: use $MAKE not make in generated files
46672         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
46673         make, in generated files.  Initialize $MAKE in the do-autobuild
46674         script.
46675
46676         * top/GNUmakefile (_have-git-version-gen): Fix typo.
46677
46678         GNUmakefile: disable parallelism only for multiple, recursive targets
46679         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
46680         additions in the Makefile.
46681         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
46682         by Automake.
46683         (.NOTPARALLEL): Only disable parallel builds if multiple targets
46684         are listed on the command line and at least one of them is
46685         listed in $(ALL_RECURSIVE_TARGETS).
46686
46687 2009-03-14  Bruno Haible  <bruno@clisp.org>
46688
46689         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
46690         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
46691         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
46692         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
46693         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
46694         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
46695         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
46696         unistr/u8-uctomb.
46697         * modules/unistr/u8-strchr (Depends-on): Likewise.
46698         * modules/unistr/u8-strrchr (Depends-on): Likewise.
46699         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
46700         unistr/u16-uctomb.
46701         * modules/unistr/u16-strchr (Depends-on): Likewise.
46702         * modules/unistr/u16-strrchr (Depends-on): Likewise.
46703
46704 2009-03-12  Bruno Haible  <bruno@clisp.org>
46705
46706         Work around select() bug on Interix 3.5.
46707         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
46708         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
46709         * m4/select.m4: New file.
46710         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
46711         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
46712         * modules/select (Files): Add m4/select.m4.
46713         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
46714         * modules/nanosleep (Depends-on): Add select.
46715         * modules/poll (Depends-on): Likewise.
46716         * doc/posix-functions/select.texi: Mention the Interix bug.
46717         Reported by Markus Duft <mduft@gentoo.org>.
46718
46719         * lib/select.c: Renamed from lib/winsock-select.c.
46720         * modules/select (Files): Add lib/select.c, remove
46721         lib/winsock-select.c.
46722         (configure.ac): Update.
46723
46724 2009-03-12  Jim Meyering  <meyering@redhat.com>
46725
46726         avoid gcc warnings about unused macro definitions
46727         * lib/readtokens.c (STREQ): Remove unused definition.
46728         * lib/xmalloc.c (SIZE_MAX): Likewise.
46729         * lib/openat-die.c (N_): Likewise.
46730         * lib/mountlist.c (SIZE_MAX): Remove definition.
46731         Instead, include <stdint.h>.
46732         * lib/readutmp.c: Likewise.
46733         * modules/readutmp (Depends-on): Add stdint.
46734         * modules/mountlist (Depends-on): Add stdint.
46735         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
46736
46737 2009-03-10  Bruno Haible  <bruno@clisp.org>
46738
46739         Tests for module 'mbmemcasecoll'.
46740         * modules/mbmemcasecoll-tests: New file.
46741         * tests/test-mbmemcasecoll1.sh: New file.
46742         * tests/test-mbmemcasecoll2.sh: New file.
46743         * tests/test-mbmemcasecoll3.sh: New file.
46744         * tests/test-mbmemcasecoll.c: New file.
46745
46746         New module 'mbmemcasecoll'.
46747         * lib/mbmemcasecoll.h: New file.
46748         * lib/mbmemcasecoll.c: New file.
46749         * modules/mbmemcasecoll: New file.
46750
46751         * tests/test-mbmemcasecmp.h: New file, extracted from
46752         tests/test-mbmemcasecmp.c.
46753         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
46754         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
46755         (main): Update.
46756         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
46757
46758 2009-03-09  Bruno Haible  <bruno@clisp.org>
46759
46760         Tests for module 'mbmemcasecmp'.
46761         * modules/mbmemcasecmp-tests: New file.
46762         * tests/test-mbmemcasecmp1.sh: New file.
46763         * tests/test-mbmemcasecmp2.sh: New file.
46764         * tests/test-mbmemcasecmp3.sh: New file.
46765         * tests/test-mbmemcasecmp.c: New file.
46766
46767         New module 'mbmemcasecmp'.
46768         * lib/mbmemcasecmp.h: New file.
46769         * lib/mbmemcasecmp.c: New file.
46770         * modules/mbmemcasecmp: New file.
46771
46772 2009-03-09  Bruno Haible  <bruno@clisp.org>
46773
46774         Tests for module 'unicase/ulc-casecoll'.
46775         * modules/unicase/ulc-casecoll-tests: New file.
46776         * tests/unicase/test-ulc-casecoll1.sh: New file.
46777         * tests/unicase/test-ulc-casecoll2.sh: New file.
46778         * tests/unicase/test-ulc-casecoll.c: New file.
46779
46780         New module 'unicase/ulc-casecoll'.
46781         * lib/unicase.h (ulc_casecoll): New declaration.
46782         * lib/unicase/ulc-casecoll.c: New file.
46783         * modules/unicase/ulc-casecoll: New file.
46784
46785         New module 'unicase/ulc-casexfrm'.
46786         * lib/unicase.h (ulc_casexfrm): New declaration.
46787         * lib/unicase/ulc-casexfrm.c: New file.
46788         * modules/unicase/ulc-casexfrm: New file.
46789
46790 2009-03-09  Bruno Haible  <bruno@clisp.org>
46791
46792         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
46793         invocations.
46794
46795         * m4/mbscasecmp.m4: Remove file.
46796         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
46797         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
46798
46799         * m4/mbscasestr.m4: Remove file.
46800         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
46801         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
46802
46803         * m4/mbschr.m4: Remove file.
46804         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
46805         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
46806
46807         * m4/mbscspn.m4: Remove file.
46808         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
46809         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
46810
46811         * m4/mbslen.m4: Remove file.
46812         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
46813         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
46814
46815         * m4/mbsncasecmp.m4: Remove file.
46816         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
46817         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
46818
46819         * m4/mbsnlen.m4: Remove file.
46820         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
46821         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
46822
46823         * m4/mbspbrk.m4: Remove file.
46824         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
46825         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
46826
46827         * m4/mbspcasecmp.m4: Remove file.
46828         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
46829         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
46830
46831         * m4/mbsrchr.m4: Remove file.
46832         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
46833         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
46834
46835         * m4/mbssep.m4: Remove file.
46836         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
46837         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
46838
46839         * m4/mbsspn.m4: Remove file.
46840         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
46841         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
46842
46843         * m4/mbsstr.m4: Remove file.
46844         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
46845         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
46846
46847         * m4/mbstok_r.m4: Remove file.
46848         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
46849         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
46850
46851         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
46852
46853         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
46854         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
46855
46856         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
46857
46858 2009-03-08  Bruno Haible  <bruno@clisp.org>
46859
46860         Tests for module 'unicase/ulc-casecmp'.
46861         * modules/unicase/ulc-casecmp-tests: New file.
46862         * tests/unicase/test-ulc-casecmp1.sh: New file.
46863         * tests/unicase/test-ulc-casecmp2.sh: New file.
46864         * tests/unicase/test-ulc-casecmp.c: New file.
46865
46866         New module 'unicase/ulc-casecmp'.
46867         * lib/unicase.h (ulc_casecmp): New declaration.
46868         * lib/unicase/ulc-casecmp.c: New file.
46869         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
46870         'const SRC_UNIT *'.
46871         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
46872         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
46873         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
46874         * modules/unicase/ulc-casecmp: New file.
46875
46876         Tests for module 'unicase/u32-is-cased'.
46877         * modules/unicase/u32-is-cased-tests: New file.
46878         * tests/unicase/test-u32-is-cased.c: New file.
46879
46880         Tests for module 'unicase/u16-is-cased'.
46881         * modules/unicase/u16-is-cased-tests: New file.
46882         * tests/unicase/test-u16-is-cased.c: New file.
46883
46884         Tests for module 'unicase/u8-is-cased'.
46885         * modules/unicase/u8-is-cased-tests: New file.
46886         * tests/unicase/test-u8-is-cased.c: New file.
46887         * tests/unicase/test-is-cased.h: New file.
46888
46889         New module 'unicase/u32-is-cased'.
46890         * lib/unicase/u32-is-cased.c: New file.
46891         * modules/unicase/u32-is-cased: New file.
46892
46893         New module 'unicase/u16-is-cased'.
46894         * lib/unicase/u16-is-cased.c: New file.
46895         * modules/unicase/u16-is-cased: New file.
46896
46897         New module 'unicase/u8-is-cased'.
46898         * lib/unicase/u8-is-cased.c: New file.
46899         * lib/unicase/u-is-cased.h: New file.
46900         * modules/unicase/u8-is-cased: New file.
46901
46902         Tests for module 'unicase/u32-is-casefolded'.
46903         * modules/unicase/u32-is-casefolded-tests: New file.
46904         * tests/unicase/test-u32-is-casefolded.c: New file.
46905
46906         Tests for module 'unicase/u16-is-casefolded'.
46907         * modules/unicase/u16-is-casefolded-tests: New file.
46908         * tests/unicase/test-u16-is-casefolded.c: New file.
46909
46910         Tests for module 'unicase/u8-is-casefolded'.
46911         * modules/unicase/u8-is-casefolded-tests: New file.
46912         * tests/unicase/test-u8-is-casefolded.c: New file.
46913         * tests/unicase/test-is-casefolded.h: New file.
46914
46915         New module 'unicase/u32-is-casefolded'.
46916         * lib/unicase/u32-is-casefolded.c: New file.
46917         * modules/unicase/u32-is-casefolded: New file.
46918
46919         New module 'unicase/u16-is-casefolded'.
46920         * lib/unicase/u16-is-casefolded.c: New file.
46921         * modules/unicase/u16-is-casefolded: New file.
46922
46923         New module 'unicase/u8-is-casefolded'.
46924         * lib/unicase/u8-is-casefolded.c: New file.
46925         * modules/unicase/u8-is-casefolded: New file.
46926
46927         Tests for module 'unicase/u32-is-titlecase'.
46928         * modules/unicase/u32-is-titlecase-tests: New file.
46929         * tests/unicase/test-u32-is-titlecase.c: New file.
46930
46931         Tests for module 'unicase/u16-is-titlecase'.
46932         * modules/unicase/u16-is-titlecase-tests: New file.
46933         * tests/unicase/test-u16-is-titlecase.c: New file.
46934
46935         Tests for module 'unicase/u8-is-titlecase'.
46936         * modules/unicase/u8-is-titlecase-tests: New file.
46937         * tests/unicase/test-u8-is-titlecase.c: New file.
46938         * tests/unicase/test-is-titlecase.h: New file.
46939
46940         New module 'unicase/u32-is-titlecase'.
46941         * lib/unicase/u32-is-titlecase.c: New file.
46942         * modules/unicase/u32-is-titlecase: New file.
46943
46944         New module 'unicase/u16-is-titlecase'.
46945         * lib/unicase/u16-is-titlecase.c: New file.
46946         * modules/unicase/u16-is-titlecase: New file.
46947
46948         New module 'unicase/u8-is-titlecase'.
46949         * lib/unicase/u8-is-titlecase.c: New file.
46950         * modules/unicase/u8-is-titlecase: New file.
46951
46952         Tests for module 'unicase/u32-is-lowercase'.
46953         * modules/unicase/u32-is-lowercase-tests: New file.
46954         * tests/unicase/test-u32-is-lowercase.c: New file.
46955
46956         Tests for module 'unicase/u16-is-lowercase'.
46957         * modules/unicase/u16-is-lowercase-tests: New file.
46958         * tests/unicase/test-u16-is-lowercase.c: New file.
46959
46960         Tests for module 'unicase/u8-is-lowercase'.
46961         * modules/unicase/u8-is-lowercase-tests: New file.
46962         * tests/unicase/test-u8-is-lowercase.c: New file.
46963         * tests/unicase/test-is-lowercase.h: New file.
46964
46965         New module 'unicase/u32-is-lowercase'.
46966         * lib/unicase/u32-is-lowercase.c: New file.
46967         * modules/unicase/u32-is-lowercase: New file.
46968
46969         New module 'unicase/u16-is-lowercase'.
46970         * lib/unicase/u16-is-lowercase.c: New file.
46971         * modules/unicase/u16-is-lowercase: New file.
46972
46973         New module 'unicase/u8-is-lowercase'.
46974         * lib/unicase/u8-is-lowercase.c: New file.
46975         * modules/unicase/u8-is-lowercase: New file.
46976
46977         Tests for module 'unicase/u32-is-uppercase'.
46978         * modules/unicase/u32-is-uppercase-tests: New file.
46979         * tests/unicase/test-u32-is-uppercase.c: New file.
46980
46981         Tests for module 'unicase/u16-is-uppercase'.
46982         * modules/unicase/u16-is-uppercase-tests: New file.
46983         * tests/unicase/test-u16-is-uppercase.c: New file.
46984
46985         Tests for module 'unicase/u8-is-uppercase'.
46986         * modules/unicase/u8-is-uppercase-tests: New file.
46987         * tests/unicase/test-u8-is-uppercase.c: New file.
46988         * tests/unicase/test-is-uppercase.h: New file.
46989
46990         New module 'unicase/u32-is-uppercase'.
46991         * lib/unicase/u32-is-uppercase.c: New file.
46992         * modules/unicase/u32-is-uppercase: New file.
46993
46994         New module 'unicase/u16-is-uppercase'.
46995         * lib/unicase/u16-is-uppercase.c: New file.
46996         * modules/unicase/u16-is-uppercase: New file.
46997
46998         New module 'unicase/u8-is-uppercase'.
46999         * lib/unicase/u8-is-uppercase.c: New file.
47000         * modules/unicase/u8-is-uppercase: New file.
47001
47002         New module 'unicase/u32-is-invariant'.
47003         * lib/unicase/u32-is-invariant.c: New file.
47004         * modules/unicase/u32-is-invariant: New file.
47005
47006         New module 'unicase/u16-is-invariant'.
47007         * lib/unicase/u16-is-invariant.c: New file.
47008         * modules/unicase/u16-is-invariant: New file.
47009
47010         New module 'unicase/u8-is-invariant'.
47011         * lib/unicase/u8-is-invariant.c: New file.
47012         * lib/unicase/invariant.h: New file.
47013         * lib/unicase/u-is-invariant.h: New file.
47014         * modules/unicase/u8-is-invariant: New file.
47015
47016         Tests for module 'unicase/u32-casecoll'.
47017         * modules/unicase/u32-casecoll-tests: New file.
47018         * tests/unicase/test-u32-casecoll.c: New file.
47019
47020         Tests for module 'unicase/u16-casecoll'.
47021         * modules/unicase/u16-casecoll-tests: New file.
47022         * tests/unicase/test-u16-casecoll.c: New file.
47023
47024         Tests for module 'unicase/u8-casecoll'.
47025         * modules/unicase/u8-casecoll-tests: New file.
47026         * tests/unicase/test-u8-casecoll.c: New file.
47027
47028         New module 'unicase/u32-casecoll'.
47029         * lib/unicase/u32-casecoll.c: New file.
47030         * modules/unicase/u32-casecoll: New file.
47031
47032         New module 'unicase/u16-casecoll'.
47033         * lib/unicase/u16-casecoll.c: New file.
47034         * modules/unicase/u16-casecoll: New file.
47035
47036         New module 'unicase/u8-casecoll'.
47037         * lib/unicase/u8-casecoll.c: New file.
47038         * lib/unicase/u-casecoll.h: New file.
47039         * modules/unicase/u8-casecoll: New file.
47040
47041         New module 'unicase/u32-casexfrm'.
47042         * lib/unicase/u32-casexfrm.c: New file.
47043         * modules/unicase/u32-casexfrm: New file.
47044
47045         New module 'unicase/u16-casexfrm'.
47046         * lib/unicase/u16-casexfrm.c: New file.
47047         * modules/unicase/u16-casexfrm: New file.
47048
47049         New module 'unicase/u8-casexfrm'.
47050         * lib/unicase/u8-casexfrm.c: New file.
47051         * lib/unicase/u-casexfrm.h: New file.
47052         * modules/unicase/u8-casexfrm: New file.
47053
47054         Tests for module 'unicase/u32-casecmp'.
47055         * modules/unicase/u32-casecmp-tests: New file.
47056         * tests/unicase/test-u32-casecmp.c: New file.
47057
47058         Tests for module 'unicase/u16-casecmp'.
47059         * modules/unicase/u16-casecmp-tests: New file.
47060         * tests/unicase/test-u16-casecmp.c: New file.
47061
47062         Tests for module 'unicase/u8-casecmp'.
47063         * modules/unicase/u8-casecmp-tests: New file.
47064         * tests/unicase/test-u8-casecmp.c: New file.
47065         * tests/unicase/test-casecmp.h: New file.
47066
47067         New module 'unicase/u32-casecmp'.
47068         * lib/unicase/u32-casecmp.c: New file.
47069         * modules/unicase/u32-casecmp: New file.
47070
47071         New module 'unicase/u16-casecmp'.
47072         * lib/unicase/u16-casecmp.c: New file.
47073         * modules/unicase/u16-casecmp: New file.
47074
47075         New module 'unicase/u8-casecmp'.
47076         * lib/unicase/u8-casecmp.c: New file.
47077         * lib/unicase/u-casecmp.h: New file.
47078         * modules/unicase/u8-casecmp: New file.
47079
47080         Tests for module 'unicase/u32-casefold'.
47081         * modules/unicase/u32-casefold-tests: New file.
47082         * tests/unicase/test-u32-casefold.c: New file.
47083
47084         Tests for module 'unicase/u16-casefold'.
47085         * modules/unicase/u16-casefold-tests: New file.
47086         * tests/unicase/test-u16-casefold.c: New file.
47087
47088         Tests for module 'unicase/u8-casefold'.
47089         * modules/unicase/u8-casefold-tests: New file.
47090         * tests/unicase/test-u8-casefold.c: New file.
47091
47092         New module 'unicase/u32-casefold'.
47093         * lib/unicase/u32-casefold.c: New file.
47094         * modules/unicase/u32-casefold: New file.
47095
47096         New module 'unicase/u16-casefold'.
47097         * lib/unicase/u16-casefold.c: New file.
47098         * modules/unicase/u16-casefold: New file.
47099
47100         New module 'unicase/u8-casefold'.
47101         * lib/unicase/u8-casefold.c: New file.
47102         * lib/unicase/u-casefold.h: New file.
47103         * modules/unicase/u8-casefold: New file.
47104
47105         New module 'unicase/tocasefold'.
47106         * lib/unicase/casefold.h: New file.
47107         * lib/unicase/tocasefold.c: New file.
47108         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
47109         * modules/unicase/tocasefold: New file.
47110
47111         Tests for module 'unicase/u32-totitle'.
47112         * modules/unicase/u32-totitle-tests: New file.
47113         * tests/unicase/test-u32-totitle.c: New file.
47114
47115         Tests for module 'unicase/u16-totitle'.
47116         * modules/unicase/u16-totitle-tests: New file.
47117         * tests/unicase/test-u16-totitle.c: New file.
47118
47119         Tests for module 'unicase/u8-totitle'.
47120         * modules/unicase/u8-totitle-tests: New file.
47121         * tests/unicase/test-u8-totitle.c: New file.
47122
47123         New module 'unicase/u32-totitle'.
47124         * lib/unicase/u32-totitle.c: New file.
47125         * modules/unicase/u32-totitle: New file.
47126
47127         New module 'unicase/u16-totitle'.
47128         * lib/unicase/u16-totitle.c: New file.
47129         * modules/unicase/u16-totitle: New file.
47130
47131         New module 'unicase/u8-totitle'.
47132         * lib/unicase/u8-totitle.c: New file.
47133         * lib/unicase/u-totitle.h: New file.
47134         * modules/unicase/u8-totitle: New file.
47135
47136         Tests for module 'unicase/u32-tolower'.
47137         * modules/unicase/u32-tolower-tests: New file.
47138         * tests/unicase/test-u32-tolower.c: New file.
47139
47140         Tests for module 'unicase/u16-tolower'.
47141         * modules/unicase/u16-tolower-tests: New file.
47142         * tests/unicase/test-u16-tolower.c: New file.
47143
47144         Tests for module 'unicase/u8-tolower'.
47145         * modules/unicase/u8-tolower-tests: New file.
47146         * tests/unicase/test-u8-tolower.c: New file.
47147
47148         New module 'unicase/u32-tolower'.
47149         * lib/unicase/u32-tolower.c: New file.
47150         * modules/unicase/u32-tolower: New file.
47151
47152         New module 'unicase/u16-tolower'.
47153         * lib/unicase/u16-tolower.c: New file.
47154         * modules/unicase/u16-tolower: New file.
47155
47156         New module 'unicase/u8-tolower'.
47157         * lib/unicase/u8-tolower.c: New file.
47158         * modules/unicase/u8-tolower: New file.
47159
47160         Tests for module 'unicase/u32-toupper'.
47161         * modules/unicase/u32-toupper-tests: New file.
47162         * tests/unicase/test-u32-toupper.c: New file.
47163
47164         Tests for module 'unicase/u16-toupper'.
47165         * modules/unicase/u16-toupper-tests: New file.
47166         * tests/unicase/test-u16-toupper.c: New file.
47167
47168         Tests for module 'unicase/u8-toupper'.
47169         * modules/unicase/u8-toupper-tests: New file.
47170         * tests/unicase/test-u8-toupper.c: New file.
47171
47172         New module 'unicase/u32-toupper'.
47173         * lib/unicase/u32-toupper.c: New file.
47174         * modules/unicase/u32-toupper: New file.
47175
47176         New module 'unicase/u16-toupper'.
47177         * lib/unicase/u16-toupper.c: New file.
47178         * modules/unicase/u16-toupper: New file.
47179
47180         New module 'unicase/u8-toupper'.
47181         * lib/unicase/u8-toupper.c: New file.
47182         * modules/unicase/u8-toupper: New file.
47183
47184         New module 'unicase/u32-casemap'.
47185         * lib/unicase/u32-casemap.c: New file.
47186         * modules/unicase/u32-casemap: New file.
47187
47188         New module 'unicase/u16-casemap'.
47189         * lib/unicase/u16-casemap.c: New file.
47190         * modules/unicase/u16-casemap: New file.
47191
47192         New module 'unicase/u8-casemap'.
47193         * lib/unicase/unicasemap.h: New file.
47194         * lib/unicase/u8-casemap.c: New file.
47195         * lib/unicase/u-casemap.h: New file.
47196         * modules/unicase/u8-casemap: New file.
47197
47198         New module 'unicase/special-casing'.
47199         * lib/unicase/special-casing.h: New file.
47200         * lib/unicase/special-casing.c: New file.
47201         * lib/unicase/special-casing-table.gperf: New file, generated by
47202         gen-uni-tables.c.
47203         * modules/unicase/special-casing: New file.
47204
47205         Tests for module 'unicase/locale-language'.
47206         * modules/unicase/locale-language-tests: New file.
47207         * tests/unicase/test-locale-language.sh: New file.
47208         * tests/unicase/test-locale-language.c: New file.
47209
47210         New module 'unicase/locale-language'.
47211         * lib/unicase/locale-language.c: New file.
47212         * lib/unicase/locale-languages.gperf: New file.
47213         * modules/unicase/locale-language: New file.
47214
47215         Generate more tables for case conversion and case folding.
47216         * lib/gen-uni-tables.c (SCC_*): New enum items.
47217         (struct special_casing_rule): New type.
47218         (casing_rules, num_casing_rules, allocated_casing_rules): New
47219         variables.
47220         (add_casing_rule, fill_casing_rules): New functions.
47221         (struct casefold_rule): New type.
47222         (casefolding_rules, num_casefolding_rules,
47223         allocated_casefolding_rules): New variables.
47224         (fill_casefolding_rules): New function.
47225         (unicode_casefold): New variable.
47226         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
47227         sort_casing_rules, output_casing_rules): New functions.
47228         (main): Accept to more arguments: SpecialCasing.txt and
47229         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
47230         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
47231         Output mapping for casefolding.
47232
47233         * lib/unicase.h: Include stdbool.h, uninorm.h.
47234         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
47235         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
47236         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
47237         arguments.
47238         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
47239         resultp arguments.
47240         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
47241         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
47242         resultp arguments.
47243         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
47244         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
47245         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
47246         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
47247         declarations.
47248         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
47249
47250 2009-03-08  Bruno Haible  <bruno@clisp.org>
47251
47252         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
47253         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
47254         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
47255         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
47256
47257 2009-03-07  Bruno Haible  <bruno@clisp.org>
47258
47259         Adjust u*_normcmp, u*_normcoll API.
47260         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
47261         u16_normcoll, u32_normcoll): Change failure conventions.
47262         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
47263         errno and return -1.
47264         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
47265
47266 2009-03-07  Bruno Haible  <bruno@clisp.org>
47267
47268         Tests for module 'uninorm/u32-normcoll'.
47269         * modules/uninorm/u32-normcoll-tests: New file.
47270         * tests/uninorm/test-u32-normcoll.c: New file.
47271
47272         Tests for module 'uninorm/u16-normcoll'.
47273         * modules/uninorm/u16-normcoll-tests: New file.
47274         * tests/uninorm/test-u16-normcoll.c: New file.
47275
47276         Tests for module 'uninorm/u8-normcoll'.
47277         * modules/uninorm/u8-normcoll-tests: New file.
47278         * tests/uninorm/test-u8-normcoll.c: New file.
47279
47280 2009-03-07  Bruno Haible  <bruno@clisp.org>
47281
47282         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
47283         tests/uninorm/test-u32-normcmp.c.
47284         * tests/uninorm/test-u32-normcmp.c: Include it.
47285         (test_nonascii): New function, extracted from main. Add some more
47286         tests.
47287         (main): Invoke test_ascii and test_nonascii.
47288         * modules/uninorm/u32-normcmp-tests (Files): Add
47289         tests/uninorm/test-u32-normcmp.h.
47290         (Depends-on): Remove uninorm/u32-normcmp.
47291
47292         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
47293         tests/uninorm/test-u16-normcmp.c.
47294         * tests/uninorm/test-u16-normcmp.c: Include it.
47295         (test_nonascii): New function, extracted from main. Add some more
47296         tests.
47297         (main): Invoke test_ascii and test_nonascii.
47298         * modules/uninorm/u16-normcmp-tests (Files): Add
47299         tests/uninorm/test-u16-normcmp.h.
47300         (Depends-on): Remove uninorm/u16-normcmp.
47301
47302         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
47303         tests/uninorm/test-u8-normcmp.c.
47304         * tests/uninorm/test-u8-normcmp.c: Include it.
47305         (test_nonascii): New function, extracted from main. Add some more
47306         tests.
47307         (main): Invoke test_ascii and test_nonascii.
47308         * modules/uninorm/u8-normcmp-tests (Files): Add
47309         tests/uninorm/test-u8-normcmp.h.
47310         (Depends-on): Remove uninorm/u8-normcmp.
47311
47312 2009-03-07  Bruno Haible  <bruno@clisp.org>
47313
47314         New module 'uninorm/u32-normcoll'.
47315         * lib/uninorm/u32-normcoll.c: New file.
47316         * modules/uninorm/u32-normcoll: New file.
47317
47318         New module 'uninorm/u16-normcoll'.
47319         * lib/uninorm/u16-normcoll.c: New file.
47320         * modules/uninorm/u16-normcoll: New file.
47321
47322         New module 'uninorm/u8-normcoll'.
47323         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
47324         declarations.
47325         * lib/uninorm/u8-normcoll.c: New file.
47326         * lib/uninorm/u-normcoll.h: New file.
47327         * modules/uninorm/u8-normcoll: New file.
47328
47329         New module 'uninorm/u32-normxfrm'.
47330         * lib/uninorm/u32-normxfrm.c: New file.
47331         * modules/uninorm/u32-normxfrm: New file.
47332
47333         New module 'uninorm/u16-normxfrm'.
47334         * lib/uninorm/u16-normxfrm.c: New file.
47335         * modules/uninorm/u16-normxfrm: New file.
47336
47337         New module 'uninorm/u8-normxfrm'.
47338         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
47339         declarations.
47340         * lib/uninorm/u8-normxfrm.c: New file.
47341         * lib/uninorm/u-normxfrm.h: New file.
47342         * modules/uninorm/u8-normxfrm: New file.
47343
47344 2009-03-07  Bruno Haible  <bruno@clisp.org>
47345
47346         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
47347         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
47348         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
47349
47350 2009-03-07  Bruno Haible  <bruno@clisp.org>
47351
47352         New module 'memxfrm'.
47353         * lib/memxfrm.h: New file.
47354         * lib/memxfrm.c: New file.
47355         * modules/memxfrm: New file.
47356
47357 2009-03-07  Bruno Haible  <bruno@clisp.org>
47358
47359         New module 'memcmp2'.
47360         * lib/memcmp2.h: New file.
47361         * lib/memcmp2.c: New file.
47362         * modules/memcmp2: New file.
47363
47364 2009-03-07  Bruno Haible  <bruno@clisp.org>
47365
47366         Tests for module 'uninorm/decomposing-form'.
47367         * modules/uninorm/decomposing-form-tests: New file.
47368         * tests/uninorm/test-decomposing-form.c: New file.
47369
47370         New module 'uninorm/decomposing-form'.
47371         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
47372         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
47373         Add 'decomposing_variant' field.
47374         * lib/uninorm/decomposing-form.c: New file.
47375         * lib/uninorm/nfc.c (uninorm_nfc): Update.
47376         * lib/uninorm/nfd.c (uninorm_nfd): Update.
47377         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
47378         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
47379         * modules/uninorm/decomposing-form: New file.
47380         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
47381         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
47382
47383 2009-03-07  Bruno Haible  <bruno@clisp.org>
47384
47385         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
47386         strings.
47387
47388 2009-03-06  Bruno Haible  <bruno@clisp.org>
47389
47390         Tests for module 'uninorm/u32-normcmp'.
47391         * tests/uninorm/test-u32-normcmp.c: New file.
47392         * modules/uninorm/u32-normcmp-tests: New file.
47393
47394         Tests for module 'uninorm/u16-normcmp'.
47395         * tests/uninorm/test-u16-normcmp.c: New file.
47396         * modules/uninorm/u16-normcmp-tests: New file.
47397
47398         Tests for module 'uninorm/u8-normcmp'.
47399         * tests/uninorm/test-u8-normcmp.c: New file.
47400         * modules/uninorm/u8-normcmp-tests: New file.
47401
47402         New module 'uninorm/u32-normcmp'.
47403         * lib/uninorm/u32-normcmp.c: New file.
47404         * modules/uninorm/u32-normcmp: New file.
47405
47406         New module 'uninorm/u16-normcmp'.
47407         * lib/uninorm/u16-normcmp.c: New file.
47408         * modules/uninorm/u16-normcmp: New file.
47409
47410         New module 'uninorm/u8-normcmp'.
47411         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
47412         declarations.
47413         * lib/uninorm/u8-normcmp.c: New file.
47414         * lib/uninorm/u-normcmp.h: New file.
47415         * modules/uninorm/u8-normcmp: New file.
47416
47417 2009-03-06  Bruno Haible  <bruno@clisp.org>
47418
47419         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
47420         Reported by Eric Blake.
47421
47422 2009-03-06  Eric Blake  <ebb9@byu.net>
47423             Bruno Haible  <bruno@clisp.org>
47424
47425         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
47426         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
47427         condition.
47428         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
47429         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
47430         condition.
47431         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
47432
47433 2009-03-06  Eric Blake  <ebb9@byu.net>
47434
47435         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
47436         to avoid compiler warnings.
47437         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
47438
47439 2009-03-05  Bruno Haible  <bruno@clisp.org>
47440
47441         * tests/test-ftell.c (main): Disable test beyond end of file on
47442         FreeMiNT.
47443         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
47444
47445 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
47446
47447         * lib/filevercmp.c: Move hidden files up in ordering.
47448         * tests/test-filevercmp.c: Add tests for hidden files.
47449
47450 2009-03-04  Bruno Haible  <bruno@clisp.org>
47451
47452         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
47453         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
47454         AM_CFLAGS.
47455         Reported by Simon Josefsson.
47456
47457 2009-03-03  Bruno Haible  <bruno@clisp.org>
47458
47459         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
47460         Reported by Simon Josefsson.
47461
47462         * doc/ld-version-script.texi: Update node reference.
47463
47464 2009-03-03  Bruno Haible  <bruno@clisp.org>
47465
47466         * modules/visibility (License): Change to 'unlimited'.
47467         Suggested by Simon Josefsson.
47468
47469 2009-03-03  Jim Meyering  <meyering@redhat.com>
47470
47471         unlinkdir: cannot_unlink_dir may modify process state
47472         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
47473         it's neither thread-safe nor appropriate for use in a library.
47474
47475 2009-03-03  Eric Blake  <ebb9@byu.net>
47476
47477         test-closein: silence test under Darwin
47478         * tests/test-closein.sh: Ignore stderr from cat, since we don't
47479         care if it dies from EPIPE or EBADF.
47480
47481 2009-03-03  Bruno Haible  <bruno@clisp.org>
47482
47483         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
47484         earlier.
47485         * doc/visibility.texi: Fix @node and @section.
47486
47487 2009-03-03  Simon Josefsson  <simon@josefsson.org>
47488
47489         * doc/gnulib.texi: Link to sections for ld version script and
47490         visibility.
47491         * doc/visibility.texi: Add @node and @section.
47492         * modules/ld-version-script: New module.
47493         * m4/ld-version-script.m4: New file.
47494         * doc/ld-version-script.texi: New file.
47495
47496 2009-03-02  David Lutterkort  <lutter@redhat.com>
47497
47498         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
47499         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47500
47501 2009-03-02  Bruno Haible  <bruno@clisp.org>
47502
47503         * doc/visibility.texi: Mention libtool's -export-symbols option.
47504
47505 2009-03-02  Jim Meyering  <meyering@redhat.com>
47506
47507         announce-gen: new option: --no-print-checksums
47508         * build-aux/announce-gen (usage): Describe it.
47509         (print_checksums): Print a newline here, not in the [*] footnote.
47510         (main): Honor it.
47511
47512 2009-03-01  Bruno Haible  <bruno@clisp.org>
47513
47514         Use socklen_t in the native Windows replacements prototypes.
47515         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
47516         instead of 'int'.
47517         * lib/getsockopt.c (rpl_getsockopt): Likewise.
47518         * lib/setsockopt.c (rpl_setsockopt): Likewise.
47519         * modules/getsockopt (Depends-on): Add socklen.
47520         * modules/setsockopt (Depends-on): Add socklen.
47521
47522 2009-03-01  Bruno Haible  <bruno@clisp.org>
47523
47524         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
47525         least 4.2.
47526
47527 2009-03-01  Eric Blake  <ebb9@byu.net>
47528             Bruno Haible  <bruno@clisp.org>
47529
47530         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
47531         error messages.
47532         * lib/wait-process.c (wait_subprocess): Omit error message about
47533         deadly signal sent to the child of termsigp != NULL.
47534
47535 2009-03-01  Eric Blake  <ebb9@byu.net>
47536
47537         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
47538
47539 2009-03-01  Bruno Haible  <bruno@clisp.org>
47540
47541         Avoid a gcc warning.
47542         * tests/test-sched.c (b): Make global.
47543         Reported by Eric Blake.
47544
47545 2009-01-19  Martin Lambers  <marlam@marlam.de>
47546
47547         Provide POSIX semantics for socket timeout options on W32.
47548         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
47549         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
47550         * modules/setsockopt: Depend on sys_time module for struct timeval.
47551         * modules/getsockopt: Depend on sys_time module for struct timeval.
47552
47553 2009-03-01  Simon Josefsson  <simon@josefsson.org>
47554
47555         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
47556         __USE_GNU, for consistency with netdb.in.h.
47557         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
47558
47559 2009-03-01  Bruno Haible  <bruno@clisp.org>
47560
47561         More support for FreeMiNT.
47562         * lib/fseeko.c (rpl_fseeko): Complete last commit.
47563         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
47564
47565 2009-03-01  Bruno Haible  <bruno@clisp.org>
47566
47567         More support for FreeMiNT.
47568         * lib/fpurge.c (fpurge): Correct last commit.
47569         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
47570
47571 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47572
47573         Fix unportable awk script in vc-list-files.
47574         * build-aux/vc-list-files: In the replacement awk script, use
47575         substr with a second argument of 1, not zero.
47576         Report by Simon Josefsson.
47577
47578 2009-02-28  Bruno Haible  <bruno@clisp.org>
47579
47580         More support for FreeMiNT.
47581         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
47582         to FreeMiNT today.
47583         * lib/fwriting.c (fwriting): Likewise.
47584         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
47585
47586 2009-02-28  Bruno Haible  <bruno@clisp.org>
47587
47588         * tests/test-freadseek.c (main): Disable test beyond end of file on
47589         FreeMiNT.
47590         * tests/test-ftello.c (main): Likewise.
47591         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
47592
47593 2009-02-28  Bruno Haible  <bruno@clisp.org>
47594
47595         Add tentative support for FreeMiNT.
47596         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
47597         * lib/fpurge.c (fpurge): Likewise.
47598         * lib/freadable.c (freadable): Likewise.
47599         * lib/freading.c (freading): Likewise.
47600         * lib/freadptr.c (freadptr): Likewise.
47601         * lib/freadseek.c (freadptrinc): Likewise.
47602         * lib/fseeko.c (rpl_fseeko): Likewise.
47603         * lib/fseterr.c (fseterr): Likewise.
47604         * lib/fwritable.c (fwritable): Likewise.
47605         * lib/fwriting.c (fwriting): Likewise.
47606         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
47607         Hourihane.
47608         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
47609
47610 2009-02-28  Bruno Haible  <bruno@clisp.org>
47611
47612         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
47613         SIGCHLD.
47614         Reported by Jim Meyering.
47615
47616 2009-02-28  Bruno Haible  <bruno@clisp.org>
47617
47618         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
47619         Mention the results of these tests on various platforms.
47620         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
47621         order.
47622         * doc/posix-functions/printf.texi: Likewise.
47623         * doc/posix-functions/snprintf.texi: Likewise.
47624         * doc/posix-functions/sprintf.texi: Likewise.
47625         * doc/posix-functions/vfprintf.texi: Likewise.
47626         * doc/posix-functions/vprintf.texi: Likewise.
47627         * doc/posix-functions/vsnprintf.texi: Likewise.
47628         * doc/posix-functions/vsprintf.texi: Likewise.
47629         * doc/glibc-functions/obstack_printf.texi: Likewise.
47630         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
47631
47632 2009-02-28  Bruno Haible  <bruno@clisp.org>
47633
47634         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
47635         Reported by Loïc Minier <lool@dooz.org>.
47636
47637 2009-02-27  Bruno Haible  <bruno@clisp.org>
47638
47639         * gnulib-tool (func_import): Make the sed expression used to create the
47640         sed script for updating the .gitignore file POSIX compliant.
47641         Reported by Eric Blake.
47642
47643 2009-02-27  Bruno Haible  <bruno@clisp.org>
47644
47645         * gnulib-tool (sed): Don't alias as "sed --posix".
47646         Reported by Eric Blake.
47647
47648 2009-02-27  Bruno Haible  <bruno@clisp.org>
47649
47650         Avoid test link errors.
47651         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
47652         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
47653         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
47654         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
47655         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47656
47657 2009-02-27  Bruno Haible  <bruno@clisp.org>
47658
47659         Avoid spurious "(cached)" in configure output.
47660         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
47661         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
47662         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
47663         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
47664         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
47665         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
47666         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
47667         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
47668         Reported by Eric Blake.
47669
47670 2009-02-27  Eric Blake  <ebb9@byu.net>
47671
47672         printf: fix regression in previous patch
47673         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
47674
47675 2009-02-27  Bruno Haible  <bruno@clisp.org>
47676
47677         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
47678         value.
47679         * lib/stdint.in.h: Likewise.
47680         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
47681
47682 2009-02-27  Eric Blake  <ebb9@byu.net>
47683
47684         doc: mention more functions added in cygwin 1.7.0
47685         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
47686         addition.
47687         * doc/posix-functions/open_wmemstream.texi: Likewise.
47688         * doc/posix-functions/wcsnlen.texi: Likewise.
47689         * doc/posix-functions/wcsnrtombs.texi: Likewise.
47690         * doc/posix-functions/wcstod.texi: Likewise.
47691         * doc/posix-functions/wcstof.texi: Likewise.
47692         * doc/posix-functions/wcstoimax.texi: Likewise.
47693         * doc/posix-functions/wcstok.texi: Likewise.
47694         * doc/posix-functions/wcstoumax.texi: Likewise.
47695
47696         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
47697         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
47698         * doc/posix-functions/fprintf.texi: Update.
47699         * doc/posix-functions/printf.texi: Update.
47700         * doc/posix-functions/snprintf.texi: Update.
47701         * doc/posix-functions/sprintf.texi: Update.
47702         * doc/posix-functions/vfprintf.texi: Update.
47703         * doc/posix-functions/vprintf.texi: Update.
47704         * doc/posix-functions/vsnprintf.texi: Update.
47705         * doc/posix-functions/vsprintf.texi: Update.
47706         * doc/glibc-functions/obstack_printf.texi: Update.
47707         * doc/glibc-functions/obstack_vprintf.texi: Update.
47708
47709 2009-02-26  Eric Blake  <ebb9@byu.net>
47710
47711         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
47712         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
47713         compilation bug by using runtime conversion.
47714         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
47715         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
47716         * modules/ceill-tests (Files): Use nan.h.
47717         * modules/floorl-tests (Files): Likewise.
47718         * modules/frexpl-tests (Files): Likewise.
47719         * modules/isnanl-tests (Files): Likewise.
47720         * modules/ldexpl-tests (Files): Likewise.
47721         * modules/roundl-tests (Files): Likewise.
47722         * modules/truncl-tests (Files): Likewise.
47723         * tests/test-ceill.c (main): Use a working NaN.
47724         * tests/test-floorl.c (main): Likewise.
47725         * tests/test-frexpl.c (main): Likewise.
47726         * tests/test-isnan.c (test_long_double): Likewise.
47727         * tests/test-isnanl.h (main): Likewise.
47728         * tests/test-ldexpl.h (main): Likewise.
47729         * tests/test-roundl.h (main): Likewise.
47730         * tests/test-truncl.h (main): Likewise.
47731         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
47732
47733 2009-02-26  Eric Blake  <ebb9@byu.net>
47734             Bruno Haible  <bruno@clisp.org>
47735
47736         Work around a *printf bug with %ls on Solaris.
47737         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
47738         precision is specified, sprintf stops converting the wide string
47739         argument when the number of bytes that have been produced by this
47740         conversion equals or exceeds the precision.
47741         * doc/posix-functions/fprintf.texi: Update.
47742         * doc/posix-functions/printf.texi: Update.
47743         * doc/posix-functions/snprintf.texi: Update.
47744         * doc/posix-functions/sprintf.texi: Update.
47745         * doc/posix-functions/vfprintf.texi: Update.
47746         * doc/posix-functions/vprintf.texi: Update.
47747         * doc/posix-functions/vsnprintf.texi: Update.
47748         * doc/posix-functions/vsprintf.texi: Update.
47749         * doc/glibc-functions/obstack_printf.texi: Update.
47750         * doc/glibc-functions/obstack_vprintf.texi: Update.
47751
47752 2009-02-26  Eric Blake  <ebb9@byu.net>
47753
47754         stdlib: favor compiler check of random.h
47755         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
47756         to avoid an ObjC random.h installed by Swarm.
47757
47758 2009-02-26  Bruno Haible  <bruno@clisp.org>
47759
47760         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
47761         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
47762         Reported by Gary V. Vaughan <gary@gnu.org>.
47763
47764 2009-02-26  Bruno Haible  <bruno@clisp.org>
47765
47766         Fix *printf behaviour regarding the %ls directive.
47767         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
47768         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
47769         NEED_PRINTF_DIRECTIVE_LS.
47770         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
47771         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
47772         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
47773         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
47774         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
47775         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
47776         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
47777         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
47778         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
47779         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
47780         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
47781         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
47782         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
47783         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47784         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
47785         * doc/posix-functions/fprintf.texi: Update.
47786         * doc/posix-functions/printf.texi: Update.
47787         * doc/posix-functions/snprintf.texi: Update.
47788         * doc/posix-functions/sprintf.texi: Update.
47789         * doc/posix-functions/vfprintf.texi: Update.
47790         * doc/posix-functions/vprintf.texi: Update.
47791         * doc/posix-functions/vsnprintf.texi: Update.
47792         * doc/posix-functions/vsprintf.texi: Update.
47793         * doc/glibc-functions/obstack_printf.texi: Update.
47794         * doc/glibc-functions/obstack_vprintf.texi: Update.
47795         Reported by Eric Blake.
47796
47797 2009-02-25  Bruno Haible  <bruno@clisp.org>
47798
47799         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
47800         with known value.
47801         Reported by Gary V. Vaughan <gary@gnu.org>.
47802
47803 2009-02-25  Bruno Haible  <bruno@clisp.org>
47804
47805         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
47806         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
47807         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
47808         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
47809         Reported by Gary V. Vaughan <gary@gnu.org>.
47810
47811 2009-02-25  Bruno Haible  <bruno@clisp.org>
47812
47813         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
47814         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
47815         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
47816         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
47817         Reported by Gary V. Vaughan <gary@gnu.org>.
47818
47819 2009-02-25  Eric Blake  <ebb9@byu.net>
47820
47821         tests: skip fseek/ftell tests if ungetc is broken
47822         * m4/ungetc.m4: New file.
47823         * modules/fseek-tests: Split test, so ungetc dependency is
47824         separate from rest of test.
47825         * modules/fseeko-tests: Likewise.
47826         * modules/ftell-tests: Likewise.
47827         * modules/ftello-tests: Likewise.
47828         * tests/test-fseek.c (main): Isolate ungetc dependency.
47829         * tests/test-fseeko.c (main): Likewise.
47830         * tests/test-ftell.c (main): Likewise.
47831         * tests/test-ftello.c (main): Likewise.
47832         * tests/test-fseek2.sh: New file.
47833         * tests/test-fseeko2.sh: Likewise.
47834         * tests/test-ftell2.sh: Likewise.
47835         * tests/test-ftello2.sh: Likewise.
47836
47837 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
47838
47839         test-getaddrinfo: fix usage of skip return code 77
47840         * tests/test-gettaddrinfo.c: Return skip code 77 only
47841         for first occurrence of skip (4x77 is not 77)
47842
47843 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
47844
47845         strtod: avoid C99 decl-after-statement
47846         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
47847
47848 2009-02-24  Eric Blake  <ebb9@byu.net>
47849
47850         strtod: detect HP-UX 11.31 bug
47851         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
47852         Reported by Gary V. Vaughan.
47853
47854 2009-02-23  Bruno Haible  <bruno@clisp.org>
47855
47856         Fix invalid read past end of memory block.
47857         * lib/vasnprintf.c (DCHAR_SET): Define.
47858         (local_wcslen): Define only when needed.
47859         (local_strnlen, local_wcsnlen): New functions.
47860         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
47861         directives that involve a conversion ourselves.
47862         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
47863         wcsnlen, mbrtowc, wcrtomb.
47864         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
47865         * tests/test-vasprintf-posix.c (test_function): Likewise.
47866         * tests/test-snprintf-posix.h (test_function): Likewise.
47867         * tests/test-sprintf-posix.h (test_function): Likewise.
47868         Reported by Ben Pfaff <blp@cs.stanford.edu>.
47869
47870 2009-02-22  Bruno Haible  <bruno@clisp.org>
47871
47872         Implement new clarified decomposition of Hangul syllables.
47873         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
47874         of type LTV, return only a pairwise decomposition.
47875         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
47876         Likewise.
47877         * tests/uninorm/test-decomposition.c (main): Updated expected result.
47878         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
47879         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
47880
47881 2009-02-22  Bruno Haible  <bruno@clisp.org>
47882
47883         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
47884         zero-length results and shrink excess allocated memory.
47885         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
47886         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
47887         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
47888         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
47889         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
47890         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
47891         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
47892         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
47893         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
47894         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
47895         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
47896         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
47897
47898 2009-02-21  Bruno Haible  <bruno@clisp.org>
47899
47900         * doc/gnulib.texi: Include safe-alloc.texi earlier.
47901         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
47902         spaces after a period. Put a space between a macro name and its
47903         argument list. Trivial rewordings.
47904         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
47905         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
47906         (main): Return 0 explicitly.
47907
47908 2009-02-21  Bruno Haible  <bruno@clisp.org>
47909
47910         Tests for module 'uninorm/filter'.
47911         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
47912         * modules/uninorm/filter-tests: New file.
47913
47914         New module 'uninorm/filter'.
47915         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
47916         uninorm_filter_flush, uninorm_filter_free): New declarations.
47917         * lib/uninorm/uninorm-filter.c: New file.
47918         * modules/uninorm/filter: New file.
47919
47920 2009-02-21  Bruno Haible  <bruno@clisp.org>
47921
47922         Tests for module 'uninorm/nfkc'.
47923         * tests/uninorm/test-nfkc.c: New file.
47924         * tests/uninorm/test-u8-nfkc.c: New file.
47925         * tests/uninorm/test-u16-nfkc.c: New file.
47926         * tests/uninorm/test-u32-nfkc.c: New file.
47927         * tests/uninorm/test-u32-nfkc-big.sh: New file.
47928         * tests/uninorm/test-u32-nfkc-big.c: New file.
47929         * modules/uninorm/nfkc-tests: New file.
47930
47931         New module 'uninorm/nfkc'.
47932         * lib/uninorm/nfkc.c: New file.
47933         * modules/uninorm/nfkc: New file.
47934
47935         Tests for module 'uninorm/nfkd'.
47936         * tests/uninorm/test-nfkd.c: New file.
47937         * tests/uninorm/test-u8-nfkd.c: New file.
47938         * tests/uninorm/test-u16-nfkd.c: New file.
47939         * tests/uninorm/test-u32-nfkd.c: New file.
47940         * tests/uninorm/test-u32-nfkd-big.sh: New file.
47941         * tests/uninorm/test-u32-nfkd-big.c: New file.
47942         * modules/uninorm/nfkd-tests: New file.
47943
47944         New module 'uninorm/nfkd'.
47945         * lib/uninorm/nfkd.c: New file.
47946         * modules/uninorm/nfkd: New file.
47947
47948         Tests for module 'uninorm/nfc'.
47949         * tests/uninorm/test-nfc.c: New file.
47950         * tests/uninorm/test-u8-nfc.c: New file.
47951         * tests/uninorm/test-u16-nfc.c: New file.
47952         * tests/uninorm/test-u32-nfc.c: New file.
47953         * tests/uninorm/test-u32-nfc-big.sh: New file.
47954         * tests/uninorm/test-u32-nfc-big.c: New file.
47955         * modules/uninorm/nfc-tests: New file.
47956
47957         New module 'uninorm/nfc'.
47958         * lib/uninorm/nfc.c: New file.
47959         * modules/uninorm/nfc: New file.
47960
47961         Tests for module 'uninorm/nfd'.
47962         * tests/uninorm/test-nfd.c: New file.
47963         * tests/uninorm/test-u8-nfd.c: New file.
47964         * tests/uninorm/test-u16-nfd.c: New file.
47965         * tests/uninorm/test-u32-nfd.c: New file.
47966         * tests/uninorm/test-u32-nfd-big.sh: New file.
47967         * tests/uninorm/test-u32-nfd-big.c: New file.
47968         * tests/uninorm/test-u32-normalize-big.h: New file.
47969         * tests/uninorm/test-u32-normalize-big.c: New file.
47970         * tests/uninorm/NormalizationTest.txt: New file, created from
47971         Unicode 5.1.0 NormalizationTest.txt.
47972         * modules/uninorm/nfd-tests: New file.
47973
47974         New module 'uninorm/nfd'.
47975         * lib/uninorm/nfd.c: New file.
47976         * modules/uninorm/nfd: New file.
47977
47978         New module 'uninorm/u32-normalize'.
47979         * lib/uninorm/u32-normalize.c: New file.
47980         * modules/uninorm/u32-normalize: New file.
47981
47982         New module 'uninorm/u16-normalize'.
47983         * lib/uninorm/u16-normalize.c: New file.
47984         * modules/uninorm/u16-normalize: New file.
47985
47986         New module 'uninorm/u8-normalize'.
47987         * lib/uninorm/u8-normalize.c: New file.
47988         * lib/uninorm/normalize-internal.h: New file.
47989         * lib/uninorm/u-normalize-internal.h: New file.
47990         * modules/uninorm/u8-normalize: New file.
47991
47992         New module 'uninorm/decompose-internal'.
47993         * lib/uninorm/decompose-internal.c: New file.
47994         * modules/uninorm/decompose-internal: New file.
47995
47996         Tests for module 'uninorm/composition'.
47997         * tests/uninorm/test-composition.c: New file.
47998         * modules/uninorm/composition-tests: New file.
47999
48000         New module 'uninorm/composition'.
48001         * lib/uninorm/composition.c: New file.
48002         * lib/uninorm/composition-table.gperf: New file, generated by
48003         gen-uni-tables.
48004         * modules/uninorm/composition: New file.
48005
48006         Tests for module 'uninorm/compat-decomposition'.
48007         * tests/uninorm/test-compat-decomposition.c: New file.
48008         * modules/uninorm/compat-decomposition-tests: New file.
48009
48010         New module 'uninorm/compat-decomposition'.
48011         * lib/uninorm/decompose-internal.h: New file.
48012         * lib/uninorm/compat-decomposition.c: New file.
48013         * modules/uninorm/compat-decomposition: New file.
48014
48015         Tests for module 'uninorm/canonical-decomposition'.
48016         * tests/uninorm/test-canonical-decomposition.c: New file.
48017         * modules/uninorm/canonical-decomposition-tests: New file.
48018
48019         New module 'uninorm/canonical-decomposition'.
48020         * lib/uninorm/canonical-decomposition.c: New file.
48021         * modules/uninorm/canonical-decomposition: New file.
48022
48023         Tests for module 'uninorm/decomposition'.
48024         * tests/uninorm/test-decomposition.c: New file.
48025         * modules/uninorm/decomposition-tests: New file.
48026
48027         New module 'uninorm/decomposition'.
48028         * lib/uninorm/decomposition.c: New file.
48029         * modules/uninorm/decomposition: New file.
48030
48031         New module 'uninorm/decomposition-table'.
48032         * lib/uninorm/decomposition-table.h: New file.
48033         * lib/uninorm/decomposition-table.c: New file.
48034         * lib/uninorm/decomposition-table1.h: New file, generated by
48035         gen-uni-tables.
48036         * lib/uninorm/decomposition-table2.h: New file, generated by
48037         gen-uni-tables.
48038         * modules/uninorm/decomposition-table: New file.
48039
48040         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
48041         (UC_DECOMP_*): New enumeration items.
48042         (get_decomposition): New function.
48043         (struct decomp_table): New type.
48044         (output_decomposition, output_decomposition_tables): New functions.
48045         (unicode_composition_exclusions): New variable.
48046         (fill_composition_exclusions, debug_output_composition_tables): New
48047         functions.
48048         (main): Accept one more argument. Invoke fill_composition_exclusions.
48049         Output decomposition and composition tables.
48050
48051         New module 'uninorm/base'.
48052         * lib/uninorm.h: New file.
48053         * lib/unictype.h: Update comment.
48054         * modules/uninorm/base: New file.
48055
48056 2009-02-21  David Lutterkort  <lutter@redhat.com>
48057
48058         Tests for module 'safe-alloc'.
48059         * tests/test-safe-alloc.c: New file.
48060         * modules/safe-alloc-tests: New file.
48061
48062         New module 'safe-alloc'.
48063         * lib/safe-alloc.h: New file.
48064         * lib/safe-alloc.c: New file.
48065         * m4/safe-alloc.m4: New file.
48066         * modules/safe-alloc: New file.
48067         * doc/safe-alloc.texi: New file.
48068         * doc/gnulib.texi: Include it.
48069         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
48070         safe-alloc.
48071
48072 2009-02-18  Bruno Haible  <bruno@clisp.org>
48073
48074         Fix link error on non-glibc systems.
48075         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
48076         variable.
48077         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48078
48079 2009-02-18  Jim Meyering  <meyering@redhat.com>
48080
48081         fts: avoid used-uninitialized error due to recent change
48082         * lib/fts.c (fts_read): Guard uses of the new member,
48083         parent->fts_n_dirs_remaining, since it's not relevant for
48084         the parent of a directory specified on the command-line.
48085
48086 2009-02-17  James Youngman  <jay@gnu.org>
48087             Bruno Haible  <bruno@clisp.org>
48088
48089         * m4/include_next.m4: Reformulate comment.
48090
48091 2009-02-16  Jim Meyering  <meyering@redhat.com>
48092
48093         fts: add #if guards so that the fts_lgpl module still builds
48094         * lib/fts.c: Guard just-added hash-table-using parts with
48095         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
48096         Reported by Simon Josefsson.
48097
48098 2009-02-15  Bruno Haible  <bruno@clisp.org>
48099
48100         * modules/array-mergesort-tests: New file.
48101         * tests/test-array-mergesort.c: New file.
48102
48103         New module 'array-mergesort'.
48104         * modules/array-mergesort: New file.
48105         * lib/array-mergesort.h: New file.
48106
48107 2009-02-15  Bruno Haible  <bruno@clisp.org>
48108
48109         Fix 2009-02-07 commit.
48110         * lib/gen-uni-tables.c (output_predicate, output_category,
48111         output_combclass, output_bidi_category, output_decimal_digit,
48112         output_digit, output_numeric, output_mirror, output_scripts,
48113         output_ident_category, output_simple_mapping): Fix format directives.
48114         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
48115
48116 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
48117
48118         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
48119         fixes are available from IBM.
48120
48121 2009-02-13  Jim Meyering  <meyering@redhat.com>
48122
48123         fts: arrange not to stat non-directories in more cases
48124         This makes GNU find (when it doesn't need to stat each file)
48125         *much* more efficient at traversing reiserfs file systems.
48126         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
48127         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
48128         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
48129         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
48130         (leaf_optimization_applies): New function.
48131         (LCO_hash, LCO_compare): New helper functions.
48132         (link_count_optimize_ok): New function.
48133         (fts_stat): Initialize new member (if dir).
48134         (fts_read): Decrement parent's fts_n_dirs_remaining count if
48135         we've just stat'ed a directory.  Skip the stat call when possible.
48136         ---
48137         Note this AFS-related exchange:
48138         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
48139         and note find's pioctl call in find/fstype.c.
48140         But that is necessary only if you want to enable the
48141         optimization for AFS, and for now, I don't.
48142
48143         fts: move a function definition "up" (no semantic change)
48144         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
48145         "up" to precede upcoming use of a related function.
48146
48147 2009-02-11  Jim Meyering  <meyering@redhat.com>
48148
48149         fts: correct internal computation of nlinks (optimization-related)
48150         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
48151         whether the current entry is a directory, so don't test it.
48152
48153 2009-02-10  Bruno Haible  <bruno@clisp.org>
48154
48155         Tests for module 'uniwbrk/ulc-wordbreaks'.
48156         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
48157         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
48158         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
48159
48160         Tests for module 'uniwbrk/u32-wordbreaks'.
48161         * modules/uniwbrk/u32-wordbreaks-tests: New file.
48162         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
48163
48164         Tests for module 'uniwbrk/u16-wordbreaks'.
48165         * modules/uniwbrk/u16-wordbreaks-tests: New file.
48166         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
48167
48168         Tests for module 'uniwbrk/u8-wordbreaks'.
48169         * modules/uniwbrk/u8-wordbreaks-tests: New file.
48170         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
48171
48172 2009-02-10  Bruno Haible  <bruno@clisp.org>
48173
48174         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
48175         property.
48176         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
48177         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
48178         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
48179
48180 2009-02-10  Simon Josefsson  <simon@josefsson.org>
48181
48182         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
48183         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
48184
48185 2009-02-10  Bruno Haible  <bruno@clisp.org>
48186
48187         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
48188         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
48189         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
48190         * lib/unilbrk/u8-possible-linebreaks.c: Update.
48191         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
48192         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
48193
48194 2009-02-09  Simon Josefsson  <simon@josefsson.org>
48195
48196         * lib/sockets.h (gl_fd_to_handle): New function.
48197
48198         * tests/test-sockets.c: Call gl_fd_to_handle.
48199
48200 2009-02-09  Bruno Haible  <bruno@clisp.org>
48201
48202         * doc/havelib.texi: Document the conventions on bi-arch systems.
48203
48204 2009-02-08  Bruno Haible  <bruno@clisp.org>
48205
48206         Document the AC_LIB_LINKFLAGS macro.
48207         * doc/havelib.texi: New file, mostly written on 2005-05-24.
48208         * doc/gnulib.texi: Include it.
48209
48210 2009-02-08  Bruno Haible  <bruno@clisp.org>
48211
48212         Fix wrong order of sections, compared to TOC.
48213         * doc/gnulib.texi: Include relocatable-maint.texi after the
48214         "Regular expressions" node, not before.
48215
48216 2009-02-08  Bruno Haible  <bruno@clisp.org>
48217
48218         Tests for module 'unicase/totitle'.
48219         * modules/unicase/totitle-tests: New file.
48220
48221         Tests for module 'unicase/tolower'.
48222         * modules/unicase/tolower-tests: New file.
48223
48224         Tests for module 'unicase/toupper'.
48225         * modules/unicase/toupper-tests: New file.
48226         * tests/unicase/test-mapping-part1.h: New file.
48227         * tests/unicase/test-mapping-part2.h: New file.
48228
48229         New module 'unicase/totitle'.
48230         * modules/unicase/totitle: New file.
48231         * lib/unicase/totitle.c: New file.
48232
48233         New module 'unicase/tolower'.
48234         * modules/unicase/tolower: New file.
48235         * lib/unicase/tolower.c: New file.
48236
48237         New module 'unicase/toupper'.
48238         * modules/unicase/toupper: New file.
48239         * lib/unicase/toupper.c: New file.
48240         * lib/unicase/simple-mapping.h: New file.
48241
48242         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
48243         (mapping_table): New structure.
48244         (output_simple_mapping): New function.
48245         (main): Invoke output_simple_mapping_test and output_simple_mapping.
48246         * modules/gen-uni-tables (Description): Update.
48247         * lib/unicase/toupper.h: New file, automatically generated by
48248         gen-uni-tables.
48249         * lib/unicase/tolower.h: New file, automatically generated by
48250         gen-uni-tables.
48251         * lib/unicase/totitle.h: New file, automatically generated by
48252         gen-uni-tables.
48253         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
48254         gen-uni-tables.
48255         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
48256         gen-uni-tables.
48257         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
48258         gen-uni-tables.
48259
48260         New module 'unicase/base'.
48261         * modules/unicase/base: New file.
48262         * lib/unicase.h: New file.
48263
48264 2009-02-08  Bruno Haible  <bruno@clisp.org>
48265
48266         New module 'uniwbrk/ulc-wordbreaks'.
48267         * modules/uniwbrk/ulc-wordbreaks: New file.
48268         * lib/uniwbrk/ulc-wordbreaks.c: New file.
48269
48270         New module 'uniwbrk/u32-wordbreaks'.
48271         * modules/uniwbrk/u32-wordbreaks: New file.
48272         * lib/uniwbrk/u32-wordbreaks.c: New file.
48273
48274         New module 'uniwbrk/u16-wordbreaks'.
48275         * modules/uniwbrk/u16-wordbreaks: New file.
48276         * lib/uniwbrk/u16-wordbreaks.c: New file.
48277
48278         New module 'uniwbrk/u8-wordbreaks'.
48279         * modules/uniwbrk/u8-wordbreaks: New file.
48280         * lib/uniwbrk/u8-wordbreaks.c: New file.
48281         * lib/uniwbrk/u-wordbreaks.h: New file.
48282
48283         New module 'uniwbrk/table'.
48284         * modules/uniwbrk/table: New file.
48285         * lib/uniwbrk/wbrktable.h: New file.
48286         * lib/uniwbrk/wbrktable.c: New file.
48287
48288         New module 'uniwbrk/wordbreak-property'.
48289         * modules/uniwbrk/wordbreak-property: New file.
48290         * lib/uniwbrk/wordbreak-property.c: New file.
48291
48292         * lib/gen-uni-tables.c (WBP_*): New enum items.
48293         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
48294         (unicode_org_wbp): New variable.
48295         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
48296         New functions.
48297         (wbp_table): New structure.
48298         (output_wbp, output_wbrk_tables): New functions.
48299         (main): Accept additional argument. Invoke fill_org_wbp,
48300         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
48301         output_wbrk_tables.
48302         * modules/gen-uni-tables (Description): Update.
48303         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
48304         gen-uni-tables.
48305
48306         New module 'uniwbrk/base'.
48307         * modules/uniwbrk/base: New file.
48308         * lib/uniwbrk.h: New file.
48309
48310 2009-02-08  Bruno Haible  <bruno@clisp.org>
48311
48312         Update to Unicode 5.1.0.
48313         * lib/gen-uni-tables.c (is_property_alphabetic): Include
48314         U+2185..U+2188.
48315         (is_property_default_ignorable_code_point): Don't include characters
48316         of category Cc or Cs and not-a-characters.
48317         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
48318         U+0D79, U+109E, U+109F, U+A60C.
48319         * lib/unictype/bidi_of.h: Regenerated.
48320         * lib/unictype/blocks.h: Regenerated.
48321         * lib/unictype/categ_C.h: Regenerated.
48322         * lib/unictype/categ_Cf.h: Regenerated.
48323         * lib/unictype/categ_Cn.h: Regenerated.
48324         * lib/unictype/categ_L.h: Regenerated.
48325         * lib/unictype/categ_Ll.h: Regenerated.
48326         * lib/unictype/categ_Lm.h: Regenerated.
48327         * lib/unictype/categ_Lo.h: Regenerated.
48328         * lib/unictype/categ_Lu.h: Regenerated.
48329         * lib/unictype/categ_M.h: Regenerated.
48330         * lib/unictype/categ_Mc.h: Regenerated.
48331         * lib/unictype/categ_Me.h: Regenerated.
48332         * lib/unictype/categ_Mn.h: Regenerated.
48333         * lib/unictype/categ_N.h: Regenerated.
48334         * lib/unictype/categ_Nd.h: Regenerated.
48335         * lib/unictype/categ_Nl.h: Regenerated.
48336         * lib/unictype/categ_No.h: Regenerated.
48337         * lib/unictype/categ_P.h: Regenerated.
48338         * lib/unictype/categ_Pd.h: Regenerated.
48339         * lib/unictype/categ_Pe.h: Regenerated.
48340         * lib/unictype/categ_Pf.h: Regenerated.
48341         * lib/unictype/categ_Pi.h: Regenerated.
48342         * lib/unictype/categ_Po.h: Regenerated.
48343         * lib/unictype/categ_Ps.h: Regenerated.
48344         * lib/unictype/categ_S.h: Regenerated.
48345         * lib/unictype/categ_Sk.h: Regenerated.
48346         * lib/unictype/categ_Sm.h: Regenerated.
48347         * lib/unictype/categ_So.h: Regenerated.
48348         * lib/unictype/categ_of.h: Regenerated.
48349         * lib/unictype/combining.h: Regenerated.
48350         * lib/unictype/ctype_alnum.h: Regenerated.
48351         * lib/unictype/ctype_alpha.h: Regenerated.
48352         * lib/unictype/ctype_graph.h: Regenerated.
48353         * lib/unictype/ctype_lower.h: Regenerated.
48354         * lib/unictype/ctype_print.h: Regenerated.
48355         * lib/unictype/ctype_punct.h: Regenerated.
48356         * lib/unictype/ctype_upper.h: Regenerated.
48357         * lib/unictype/decdigit.h: Regenerated.
48358         * lib/unictype/digit.h: Regenerated.
48359         * lib/unictype/mirror.h: Regenerated.
48360         * lib/unictype/numeric.h: Regenerated.
48361         * lib/unictype/pr_alphabetic.h: Regenerated.
48362         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
48363         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
48364         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
48365         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
48366         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
48367         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
48368         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
48369         * lib/unictype/pr_combining.h: Regenerated.
48370         * lib/unictype/pr_dash.h: Regenerated.
48371         * lib/unictype/pr_decimal_digit.h: Regenerated.
48372         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
48373         * lib/unictype/pr_deprecated.h: Regenerated.
48374         * lib/unictype/pr_diacritic.h: Regenerated.
48375         * lib/unictype/pr_extender.h: Regenerated.
48376         * lib/unictype/pr_format_control.h: Regenerated.
48377         * lib/unictype/pr_grapheme_base.h: Regenerated.
48378         * lib/unictype/pr_grapheme_extend.h: Regenerated.
48379         * lib/unictype/pr_grapheme_link.h: Regenerated.
48380         * lib/unictype/pr_id_continue.h: Regenerated.
48381         * lib/unictype/pr_id_start.h: Regenerated.
48382         * lib/unictype/pr_ideographic.h: Regenerated.
48383         * lib/unictype/pr_ignorable_control.h: Regenerated.
48384         * lib/unictype/pr_lowercase.h: Regenerated.
48385         * lib/unictype/pr_math.h: Regenerated.
48386         * lib/unictype/pr_numeric.h: Regenerated.
48387         * lib/unictype/pr_other_alphabetic.h: Regenerated.
48388         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
48389         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
48390         * lib/unictype/pr_other_id_continue.h: Regenerated.
48391         * lib/unictype/pr_other_lowercase.h: Regenerated.
48392         * lib/unictype/pr_other_math.h: Regenerated.
48393         * lib/unictype/pr_punctuation.h: Regenerated.
48394         * lib/unictype/pr_sentence_terminal.h: Regenerated.
48395         * lib/unictype/pr_soft_dotted.h: Regenerated.
48396         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
48397         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
48398         * lib/unictype/pr_unified_ideograph.h: Regenerated.
48399         * lib/unictype/pr_uppercase.h: Regenerated.
48400         * lib/unictype/pr_xid_continue.h: Regenerated.
48401         * lib/unictype/pr_xid_start.h: Regenerated.
48402         * lib/unictype/pr_zero_width.h: Regenerated.
48403         * lib/unictype/scripts.h: Regenerated.
48404         * lib/unictype/scripts_byname.gperf: Regenerated.
48405         * lib/unictype/sy_java_ident.h: Regenerated.
48406         * lib/unilbrk/lbrkprop1.h: Regenerated.
48407         * lib/unilbrk/lbrkprop2.h: Regenerated.
48408         * tests/unictype/test-categ_C.c: Regenerated.
48409         * tests/unictype/test-categ_Cf.c: Regenerated.
48410         * tests/unictype/test-categ_Cn.c: Regenerated.
48411         * tests/unictype/test-categ_L.c: Regenerated.
48412         * tests/unictype/test-categ_Ll.c: Regenerated.
48413         * tests/unictype/test-categ_Lm.c: Regenerated.
48414         * tests/unictype/test-categ_Lo.c: Regenerated.
48415         * tests/unictype/test-categ_Lu.c: Regenerated.
48416         * tests/unictype/test-categ_M.c: Regenerated.
48417         * tests/unictype/test-categ_Mc.c: Regenerated.
48418         * tests/unictype/test-categ_Me.c: Regenerated.
48419         * tests/unictype/test-categ_Mn.c: Regenerated.
48420         * tests/unictype/test-categ_N.c: Regenerated.
48421         * tests/unictype/test-categ_Nd.c: Regenerated.
48422         * tests/unictype/test-categ_Nl.c: Regenerated.
48423         * tests/unictype/test-categ_No.c: Regenerated.
48424         * tests/unictype/test-categ_P.c: Regenerated.
48425         * tests/unictype/test-categ_Pd.c: Regenerated.
48426         * tests/unictype/test-categ_Pe.c: Regenerated.
48427         * tests/unictype/test-categ_Pf.c: Regenerated.
48428         * tests/unictype/test-categ_Pi.c: Regenerated.
48429         * tests/unictype/test-categ_Po.c: Regenerated.
48430         * tests/unictype/test-categ_Ps.c: Regenerated.
48431         * tests/unictype/test-categ_S.c: Regenerated.
48432         * tests/unictype/test-categ_Sk.c: Regenerated.
48433         * tests/unictype/test-categ_Sm.c: Regenerated.
48434         * tests/unictype/test-categ_So.c: Regenerated.
48435         * tests/unictype/test-ctype_alnum.c: Regenerated.
48436         * tests/unictype/test-ctype_alpha.c: Regenerated.
48437         * tests/unictype/test-ctype_graph.c: Regenerated.
48438         * tests/unictype/test-ctype_lower.c: Regenerated.
48439         * tests/unictype/test-ctype_print.c: Regenerated.
48440         * tests/unictype/test-ctype_punct.c: Regenerated.
48441         * tests/unictype/test-ctype_upper.c: Regenerated.
48442         * tests/unictype/test-decdigit.h: Regenerated.
48443         * tests/unictype/test-digit.h: Regenerated.
48444         * tests/unictype/test-numeric.h: Regenerated.
48445         * tests/unictype/test-pr_alphabetic.c: Regenerated.
48446         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
48447         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
48448         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
48449         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
48450         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
48451         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
48452         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
48453         * tests/unictype/test-pr_combining.c: Regenerated.
48454         * tests/unictype/test-pr_dash.c: Regenerated.
48455         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
48456         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
48457         * tests/unictype/test-pr_deprecated.c: Regenerated.
48458         * tests/unictype/test-pr_diacritic.c: Regenerated.
48459         * tests/unictype/test-pr_extender.c: Regenerated.
48460         * tests/unictype/test-pr_format_control.c: Regenerated.
48461         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
48462         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
48463         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
48464         * tests/unictype/test-pr_id_continue.c: Regenerated.
48465         * tests/unictype/test-pr_id_start.c: Regenerated.
48466         * tests/unictype/test-pr_ideographic.c: Regenerated.
48467         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
48468         * tests/unictype/test-pr_lowercase.c: Regenerated.
48469         * tests/unictype/test-pr_math.c: Regenerated.
48470         * tests/unictype/test-pr_numeric.c: Regenerated.
48471         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
48472         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
48473         Regenerated.
48474         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
48475         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
48476         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
48477         * tests/unictype/test-pr_other_math.c: Regenerated.
48478         * tests/unictype/test-pr_punctuation.c: Regenerated.
48479         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
48480         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
48481         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
48482         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
48483         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
48484         * tests/unictype/test-pr_uppercase.c: Regenerated.
48485         * tests/unictype/test-pr_xid_continue.c: Regenerated.
48486         * tests/unictype/test-pr_xid_start.c: Regenerated.
48487         * tests/unictype/test-pr_zero_width.c: Regenerated.
48488
48489         Update to Unicode 5.1.0.
48490         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
48491         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
48492         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
48493         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
48494         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
48495         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
48496         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
48497         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
48498         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
48499         (nonspacing_table_ind): Update.
48500         * tests/uniwidth/test-uc_width2.sh: Update expected result.
48501
48502         Update to Unicode 5.1.0.
48503         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
48504         code transform.
48505         * lib/uniname/uniname.c (unicode_character_name,
48506         unicode_name_character): Add the range 0x1Fxxx to the code transform.
48507         * lib/uniname/uninames.h: Regenerated.
48508         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
48509
48510 2009-02-07  Bruno Haible  <bruno@clisp.org>
48511
48512         Merge gen-ctype and gen-lbrk into a single program.
48513         * lib/gen-uni-tables.c: New file, incorporating
48514         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
48515         Add directory prefixes to the names of the generated files.
48516         * lib/unictype/gen-ctype.c: Remove file.
48517         * lib/unilbrk/gen-lbrk.c: Remove file.
48518         * modules/gen-uni-tables: New file.
48519         * modules/unictype/gen-ctype: Remove file.
48520         * modules/unilbrk/gen-lbrk: Remove file.
48521
48522 2009-02-07  Bruno Haible  <bruno@clisp.org>
48523
48524         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
48525
48526         New module 'unistr/u32-strcoll'.
48527         * modules/unistr/u32-strcoll: New file.
48528         * lib/unistr/u32-strcoll.c: New file.
48529
48530         New module 'unistr/u16-strcoll'.
48531         * modules/unistr/u16-strcoll: New file.
48532         * lib/unistr/u16-strcoll.c: New file.
48533
48534         New module 'unistr/u8-strcoll'.
48535         * modules/unistr/u8-strcoll: New file.
48536         * lib/unistr/u8-strcoll.c: New file.
48537         * lib/unistr/u-strcoll.h: New file.
48538
48539 2009-02-07  Bruno Haible  <bruno@clisp.org>
48540
48541         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
48542         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
48543         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
48544         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
48545         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
48546         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
48547
48548 2009-02-07  Bruno Haible  <bruno@clisp.org>
48549
48550         Make 64-bit clean.
48551         * lib/unictype/gen-ctype.c (output_predicate, output_category,
48552         output_combclass, output_bidi_category, output_decimal_digit,
48553         output_digit, output_numeric, output_mirror, output_scripts,
48554         output_ident_category): Use proper width specifier in format strings.
48555
48556 2009-02-07  Bruno Haible  <bruno@clisp.org>
48557
48558         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
48559         failure behaviour.
48560
48561 2009-02-07  Jim Meyering  <meyering@redhat.com>
48562
48563         regex: avoid compilation failure with upcoming gcc-4.4
48564         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
48565         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
48566         "... error: integer overflow in preprocessor expression".
48567
48568 2009-02-05  Ben Pfaff  <blp@gnu.org>
48569
48570         Fix link errors on Windows when close module is used.
48571         * modules/close: Add $(LIB_CLOSE) to Link section.
48572         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
48573         $(LIB_CLOSE) on Windows.
48574
48575 2009-02-05  Jim Meyering  <meyering@redhat.com>
48576
48577         still avoid unused-parameter warnings, but do it cleanly
48578         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
48579         (get_fs_usage): Cast to void instead.
48580         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
48581         (dev_from_mount_options, read_file_system_list): Cast to void.
48582         Prompted by Bruno Haible.
48583
48584 2009-02-04  Jim Meyering  <meyering@redhat.com>
48585
48586         fsusage.c: correct copyright year
48587         * lib/fsusage.c: Reflect year in which the change is pushed into
48588
48589         avoid misc. warnings
48590         * lib/fsusage.c (UNUSED_PARAM): Define.
48591         (get_fs_usage): Mark parameter "disk" as unused.
48592         * lib/getugroups.c (getgrent): Use "void" in prototype.
48593         * lib/mountlist.c: Mark unused parameters.
48594         (read_file_system_list): Declare a local with "const".
48595         * lib/nanosleep.c (getnow): Declare static.
48596         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
48597
48598         dirfd: set errno upon failure
48599         * lib/dirfd.c: Include <errno.h>.
48600         Set errno to ENOTSUP when returning -1.
48601         * modules/dirfd (Depends-on): Add errno.
48602         Suggested by John Kodis <kodis@comcast.net>.
48603
48604 2009-02-01  Bruno Haible  <bruno@clisp.org>
48605
48606         Don't assume sizeof (long) >= sizeof (void *).
48607         * lib/memcmp.c: Include stdint.h.
48608         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
48609         srcp2 to 'const byte *'.
48610         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
48611         types to uintptr_t.
48612         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
48613         * modules/memcmp (Depends-on): Add stdint.
48614         Reported by Ozkan Sezer <sezeroz@gmail.com>.
48615
48616 2009-01-30  Eric Blake  <ebb9@byu.net>
48617
48618         fix more require-before-expand issues
48619         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
48620         expand, AC_PROG_AWK.
48621         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
48622
48623 2009-01-28  Eric Blake  <ebb9@byu.net>
48624
48625         version-etc: use consistent URL formatting
48626         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
48627         Improve formatting.  Use fputs for string without %.
48628
48629 2009-01-28  Jim Meyering  <meyering@redhat.com>
48630
48631         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
48632         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
48633         "underquoted definition of NAME" from autoconf-2.59.
48634
48635 2009-01-28  Bruno Haible  <bruno@clisp.org>
48636
48637         * doc/gnulib.texi: Add "Obsolete modules" to index.
48638
48639 2009-01-28  Jim Meyering  <meyering@redhat.com>
48640
48641         useless-if-before-free: recognize more variants
48642         * build-aux/useless-if-before-free: Also recognize e.g.,
48643         if (NULL != p) free (p);
48644
48645 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
48646
48647         test-getaddrinfo: skip (don't fail) this test when there's no network
48648         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
48649         on the presumption that it means you lack network access.
48650
48651 2009-01-26  Jim Meyering  <meyering@redhat.com>
48652
48653         fflush: avoid warnings on modern systems
48654         * lib/fflush.c (rpl_fflush): Move declarations of locals,
48655         pos and result, into scopes where they're used.
48656
48657 2009-01-26  Eric Blake  <ebb9@byu.net>
48658
48659         Silence warning reintroduced by recent extensions patch.
48660         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
48661         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
48662         autoconf.
48663
48664         Backport improved autoconf semantics of AC_DEFUN_ONCE.
48665         * m4/00gnulib.m4: New file.
48666         * gnulib-tool (func_get_filelist): Always use it.
48667         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
48668         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
48669
48670 2009-01-25  Bruno Haible  <bruno@clisp.org>
48671
48672         Make test-quotearg work on MacOS X and AIX.
48673         * tests/test-quotearg.sh: New file.
48674         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
48675         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
48676         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
48677         include <libintl.h>.
48678         (fake_locale): Remove variable.
48679         (gettext, dgettext, dcgettext): Remove functions.
48680         (main): Instead of setting a fake locale, set a real locale. Call
48681         textdomain and bindtextdomain.
48682         * modules/quotearg-tests (Files): Add the new files.
48683         (Depends-on): Add gettext, setenv, unsetenv.
48684         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
48685         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
48686         Augment TESTS_ENVIRONMENT.
48687
48688 2009-01-25  Bruno Haible  <bruno@clisp.org>
48689
48690         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
48691         fr_FR.ISO8859-1 locale on MacOS X.
48692         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
48693         ja_JP.eucJP locale on MacOS X.
48694         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
48695         zh_CN.GB18030 locale on MacOS X.
48696
48697 2009-01-25  Bruno Haible  <bruno@clisp.org>
48698
48699         Avoid link errors on MacOS X 10.3.
48700         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
48701         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
48702
48703 2009-01-25  Bruno Haible  <bruno@clisp.org>
48704
48705         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
48706         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
48707         * modules/pipe (Files): Remove m4/posix_spawn.m4.
48708         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
48709         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
48710         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
48711         posix_spawnattr_init, posix_spawnattr_setsigmask,
48712         posix_spawnattr_setflags, posix_spawnattr_destroy.
48713
48714         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
48715         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
48716         * modules/execute (Files): Remove m4/posix_spawn.m4.
48717         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
48718         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
48719         posix_spawnattr_init, posix_spawnattr_setsigmask,
48720         posix_spawnattr_setflags, posix_spawnattr_destroy.
48721
48722 2009-01-25  Bruno Haible  <bruno@clisp.org>
48723
48724         * lib/glthread/threadlib.c: Include <stdlib.h>.
48725
48726 2009-01-25  Bruno Haible  <bruno@clisp.org>
48727
48728         * lib/glthread/threadlib.c (dummy): New declaration.
48729
48730 2009-01-25  Bruno Haible  <bruno@clisp.org>
48731
48732         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
48733         multibyte characters also for the GB18030 encoding. Don't crash when
48734         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
48735
48736 2009-01-25  Bruno Haible  <bruno@clisp.org>
48737
48738         Avoid redefining 'struct random_data' on OSF/1 5.1.
48739         * lib/stdlib.in.h: Include <random.h> if it exists.
48740         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
48741         HAVE_RANDOM_H. Include <random.h> when testing whether
48742         'struct random_data' exists.
48743         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
48744
48745 2009-01-25  Bruno Haible  <bruno@clisp.org>
48746
48747         Don't install charset.alias on MacOS X >= 10.3.
48748         * lib/localcharset.c (DARWIN7): New macro.
48749         (get_charset_aliases): Hardcode the result for Darwin7.
48750         * modules/localcharset (install-exec-local): Don't install
48751         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
48752
48753 2009-01-25  Bruno Haible  <bruno@clisp.org>
48754
48755         Don't install charset.alias on mingw and Cygwin.
48756         * modules/localcharset (install-exec-local): Don't install
48757         charset.alias on mingw and Cygwin, if the file does not yet exist.
48758         The result for these platforms is hardcoded in localcharset.c.
48759
48760 2009-01-25  Bruno Haible  <bruno@clisp.org>
48761
48762         Make it possible again to use AC_GNU_SOURCE together with gnulib.
48763         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
48764         before requiring AC_USE_SYSTEM_EXTENSIONS.
48765
48766 2009-01-25  Jim Meyering  <meyering@redhat.com>
48767
48768         c-strtod: avoid warnings
48769         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
48770         "assignment discards qualifiers from pointer target type" warnings.
48771
48772 2009-01-24  Bruno Haible  <bruno@clisp.org>
48773
48774         Add support for non-UTF-8 locales on MacOS X.
48775         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
48776         canonical encodings. For Darwin 7 and newer, don't map traditional
48777         encodings to UTF-8.
48778         Reported by Vincent Lefevre <vincent@vinc17.org>
48779         at <http://savannah.gnu.org/bugs/?25235>.
48780
48781 2009-01-24  Bruno Haible  <bruno@clisp.org>
48782
48783         * doc/gnulib.texi (Obsolete modules): New section.
48784         Reported by Mike Frysinger <vapier@gentoo.org>.
48785
48786 2009-01-24  Bruno Haible  <bruno@clisp.org>
48787
48788         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
48789         (%.dvi): New rule.
48790
48791 2009-01-24  Bruno Haible  <bruno@clisp.org>
48792
48793         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
48794         Reported by Eric Blake.
48795
48796 2009-01-24  Bruno Haible  <bruno@clisp.org>
48797
48798         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
48799         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
48800         Reported by Gary V. Vaughan <gary@gnu.org>.
48801
48802 2009-01-24  Bruno Haible  <bruno@clisp.org>
48803
48804         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
48805
48806 2009-01-23  Bruno Haible  <bruno@clisp.org>
48807
48808         Make c-strtod, c-strtold usable in libraries.
48809         * lib/c-strtod.c: Include string.h instead of xalloc.h.
48810         (C_STRTOD): Call strdup instead of xstrdup.
48811         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
48812         * modules/c-strtold (Depends-on): Likewise.
48813         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
48814         * NEWS: Mention the change.
48815         Reported by Michael Gold <mgold@ncf.ca>.
48816
48817 2009-01-23  Jim Meyering  <meyering@redhat.com>
48818
48819         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
48820         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
48821         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
48822
48823 2009-01-23  Simon Josefsson  <simon@josefsson.org>
48824
48825         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
48826         GNU CoreUtils.
48827         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
48828         * modules/version-etc (Description): Update.
48829
48830 2009-01-22  Bruno Haible  <bruno@clisp.org>
48831
48832         Cache the C locale object.
48833         * lib/c-strtod.c (c_locale_cache): New variable.
48834         (c_locale): New function.
48835         (C_STRTOD): Use it, and don't call freelocale.
48836         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
48837         Suggested by Paolo Bonzini.
48838
48839 2009-01-21  Bruno Haible  <bruno@clisp.org>
48840
48841         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
48842         conditions other than overflow.
48843
48844 2009-01-21  Bruno Haible  <bruno@clisp.org>
48845
48846         * lib/c-strtod.c: Include errno.h.
48847         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
48848         value from STRTOD_L and STRTOD.
48849
48850 2009-01-21  Bruno Haible  <bruno@clisp.org>
48851         and Jim Meyering  <meyering@redhat.com>
48852
48853         nanosleep: skip configure test (fail it) for apple universal builds
48854         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
48855         universal builds, assume that nanosleep does not work.
48856         * modules/nanosleep (Depends-on): Add multiarch.
48857
48858         mktime: skip configure test (fail it) for apple universal builds
48859         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
48860         universal builds, assume that mktime does not work.
48861         * modules/mktime (Depends-on): Add multiarch.
48862
48863 2009-01-21  Eric Blake  <ebb9@byu.net>
48864
48865         multiarch: avoid expand-before-require warning
48866         * modules/multiarch (configure.ac): Require, rather than expand,
48867         gl_MULTIARCH.
48868         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
48869         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
48870         enforce that all clients require it.  Partial reversion of
48871         2008-12-29 patch.
48872
48873         error: avoid expand-before-require warning
48874         * modules/errno (configure.ac): Require, rather than expand,
48875         gl_HEADER_ERRNO_H.
48876         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
48877         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
48878         enforce that all clients require it.
48879
48880         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
48881         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
48882         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
48883         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
48884
48885 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
48886
48887         Revert:
48888         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
48889
48890         regex: do not depend on obsolete modules.
48891         * modules/regex: Remove memcmp and memmove.
48892
48893 2009-01-20  Bruno Haible  <bruno@clisp.org>
48894
48895         Make the 'link' module link on Windows NT 4.
48896         * lib/link.c (_WIN32_WINNT): Don't define.
48897         (CreateHardLinkFuncType): New type.
48898         (CreateHardLinkFunc, initialized): New variables.
48899         (initialize): New function.
48900         (link): Invoke CreateHardLink indirectly through the function pointer.
48901
48902 2009-01-20  Bruno Haible  <bruno@clisp.org>
48903
48904         Fix compilation failure on mingw.
48905         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
48906
48907 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
48908
48909         * doc/c-strtod.texi: Mention a couple of restrictions.
48910
48911 2009-01-20  Jim Meyering  <meyering@redhat.com>
48912
48913         gettimeofday: move more declarations out of functions
48914         * lib/gettimeofday.c: Move extern declarations of tzset and
48915         gmtime out of containing functions.  Prompted by Bruno Haible.
48916
48917 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
48918
48919         regex: do not depend on obsolete modules.
48920         * modules/regex: Remove memcmp and memmove.
48921
48922 2009-01-19  Bruno Haible  <bruno@clisp.org>
48923
48924         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
48925         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
48926         gl_BIGENDIAN, not AC_C_BIGENDIAN.
48927         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
48928         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
48929
48930 2009-01-19  Bruno Haible  <bruno@clisp.org>
48931
48932         * tests/test-link.c: Include <errno.h>.
48933         (main): Exit with code 77 when a hard link cannot be created due to
48934         the file system.
48935         * tests/test-link.sh: Skip test when a hard link cannot be created due
48936         to the file system.
48937         Suggested by Eric Blake.
48938
48939 2009-01-19  Martin Lambers  <marlam@marlam.de>
48940
48941         * modules/link-tests: New file.
48942         * tests/test-link.sh: New file.
48943         * tests/test-link.c: New file.
48944
48945 2009-01-19  Eric Blake  <ebb9@byu.net>
48946
48947         doc: mention another function added in cygwin 1.7.0
48948         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
48949         Another new function in cygwin 1.7.
48950
48951 2009-01-19  Bruno Haible  <bruno@clisp.org>
48952
48953         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
48954         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
48955         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
48956         gl_BIGENDIAN, not AC_C_BIGENDIAN.
48957         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
48958         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
48959         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
48960         * m4/md4.m4 (gl_MD4): Likewise.
48961         * m4/md5.m4 (gl_MD5): Likewise.
48962         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
48963         * m4/sha1.m4 (gl_SHA1): Likewise.
48964         * m4/sha256.m4 (gl_SHA256): Likewise.
48965         * m4/sha512.m4 (gl_SHA512): Likewise.
48966
48967 2009-01-19  Bruno Haible  <bruno@clisp.org>
48968
48969         * modules/uniname/uniname-tests (Depends-on): Add progname.
48970         * tests/uniname/test-uninames.c: Include progname.h.
48971         (main): Call set_program_name.
48972
48973         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
48974         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
48975         (main): Call set_program_name.
48976
48977         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
48978         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
48979         (main): Call set_program_name.
48980
48981         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
48982         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
48983         (main): Call set_program_name.
48984
48985         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
48986         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
48987         (main): Call set_program_name.
48988
48989         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
48990         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
48991         (main): Call set_program_name.
48992
48993         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
48994         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
48995         (main): Call set_program_name.
48996
48997         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
48998         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
48999         (main): Call set_program_name.
49000
49001         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
49002         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
49003         (main): Call set_program_name.
49004
49005 2009-01-19  Eric Blake  <ebb9@byu.net>
49006
49007         test-unistd: test previous patch
49008         * tests/test-unistd.c: Test *_FILENO macros.
49009
49010         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
49011         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
49012         Guarantee a definition.
49013         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
49014         * modules/unistd-safer (Depends-on): Add dependency on unistd.
49015         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
49016         * lib/dup-safer.c (STDERR_FILENO): Likewise.
49017         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
49018         Likewise.
49019         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
49020         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
49021         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
49022         Likewise.
49023         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
49024         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
49025         (STDERR_FILENO): Likewise.
49026         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
49027         (STDERR_FILENO): Likewise.
49028         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
49029         (STDERR_FILENO): Likewise.
49030         Reported by Elbert Pol.
49031
49032 2009-01-19  Eric Blake  <ebb9@byu.net>
49033
49034         doc: mention more functions added in cygwin 1.7.0
49035         * doc/posix-functions/abort.texi (abort): Update wording related
49036         to cygwin.
49037         * doc/posix-functions/daylight.texi (daylight): Likewise.
49038         * doc/posix-functions/optarg.texi (optarg): Likewise.
49039         * doc/posix-functions/optarg.texi (opterr): Likewise.
49040         * doc/posix-functions/optarg.texi (optind): Likewise.
49041         * doc/posix-functions/optarg.texi (optopt): Likewise.
49042         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
49043         worked in 1.5.x, and was withdrawn in 1.7.
49044         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
49045         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
49046         cygwin versions.
49047         * doc/posix-functions/perror.texi (perror): Likewise.
49048         * doc/posix-functions/printf.texi (printf): Likewise.
49049         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
49050         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
49051         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
49052         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
49053         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
49054         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
49055         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
49056         Likewise.
49057         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
49058         Likewise.
49059         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
49060         this function.
49061         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
49062         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
49063         Likewise.
49064         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
49065         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
49066         * doc/posix-functions/confstr.texi (confstr): Likewise.
49067         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
49068         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
49069         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
49070         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
49071         * doc/posix-functions/fputws.texi (fputws): Likewise.
49072         * doc/posix-functions/fwide.texi (fwide): Likewise.
49073         * doc/posix-functions/getwc.texi (getwc): Likewise.
49074         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
49075         * doc/posix-functions/putwc.texi (putwc): Likewise.
49076         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
49077         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
49078         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
49079         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
49080         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
49081         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
49082         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
49083         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
49084         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
49085         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
49086         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
49087
49088 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
49089
49090         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
49091         * lib/ioctl.c: Include <sys/ioctl.h>.
49092
49093 2009-01-19  Simon Josefsson  <simon@josefsson.org>
49094
49095         * modules/getdate-tests (Depends-on): Add progname.
49096         * tests/test-getdate.c: Use progname module, to avoid link errors
49097         on non-glibc systems.
49098
49099 2009-01-18  Simon Josefsson  <simon@josefsson.org>
49100
49101         * modules/filenamecat-tests (Depends-on): Add progname.
49102         * modules/fstrcmp-tests (Depends-on): Likewise.
49103
49104         * tests/test-filenamecat.c: Use progname module, to avoid link
49105         errors on non-glibc systems.
49106         * tests/test-fstrcmp.c: Likewise.
49107
49108 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
49109
49110         gettimeofday: avoid warning: nested extern declaration of 'localtime'
49111         * lib/gettimeofday.c: Move extern declaration out of function.
49112
49113 2009-01-18  Bruno Haible  <bruno@clisp.org>
49114
49115         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
49116         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
49117         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
49118
49119 2009-01-18  Bruno Haible  <bruno@clisp.org>
49120
49121         * lib/strftime.c (MEMPCPY): Remove unused macro.
49122         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
49123
49124 2009-01-18  Martin Lambers  <marlam@marlam.de>
49125
49126         New module 'link'.
49127         * lib/unistd.in.h (link): New declaration.
49128         * lib/link.c: New file.
49129         * m4/link.m4: New file.
49130         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
49131         HAVE_LINK.
49132         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
49133         * modules/link: New file.
49134         * doc/posix-functions/link.texi: Mention the new module.
49135
49136 2009-01-18  Bruno Haible  <bruno@clisp.org>
49137
49138         * tests/test-avltree_list.c (main): Call set_program_name.
49139         * tests/test-avltree_oset.c (main): Likewise.
49140         * tests/test-obstack-printf.c: Include progname.h.
49141         (main): Call set_program_name.
49142         * tests/test-quotearg.c: Include progname.h.
49143         (main): Call set_program_name.
49144         * tests/test-xmemdup0.c: Include progname.h.
49145         (main): Call set_program_name.
49146
49147 2009-01-18  Bruno Haible  <bruno@clisp.org>
49148
49149         New module 'alphasort'.
49150         * lib/dirent.in.h (alphasort): New declaration.
49151         * lib/alphasort.c: New file, from glibc with modifications.
49152         * m4/alphasort.m4: New file.
49153         * modules/alphasort: New file.
49154         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
49155         HAVE_ALPHASORT.
49156         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
49157         HAVE_ALPHASORT.
49158         * doc/posix-functions/alphasort.texi: Mention the new module and the
49159         portability problems.
49160
49161 2009-01-18  Bruno Haible  <bruno@clisp.org>
49162
49163         New module 'scandir'.
49164         * lib/dirent.in.h (scandir): New declaration.
49165         * lib/scandir.c: New file, from glibc with modifications.
49166         * m4/scandir.m4: New file.
49167         * modules/scandir: New file.
49168         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
49169         HAVE_SCANDIR.
49170         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
49171         HAVE_SCANDIR.
49172         * doc/posix-functions/scandir.texi: Mention the new module and the
49173         portability problems.
49174
49175 2009-01-17  Bruno Haible  <bruno@clisp.org>
49176
49177         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
49178         Update documentation.
49179         (func_remove_suffix): Escape all dots in the suffix. Update
49180         documentation.
49181         (func_filter_filelist): Update documentation.
49182         Reported by Ralf Wildenhues.
49183
49184 2009-01-17  Bruno Haible  <bruno@clisp.org>
49185
49186         * modules/dprintf-posix-tests: New file.
49187         * tests/test-dprintf-posix.sh: New file.
49188         * tests/test-dprintf-posix.c: New file.
49189
49190         New modules 'dprintf', 'dprintf-posix'.
49191         * lib/stdio.in.h (dprintf): New declaration.
49192         * lib/dprintf.c: New file.
49193         * m4/dprintf.m4: New file.
49194         * m4/dprintf-posix.m4: New file.
49195         * modules/dprintf: New file.
49196         * modules/dprintf-posix: New file.
49197         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
49198         HAVE_DPRINTF, REPLACE_DPRINTF.
49199         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
49200         HAVE_DPRINTF, REPLACE_DPRINTF.
49201         * doc/posix-functions/dprintf.texi: Mention the new modules.
49202
49203 2009-01-17  Bruno Haible  <bruno@clisp.org>
49204
49205         * modules/vdprintf-posix-tests: New file.
49206         * tests/test-vdprintf-posix.sh: New file.
49207         * tests/test-vdprintf-posix.c: New file.
49208
49209         New modules 'vdprintf', 'vdprintf-posix'.
49210         * lib/stdio.in.h (vdprintf): New declaration.
49211         * lib/vdprintf.c: New file.
49212         * m4/vdprintf.m4: New file.
49213         * m4/vdprintf-posix.m4: New file.
49214         * modules/vdprintf: New file.
49215         * modules/vdprintf-posix: New file.
49216         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
49217         HAVE_VDPRINTF, REPLACE_VDPRINTF.
49218         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
49219         HAVE_VDPRINTF, REPLACE_VDPRINTF.
49220         * doc/posix-functions/vdprintf.texi: Mention the new modules.
49221
49222 2009-01-17  Bruno Haible  <bruno@clisp.org>
49223
49224         Fix replacement of fopen on mingw.
49225         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
49226         mingw.
49227
49228 2009-01-17  Bruno Haible  <bruno@clisp.org>
49229
49230         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
49231         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
49232
49233 2009-01-17  Bruno Haible  <bruno@clisp.org>
49234
49235         Avoid test-fflush2.sh failure on mingw.
49236         * tests/test-fflush2.c: Include binary-io.h.
49237         (main): Put standard input into binary mode.
49238         * modules/fflush-tests (Depends-on): Add binary-io.
49239
49240 2009-01-17  Bruno Haible  <bruno@clisp.org>
49241
49242         * lib/wchar.in.h: In another particular situation, include only the
49243         system's <wchar.h> file.
49244         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
49245         Reported by Albert Chin-A-Young <china@thewrittenword.com>
49246         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
49247
49248 2009-01-17  Bruno Haible  <bruno@clisp.org>
49249
49250         Support for stripping executables in --enable-relocatable.
49251         * build-aux/install-reloc: Expect one more argument, or an environment
49252         variable RELOC_STRIP_PROG. If set, strip the destination program and
49253         its wrapper.
49254         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
49255         RELOC_STRIP_PROG.
49256         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
49257         to set RELOCATABLE_STRIP.
49258         * NEWS: Mention the new Makefile requirement.
49259
49260 2009-01-17  Bruno Haible  <bruno@clisp.org>
49261
49262         * build-aux/install-reloc: Remove debugging information left over by
49263         C compiler on MacOS X.
49264
49265 2009-01-17  Bruno Haible  <bruno@clisp.org>
49266
49267         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
49268         * lib/progreloc.c (find_executable): Fix type of pointer passed to
49269         _NSGetExecutablePath.
49270
49271 2009-01-16  Jim Meyering  <meyering@redhat.com>
49272
49273         strerror: avoid warnings about discarding "const"
49274         * lib/strerror.c (rpl_strerror): Instead of returning a const
49275         string from each and every "case", use a variable, and add a single
49276         cast after the switch.
49277
49278 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
49279
49280         * lib/arpa_inet.in.h: Add extern "C" block for C++.
49281
49282 2009-01-16  Bruno Haible  <bruno@clisp.org>
49283
49284         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
49285         array initializer syntax that also works in C++ mode.
49286         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49287
49288 2009-01-16  Jim Meyering  <meyering@redhat.com>
49289
49290         poll: suppress a warning
49291         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
49292         to ignore "...unsigned expression < 0 is always false" warnings.
49293
49294 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
49295
49296         poll: remove declarations of unused variables
49297         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
49298         sockbuf and optlen.
49299
49300 2009-01-15  Bruno Haible  <bruno@clisp.org>
49301
49302         Make fflush-after-ungetc POSIX compliant on BSD systems.
49303         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
49304         (clear_ungetc_buffer): Implement also for other systems.
49305         (rpl_fflush): On glibc systems, invoke
49306         clear_ungetc_buffer_preserving_position. Otherwise, invoke
49307         clear_ungetc_buffer after fetching the stream's position, not before.
49308
49309 2009-01-15  Bruno Haible  <bruno@clisp.org>
49310
49311         Make fflush-after-ungetc POSIX compliant on glibc systems.
49312         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
49313         after ungetc.
49314         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
49315         (rpl_fflush): On glibc systems, simply call the system's fflush
49316         function after clearing the ungetc buffer.
49317         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
49318         Instead, lseek only to the end of file, then use the system's fseeko
49319         for the rest. On glibc systems, reset the EOF indicator bit.
49320
49321 2009-01-15  Jim Meyering  <meyering@redhat.com>
49322
49323         openmp.m4: revert quote-adding change, for portability to older autoconf
49324         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
49325         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
49326         Simon Josefsson noticed the problem when using autoconf-2.61.
49327
49328 2009-01-15  Bruno Haible  <bruno@clisp.org>
49329
49330         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
49331         * tests/test-fflush2.c (ASSERT): Always fail.
49332         (main): Add two tests for fflush() after ungetc(), taking into account
49333         the Austin Group's clarification.
49334         Suggested by Eric Blake.
49335
49336 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
49337
49338         mktime.m4: remove K&R-style function prototypes
49339         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
49340         for the Sun C++ compiler.
49341
49342 2009-01-14  Bruno Haible  <bruno@clisp.org>
49343
49344         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
49345         while including <wchar.h>.
49346         * lib/wchar.in.h: In two particular situations on HP-UX, include only
49347         the system's <wchar.h> file.
49348         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49349
49350 2009-01-14  Bruno Haible  <bruno@clisp.org>
49351
49352         * m4/csharp.m4: Don't mention gettext on the serial number line.
49353         * m4/csharpexec.m4: Likewise.
49354         * m4/eaccess.m4: Likewise.
49355         * m4/javaexec.m4: Likewise.
49356         * m4/sig_atomic_t.m4: Likewise.
49357         * m4/tmpdir.m4: Likewise.
49358         * m4/intldir.m4: Bump gettext version.
49359         * m4/lib-ld.m4: Likewise.
49360
49361 2009-01-14  Bruno Haible  <bruno@clisp.org>
49362
49363         * lib/progname.c (set_program_name): Add more comments.
49364         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
49365
49366 2009-01-14  Simon Josefsson  <simon@josefsson.org>
49367
49368         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
49369         were sys/stat.h does not define it.
49370
49371 2009-01-14  Jim Meyering  <meyering@redhat.com>
49372
49373         many *.m4 files: improve m4 quoting
49374         99% of this change was performed by running the following commands:
49375         git ls-files | grep '\.m4$' | xargs perl -pi \
49376           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
49377           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
49378           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
49379           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
49380         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
49381         The remainder were to add Copyright dates, increment serial numbers,
49382         undo some changes in comments, exclude m4/intl.m4, and add quotes
49383         around the "1" in ",1" where the unusual spacing prohibited the
49384         above regexps from doing the job.  For more details, see
49385         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
49386         * m4/acl.m4: Modified.
49387         * m4/afs.m4: Likewise.
49388         * m4/alloca.m4: Likewise.
49389         * m4/argp.m4: Likewise.
49390         * m4/argz.m4: Likewise.
49391         * m4/atexit.m4: Likewise.
49392         * m4/bison-i18n.m4: Likewise.
49393         * m4/bison.m4: Likewise.
49394         * m4/byteswap.m4: Likewise.
49395         * m4/c-stack.m4: Likewise.
49396         * m4/c-strtod.m4: Likewise.
49397         * m4/calloc.m4: Likewise.
49398         * m4/canonicalize-lgpl.m4: Likewise.
49399         * m4/chown.m4: Likewise.
49400         * m4/clock_time.m4: Likewise.
49401         * m4/codeset.m4: Likewise.
49402         * m4/copy-file.m4: Likewise.
49403         * m4/csharp.m4: Likewise.
49404         * m4/csharpcomp.m4: Likewise.
49405         * m4/csharpexec.m4: Likewise.
49406         * m4/d-ino.m4: Likewise.
49407         * m4/d-type.m4: Likewise.
49408         * m4/dirfd.m4: Likewise.
49409         * m4/double-slash-root.m4: Likewise.
49410         * m4/eaccess.m4: Likewise.
49411         * m4/eealloc.m4: Likewise.
49412         * m4/environ.m4: Likewise.
49413         * m4/errno_h.m4: Likewise.
49414         * m4/euidaccess.m4: Likewise.
49415         * m4/execute.m4: Likewise.
49416         * m4/fatal-signal.m4: Likewise.
49417         * m4/fchdir.m4: Likewise.
49418         * m4/fcntl_h.m4: Likewise.
49419         * m4/fileblocks.m4: Likewise.
49420         * m4/filenamecat.m4: Likewise.
49421         * m4/findprog.m4: Likewise.
49422         * m4/flexmember.m4: Likewise.
49423         * m4/fnmatch.m4: Likewise.
49424         * m4/fopen.m4: Likewise.
49425         * m4/fpending.m4: Likewise.
49426         * m4/fprintf-posix.m4: Likewise.
49427         * m4/free.m4: Likewise.
49428         * m4/frexp.m4: Likewise.
49429         * m4/frexpl.m4: Likewise.
49430         * m4/fsusage.m4: Likewise.
49431         * m4/ftruncate.m4: Likewise.
49432         * m4/gc-camellia.m4: Likewise.
49433         * m4/gc-random.m4: Likewise.
49434         * m4/gc.m4: Likewise.
49435         * m4/getaddrinfo.m4: Likewise.
49436         * m4/getcwd-abort-bug.m4: Likewise.
49437         * m4/getcwd-path-max.m4: Likewise.
49438         * m4/getdate.m4: Likewise.
49439         * m4/getdomainname.m4: Likewise.
49440         * m4/getgroups.m4: Likewise.
49441         * m4/gethostname.m4: Likewise.
49442         * m4/gethrxtime.m4: Likewise.
49443         * m4/getline.m4: Likewise.
49444         * m4/getloadavg.m4: Likewise.
49445         * m4/getndelim2.m4: Likewise.
49446         * m4/getpass.m4: Likewise.
49447         * m4/gettext.m4: Likewise.
49448         * m4/gettime.m4: Likewise.
49449         * m4/gettimeofday.m4: Likewise.
49450         * m4/gnulib-common.m4: Likewise.
49451         * m4/group-member.m4: Likewise.
49452         * m4/host-os.m4: Likewise.
49453         * m4/iconv.m4: Likewise.
49454         * m4/iconv_open.m4: Likewise.
49455         * m4/inet_ntop.m4: Likewise.
49456         * m4/inet_pton.m4: Likewise.
49457         * m4/inline.m4: Likewise.
49458         * m4/intldir.m4: Likewise.
49459         * m4/intlmacosx.m4: Likewise.
49460         * m4/intmax.m4: Likewise.
49461         * m4/intmax_t.m4: Likewise.
49462         * m4/inttypes.m4: Likewise.
49463         * m4/inttypes_h.m4: Likewise.
49464         * m4/inttypes-pri.m4: Likewise.
49465         * m4/isapipe.m4: Likewise.
49466         * m4/isnand.m4: Likewise.
49467         * m4/isnanf.m4: Likewise.
49468         * m4/isnanl.m4: Likewise.
49469         * m4/javacomp.m4: Likewise.
49470         * m4/javaexec.m4: Likewise.
49471         * m4/jm-winsz1.m4: Likewise.
49472         * m4/jm-winsz2.m4: Likewise.
49473         * m4/lchown.m4: Likewise.
49474         * m4/lcmessage.m4: Likewise.
49475         * m4/ldexpl.m4: Likewise.
49476         * m4/lib-ld.m4: Likewise.
49477         * m4/lib-link.m4: Likewise.
49478         * m4/libsigsegv.m4: Likewise.
49479         * m4/link-follow.m4: Likewise.
49480         * m4/localcharset.m4: Likewise.
49481         * m4/locale-fr.m4: Likewise.
49482         * m4/locale-ja.m4: Likewise.
49483         * m4/locale-tr.m4: Likewise.
49484         * m4/locale-zh.m4: Likewise.
49485         * m4/lock.m4: Likewise.
49486         * m4/longlong.m4: Likewise.
49487         * m4/ls-mntd-fs.m4: Likewise.
49488         * m4/lstat.m4: Likewise.
49489         * m4/malloc.m4: Likewise.
49490         * m4/mathl.m4: Likewise.
49491         * m4/mbrtowc.m4: Likewise.
49492         * m4/mbstate_t.m4: Likewise.
49493         * m4/mbswidth.m4: Likewise.
49494         * m4/memchr.m4: Likewise.
49495         * m4/memcmp.m4: Likewise.
49496         * m4/memcpy.m4: Likewise.
49497         * m4/memmem.m4: Likewise.
49498         * m4/memmove.m4: Likewise.
49499         * m4/mempcpy.m4: Likewise.
49500         * m4/memrchr.m4: Likewise.
49501         * m4/memset.m4: Likewise.
49502         * m4/minmax.m4: Likewise.
49503         * m4/mkdir-slash.m4: Likewise.
49504         * m4/mkdtemp.m4: Likewise.
49505         * m4/mktime.m4: Likewise.
49506         * m4/mmap-anon.m4: Likewise.
49507         * m4/mountlist.m4: Likewise.
49508         * m4/nanosleep.m4: Likewise.
49509         * m4/nls.m4: Likewise.
49510         * m4/nocrash.m4: Likewise.
49511         * m4/open.m4: Likewise.
49512         * m4/openat.m4: Likewise.
49513         * m4/openmp.m4: Likewise.
49514         * m4/pathmax.m4: Likewise.
49515         * m4/perl.m4: Likewise.
49516         * m4/physmem.m4: Likewise.
49517         * m4/pipe.m4: Likewise.
49518         * m4/po.m4: Likewise.
49519         * m4/poll.m4: Likewise.
49520         * m4/posixtm.m4: Likewise.
49521         * m4/posixver.m4: Likewise.
49522         * m4/printf-frexp.m4: Likewise.
49523         * m4/printf-frexpl.m4: Likewise.
49524         * m4/printf-posix.m4: Likewise.
49525         * m4/printf-posix-rpl.m4: Likewise.
49526         * m4/printf.m4: Likewise.
49527         * m4/progtest.m4: Likewise.
49528         * m4/putenv.m4: Likewise.
49529         * m4/readline.m4: Likewise.
49530         * m4/readlink.m4: Likewise.
49531         * m4/readutmp.m4: Likewise.
49532         * m4/realloc.m4: Likewise.
49533         * m4/regex.m4: Likewise.
49534         * m4/relocatable.m4: Likewise.
49535         * m4/relocatable-lib.m4: Likewise.
49536         * m4/rename-dest-slash.m4: Likewise.
49537         * m4/rename.m4: Likewise.
49538         * m4/rmdir-errno.m4: Likewise.
49539         * m4/rmdir.m4: Likewise.
49540         * m4/roundf.m4: Likewise.
49541         * m4/roundl.m4: Likewise.
49542         * m4/rpmatch.m4: Likewise.
49543         * m4/save-cwd.m4: Likewise.
49544         * m4/selinux-selinux-h.m4: Likewise.
49545         * m4/setenv.m4: Likewise.
49546         * m4/settime.m4: Likewise.
49547         * m4/sig2str.m4: Likewise.
49548         * m4/sig_atomic_t.m4: Likewise.
49549         * m4/signalblocking.m4: Likewise.
49550         * m4/signbit.m4: Likewise.
49551         * m4/sigpipe.m4: Likewise.
49552         * m4/sockets.m4: Likewise.
49553         * m4/sockpfaf.m4: Likewise.
49554         * m4/st_dm_mode.m4: Likewise.
49555         * m4/stat-time.m4: Likewise.
49556         * m4/stdbool.m4: Likewise.
49557         * m4/stdint.m4: Likewise.
49558         * m4/stdint_h.m4: Likewise.
49559         * m4/stpcpy.m4: Likewise.
49560         * m4/stpncpy.m4: Likewise.
49561         * m4/strcase.m4: Likewise.
49562         * m4/strchrnul.m4: Likewise.
49563         * m4/strcspn.m4: Likewise.
49564         * m4/strdup.m4: Likewise.
49565         * m4/strftime.m4: Likewise.
49566         * m4/strndup.m4: Likewise.
49567         * m4/strnlen.m4: Likewise.
49568         * m4/strpbrk.m4: Likewise.
49569         * m4/strptime.m4: Likewise.
49570         * m4/strsep.m4: Likewise.
49571         * m4/strtod.m4: Likewise.
49572         * m4/strtoimax.m4: Likewise.
49573         * m4/strtok_r.m4: Likewise.
49574         * m4/strtol.m4: Likewise.
49575         * m4/strtoll.m4: Likewise.
49576         * m4/strtoul.m4: Likewise.
49577         * m4/strtoull.m4: Likewise.
49578         * m4/strtoumax.m4: Likewise.
49579         * m4/strverscmp.m4: Likewise.
49580         * m4/threadlib.m4: Likewise.
49581         * m4/timegm.m4: Likewise.
49582         * m4/tm_gmtoff.m4: Likewise.
49583         * m4/tmpdir.m4: Likewise.
49584         * m4/tmpfile.m4: Likewise.
49585         * m4/tzset.m4: Likewise.
49586         * m4/uintmax_t.m4: Likewise.
49587         * m4/unlinkdir.m4: Likewise.
49588         * m4/unlocked-io.m4: Likewise.
49589         * m4/uptime.m4: Likewise.
49590         * m4/userspec.m4: Likewise.
49591         * m4/utimbuf.m4: Likewise.
49592         * m4/utime.m4: Likewise.
49593         * m4/utimes-null.m4: Likewise.
49594         * m4/utimes.m4: Likewise.
49595         * m4/vararrays.m4: Likewise.
49596         * m4/vasnprintf.m4: Likewise.
49597         * m4/vfprintf-posix.m4: Likewise.
49598         * m4/vprintf-posix.m4: Likewise.
49599         * m4/wait-process.m4: Likewise.
49600         * m4/wchar_t.m4: Likewise.
49601         * m4/wint_t.m4: Likewise.
49602         * m4/write-any-file.m4: Likewise.
49603         * m4/yield.m4: Likewise.
49604
49605 2009-01-13  Bruno Haible  <bruno@clisp.org>
49606
49607         Avoid test-copy-file.sh failures when ACL support insufficient.
49608         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
49609         TESTS_ENVIRONMENT.
49610         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
49611         Reported by Jim Meyering.
49612
49613 2009-01-13  Bruno Haible  <bruno@clisp.org>
49614
49615         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
49616         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
49617         * modules/unistdio/u8-printf-parse (Files): Likewise.
49618         * modules/unistdio/u32-printf-parse (Files): Likewise.
49619         * modules/unistdio/ulc-printf-parse (Files): Likewise.
49620
49621 2009-01-13  Simon Josefsson  <simon@josefsson.org>
49622
49623         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
49624         and m4/inttypes_h.m4 too.
49625
49626 2009-01-12  Eric Blake  <ebb9@byu.net>
49627
49628         tests: IRIX 6.2 cc can't compile -0.0 into .data
49629         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
49630         rather than at compile-time.
49631         * tests/test-floorl.c (minus_zero): Likewise.
49632         * tests/test-frexpl.c (minus_zero): Likewise.
49633         * tests/test-isnan.c (minus_zerol): Likewise.
49634         * tests/test-isnanl.h (minus_zero): Likewise.
49635         * tests/test-ldexpl.c (minus_zero): Likewise.
49636         * tests/test-roundl.c (minus_zero): Likewise.
49637         * tests/test-signbit.c (minus_zerol): Likewise.
49638         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
49639         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
49640         * tests/test-truncl.c (minus_zero): Likewise.
49641         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
49642         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
49643         Reported by Tom G. Christensen and Nelson H. F. Beebe.
49644
49645 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
49646
49647         regex: fix glibc bug 9697
49648         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
49649         handling.
49650
49651 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
49652
49653         regex: fix glibc bug 697
49654         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
49655         being NULL also if there are no backreferences.
49656
49657 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
49658
49659         regex: merge glibc changes
49660         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
49661         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
49662         re_string_skip_chars, re_string_reconstruct): Likewise.
49663         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
49664
49665 2009-01-07  Jim Meyering  <meyering@redhat.com>
49666
49667         poll: filter through cppi
49668         * lib/poll.c: Indent cpp directives to reflect nesting.
49669
49670 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
49671
49672         poll: don't return uninitialized
49673         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
49674
49675 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
49676
49677         avoid compile failure on AIX 6.1
49678         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
49679         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
49680
49681 2009-01-04  Jim Meyering  <meyering@redhat.com>
49682
49683         remove duplicate inclusion of <stdio.h>
49684         * tests/test-fprintf-posix.c: Likewise.
49685         * tests/test-printf-posix.c: Likewise.
49686         * tests/test-snprintf-posix.c: Likewise.
49687         * tests/test-sprintf-posix.c: Likewise.
49688         * tests/test-vasprintf-posix.c: Likewise.
49689         * tests/test-vfprintf-posix.c: Likewise.
49690         * tests/test-vprintf-posix.c: Likewise.
49691         * tests/test-vsnprintf-posix.c: Likewise.
49692         * tests/test-vsprintf-posix.c: Likewise.
49693
49694 2009-01-03  Jim Meyering  <meyering@redhat.com>
49695
49696         gnulib-tool: fix sed-based filtering
49697         * gnulib-tool (func_filter_filelist): Remove extra backslash
49698         in sed_fff_filter definition.
49699
49700 2009-01-02  Jim Meyering  <meyering@redhat.com>
49701
49702         strftime: avoid compilation failure on Solaris 2.6
49703         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
49704         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
49705         Don't #define mbrlen or mbsinit, since now they're guaranteed to
49706         be available.  Reported by Tom G. Christensen.  Details in
49707         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
49708
49709 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49710             Bruno Haible  <bruno@clisp.org>
49711
49712         Speed up gnulib-tool by doing more string processing through shell
49713         built-ins.
49714         * gnulib-tool (fast_func_append): New variable.
49715         (func_remove_prefix, func_remove_suffix): New functions.
49716         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
49717         (func_filter_filelist): New function.
49718         (func_get_dependencies): Use func_remove_suffix instead of sed.
49719         (func_get_automake_snippet): Use func_filter_filelist instead of a
49720         subshell and sed invocation.
49721
49722 2009-01-01  Bruno Haible  <bruno@clisp.org>
49723
49724         Fix a security bug.
49725         * gnulib-tool (func_import, import, update): Don't allow the characters
49726         '"', '$', '`', '\' in macro arguments that become part of commands that
49727         are evaluated.
49728
49729 2009-01-01  Bruno Haible  <bruno@clisp.org>
49730
49731         * gnulib-tool (func_reset_sigpipe): Add more comments.
49732
49733 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49734
49735         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
49736         func_emit_tests_Makefile_am, func_import): Abort loops early if we
49737         already know the answer.
49738
49739 2009-01-01  Jim Meyering  <meyering@redhat.com>
49740
49741         * lib/version-etc.c (version_etc_va): Update copyright year.
49742
49743 2008-12-30  Bruno Haible  <bruno@clisp.org>
49744
49745         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
49746         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
49747         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
49748
49749 2008-12-29  Eric Blake  <ebb9@byu.net>
49750
49751         multiarch: avoid autoconf AC_REQUIRE bug
49752         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
49753         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
49754         2.63 and older.
49755         Reported by Bruno Haible, and analyzed in
49756         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
49757
49758 2008-12-29  Bruno Haible  <bruno@clisp.org>
49759
49760         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
49761         files in subdirectories correctly.
49762         Reported by Ralf Wildenhues.
49763
49764 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49765
49766         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
49767         rather than 'join FILE -', for Solaris join.
49768
49769 2008-12-29  Bruno Haible  <bruno@clisp.org>
49770
49771         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
49772         quoting.
49773         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
49774         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
49775         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
49776         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
49777         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
49778         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
49779         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
49780         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
49781         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
49782         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
49783         * m4/nls.m4 (AM_NLS): Likewise.
49784         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
49785         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
49786         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
49787         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
49788         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
49789         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
49790         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
49791         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
49792         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
49793         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
49794         * m4/xsize.m4 (gl_XSIZE): Likewise.
49795         Suggested by Jim Meyering.
49796
49797 2008-11-17  Bruce Korb  <bkorb@gnu.org>
49798
49799         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
49800         * lib/parse-duration.c: use a switch instead of cascading if's.
49801
49802 2008-12-29  Eric Blake  <ebb9@byu.net>
49803
49804         wchar.h: supply WEOF on Irix 5.3
49805         * lib/wchar.in.h (wint_t): Also supply WEOF.
49806         * lib/wctype.in.h (wint_t): Likewise.
49807         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
49808         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
49809         Reported by Tom G. Christensen.
49810
49811 2008-12-26  Bruno Haible  <bruno@clisp.org>
49812
49813         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
49814         i486, i586, i686.
49815
49816 2008-12-26  Bruno Haible  <bruno@clisp.org>
49817
49818         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
49819
49820 2008-12-26  Bruno Haible  <bruno@clisp.org>
49821
49822         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
49823         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
49824         not __STDC_CONSTANT_MACROS.
49825         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
49826
49827 2008-12-25  Bruno Haible  <bruno@clisp.org>
49828
49829         Add support for universal builds to vasnprintf.
49830         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
49831         universal builds, guess no.
49832         * modules/vasnprintf-posix (Depends-on): Add multiarch.
49833         * modules/vasprintf-posix (Depends-on): Likewise.
49834         * modules/fprintf-posix (Depends-on): Likewise.
49835         * modules/vfprintf-posix (Depends-on): Likewise.
49836         * modules/snprintf-posix (Depends-on): Likewise.
49837         * modules/vsnprintf-posix (Depends-on): Likewise.
49838         * modules/sprintf-posix (Depends-on): Likewise.
49839         * modules/vsprintf-posix (Depends-on): Likewise.
49840         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
49841         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
49842         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
49843         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
49844         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
49845         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
49846         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
49847
49848         Add support for universal builds to <inttypes.h>.
49849         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
49850         _SCNu64_PREFIX): In Apple
49851         universal builds, define directly, using _LP64.
49852         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
49853         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
49854         * modules/inttypes (Depends-on): Add multiarch.
49855         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
49856
49857         Add support for universal builds to <stdint.h>.
49858         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
49859         universal builds, define directly, using _LP64.
49860         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
49861         Apple universal builds, don't test for the size and suffix of ptrdiff_t
49862         and size_t.
49863         * modules/stdint (Depends-on): Add multiarch.
49864         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
49865
49866         New module 'multiarch'.
49867         * modules/multiarch: New file.
49868         * m4/multiarch.m4: New file.
49869
49870 2008-12-25  Bruno Haible  <bruno@clisp.org>
49871
49872         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
49873
49874 2008-12-25  Bruno Haible  <bruno@clisp.org>
49875
49876         * modules/btowc (License): Relicense under LGPLv2+.
49877         * modules/mbsinit (License): Likewise.
49878         * modules/mbrtowc (License): Likewise.
49879         * modules/wcrtomb (License): Likewise.
49880         * modules/streq (License): Likewise.
49881         Reported by David Lutterkort <lutter@redhat.com>.
49882
49883 2008-12-23  Bruno Haible  <bruno@clisp.org>
49884
49885         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
49886
49887 2008-12-23  Bruno Haible  <bruno@clisp.org>
49888
49889         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
49890         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
49891         GETADDRINFO_LIB, not in LIBS.
49892         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
49893         * modules/canon-host (Link): Likewise.
49894         * NEWS: Mention the change.
49895         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
49896         GETADDRINFO_LIB.
49897
49898 2008-12-22  Bruno Haible  <bruno@clisp.org>
49899
49900         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
49901         * doc/posix-functions/iswalpha_l.texi: Likewise.
49902         * doc/posix-functions/iswblank_l.texi: Likewise.
49903         * doc/posix-functions/iswcntrl_l.texi: Likewise.
49904         * doc/posix-functions/iswctype_l.texi: Likewise.
49905         * doc/posix-functions/iswdigit_l.texi: Likewise.
49906         * doc/posix-functions/iswgraph_l.texi: Likewise.
49907         * doc/posix-functions/iswlower_l.texi: Likewise.
49908         * doc/posix-functions/iswprint_l.texi: Likewise.
49909         * doc/posix-functions/iswpunct_l.texi: Likewise.
49910         * doc/posix-functions/iswspace_l.texi: Likewise.
49911         * doc/posix-functions/iswupper_l.texi: Likewise.
49912         * doc/posix-functions/iswxdigit_l.texi: Likewise.
49913         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
49914         * doc/posix-functions/open_wmemstream.texi: Likewise.
49915         * doc/posix-functions/swscanf.texi: Likewise.
49916         * doc/posix-functions/towctrans_l.texi: Likewise.
49917         * doc/posix-functions/towlower.texi: Likewise.
49918         * doc/posix-functions/towlower_l.texi: Likewise.
49919         * doc/posix-functions/towupper.texi: Likewise.
49920         * doc/posix-functions/towupper_l.texi: Likewise.
49921         * doc/posix-functions/vfwprintf.texi: Likewise.
49922         * doc/posix-functions/vfwscanf.texi: Likewise.
49923         * doc/posix-functions/vswscanf.texi: Likewise.
49924         * doc/posix-functions/vwprintf.texi: Likewise.
49925         * doc/posix-functions/vwscanf.texi: Likewise.
49926         * doc/posix-functions/wcpcpy.texi: Likewise.
49927         * doc/posix-functions/wcpncpy.texi: Likewise.
49928         * doc/posix-functions/wcscasecmp.texi: Likewise.
49929         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
49930         * doc/posix-functions/wcscoll_l.texi: Likewise.
49931         * doc/posix-functions/wcsdup.texi: Likewise.
49932         * doc/posix-functions/wcsncasecmp.texi: Likewise.
49933         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
49934         * doc/posix-functions/wcsnlen.texi: Likewise.
49935         * doc/posix-functions/wcsnrtombs.texi: Likewise.
49936         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
49937         * doc/posix-functions/wctrans_l.texi: Likewise.
49938         * doc/posix-functions/wctype_l.texi: Likewise.
49939         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
49940         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
49941         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
49942         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
49943         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
49944         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
49945         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
49946         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
49947         * doc/glibc-functions/wcschrnul.texi: Likewise.
49948         * doc/glibc-functions/wcsftime_l.texi: Likewise.
49949         * doc/glibc-functions/wcstod_l.texi: Likewise.
49950         * doc/glibc-functions/wcstof_l.texi: Likewise.
49951         * doc/glibc-functions/wcstol_l.texi: Likewise.
49952         * doc/glibc-functions/wcstold_l.texi: Likewise.
49953         * doc/glibc-functions/wcstoll_l.texi: Likewise.
49954         * doc/glibc-functions/wcstoq.texi: Likewise.
49955         * doc/glibc-functions/wcstoul_l.texi: Likewise.
49956         * doc/glibc-functions/wcstoull_l.texi: Likewise.
49957         * doc/glibc-functions/wcstouq.texi: Likewise.
49958         * doc/glibc-functions/wmempcpy.texi: Likewise.
49959
49960 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
49961             Eric Blake  <ebb9@byu.net>
49962             Paolo Bonzini  <bonzini@gnu.org>
49963             Bruno Haible  <bruno@clisp.org>
49964
49965         Make c-stack work on Haiku.
49966         * lib/c-stack.c (SA_ONSTACK): Define fallback.
49967         (c_stack_action): Use SA_ONSTACK flag.
49968
49969 2008-12-22  Bruno Haible  <bruno@clisp.org>
49970
49971         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
49972
49973 2008-12-22  Bruno Haible  <bruno@clisp.org>
49974
49975         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
49976         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
49977         being overridden.
49978         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
49979         New macros.
49980         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
49981         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
49982         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
49983         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
49984
49985 2008-12-22  Bruno Haible  <bruno@clisp.org>
49986
49987         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
49988         from test code.
49989
49990 2008-12-22  Eric Blake  <ebb9@byu.net>
49991
49992         Avoid gcc warnings on cygwin.
49993         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
49994         Avoid unused variable.
49995         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
49996         Likewise.
49997
49998 2008-12-22  Bruno Haible  <bruno@clisp.org>
49999
50000         Remove HAVE_MBRTOWC conditionals.
50001         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
50002         (mbscasecmp): Assume mbrtowc function.
50003         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
50004         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
50005         * lib/mbschr.c: Include mbuiter.h unconditionally.
50006         (mbschr): Assume mbrtowc function.
50007         * lib/mbscspn.c: Include mbuiter.h unconditionally.
50008         (mbscspn): Assume mbrtowc function.
50009         * lib/mbslen.c: Include mbuiter.h unconditionally.
50010         (mbslen): Assume mbrtowc function.
50011         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
50012         (mbsncasecmp): Assume mbrtowc function.
50013         * lib/mbsnlen.c: Include mbiter.h unconditionally.
50014         (mbsnlen): Assume mbrtowc function.
50015         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
50016         (mbspbrk): Assume mbrtowc function.
50017         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
50018         (mbspcasecmp): Assume mbrtowc function.
50019         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
50020         (mbsrchr): Assume mbrtowc function.
50021         * lib/mbssep.c: Include mbuiter.h unconditionally.
50022         (mbssep): Assume mbrtowc function.
50023         * lib/mbsspn.c: Include mbuiter.h unconditionally.
50024         (mbsspn): Assume mbrtowc function.
50025         * lib/mbsstr.c: Include mbuiter.h unconditionally.
50026         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
50027         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
50028         (mbstok_r): Assume mbrtowc function.
50029         * lib/propername.c: Include mbuiter.h unconditionally.
50030         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
50031         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
50032         (trim2): Assume mbrtowc function.
50033         * lib/mbswidth.c (mbsinit): Remove fallback definition.
50034         (mbsnwidth): Assume mbrtowc function.
50035         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
50036         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
50037         fallback definitions.
50038         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
50039
50040 2008-12-22  Bruno Haible  <bruno@clisp.org>
50041
50042         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
50043
50044 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
50045
50046         * modules/regex: Request emulations for the mb*/wc* functions we need.
50047         * m4/regex.m4: Don't look for those functions here.
50048         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
50049
50050 2008-12-22  Bruno Haible  <bruno@clisp.org>
50051
50052         * modules/fnmatch (Depends-on): Remove duplicated dependency.
50053
50054 2008-12-21  Bruno Haible  <bruno@clisp.org>
50055
50056         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
50057         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
50058         (Include): Remove conditionalization.
50059         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
50060         (Include): Remove conditionalization.
50061         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
50062         (Include): Remove conditionalization.
50063         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
50064         * m4/mbfile.m4 (gl_MBFILE): Likewise.
50065         * NEWS: Mention the change.
50066         Reported by Alan Hourihane <alanh@fairlite.co.uk>
50067         via Sergey Poznyakoff <gray@gnu.org.ua>.
50068
50069 2008-12-21  Bruno Haible  <bruno@clisp.org>
50070
50071         * MODULES.html.sh (Extended multibyte and wide character utilities
50072         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
50073         wcrtomb, wcsrtombs.
50074         (Support for systems lacking POSIX:2008): Add accept, bind, close,
50075         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
50076         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
50077         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
50078
50079 2008-12-21  Bruno Haible  <bruno@clisp.org>
50080
50081         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
50082
50083 2008-12-21  Bruno Haible  <bruno@clisp.org>
50084
50085         * modules/wcsnrtombs-tests: New file.
50086         * tests/test-wcsnrtombs1.sh: New file.
50087         * tests/test-wcsnrtombs2.sh: New file.
50088         * tests/test-wcsnrtombs3.sh: New file.
50089         * tests/test-wcsnrtombs4.sh: New file.
50090         * tests/test-wcsnrtombs.c: New file.
50091
50092         New module 'wcsnrtombs'.
50093         * lib/wchar.in.h (wcsnrtombs): New declaration.
50094         * lib/wcsnrtombs.c: New file.
50095         * lib/wcsrtombs-state.c: New file.
50096         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
50097         (internal_state): Remove variable.
50098         * m4/wcsnrtombs.m4: New file.
50099         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
50100         compilation units.
50101         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
50102         HAVE_WCSNRTOMBS.
50103         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
50104         HAVE_WCSNRTOMBS.
50105         * modules/wcsnrtombs: New file.
50106         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
50107         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
50108
50109 2008-12-21  Bruno Haible  <bruno@clisp.org>
50110
50111         * modules/wcsrtombs-tests: New file.
50112         * tests/test-wcsrtombs1.sh: New file.
50113         * tests/test-wcsrtombs2.sh: New file.
50114         * tests/test-wcsrtombs3.sh: New file.
50115         * tests/test-wcsrtombs4.sh: New file.
50116         * tests/test-wcsrtombs.c: New file.
50117
50118         New module 'wcsrtombs'.
50119         * lib/wchar.in.h (wcsrtombs): New declaration.
50120         * lib/wcsrtombs.c: New file.
50121         * m4/wcsrtombs.m4: New file.
50122         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
50123         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
50124         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
50125         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
50126         * modules/wcsrtombs: New file.
50127         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
50128         bugs.
50129
50130 2008-12-21  Bruno Haible  <bruno@clisp.org>
50131
50132         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
50133         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
50134         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
50135         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
50136         if not correct.
50137         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
50138         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
50139         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
50140         m4/locale-zh.m4, m4/codeset.m4.
50141         * doc/posix-functions/wcrtomb.texi: Document the bug.
50142
50143 2008-12-21  Bruno Haible  <bruno@clisp.org>
50144
50145         Work around a btowc() bug on IRIX 6.5.
50146         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
50147         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
50148         REPLACE_WTOBC if not.
50149         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
50150         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
50151         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
50152
50153 2008-12-21  Bruno Haible  <bruno@clisp.org>
50154
50155         * modules/wcrtomb-tests: New file.
50156         * tests/test-wcrtomb.sh: New file.
50157         * tests/test-wcrtomb.c: New file.
50158
50159         New module 'wcrtomb'.
50160         * lib/wchar.in.h (wcrtomb): New declaration.
50161         * lib/wcrtomb.c: New file.
50162         * m4/wcrtomb.m4: New file.
50163         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
50164         HAVE_WCRTOMB.
50165         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
50166         HAVE_WCRTOMB.
50167         * modules/wcrtomb: New file.
50168         * doc/posix-functions/wcrtomb.texi: Mention the new module.
50169
50170 2008-12-21  Bruno Haible  <bruno@clisp.org>
50171
50172         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
50173         * modules/mbsrtowcs (Files): Likewise.
50174         * modules/wctob (Files): Likewise.
50175         * modules/c-strcase-tests (Files): Likewise.
50176         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
50177         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
50178         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
50179         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
50180         * modules/vasnprintf-posix-tests (Files): Likewise.
50181
50182 2008-12-21  William Pursell  <bill.pursell@gmail.com>
50183
50184         gitlog-to-changelog: pass all command-line arguments to git-log
50185         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
50186         it is sometimes convenient to filter the commits in various ways.
50187         gitlog-to-changelog only allows --since to specify a start date,
50188         but git-log itself supports many other filtering mechanisms.
50189         At the moment, I want to filter by branch name.  Rather than
50190         adding a --branch option to gitlog-to-changelog, it seems more
50191         flexible to simply pass all options directly to git-log and let
50192         git do the work.  Notice that this effectively makes --since a
50193         redundant option for gitlog-to-changelog, but removing it would
50194         require current usage to change since calls would then require
50195         an additional '--'.
50196
50197 2008-12-21  Bruno Haible  <bruno@clisp.org>
50198
50199         * modules/mbsnrtowcs-tests: New file.
50200         * tests/test-mbsnrtowcs1.sh: New file.
50201         * tests/test-mbsnrtowcs2.sh: New file.
50202         * tests/test-mbsnrtowcs3.sh: New file.
50203         * tests/test-mbsnrtowcs4.sh: New file.
50204         * tests/test-mbsnrtowcs.c: New file.
50205
50206         New module 'mbsnrtowcs'.
50207         * lib/wchar.in.h (mbsnrtowcs): New declaration.
50208         * lib/mbsnrtowcs.c: New file.
50209         * lib/mbsrtowcs-state.c: New file.
50210         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
50211         (internal_state): Remove variable.
50212         * m4/mbsnrtowcs.m4: New file.
50213         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
50214         compilation units.
50215         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
50216         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
50217         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
50218         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
50219         * modules/mbsnrtowcs: New file.
50220         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
50221         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
50222         portability problem.
50223
50224 2008-12-21  Bruno Haible  <bruno@clisp.org>
50225
50226         Work around mbsrtowcs bug.
50227         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
50228         (gl_FUNC_MBSRTOWCS): Invoke it.
50229         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
50230         m4/locale-zh.m4.
50231         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
50232
50233 2008-12-21  Bruno Haible  <bruno@clisp.org>
50234
50235         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
50236
50237 2008-12-21  Bruno Haible  <bruno@clisp.org>
50238
50239         Update doc for AIX.
50240         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
50241         16-bit wchar_t type.
50242         * doc/posix-functions/btowc.texi: Likewise.
50243         * doc/posix-functions/fgetwc.texi: Likewise.
50244         * doc/posix-functions/fgetws.texi: Likewise.
50245         * doc/posix-functions/fputwc.texi: Likewise.
50246         * doc/posix-functions/fputws.texi: Likewise.
50247         * doc/posix-functions/fwide.texi: Likewise.
50248         * doc/posix-functions/fwprintf.texi: Likewise.
50249         * doc/posix-functions/fwscanf.texi: Likewise.
50250         * doc/posix-functions/getwchar.texi: Likewise.
50251         * doc/posix-functions/getwc.texi: Likewise.
50252         * doc/posix-functions/iswalnum.texi: Likewise.
50253         * doc/posix-functions/iswalpha.texi: Likewise.
50254         * doc/posix-functions/iswblank.texi: Likewise.
50255         * doc/posix-functions/iswcntrl.texi: Likewise.
50256         * doc/posix-functions/iswctype.texi: Likewise.
50257         * doc/posix-functions/iswdigit.texi: Likewise.
50258         * doc/posix-functions/iswgraph.texi: Likewise.
50259         * doc/posix-functions/iswlower.texi: Likewise.
50260         * doc/posix-functions/iswprint.texi: Likewise.
50261         * doc/posix-functions/iswpunct.texi: Likewise.
50262         * doc/posix-functions/iswspace.texi: Likewise.
50263         * doc/posix-functions/iswupper.texi: Likewise.
50264         * doc/posix-functions/iswxdigit.texi: Likewise.
50265         * doc/posix-functions/mbrtowc.texi: Likewise.
50266         * doc/posix-functions/mbsrtowcs.texi: Likewise.
50267         * doc/posix-functions/mbstowcs.texi: Likewise.
50268         * doc/posix-functions/mbtowc.texi: Likewise.
50269         * doc/posix-functions/putwchar.texi: Likewise.
50270         * doc/posix-functions/putwc.texi: Likewise.
50271         * doc/posix-functions/swprintf.texi: Likewise.
50272         * doc/posix-functions/tolower.texi: Likewise.
50273         * doc/posix-functions/toupper.texi: Likewise.
50274         * doc/posix-functions/towctrans.texi: Likewise.
50275         * doc/posix-functions/ungetwc.texi: Likewise.
50276         * doc/posix-functions/vswprintf.texi: Likewise.
50277         * doc/posix-functions/wcrtomb.texi: Likewise.
50278         * doc/posix-functions/wcscat.texi: Likewise.
50279         * doc/posix-functions/wcschr.texi: Likewise.
50280         * doc/posix-functions/wcscmp.texi: Likewise.
50281         * doc/posix-functions/wcscoll.texi: Likewise.
50282         * doc/posix-functions/wcscpy.texi: Likewise.
50283         * doc/posix-functions/wcscspn.texi: Likewise.
50284         * doc/posix-functions/wcsftime.texi: Likewise.
50285         * doc/posix-functions/wcslen.texi: Likewise.
50286         * doc/posix-functions/wcsncat.texi: Likewise.
50287         * doc/posix-functions/wcsncmp.texi: Likewise.
50288         * doc/posix-functions/wcsncpy.texi: Likewise.
50289         * doc/posix-functions/wcspbrk.texi: Likewise.
50290         * doc/posix-functions/wcsrchr.texi: Likewise.
50291         * doc/posix-functions/wcsrtombs.texi: Likewise.
50292         * doc/posix-functions/wcsspn.texi: Likewise.
50293         * doc/posix-functions/wcsstr.texi: Likewise.
50294         * doc/posix-functions/wcstod.texi: Likewise.
50295         * doc/posix-functions/wcstof.texi: Likewise.
50296         * doc/posix-functions/wcstoimax.texi: Likewise.
50297         * doc/posix-functions/wcstok.texi: Likewise.
50298         * doc/posix-functions/wcstold.texi: Likewise.
50299         * doc/posix-functions/wcstoll.texi: Likewise.
50300         * doc/posix-functions/wcstol.texi: Likewise.
50301         * doc/posix-functions/wcstombs.texi: Likewise.
50302         * doc/posix-functions/wcstoull.texi: Likewise.
50303         * doc/posix-functions/wcstoul.texi: Likewise.
50304         * doc/posix-functions/wcstoumax.texi: Likewise.
50305         * doc/posix-functions/wcswidth.texi: Likewise.
50306         * doc/posix-functions/wcsxfrm.texi: Likewise.
50307         * doc/posix-functions/wctob.texi: Likewise.
50308         * doc/posix-functions/wctomb.texi: Likewise.
50309         * doc/posix-functions/wctrans.texi: Likewise.
50310         * doc/posix-functions/wctype.texi: Likewise.
50311         * doc/posix-functions/wcwidth.texi: Likewise.
50312         * doc/posix-functions/wmemchr.texi: Likewise.
50313         * doc/posix-functions/wmemcmp.texi: Likewise.
50314         * doc/posix-functions/wmemcpy.texi: Likewise.
50315         * doc/posix-functions/wmemmove.texi: Likewise.
50316         * doc/posix-functions/wmemset.texi: Likewise.
50317         * doc/posix-functions/wprintf.texi: Likewise.
50318         * doc/posix-functions/wscanf.texi: Likewise.
50319
50320 2008-12-21  Bruno Haible  <bruno@clisp.org>
50321
50322         Update doc for HP-UX 11.11.
50323         * doc/posix-functions/btowc.texi: Clarify that the function is missing
50324         in HP-UX version 11.00, not in all versions of HP-UX 11.
50325         * doc/posix-functions/fwide.texi: Likewise.
50326         * doc/posix-functions/fwprintf.texi: Likewise.
50327         * doc/posix-functions/fwscanf.texi: Likewise.
50328         * doc/posix-functions/inet_ntop.texi: Likewise.
50329         * doc/posix-functions/inet_pton.texi: Likewise.
50330         * doc/posix-functions/mbrlen.texi: Likewise.
50331         * doc/posix-functions/mbrtowc.texi: Likewise.
50332         * doc/posix-functions/mbsinit.texi: Likewise.
50333         * doc/posix-functions/mbsrtowcs.texi: Likewise.
50334         * doc/posix-functions/swprintf.texi: Likewise.
50335         * doc/posix-functions/swscanf.texi: Likewise.
50336         * doc/posix-functions/towctrans.texi: Likewise.
50337         * doc/posix-functions/vfwprintf.texi: Likewise.
50338         * doc/posix-functions/vswprintf.texi: Likewise.
50339         * doc/posix-functions/vwprintf.texi: Likewise.
50340         * doc/posix-functions/wcrtomb.texi: Likewise.
50341         * doc/posix-functions/wcsrtombs.texi: Likewise.
50342         * doc/posix-functions/wcsstr.texi: Likewise.
50343         * doc/posix-functions/wctob.texi: Likewise.
50344         * doc/posix-functions/wctrans.texi: Likewise.
50345         * doc/posix-functions/wmemchr.texi: Likewise.
50346         * doc/posix-functions/wmemcmp.texi: Likewise.
50347         * doc/posix-functions/wmemcpy.texi: Likewise.
50348         * doc/posix-functions/wmemmove.texi: Likewise.
50349         * doc/posix-functions/wmemset.texi: Likewise.
50350         * doc/posix-functions/wprintf.texi: Likewise.
50351         * doc/posix-functions/wscanf.texi: Likewise.
50352
50353 2008-12-21  Bruno Haible  <bruno@clisp.org>
50354
50355         Work around a portability problem.
50356         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
50357         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
50358
50359 2008-12-20  Bruno Haible  <bruno@clisp.org>
50360
50361         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
50362         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
50363         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
50364         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
50365         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
50366
50367         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
50368         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
50369         set.
50370         (GNULIB_defined_mbstate_t): New macro.
50371         (mbsinit): Redefine if REPLACE_MBSINIT is set.
50372         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
50373         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
50374         reuses the system's mbrtowc function but works around the bugs.
50375         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
50376         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
50377         macros.
50378         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
50379         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
50380         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
50381         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
50382         REPLACE_MBSINIT if mbsinit needs to be overridden.
50383         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
50384         REPLACE_MBSINIT, REPLACE_MBRTOWC.
50385         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
50386         REPLACE_MBSINIT, REPLACE_MBRTOWC.
50387         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
50388         m4/locale-zh.m4.
50389         (Depends): Add mbsinit.
50390         * modules/mbsinit (Depends): Add mbrtowc.
50391         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
50392
50393 2008-12-20  Bruno Haible  <bruno@clisp.org>
50394
50395         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
50396         so that there are no conversion errors on AIX.
50397         * tests/test-mbsrtowcs.c (main): LIkewise.
50398
50399 2008-12-20  Bruno Haible  <bruno@clisp.org>
50400
50401         Work around wctob bug on Solaris <= 9.
50402         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
50403         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
50404         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
50405         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
50406         * modules/wctob (Files): Add m4/locale-fr.m4.
50407         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
50408
50409 2008-12-20  Bruno Haible  <bruno@clisp.org>
50410
50411         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
50412         /dev/null.
50413         * tests/test-select-in.sh: Likewise.
50414         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50415
50416 2008-12-20  Bruno Haible  <bruno@clisp.org>
50417
50418         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
50419         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
50420         Cygwin 1.5.x.
50421
50422 2008-12-20  Bruno Haible  <bruno@clisp.org>
50423
50424         Ensure mbstate_t is defined on HP-UX 11.11.
50425         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
50426         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
50427         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
50428         AC_USE_SYSTEM_EXTENSIONS.
50429         * modules/fnmatch (Depends-on): Add extensions.
50430         * modules/mbrlen (Depends-on): Likewise.
50431         * modules/mbrtowc (Depends-on): Likewise.
50432         * modules/mbsinit (Depends-on): Likewise.
50433         * modules/mbsrtowcs (Depends-on): Likewise.
50434         * modules/mbswidth (Depends-on): Likewise.
50435         * modules/quotearg (Depends-on): Likewise.
50436         * modules/strftime (Depends-on): Likewise.
50437
50438 2008-12-20  Bruno Haible  <bruno@clisp.org>
50439
50440         Ensure wctob is declared on IRIX 6.5.
50441         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
50442         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
50443         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
50444         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
50445         of HAVE_WCTOB.
50446         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
50447         HAVE_WCTOB.
50448         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
50449
50450 2008-12-19  Bruno Haible  <bruno@clisp.org>
50451
50452         * modules/mbsrtowcs-tests: New file.
50453         * tests/test-mbsrtowcs1.sh: New file.
50454         * tests/test-mbsrtowcs2.sh: New file.
50455         * tests/test-mbsrtowcs3.sh: New file.
50456         * tests/test-mbsrtowcs4.sh: New file.
50457         * tests/test-mbsrtowcs.c: New file.
50458
50459         New module 'mbsrtowcs'.
50460         * lib/wchar.in.h (mbsrtowcs): New declaration.
50461         * lib/mbsrtowcs.c: New file.
50462         * m4/mbsrtowcs.m4: New file.
50463         * modules/mbsrtowcs: New file.
50464         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
50465         HAVE_MBSRTOWCS.
50466         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
50467         HAVE_MBSRTOWCS.
50468         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
50469
50470 2008-12-19  Bruno Haible  <bruno@clisp.org>
50471
50472         New module 'mbrlen'.
50473         * lib/wchar.in.h (mbrlen): New declaration.
50474         * lib/mbrlen.c: New file.
50475         * m4/mbrlen.m4: New file.
50476         * modules/mbrlen: New file.
50477         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
50478         HAVE_MBRLEN.
50479         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
50480         HAVE_MBRLEN.
50481         * doc/posix-functions/mbrlen.texi: Document the new module.
50482
50483 2008-12-19  Bruno Haible  <bruno@clisp.org>
50484
50485         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
50486         * modules/mbrtowc (Depends-on): Add verify.
50487         Suggested by Paul Eggert.
50488
50489 2008-12-18  Bruno Haible  <bruno@clisp.org>
50490
50491         * modules/mbsinit-tests: New file.
50492         * tests/test-mbsinit.sh: New file.
50493         * tests/test-mbsinit.c: New file.
50494
50495 2008-12-18  Bruno Haible  <bruno@clisp.org>
50496
50497         * modules/mbrtowc-tests: New file.
50498         * tests/test-mbrtowc1.sh: New file.
50499         * tests/test-mbrtowc2.sh: New file.
50500         * tests/test-mbrtowc3.sh: New file.
50501         * tests/test-mbrtowc4.sh: New file.
50502         * tests/test-mbrtowc.c: New file.
50503
50504         New module 'mbrtowc'.
50505         * lib/wchar.in.h (mbstate_t): Override when the system does not have
50506         mbsinit and mbrtowc.
50507         (mbrtowc): New declaration.
50508         * lib/mbrtowc.c: New file.
50509         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
50510         * modules/mbrtowc: New file.
50511         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
50512         HAVE_MBRTOWC.
50513         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
50514         HAVE_MBRTOWC.
50515         * doc/posix-functions/mbrtowc.texi: Document the new module.
50516
50517 2008-12-18  Bruno Haible  <bruno@clisp.org>
50518
50519         New module 'wctob'.
50520         * lib/wchar.in.h (wctob): New declaration.
50521         * lib/wctob.c: New file.
50522         * m4/wctob.m4: New file.
50523         * modules/wctob: New file.
50524         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
50525         HAVE_WCTOB.
50526         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
50527         * doc/posix-functions/wctob.texi: Document the new module.
50528
50529 2008-12-18  Bruno Haible  <bruno@clisp.org>
50530
50531         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
50532         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
50533
50534 2008-12-18  Simon Josefsson  <simon@josefsson.org>
50535
50536         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
50537         G. Christensen" <tgc@jupiterrise.com>.
50538
50539         * lib/flock.c: Need to include errno.h.  Reported by "Tom
50540         G. Christensen" <tgc@jupiterrise.com>.
50541
50542         * lib/flock.c: Need to include string.h.  Reported by "Tom
50543         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
50544         <ebb9@byu.net>.
50545
50546 2008-12-18  Bruno Haible  <bruno@clisp.org>
50547
50548         * m4/locale-ja.m4: New file, from GNU gettext.
50549
50550 2008-12-17  Bruno Haible  <bruno@clisp.org>
50551
50552         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
50553         Suggested by Eric Blake.
50554
50555 2008-12-17  Bruno Haible  <bruno@clisp.org>
50556
50557         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
50558
50559 2008-12-17  Bruno Haible  <bruno@clisp.org>
50560
50561         * lib/mbsinit.c: Include verify.h. Verify an assumption.
50562         * modules/mbsinit (Depends-on): Add verify.
50563         Suggested by Paul Eggert.
50564
50565 2008-12-17  Bruno Haible  <bruno@clisp.org>
50566
50567         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
50568         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
50569         gl_FUNC_MBRTOWC.
50570         * m4/mbiter.m4 (gl_MBITER): LIkewise.
50571         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
50572         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
50573         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
50574         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
50575         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
50576         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
50577         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
50578         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
50579         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
50580         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
50581         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
50582         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
50583         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
50584         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
50585         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
50586         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
50587         * modules/trim (configure.ac): Likewise.
50588
50589 2008-12-17  Bruno Haible  <bruno@clisp.org>
50590
50591         * modules/btowc-tests: New file.
50592         * tests/test-btowc1.sh: New file.
50593         * tests/test-btowc2.sh: New file.
50594         * tests/test-btowc.c: New file.
50595
50596         New module 'btowc'.
50597         * lib/wchar.in.h (btowc): New declaration.
50598         * lib/btowc.c: New file.
50599         * m4/btowc.m4: New file.
50600         * modules/btowc: New file.
50601         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
50602         HAVE_BTOWC.
50603         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
50604         * doc/posix-functions/btowc.texi: Document the new module.
50605
50606 2008-12-17  Bruno Haible  <bruno@clisp.org>
50607
50608         New module 'mbsinit'.
50609         * lib/wchar.in.h (mbsinit): New declaration.
50610         * lib/mbsinit.c: New file.
50611         * m4/mbsinit.m4: New file.
50612         * modules/mbsinit: New file.
50613         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
50614         HAVE_MBSINIT.
50615         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
50616         HAVE_MBSINIT.
50617         * doc/posix-functions/mbsinit.texi: Document the new module.
50618
50619 2008-12-16  Bruno Haible  <bruno@clisp.org>
50620
50621         * lib/unistd.in.h: Add comment.
50622         * tests/test-environ.c: Don't include <stdlib.h>.
50623
50624 2008-12-16  Bruno Haible  <bruno@clisp.org>
50625
50626         * lib/parse-duration.h (parse_duration): Document return value
50627         convention.
50628         * lib/parse-duration.c: Include specification header first. Add
50629         comments.
50630         (_): Remove macro.
50631         (parse_year_month_day, parse_hour_minute_second): Move side effects
50632         outside of strchr call.
50633         (parse_non_iso8601): Move side effects outside of isspace call.
50634         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
50635         call.
50636
50637 2008-12-16  Bruno Haible  <bruno@clisp.org>
50638
50639         * tests/test-parse-duration.sh: Produce no output when the test
50640         succeeds.
50641
50642 2008-12-16  Bruno Haible  <bruno@clisp.org>
50643
50644         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
50645         expressions.
50646
50647 2008-12-15  Bruno Haible  <bruno@clisp.org>
50648
50649         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
50650         * doc/glibc-functions/flistxattr.texi: Likewise.
50651         * doc/glibc-functions/fopencookie.texi: Likewise.
50652         * doc/glibc-functions/fremovexattr.texi: Likewise.
50653         * doc/glibc-functions/fsetxattr.texi: Likewise.
50654         * doc/glibc-functions/getxattr.texi: Likewise.
50655         * doc/glibc-functions/lgetxattr.texi: Likewise.
50656         * doc/glibc-functions/listxattr.texi: Likewise.
50657         * doc/glibc-functions/llistxattr.texi: Likewise.
50658         * doc/glibc-functions/lremovexattr.texi: Likewise.
50659         * doc/glibc-functions/lsetxattr.texi: Likewise.
50660         * doc/glibc-functions/removexattr.texi: Likewise.
50661         * doc/glibc-functions/setxattr.texi: Likewise.
50662         * doc/posix-functions/open_memstream.texi: Likewise.
50663
50664 2008-12-15  Eric Blake  <ebb9@byu.net>
50665
50666         Update doc for cygwin 1.7.
50667         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
50668         functions.
50669         * doc/posix-functions/fchmodat.texi: Likewise.
50670         * doc/posix-functions/fchownat.texi: Likewise.
50671         * doc/posix-functions/fdopendir.texi: Likewise.
50672         * doc/posix-functions/fmemopen.texi: Likewise.
50673         * doc/posix-functions/freeaddrinfo.texi: Likewise.
50674         * doc/posix-functions/fstatat.texi: Likewise.
50675         * doc/posix-functions/futimens.texi: Likewise.
50676         * doc/posix-functions/gai_strerror.texi: Likewise.
50677         * doc/posix-functions/getaddrinfo.texi: Likewise.
50678         * doc/posix-functions/getnameinfo.texi: Likewise.
50679         * doc/posix-functions/if_freenameindex.texi: Likewise.
50680         * doc/posix-functions/if_indextoname.texi: Likewise.
50681         * doc/posix-functions/if_nameindex.texi: Likewise.
50682         * doc/posix-functions/if_nametoindex.texi: Likewise.
50683         * doc/posix-functions/insque.texi: Likewise.
50684         * doc/posix-functions/linkat.texi: Likewise.
50685         * doc/posix-functions/llrint.texi: Likewise.
50686         * doc/posix-functions/llrintf.texi: Likewise.
50687         * doc/posix-functions/llrintl.texi: Likewise.
50688         * doc/posix-functions/lockf.texi: Likewise.
50689         * doc/posix-functions/lrintl.texi: Likewise.
50690         * doc/posix-functions/mkdirat.texi: Likewise.
50691         * doc/posix-functions/mkfifoat.texi: Likewise.
50692         * doc/posix-functions/mknodat.texi: Likewise.
50693         * doc/posix-functions/mq_close.texi: Likewise.
50694         * doc/posix-functions/mq_getattr.texi: Likewise.
50695         * doc/posix-functions/mq_notify.texi: Likewise.
50696         * doc/posix-functions/mq_open.texi: Likewise.
50697         * doc/posix-functions/mq_receive.texi: Likewise.
50698         * doc/posix-functions/mq_send.texi: Likewise.
50699         * doc/posix-functions/mq_setattr.texi: Likewise.
50700         * doc/posix-functions/mq_timedreceive.texi: Likewise.
50701         * doc/posix-functions/mq_timedsend.texi: Likewise.
50702         * doc/posix-functions/mq_unlink.texi: Likewise.
50703         * doc/posix-functions/open_memstream.texi: Likewise.
50704         * doc/posix-functions/openat.texi: Likewise.
50705         * doc/posix-functions/posix_fadvise.texi: Likewise.
50706         * doc/posix-functions/posix_fallocate.texi: Likewise.
50707         * doc/posix-functions/posix_madvise.texi: Likewise.
50708         * doc/posix-functions/posix_memalign.texi: Likewise.
50709         * doc/posix-functions/posix_openpt.texi: Likewise.
50710         * doc/posix-functions/readlinkat.texi: Likewise.
50711         * doc/posix-functions/remque.texi: Likewise.
50712         * doc/posix-functions/renameat.texi: Likewise.
50713         * doc/posix-functions/rintl.texi: Likewise.
50714         * doc/posix-functions/sem_unlink.texi: Likewise.
50715         * doc/posix-functions/shm_open.texi: Likewise.
50716         * doc/posix-functions/shm_unlink.texi: Likewise.
50717         * doc/posix-functions/signgam.texi: Likewise.
50718         * doc/posix-functions/sigset.texi: Likewise.
50719         * doc/posix-functions/stpcpy.texi: Likewise.
50720         * doc/posix-functions/stpncpy.texi: Likewise.
50721         * doc/posix-functions/strerror.texi: Likewise.
50722         * doc/posix-functions/strtod.texi: Likewise.
50723         * doc/posix-functions/symlinkat.texi: Likewise.
50724         * doc/posix-functions/unlinkat.texi: Likewise.
50725         * doc/posix-functions/utimensat.texi: Likewise.
50726         * doc/glibc-functions/bindresvport.texi: Likewise.
50727         * doc/glibc-functions/dn_expand.texi: Likewise.
50728         * doc/glibc-functions/exp10.texi: Likewise.
50729         * doc/glibc-functions/exp10f.texi: Likewise.
50730         * doc/glibc-functions/fgetxattr.texi: Likewise.
50731         * doc/glibc-functions/flistxattr.texi: Likewise.
50732         * doc/glibc-functions/fopencookie.texi: Likewise.
50733         * doc/glibc-functions/freeifaddrs.texi: Likewise.
50734         * doc/glibc-functions/fremovexattr.texi: Likewise.
50735         * doc/glibc-functions/fsetxattr.texi: Likewise.
50736         * doc/glibc-functions/getifaddrs.texi: Likewise.
50737         * doc/glibc-functions/getxattr.texi: Likewise.
50738         * doc/glibc-functions/lgetxattr.texi: Likewise.
50739         * doc/glibc-functions/listxattr.texi: Likewise.
50740         * doc/glibc-functions/llistxattr.texi: Likewise.
50741         * doc/glibc-functions/lremovexattr.texi: Likewise.
50742         * doc/glibc-functions/lsetxattr.texi: Likewise.
50743         * doc/glibc-functions/pow10.texi: Likewise.
50744         * doc/glibc-functions/pow10f.texi: Likewise.
50745         * doc/glibc-functions/rcmd_af.texi: Likewise.
50746         * doc/glibc-functions/removexattr.texi: Likewise.
50747         * doc/glibc-functions/res_init.texi: Likewise.
50748         * doc/glibc-functions/res_mkquery.texi: Likewise.
50749         * doc/glibc-functions/res_query.texi: Likewise.
50750         * doc/glibc-functions/res_querydomain.texi: Likewise.
50751         * doc/glibc-functions/res_send.texi: Likewise.
50752         * doc/glibc-functions/rresvport_af.texi: Likewise.
50753         * doc/glibc-functions/setxattr.texi: Likewise.
50754         * doc/glibc-functions/strcasestr.texi: Likewise.
50755
50756 2008-12-15  Bruno Haible  <bruno@clisp.org>
50757
50758         Fix compilation error on OSF/1 4.0.
50759         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
50760         <sys/time.h>, simply delegate to the system header.
50761         Reported by Daniel Richard G. <oss@teragram.com>.
50762
50763 2008-12-15  Bruno Haible  <bruno@clisp.org>
50764
50765         * doc/posix-functions/openat.texi: Mention the 'openat' module.
50766         * doc/posix-functions/fchmodat.texi: Likewise.
50767         * doc/posix-functions/fchownat.texi: Likewise.
50768         * doc/posix-functions/fdopendir.texi: Likewise.
50769         * doc/posix-functions/fstatat.texi: Likewise.
50770         * doc/posix-functions/mkdirat.texi: Likewise.
50771         * doc/posix-functions/unlinkat.texi: Likewise.
50772
50773 2008-12-14  Bruno Haible  <bruno@clisp.org>
50774
50775         Update doc for POSIX:2008.
50776         * doc/posix-functions/faccessat.texi: New file.
50777         * doc/posix-functions/fchmodat.texi: New file.
50778         * doc/posix-functions/fchownat.texi: New file.
50779         * doc/posix-functions/fdopendir.texi: New file.
50780         * doc/posix-functions/fstatat.texi: New file.
50781         * doc/posix-functions/futimens.texi: New file.
50782         * doc/posix-functions/linkat.texi: New file.
50783         * doc/posix-functions/mkdirat.texi: New file.
50784         * doc/posix-functions/mkfifoat.texi: New file.
50785         * doc/posix-functions/mknodat.texi: New file.
50786         * doc/posix-functions/open_wmemstream.texi: New file.
50787         * doc/posix-functions/openat.texi: New file.
50788         * doc/posix-functions/psiginfo.texi: New file.
50789         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
50790         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
50791         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
50792         * doc/posix-functions/readlinkat.texi: New file.
50793         * doc/posix-functions/renameat.texi: New file.
50794         * doc/posix-functions/strerror_l.texi: New file.
50795         * doc/posix-functions/symlinkat.texi: New file.
50796         * doc/posix-functions/unlinkat.texi: New file.
50797         * doc/posix-functions/utimensat.texi: New file.
50798         * doc/gnulib.texi (Function Substitutes): Add these subsections.
50799
50800 2008-12-14  Bruno Haible  <bruno@clisp.org>
50801
50802         Update doc for POSIX:2008.
50803         * doc/posix-functions/alphasort.texi: Renamed from
50804         doc/glibc-functions/alphasort.texi.
50805         * doc/posix-functions/dirfd.texi: Renamed from
50806         doc/glibc-functions/dirfd.texi.
50807         * doc/posix-functions/dprintf.texi: Renamed from
50808         doc/glibc-functions/dprintf.texi.
50809         * doc/posix-functions/duplocale.texi: Renamed from
50810         doc/glibc-functions/duplocale.texi.
50811         * doc/posix-functions/fexecve.texi: Renamed from
50812         doc/glibc-functions/fexecve.texi.
50813         * doc/posix-functions/fmemopen.texi: Renamed from
50814         doc/glibc-functions/fmemopen.texi.
50815         * doc/posix-functions/freelocale.texi: Renamed from
50816         doc/glibc-functions/freelocale.texi.
50817         * doc/posix-functions/getdate_err.texi: Renamed from
50818         doc/glibc-functions/getdate_err.texi.
50819         * doc/posix-functions/isalnum_l.texi: Renamed from
50820         doc/glibc-functions/isalnum_l.texi.
50821         * doc/posix-functions/isalpha_l.texi: Renamed from
50822         doc/glibc-functions/isalpha_l.texi.
50823         * doc/posix-functions/isblank_l.texi: Renamed from
50824         doc/glibc-functions/isblank_l.texi.
50825         * doc/posix-functions/iscntrl_l.texi: Renamed from
50826         doc/glibc-functions/iscntrl_l.texi.
50827         * doc/posix-functions/isdigit_l.texi: Renamed from
50828         doc/glibc-functions/isdigit_l.texi.
50829         * doc/posix-functions/isgraph_l.texi: Renamed from
50830         doc/glibc-functions/isgraph_l.texi.
50831         * doc/posix-functions/islower_l.texi: Renamed from
50832         doc/glibc-functions/islower_l.texi.
50833         * doc/posix-functions/isprint_l.texi: Renamed from
50834         doc/glibc-functions/isprint_l.texi.
50835         * doc/posix-functions/ispunct_l.texi: Renamed from
50836         doc/glibc-functions/ispunct_l.texi.
50837         * doc/posix-functions/isspace_l.texi: Renamed from
50838         doc/glibc-functions/isspace_l.texi.
50839         * doc/posix-functions/isupper_l.texi: Renamed from
50840         doc/glibc-functions/isupper_l.texi.
50841         * doc/posix-functions/iswalnum_l.texi: Renamed from
50842         doc/glibc-functions/iswalnum_l.texi.
50843         * doc/posix-functions/iswalpha_l.texi: Renamed from
50844         doc/glibc-functions/iswalpha_l.texi.
50845         * doc/posix-functions/iswblank_l.texi: Renamed from
50846         doc/glibc-functions/iswblank_l.texi.
50847         * doc/posix-functions/iswcntrl_l.texi: Renamed from
50848         doc/glibc-functions/iswcntrl_l.texi.
50849         * doc/posix-functions/iswctype_l.texi: Renamed from
50850         doc/glibc-functions/iswctype_l.texi.
50851         * doc/posix-functions/iswdigit_l.texi: Renamed from
50852         doc/glibc-functions/iswdigit_l.texi.
50853         * doc/posix-functions/iswgraph_l.texi: Renamed from
50854         doc/glibc-functions/iswgraph_l.texi.
50855         * doc/posix-functions/iswlower_l.texi: Renamed from
50856         doc/glibc-functions/iswlower_l.texi.
50857         * doc/posix-functions/iswprint_l.texi: Renamed from
50858         doc/glibc-functions/iswprint_l.texi.
50859         * doc/posix-functions/iswpunct_l.texi: Renamed from
50860         doc/glibc-functions/iswpunct_l.texi.
50861         * doc/posix-functions/iswspace_l.texi: Renamed from
50862         doc/glibc-functions/iswspace_l.texi.
50863         * doc/posix-functions/iswupper_l.texi: Renamed from
50864         doc/glibc-functions/iswupper_l.texi.
50865         * doc/posix-functions/iswxdigit_l.texi: Renamed from
50866         doc/glibc-functions/iswxdigit_l.texi.
50867         * doc/posix-functions/isxdigit_l.texi: Renamed from
50868         doc/glibc-functions/isxdigit_l.texi.
50869         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
50870         doc/glibc-functions/mbsnrtowcs.texi.
50871         * doc/posix-functions/mkdtemp.texi: Renamed from
50872         doc/glibc-functions/mkdtemp.texi.
50873         * doc/posix-functions/newlocale.texi: Renamed from
50874         doc/glibc-functions/newlocale.texi.
50875         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
50876         doc/glibc-functions/nl_langinfo_l.texi.
50877         * doc/posix-functions/open_memstream.texi: Renamed from
50878         doc/glibc-functions/open_memstream.texi.
50879         * doc/posix-functions/opterr.texi: Renamed from
50880         doc/glibc-functions/opterr.texi.
50881         * doc/posix-functions/optind.texi: Renamed from
50882         doc/glibc-functions/optind.texi.
50883         * doc/posix-functions/optopt.texi: Renamed from
50884         doc/glibc-functions/optopt.texi.
50885         * doc/posix-functions/psignal.texi: Renamed from
50886         doc/glibc-functions/psignal.texi.
50887         * doc/posix-functions/scandir.texi: Renamed from
50888         doc/glibc-functions/scandir.texi.
50889         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
50890         doc/glibc-functions/sched_get_priority_min.texi.
50891         * doc/posix-functions/signgam.texi: Renamed from
50892         doc/glibc-functions/signgam.texi.
50893         * doc/posix-functions/stpcpy.texi: Renamed from
50894         doc/glibc-functions/stpcpy.texi.
50895         * doc/posix-functions/stpncpy.texi: Renamed from
50896         doc/glibc-functions/stpncpy.texi.
50897         * doc/posix-functions/strcasecmp_l.texi: Renamed from
50898         doc/glibc-functions/strcasecmp_l.texi.
50899         * doc/posix-functions/strcoll_l.texi: Renamed from
50900         doc/glibc-functions/strcoll_l.texi.
50901         * doc/posix-functions/strfmon_l.texi: Renamed from
50902         doc/glibc-functions/strfmon_l.texi.
50903         * doc/posix-functions/strftime_l.texi: Renamed from
50904         doc/glibc-functions/strftime_l.texi.
50905         * doc/posix-functions/strncasecmp_l.texi: Renamed from
50906         doc/glibc-functions/strncasecmp_l.texi.
50907         * doc/posix-functions/strndup.texi: Renamed from
50908         doc/glibc-functions/strndup.texi.
50909         * doc/posix-functions/strnlen.texi: Renamed from
50910         doc/glibc-functions/strnlen.texi.
50911         * doc/posix-functions/strsignal.texi: Renamed from
50912         doc/glibc-functions/strsignal.texi.
50913         * doc/posix-functions/strxfrm_l.texi: Renamed from
50914         doc/glibc-functions/strxfrm_l.texi.
50915         * doc/posix-functions/timer_gettime.texi: Renamed from
50916         doc/glibc-functions/timer_gettime.texi.
50917         * doc/posix-functions/tolower_l.texi: Renamed from
50918         doc/glibc-functions/tolower_l.texi.
50919         * doc/posix-functions/toupper_l.texi: Renamed from
50920         doc/glibc-functions/toupper_l.texi.
50921         * doc/posix-functions/towctrans_l.texi: Renamed from
50922         doc/glibc-functions/towctrans_l.texi.
50923         * doc/posix-functions/towlower_l.texi: Renamed from
50924         doc/glibc-functions/towlower_l.texi.
50925         * doc/posix-functions/towupper_l.texi: Renamed from
50926         doc/glibc-functions/towupper_l.texi.
50927         * doc/posix-functions/uselocale.texi: Renamed from
50928         doc/glibc-functions/uselocale.texi.
50929         * doc/posix-functions/vdprintf.texi: Renamed from
50930         doc/glibc-functions/vdprintf.texi.
50931         * doc/posix-functions/wcpcpy.texi:
50932         Renamed from doc/glibc-functions/wcpcpy.texi.
50933         * doc/posix-functions/wcpncpy.texi: Renamed from
50934         doc/glibc-functions/wcpncpy.texi.
50935         * doc/posix-functions/wcscasecmp.texi: Renamed from
50936         doc/glibc-functions/wcscasecmp.texi.
50937         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
50938         doc/glibc-functions/wcscasecmp_l.texi.
50939         * doc/posix-functions/wcscoll_l.texi: Renamed from
50940         doc/glibc-functions/wcscoll_l.texi.
50941         * doc/posix-functions/wcsdup.texi: Renamed from
50942         doc/glibc-functions/wcsdup.texi.
50943         * doc/posix-functions/wcsncasecmp.texi: Renamed from
50944         doc/glibc-functions/wcsncasecmp.texi.
50945         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
50946         doc/glibc-functions/wcsncasecmp_l.texi.
50947         * doc/posix-functions/wcsnlen.texi: Renamed from
50948         doc/glibc-functions/wcsnlen.texi.
50949         * doc/posix-functions/wcsnrtombs.texi: Renamed from
50950         doc/glibc-functions/wcsnrtombs.texi.
50951         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
50952         doc/glibc-functions/wcsxfrm_l.texi.
50953         * doc/posix-functions/wctrans_l.texi: Renamed from
50954         doc/glibc-functions/wctrans_l.texi.
50955         * doc/posix-functions/wctype_l.texi: Renamed from
50956         doc/glibc-functions/wctype_l.texi.
50957         * doc/gnulib.texi (Function Substitutes): Add these subsections.
50958         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
50959         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
50960         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
50961         these subsections.
50962         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
50963         Remove sections.
50964
50965 2008-12-14  Bruno Haible  <bruno@clisp.org>
50966
50967         Update doc for POSIX:2008.
50968         * doc/posix-functions/*.texi: Update URL of POSIX specification.
50969
50970 2008-12-14  Bruno Haible  <bruno@clisp.org>
50971
50972         Update doc for POSIX:2008.
50973         * doc/pastposix-functions/bcmp.texi: Renamed from
50974         doc/posix-functions/bcmp.texi.
50975         * doc/pastposix-functions/bcopy.texi: Renamed from
50976         doc/posix-functions/bcopy.texi.
50977         * doc/pastposix-functions/bsd_signal.texi: Renamed from
50978         doc/posix-functions/bsd_signal.texi.
50979         * doc/pastposix-functions/bzero.texi: Renamed from
50980         doc/posix-functions/bzero.texi.
50981         * doc/pastposix-functions/ecvt.texi: Renamed from
50982         doc/posix-functions/ecvt.texi.
50983         * doc/pastposix-functions/fcvt.texi: Renamed from
50984         doc/posix-functions/fcvt.texi.
50985         * doc/pastposix-functions/ftime.texi: Renamed from
50986         doc/posix-functions/ftime.texi.
50987         * doc/pastposix-functions/gcvt.texi: Renamed from
50988         doc/posix-functions/gcvt.texi.
50989         * doc/pastposix-functions/getcontext.texi: Renamed from
50990         doc/posix-functions/getcontext.texi.
50991         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
50992         doc/posix-functions/gethostbyaddr.texi.
50993         * doc/pastposix-functions/gethostbyname.texi: Renamed from
50994         doc/posix-functions/gethostbyname.texi.
50995         * doc/pastposix-functions/getwd.texi: Renamed from
50996         doc/posix-functions/getwd.texi.
50997         * doc/pastposix-functions/h_errno.texi: Renamed from
50998         doc/posix-functions/h_errno.texi.
50999         * doc/pastposix-functions/index.texi: Renamed from
51000         doc/posix-functions/index.texi.
51001         * doc/pastposix-functions/makecontext.texi: Renamed from
51002         doc/posix-functions/makecontext.texi.
51003         * doc/pastposix-functions/mktemp.texi: Renamed from
51004         doc/posix-functions/mktemp.texi.
51005         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
51006         doc/posix-functions/pthread_attr_getstackaddr.texi.
51007         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
51008         doc/posix-functions/pthread_attr_setstackaddr.texi.
51009         * doc/pastposix-functions/rindex.texi: Renamed from
51010         doc/posix-functions/rindex.texi.
51011         * doc/pastposix-functions/scalb.texi: Renamed from
51012         doc/posix-functions/scalb.texi.
51013         * doc/pastposix-functions/setcontext.texi: Renamed from
51014         doc/posix-functions/setcontext.texi.
51015         * doc/pastposix-functions/swapcontext.texi: Renamed from
51016         doc/posix-functions/swapcontext.texi.
51017         * doc/pastposix-functions/ualarm.texi: Renamed from
51018         doc/posix-functions/ualarm.texi.
51019         * doc/pastposix-functions/usleep.texi: Renamed from
51020         doc/posix-functions/usleep.texi.
51021         * doc/pastposix-functions/vfork.texi: Renamed from
51022         doc/posix-functions/vfork.texi.
51023         * doc/pastposix-functions/wcswcs.texi: Renamed from
51024         doc/posix-functions/wcswcs.texi.
51025         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
51026         (Function Substitutes): Update.
51027
51028 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51029
51030         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
51031         m4/strerror.m4.
51032
51033 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51034             Bruno Haible  <bruno@clisp.org>
51035
51036         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
51037
51038 2008-12-13  Bruno Haible  <bruno@clisp.org>
51039
51040         * modules/strtoull (Depends-on): Remove unistd.
51041
51042 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51043
51044         * modules/strtoull (Depends-on): Add stdlib.
51045
51046 2008-12-11  Simon Josefsson  <simon@josefsson.org>
51047
51048         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
51049
51050 2008-12-10  Jim Meyering  <meyering@redhat.com>
51051
51052         gl_ASSERT: don't say assertions are disabled when they're not
51053         * m4/assert.m4 (gl_ASSERT): Do not make configure report
51054         "checking whether to enable assertions... no", when they are in
51055         fact enabled.  This is solely a bug in the output of configure.
51056         In spite of saying "no", NDEBUG was not defined in that case.
51057         Also, as noted by Eric Blake, leave assertions enabled upon
51058         --enable-assert=INVALID.
51059
51060 2008-12-10  Bruno Haible  <bruno@clisp.org>
51061
51062         Change MODULES.html to refer to POSIX:2008 where possible.
51063         * MODULES.html.sh (POSIX2008_URL): New variable.
51064         (posix_headers): Remove sys/timeb, ucontext.
51065         (posix2001_headers): New variable.
51066         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
51067         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
51068         index, makecontext, mktemp, pthread_attr_getstackaddr,
51069         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
51070         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
51071         (posix2001_functions): New variable.
51072         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
51073         otherwise.
51074
51075 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51076
51077         add missing include to parse-duration.c
51078         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
51079         * modules/parse-duration (Depends-on): Add xalloc.
51080
51081         fix sed script reading maint.mk
51082         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
51083         (syntax-check-rules): Use it.
51084
51085 2008-12-09  Bruno Haible  <bruno@clisp.org>
51086
51087         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
51088         MacOS X 10.4/PowerPC.
51089         Reported by Simon Josefsson.
51090
51091 2008-12-08  Jim Meyering  <meyering@redhat.com>
51092
51093         work around mingw's lack of some S_IF definitions
51094         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
51095         Reported by Simon Josefsson.
51096
51097 2008-12-08  Bruno Haible  <bruno@clisp.org>
51098
51099         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
51100         applied to variables. Needed on MacOS X 10.4/PowerPC.
51101         Reported by Simon Josefsson.
51102
51103 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
51104         and Eric Blake  <ebb9@byu.net>
51105
51106         assert: honor --enable-assert
51107         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
51108         order to honor --enable-assert, rather than treating it as a
51109         synonym for --disable-assert.
51110
51111 2008-12-08  Jim Meyering  <meyering@redhat.com>
51112
51113         * lib/posixtm.c: Remove now-useless declaration of mktime.
51114
51115         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
51116
51117 2008-12-07  Bruno Haible  <bruno@clisp.org>
51118
51119         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
51120         test_once): Mark functions as static.
51121         * tests/test-tls.c (test_tls): Likewise.
51122
51123 2008-12-07  Bruno Haible  <bruno@clisp.org>
51124
51125         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
51126         iconv_register_autodetect.
51127
51128 2008-12-07  Jim Meyering  <meyering@redhat.com>
51129
51130         posixtm.c: avoid a warning
51131         * lib/posixtm.c (posixtime): Don't initialize tm0.
51132         It's no longer needed to placate gcc4's -Wuninitialized,
51133         and the attempt to placate would elicit a new warning.
51134
51135         unicodeio.c: mark unused parameters
51136         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
51137         (fallback_failure_callback): Likewise.
51138
51139 2008-12-07  Bruno Haible  <bruno@clisp.org>
51140
51141         * gnulib-tool (func_create_testdir): When building the tests
51142         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
51143         Reported by Simon Josefsson.
51144
51145 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51146
51147         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
51148
51149 2008-12-06  Bruno Haible  <bruno@clisp.org>
51150
51151         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
51152         Suggested by Eric Blake.
51153
51154 2008-12-06  Bruno Haible  <bruno@clisp.org>
51155
51156         Fix a c-stack test failure on MacOS X.
51157         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
51158         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
51159         handler for SIGBUS as well.
51160         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
51161         install a signal handler for SIGBUS as well.
51162         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
51163
51164 2008-12-06  Bruno Haible  <bruno@clisp.org>
51165
51166         Advocacy documentation.
51167         * doc/gnulib-intro.texi (Benefits): New section.
51168         * doc/gnulib.texi: Update.
51169
51170 2008-12-06  Bruno Haible  <bruno@clisp.org>
51171
51172         Document the 'manywarnings' module.
51173         * doc/manywarnings.texi: New file.
51174         * doc/gnulib.texi: Include it.
51175
51176 2008-12-05  Eric Blake  <ebb9@byu.net>
51177
51178         tests: silence some gcc warnings
51179         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
51180         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
51181         type mismatches.
51182
51183 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51184             Bruno Haible  <bruno@clisp.org>
51185
51186         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
51187
51188 2008-11-29  Jim Meyering  <meyering@redhat.com>
51189
51190         unicodeio.c: mark unused parameters
51191         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
51192         (fallback_failure_callback): Likewise.
51193
51194         fts: fix a thinko
51195         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
51196         (set_stat_type): Return S_IF*-valued "type" directly.
51197         Prompted by James Youngman's spotting a related bug.
51198         Confirmed by further testing through find.
51199
51200         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
51201         * lib/fts.c (D_TYPE): Define.
51202         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
51203         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
51204         (s_ifmt_shift_bits): New function.
51205         (set_stat_type): New function.
51206         (fts_build): When not calling fts_stat, call set_stat_type
51207         to propagate dirent.d_type info to fts_read caller.
51208         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
51209         fts_statp->st_mode type information may be valid.
51210
51211 2008-11-28  Simon Josefsson  <simon@josefsson.org>
51212
51213         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
51214         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
51215         <sds@gnu.org>.
51216
51217 2008-11-20  Bruno Haible  <bruno@clisp.org>
51218
51219         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
51220         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
51221         INCLUDE_NEXT.
51222         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
51223         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
51224         * modules/math (Makefile.am): Substitute
51225         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
51226         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
51227
51228 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
51229             Bruno Haible  <bruno@clisp.org>
51230
51231         * lib/stdint.in.h: Define all type macros so that their expansion is
51232         a single typedef'ed token. Fixes a compilation failure in Boost which
51233         does "using ::int8_t;".
51234
51235 2008-11-18  Simon Josefsson  <simon@josefsson.org>
51236
51237         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
51238         gl_MANYWARN_ALL_GCC.
51239         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
51240         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
51241         * modules/manywarnings: New file.
51242         * MODULES.html.sh: Mention manywarnings module.
51243
51244 2008-11-18  Bruno Haible  <bruno@clisp.org>
51245
51246         * doc/gnulib-tool.texi (Unit tests): New section.
51247
51248 2008-11-18  Simon Josefsson  <simon@josefsson.org>
51249
51250         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
51251         paths like 'lib/po/foo.po'.
51252
51253 2008-11-17  Simon Josefsson  <simon@josefsson.org>
51254
51255         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
51256         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
51257
51258 2008-11-17  Simon Josefsson  <simon@josefsson.org>
51259
51260         * m4/warnings.m4: Use CPPFLAGS to really check whether the
51261         parameter works.
51262
51263 2008-11-17  Simon Josefsson  <simon@josefsson.org>
51264
51265         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
51266
51267 2008-11-17  Bruce Korb  <bkorb@gnu.org>
51268
51269         * modules/parse-duration-tests: New file.
51270         * tests/test-parse-duration.sh: New file.
51271         * tests/test-parse-duration.c: New file.
51272
51273         New module 'parse-duration'.
51274         * lib/parse-duration.h: New file.
51275         * lib/parse-duration.c: New file.
51276         * modules/parse-duration: New file.
51277
51278 2008-11-17  Bruno Haible  <bruno@clisp.org>
51279
51280         * tests/test-select-out.sh: Comment out the first pipe test.
51281         Reported by Simon Josefsson.
51282
51283 2008-11-17  Bruno Haible  <bruno@clisp.org>
51284
51285         * modules/getaddrinfo (Depends-on): Add servent, hostent.
51286         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
51287         gl_HOSTENT.
51288
51289 2008-11-17  Bruno Haible  <bruno@clisp.org>
51290
51291         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
51292         -lnetwork and -lnet. Needed for Haiku and BeOS.
51293
51294 2008-11-16  Bruno Haible  <bruno@clisp.org>
51295
51296         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
51297
51298 2008-11-16  Bruno Haible  <bruno@clisp.org>
51299
51300         Avoid test failure on Haiku.
51301         * tests/test-fsync.c: Include <errno.h>.
51302         (main): Don't require that fsync (0) fails.
51303
51304 2008-11-15  Bruno Haible  <bruno@clisp.org>
51305
51306         New module 'hostent'.
51307         * modules/hostent: New file.
51308         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
51309
51310 2008-11-15  Bruno Haible  <bruno@clisp.org>
51311
51312         New module 'servent'.
51313         * modules/servent: New file.
51314         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
51315
51316 2008-11-15  Bruno Haible  <bruno@clisp.org>
51317
51318         Avoid generating same test program with two different rules.
51319         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
51320         test-frexp to test-frexp-nolibm.
51321         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
51322         test-frexpl to test-frexpl-nolibm.
51323
51324 2008-11-15  Bruno Haible  <bruno@clisp.org>
51325
51326         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
51327         $(FREXPL_LIBM).
51328
51329 2008-11-15  Bruno Haible  <bruno@clisp.org>
51330
51331         * lib/netdb.in.h: Activate the definitions also when the system's
51332         <netdb.h> has 'struct addrinfo'.
51333         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
51334         EAI_OVERFLOW or AI_NUMERICSERV.
51335         * doc/posix-headers/netdb.texi: Document the problem.
51336
51337 2008-11-15  Bruno Haible  <bruno@clisp.org>
51338
51339         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
51340
51341         Make the 'sched' module work on platforms where <sched.h> exists but
51342         is incomplete (such as Haiku).
51343         * lib/sched.in.h; Include the system's <sched.h> if it exists.
51344         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
51345         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
51346         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
51347         HAVE_STRUCT_SCHED_PARAM.
51348         * modules/sched (Depends-on): Add include_next.
51349         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
51350         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
51351         * doc/posix-headers/sched.texi: Document the issue.
51352
51353 2008-11-13  Jim Meyering  <meyering@redhat.com>
51354
51355         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
51356         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
51357         test would fail due to the difference in the Report bugs to ...
51358         line.  The expected address is empty, "<>", while the actual
51359         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
51360
51361 2008-11-12  Bruno Haible  <bruno@clisp.org>
51362
51363         lstat: don't compile lstat.c on systems lacking lstat
51364         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
51365         which don't have lstat; this is handled by lib/sys_stat.in.h already.
51366         Reported by Daniel P. Berrange via Jim Meyering.
51367
51368 2008-11-12  Jim Meyering  <meyering@redhat.com>
51369
51370         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
51371
51372 2008-11-12  Simon Josefsson  <simon@josefsson.org>
51373
51374         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
51375         instead.
51376
51377 2008-11-12  Bruno Haible  <bruno@clisp.org>
51378
51379         * lib/unicodeio.c: Include unistr.h.
51380         (utf8_wctomb): Remove function.
51381         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
51382
51383 2008-11-12  Simon Josefsson  <simon@josefsson.org>
51384
51385         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
51386         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
51387         <bruno@clisp.org>.
51388         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
51389
51390 2008-11-12  Simon Josefsson  <simon@josefsson.org>
51391
51392         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
51393         * doc/gnulib.texi: Add section for warnings.
51394
51395 2008-11-11  Bruno Haible  <bruno@clisp.org>
51396
51397         * lib/sockets.h: Add a comment.
51398
51399 2008-11-11  Karl Berry  <karl@gnu.org>
51400
51401         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
51402
51403 2008-11-11  Eric Blake  <ebb9@byu.net>
51404
51405         fdl.texi: avoid git symlinks
51406         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
51407
51408 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
51409
51410         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
51411
51412 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
51413
51414         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
51415         (gl_WARN_ADD): Substitute $2 if literal.
51416
51417 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
51418
51419         * m4/warning.m4: Remove.
51420
51421 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
51422
51423         * m4/warnings.m4: Almost complete rewrite. :-)
51424
51425 2008-11-10  Simon Josefsson  <simon@josefsson.org>
51426
51427         * modules/warnings: New module.
51428         * m4/warnings.m4: New file.
51429         * MODULES.html.sh: Mention warnings module.
51430         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
51431         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51432
51433 2008-11-10  Eric Blake  <ebb9@byu.net>
51434
51435         fdl.texi: make a symlink to the latest version
51436         * doc/standards.texi: Revert today's earlier change.
51437         * doc/fdl-1.2.texi: Rename from old fdl.texi...
51438         * doc/fdl.texi: ...and replace this with a symlink to the newer
51439         fdl-1.3.texi.
51440
51441 2008-11-10  Bruno Haible  <bruno@clisp.org>
51442
51443         * tests/test-select-fd.c (main): Accept the result file name as fourth
51444         argument.
51445         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
51446         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
51447
51448 2008-11-10  Bruno Haible  <bruno@clisp.org>
51449
51450         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
51451         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
51452         as autoconf-substituted macros.
51453         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
51454         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
51455         gl_NETDB_H_DEFAULTS. Set these variables.
51456         * modules/netdb (Makefile.am): Substitute these variables.
51457
51458 2008-11-10  Eric Blake  <ebb9@byu.net>
51459
51460         standards.texi: include correct file for FDL 1.3
51461         * doc/standards.texi (GNU Free Documentation License): Change
51462         include file to pull in FDL 1.3, not 1.2.
51463
51464         fdl.texi: revert accidental change to license
51465         * doc/fdl.texi: This is FDL 1.2, not 1.3.
51466
51467 2008-11-10  Bruno Haible  <bruno@clisp.org>
51468
51469         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
51470         cross-compiling guesses also when the native compile gives no result.
51471
51472 2008-11-10  Bruno Haible  <bruno@clisp.org>
51473
51474         * lib/spawni.c (__spawni): Force variable into the stack.
51475
51476 2008-11-10  Bruno Haible  <bruno@clisp.org>
51477
51478         Add support for Haiku.
51479         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
51480         glibc and BeOS, but also on Haiku.
51481         * lib/fpurge.c (fpurge): Likewise.
51482         * lib/freadable.c (freadable): Likewise.
51483         * lib/freadahead.c (freadahead): Likewise.
51484         * lib/freading.c (freading): Likewise.
51485         * lib/freadptr.c (freadptr): Likewise.
51486         * lib/freadseek.c (freadptrinc): Likewise.
51487         * lib/fseeko.c (rpl_fseeko): Likewise.
51488         * lib/fseterr.c (fseterr): Likewise.
51489         * lib/fwritable.c (fwritable): Likewise.
51490         * lib/fwriting.c (fwriting): Likewise.
51491         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
51492
51493 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
51494
51495         * lib/config.charset: Treat Haiku like BeOS.
51496
51497 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
51498
51499         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
51500         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
51501
51502 2008-11-08  Bruno Haible  <bruno@clisp.org>
51503
51504         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
51505         AC_CACHE_CHECK.
51506
51507 2008-11-08  Bruno Haible  <bruno@clisp.org>
51508
51509         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
51510
51511 2008-11-08  Bruno Haible  <bruno@clisp.org>
51512
51513         * tests/test-select-fd.c: New file.
51514         * tests/test-select-in.sh: New file.
51515         * tests/test-select-out.sh: New file.
51516         * tests/test-select-stdin.c: New file.
51517         * modules/select-tests (Files): Add the new files.
51518         (Depends-on): Add gettimeofday.
51519         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
51520         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
51521         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
51522
51523 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
51524             Bruno Haible  <bruno@clisp.org>
51525
51526         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
51527
51528 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
51529
51530         * build-aux/pmccabe2html: Added support for C++ source files.
51531
51532 2008-11-05  Ben Pfaff  <blp@gnu.org>
51533
51534         Fix lib/close.c build on Windows.
51535         * modules/close (Files): Add lib/w32sock.h.
51536
51537 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
51538
51539         Accept Bison's NEWS format.
51540         * build-aux/announce-gen (print_news_deltas): Tweak
51541         $re_prefix.
51542
51543 2008-11-04  Bruno Haible  <bruno@clisp.org>
51544
51545         * modules/random_r (Maintainer): Add glibc.
51546
51547 2008-11-04  Simon Josefsson  <simon@josefsson.org>
51548
51549         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
51550         by karl@freefriends.org (Karl Berry).
51551         * doc/alloca.texi: Likewise.
51552         * doc/c-ctype.texi: Likewise.
51553         * doc/c-strcase.texi: Likewise.
51554         * doc/c-strcaseeq.texi: Likewise.
51555         * doc/c-strcasestr.texi: Likewise.
51556         * doc/c-strstr.texi: Likewise.
51557         * doc/c-strtod.texi: Likewise.
51558         * doc/c-strtold.texi: Likewise.
51559         * doc/ctime.texi: Likewise.
51560         * doc/error.texi: Likewise.
51561         * doc/fdl.texi: Likewise.
51562         * doc/gcd.texi: Likewise.
51563         * doc/getdate.texi: Likewise.
51564         * doc/gnulib-intro.texi: Likewise.
51565         * doc/gnulib-tool.texi: Likewise.
51566         * doc/gnulib.texi: Likewise.
51567         * doc/inet_ntoa.texi: Likewise.
51568         * doc/maintain.texi: Likewise.
51569         * doc/make-stds.texi: Likewise.
51570         * doc/quote.texi: Likewise.
51571         * doc/regexprops-generic.texi: Likewise.
51572         * doc/standards.texi: Likewise.
51573         * doc/verify.texi: Likewise.
51574         * doc/visibility.texi: Likewise.
51575         * doc/gnulib.texi (GNU Free Documentation License): Include
51576         fdl-1.3.texi instead of fdl.texi.
51577
51578 2008-11-04  Simon Josefsson  <simon@josefsson.org>
51579
51580         * doc/fdl-1.3.texi: New file, from
51581         <http://www.gnu.org/licenses/fdl-1.3.texi>.
51582         * modules/fdl-1.3: Add.
51583         * MODULES.html.sh: Add fdl-1.3.
51584
51585 2008-11-03  Bruno Haible  <bruno@clisp.org>
51586
51587         Make determination of absolute name of header file work with AIX xlc.
51588         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
51589         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
51590         preprocessing.
51591         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
51592         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
51593
51594 2008-11-03  Simon Josefsson  <simon@josefsson.org>
51595
51596         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
51597         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
51598         <ludo@gnu.org>.
51599
51600 2008-11-02  Bruno Haible  <bruno@clisp.org>
51601
51602         Mark 'strpbrk' obsolete.
51603         * modules/strpbrk (Status, Notice): New sections.
51604         * modules/strtok_r (Depends-on): Add strpbrk.
51605
51606 2008-11-02  Bruno Haible  <bruno@clisp.org>
51607
51608         Mark 'strdup' obsolete.
51609         * modules/strdup (Status, Notice): New sections.
51610         * modules/findprog (Depends-on): Add strdup.
51611         * modules/getaddrinfo (Depends-on): Likewise.
51612         * modules/localename (Depends-on): Likewise.
51613         * modules/relocatable-lib (Depends-on): Likewise.
51614         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
51615         * modules/relocatable-prog (Depends-on): Likewise.
51616         * modules/trim (Depends-on): Likewise.
51617         * modules/unictype/gen-ctype (Depends-on): Likewise.
51618         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
51619
51620 2008-11-02  Bruno Haible  <bruno@clisp.org>
51621
51622         Mark 'strcspn' obsolete.
51623         * modules/strcspn (Status, Notice): New sections.
51624
51625 2008-11-02  Bruno Haible  <bruno@clisp.org>
51626
51627         Mark 'rmdir' obsolete.
51628         * modules/rmdir (Status, Notice): New sections.
51629         * modules/clean-temp (Depends-on): Add rmdir.
51630         * modules/openat (Depends-on): Likewise.
51631
51632 2008-11-02  Bruno Haible  <bruno@clisp.org>
51633
51634         Mark 'raise' obsolete.
51635         * modules/raise (Status, Notice): New sections.
51636         (Include): Specify <signal.h>.
51637         * modules/stdio (Depends-on): Add raise.
51638         * modules/write (Depends-on): Likewise.
51639
51640 2008-11-02  Bruno Haible  <bruno@clisp.org>
51641
51642         Mark 'memset' obsolete.
51643         * modules/memset (Status, Notice): New sections.
51644
51645 2008-11-02  Bruno Haible  <bruno@clisp.org>
51646
51647         Mark 'memmove' obsolete.
51648         * modules/memmove (Status, Notice): New sections.
51649         * modules/argp (Depends-on): Add memmove.
51650         * modules/argz (Depends-on): Likewise.
51651         * modules/canonicalize (Depends-on): Likewise.
51652         * modules/canonicalize-lgpl (Depends-on): Likewise.
51653         * modules/fts (Depends-on): Likewise.
51654         * modules/getcwd (Depends-on): Likewise.
51655         * modules/human (Depends-on): Likewise.
51656         * modules/regex (Depends-on): Likewise.
51657         * modules/striconveh (Depends-on): Likewise.
51658         * modules/trim (Depends-on): Likewise.
51659         * modules/unistr/u8-move (Depends-on): Likewise.
51660         * modules/unistr/u16-move (Depends-on): Likewise.
51661         * modules/unistr/u32-move (Depends-on): Likewise.
51662
51663 2008-11-02  Bruno Haible  <bruno@clisp.org>
51664
51665         Mark 'memcpy' obsolete.
51666         * modules/memcpy (Status, Notice): New sections.
51667
51668 2008-11-02  Bruno Haible  <bruno@clisp.org>
51669
51670         Mark 'memcmp' obsolete.
51671         * modules/memcmp (Status, Notice): New sections.
51672         * modules/argmatch (Depends-on): Add memchr.
51673         * modules/backupfile (Depends-on): Likewise.
51674         * modules/c-strcasestr (Depends-on): Likewise.
51675         * modules/crypto/des (Depends-on): Likewise.
51676         * modules/csharpcomp (Depends-on): Likewise.
51677         * modules/fnmatch (Depends-on): Likewise.
51678         * modules/git-merge-changelog (Depends-on): Likewise.
51679         * modules/isnand (Depends-on): Likewise.
51680         * modules/isnand-nolibm (Depends-on): Likewise.
51681         * modules/isnanf (Depends-on): Likewise.
51682         * modules/isnanf-nolibm (Depends-on): Likewise.
51683         * modules/isnanl (Depends-on): Likewise.
51684         * modules/isnanl-nolibm (Depends-on): Likewise.
51685         * modules/mbchar (Depends-on): Likewise.
51686         * modules/memcoll (Depends-on): Likewise.
51687         * modules/quotearg (Depends-on): Likewise.
51688         * modules/regex (Depends-on): Likewise.
51689         * modules/relocatable-prog (Depends-on): Likewise.
51690         * modules/same (Depends-on): Likewise.
51691         * modules/signbit (Depends-on): Likewise.
51692         * modules/strcasestr-simple (Depends-on): Likewise.
51693         * modules/unictype/gen-ctype (Depends-on): Likewise.
51694         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
51695         * modules/uniname/uniname (Depends-on): Likewise.
51696         * modules/unistr/u8-cmp (Depends-on): Likewise.
51697
51698 2008-11-02  Bruno Haible  <bruno@clisp.org>
51699
51700         Mark 'memchr' obsolete.
51701         * modules/memchr (Status, Notice): New sections.
51702         * modules/argp (Depends-on): Add memchr.
51703         * modules/base64 (Depends-on): Likewise.
51704         * modules/c-strcasestr (Depends-on): Likewise.
51705         * modules/chdir-long (Depends-on): Likewise.
51706         * modules/fnmatch (Depends-on): Likewise.
51707         * modules/getsubopt (Depends-on): Likewise.
51708         * modules/git-merge-changelog (Depends-on): Likewise.
51709         * modules/glob (Depends-on): Likewise.
51710         * modules/strcasestr-simple (Depends-on): Likewise.
51711         * modules/strnlen (Depends-on): Likewise.
51712
51713 2008-11-02  Bruno Haible  <bruno@clisp.org>
51714
51715         Mark 'atexit' obsolete.
51716         * modules/atexit (Status, Notice): New sections.
51717         * modules/chdir-long (Depends-on): Add atexit.
51718         * modules/wait-process (Depends-on): Likewise.
51719
51720 2008-11-02  Bruno Haible  <bruno@clisp.org>
51721
51722         * gnulib-tool: New option --with-obsolete.
51723         (func_usage): Document it.
51724         (func_modules_transitive_closure): Drop obsolete dependencies if
51725         incobsolete is not true.
51726         (func_import): Read and save the incobsolete variable to the cache.
51727
51728 2008-11-02  Bruno Haible  <bruno@clisp.org>
51729
51730         * modules/TEMPLATE-EXTENDED: New field 'Status'.
51731         * gnulib-tool: New option --extract-status.
51732         (func_usage): Document it.
51733         (sed_extract_prog): Recognize it.
51734         (func_get_status): New function.
51735
51736 2008-10-30  Simon Josefsson  <simon@josefsson.org>
51737
51738         * modules/sockets (License): Change from LGPL to LGPLv2+.
51739
51740 2008-10-28  Simon Josefsson  <simon@josefsson.org>
51741
51742         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
51743
51744 2008-10-28  Simon Josefsson  <simon@josefsson.org>
51745
51746         * MODULES.html.sh (Support for systems lacking POSIX:2001):
51747         Mention times and sys_times.
51748         * modules/sys_times, modules/sys_times-tests: New modules.
51749         * modules/times, modules/times-tests: Likewise
51750         * m4/sys_times_h.m4: New file.
51751         * lib/sys_times.in.h: Likewise
51752         * lib/times.c: Likewise.
51753         * tests/test-sys_times.c: Likewise.
51754         * tests/test-times.c: Likewise.
51755         * doc/posix-headers/sys_times.texi: Update.
51756         * doc/posix-functions/times.texi: Update.
51757
51758 2008-10-28  Jim Meyering  <meyering@redhat.com>
51759
51760         * modules/tempname (Depends-on): Add lstat.
51761
51762         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
51763
51764 2008-10-28  Simon Josefsson  <simon@josefsson.org>
51765
51766         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
51767         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
51768         using idiom used elsewhere in gnulib.
51769
51770 2008-10-27  Jim Meyering  <meyering@redhat.com>
51771
51772         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
51773
51774 2008-10-27  Simon Josefsson  <simon@josefsson.org>
51775
51776         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
51777         TESTS_ENVIRONMENT, for shell scripts that needs to call built
51778         programs.
51779         * tests/test-argp-2.sh: Use $EXEEXT when needed.
51780
51781 2008-10-27  Simon Josefsson  <simon@josefsson.org>
51782
51783         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
51784
51785 2008-10-27  Bruno Haible  <bruno@clisp.org>
51786
51787         * tests/test-lstat.c: Include <stdio.h>.
51788
51789 2008-10-27  Simon Josefsson  <simon@josefsson.org>
51790
51791         * modules/lstat-tests: New module.
51792         * tests/test-lstat.c: New file.
51793
51794 2008-10-26  Jim Meyering  <meyering@redhat.com>
51795
51796         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
51797
51798 2008-10-26  Simon Josefsson  <simon@josefsson.org>
51799             Bruno Haible  <bruno@clisp.org>
51800
51801         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
51802         * modules/configmake (Include): Add a note that the include must come
51803         after all system headers.
51804         * lib/javaversion.c: Include configmake.h after all other includes.
51805
51806 2008-10-26  Bruno Haible  <bruno@clisp.org>
51807
51808         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
51809         HAVE_STRUCT_RANDOM_DATA to 1.
51810         (gl_STDLIB_H): Simplify.
51811
51812 2008-10-26  Simon Josefsson  <simon@josefsson.org>
51813
51814         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
51815         substitute HAVE_STRUCT_RANDOM_DATA.
51816         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
51817         random_data.
51818         * modules/stdlib (Makefile.am): Substitute
51819         HAVE_STRUCT_RANDOM_DATA.
51820
51821 2008-10-26  Simon Josefsson  <simon@josefsson.org>
51822
51823         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
51824         * doc/gnulib-intro.texi (Copyright): Likewise.
51825
51826 2008-10-26  Simon Josefsson  <simon@josefsson.org>
51827
51828         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
51829         findings.
51830
51831 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
51832             Bruno Haible  <bruno@clisp.org>
51833
51834         * lib/unistd.in.h: Include <winsock2.h>.
51835         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
51836         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
51837         Provide dummy declarations.
51838         (gethostname): Override.
51839         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
51840         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
51841         gl_PREREQ_SYS_H_WINSOCK2.
51842         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
51843         * doc/posix-functions/gethostname.texi: More details.
51844
51845 2008-10-25  Bruno Haible  <bruno@clisp.org>
51846
51847         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
51848         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
51849         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
51850
51851         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
51852         here ...
51853         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
51854         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
51855         gl_UNISTD_H_DEFAULTS.
51856
51857 2008-10-25  Eric Blake  <ebb9@byu.net>
51858
51859         signbit: avoid spurious compiler failure
51860         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
51861         declarations inside function.
51862
51863 2008-10-24  Simon Josefsson  <simon@josefsson.org>
51864             Bruno Haible  <bruno@clisp.org>
51865
51866         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
51867         * modules/random_r (Depends-on): Add stdint.
51868
51869 2008-10-24  Bruno Haible  <bruno@clisp.org>
51870
51871         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
51872         Eggert.
51873         * modules/strerror (License): Likewise.
51874
51875 2008-10-24  Jim Meyering  <meyering@redhat.com>
51876
51877         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
51878         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
51879
51880 2008-10-24  Eric Blake  <ebb9@byu.net>
51881
51882         getgroups: fix compilation when getgroups is available
51883         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
51884         but with <config.h> override of getgroups disabled.
51885
51886 2008-10-24  Simon Josefsson  <simon@josefsson.org>
51887
51888         * doc/gnulib.texi (Header files): Add note about C++ problems.
51889         Explained by Bruno Haible <bruno@clisp.org>.
51890
51891 2008-10-23  Bruno Haible  <bruno@clisp.org>
51892
51893         Define a dummy SA_NODEFER macro on Interix.
51894         * lib/signal.in.h (SA_NODEFER): Define fallback.
51895         Reported by Aleksey Cheusov <cheusov@tut.by> via
51896         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
51897
51898 2008-10-23  Bruno Haible  <bruno@clisp.org>
51899
51900         * modules/freadahead (License): Change to LGPLv2+.
51901         Suggested by Simon Josefsson.
51902
51903 2008-10-23  Jim Meyering  <meyering@redhat.com>
51904
51905         random_r: new module
51906         * modules/random_r: New file.
51907         * m4/random_r.m4: New file.
51908         * lib/random_r.c: New file, from glibc.
51909         * modules/random_r-tests: New file.
51910         * tests/test-random_r.c: New file.
51911         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
51912          Declare.
51913         (RAND_MAX): Define.
51914         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
51915         * modules/stdlib: Substitute them, too.
51916         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
51917         * doc/glibc-functions/initstate_r.texi: Mention the new module.
51918         * doc/glibc-functions/random_r.texi: Likewise.
51919         * doc/glibc-functions/setstate_r.texi: Likewise.
51920         * doc/glibc-functions/srandom_r.texi: Likewise.
51921         * config/srclist.txt: Mention it.
51922
51923 2008-10-23  David Lutterkort  <lutter@redhat.com>
51924
51925         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
51926         link requirement
51927
51928 2008-10-23  Jim Meyering  <meyering@redhat.com>
51929
51930         selinux-h: mark parameters of stub functions as intentionally unused
51931         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
51932         * lib/se-context.in.h: Likewise.
51933
51934 2008-10-22  Simon Josefsson  <simon@josefsson.org>
51935
51936         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
51937
51938 2008-10-22  Simon Josefsson  <simon@josefsson.org>
51939
51940         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
51941
51942 2008-10-22  Eric Blake  <ebb9@byu.net>
51943
51944         glthread/thread: avoid compiler warning
51945         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
51946         Add unreachable abort to silence compiler.
51947
51948 2008-10-22  Eric Blake  <ebb9@byu.net>
51949
51950         netdb: also supply struct addrinfo for cygwin 1.5.x
51951         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
51952         older cygwin.
51953         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
51954         cygwin.
51955         * doc/posix-headers/netdb.texi (netdb.h): Document this.
51956
51957 2008-10-22  Bruno Haible  <bruno@clisp.org>
51958
51959         * users.txt: Update entry about pspp.
51960
51961 2008-10-21  Bruno Haible  <bruno@clisp.org>
51962
51963         Simplification.
51964         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
51965         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
51966
51967         Simplification.
51968         * lib/ioctl.c (ioctl): Don't undefine.
51969         * lib/socket.c (socket): Don't undefine.
51970
51971         Remove unused module indicator macros.
51972         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
51973         GNULIB_$1 as a C macro.
51974
51975         * doc/posix-functions/close.texi: Undo last change.
51976         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
51977         Windows platforms.
51978
51979 2008-10-21  Bruno Haible  <bruno@clisp.org>
51980
51981         Add gethostname() declaration to <unistd.h>.
51982         * lib/unistd.in.h (gethostname): New declaration.
51983         * lib/gethostname.c: Include <unistd.h>.
51984         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
51985         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
51986         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
51987         and HAVE_GETHOSTNAME.
51988         * modules/gethostname (Depends-on): Add unistd.
51989         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51990         (Include): Specify <unistd.h>.
51991         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
51992         HAVE_GETHOSTNAME.
51993         * tests/test-gethostname.c: Include <unistd.h> first.
51994
51995 2008-10-21  Bruno Haible  <bruno@clisp.org>
51996
51997         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
51998         * modules/select-tests (Depends-on): Likewise.
51999         Reported by Simon Josefsson.
52000
52001 2008-10-21  Simon Josefsson  <simon@josefsson.org>
52002
52003         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
52004         * lib/accept.c: New file, based on winsock.c.
52005         * lib/bind.c: New file, based on winsock.c.
52006         * lib/connect.c: New file, based on winsock.c.
52007         * lib/getpeername.c: New file, based on winsock.c.
52008         * lib/getsockname.c: New file, based on winsock.c.
52009         * lib/getsockopt.c: New file, based on winsock.c.
52010         * lib/ioctl.c: New file, based on winsock.c.
52011         * lib/listen.c: New file, based on winsock.c.
52012         * lib/recv.c: New file, based on winsock.c.
52013         * lib/recvfrom.c: New file, based on winsock.c.
52014         * lib/send.c: New file, based on winsock.c.
52015         * lib/sendto.c: New file, based on winsock.c.
52016         * lib/setsockopt.c: New file, based on winsock.c.
52017         * lib/shutdown.c: New file, based on winsock.c.
52018         * lib/socket.c: New file, based on winsock.c.
52019         * lib/w32sock.h: New file, based on winsock.c.
52020         * lib/winsock.c: Remove file.
52021         * modules/accept: Likewise.
52022         * modules/bind: Likewise.
52023         * modules/connect: Likewise.
52024         * modules/getpeername: Likewise.
52025         * modules/getsockname: Likewise.
52026         * modules/getsockopt: Likewise.
52027         * modules/ioctl: Likewise.
52028         * modules/listen: Likewise.
52029         * modules/recv: Likewise.
52030         * modules/recvfrom: Likewise.
52031         * modules/send: Likewise.
52032         * modules/sendto: Likewise.
52033         * modules/setsockopt: Likewise.
52034         * modules/shutdown: Likewise.
52035         * modules/socket: Use socket.c instead of winsock.c.
52036         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
52037         * doc/posix-functions/accept.texi: Doc fix.
52038         * doc/posix-functions/bind.texi: Doc fix.
52039         * doc/posix-functions/close.texi: Doc fix.
52040         * doc/posix-functions/connect.texi: Doc fix.
52041         * doc/posix-functions/getpeername.texi: Doc fix.
52042         * doc/posix-functions/getsockname.texi: Doc fix.
52043         * doc/posix-functions/getsockopt.texi: Doc fix.
52044         * doc/posix-functions/ioctl.texi: Doc fix.
52045         * doc/posix-functions/listen.texi: Doc fix.
52046         * doc/posix-functions/recv.texi: Doc fix.
52047         * doc/posix-functions/recvfrom.texi: Doc fix.
52048         * doc/posix-functions/send.texi: Doc fix.
52049         * doc/posix-functions/sendto.texi: Doc fix.
52050         * doc/posix-functions/setsockopt.texi: Doc fix.
52051         * doc/posix-functions/shutdown.texi: Doc fix.
52052         * doc/posix-functions/socket.texi: Doc fix.
52053
52054 2008-10-20  Bruno Haible  <bruno@clisp.org>
52055
52056         Take into account the role of SIGABRT_COMPAT on Windows 2008.
52057         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
52058         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
52059         as an alias for SIGABRT.
52060         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
52061         (sigaction): Map it to SIGABRT.
52062         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
52063
52064 2008-10-20  Bruno Haible  <bruno@clisp.org>
52065
52066         * lib/fts.c: Don't include lstat.h.
52067         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
52068
52069         Move the lstat() declaration to <sys/stat.h>.
52070         * lib/lstat.h: Remove file.
52071         * lib/sys_stat.in.h: Add special invocation convention.
52072         (lstat): New declaration.
52073         * lib/lstat.c (orig_lstat): New function.
52074         (rpl_lstat): Use orig_lstat instead of lstat.
52075         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
52076         AC_C_INLINE. Set REPLACE_LSTAT.
52077         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
52078         and REPLACE_LSTAT.
52079         * modules/lstat (Files): Remove lib/lstat.h.
52080         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
52081         (Include): Specify <sys/stat.h> instead of lstat.h.
52082         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
52083         REPLACE_LSTAT.
52084         * NEWS: Mention the change.
52085
52086 2008-10-20  Bruno Haible  <bruno@clisp.org>
52087
52088         * modules/posix_spawn-tests: New file.
52089         * tests/test-posix_spawn3.c: New file.
52090
52091 2008-10-20  Bruno Haible  <bruno@clisp.org>
52092
52093         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
52094         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
52095         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
52096         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
52097         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
52098
52099 2008-10-20  Bruno Haible  <bruno@clisp.org>
52100
52101         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
52102         of posix_spawn on AIX 5.3.
52103
52104 2008-10-20  Bruno Haible  <bruno@clisp.org>
52105
52106         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
52107
52108 2008-10-20  Bruno Haible  <bruno@clisp.org>
52109
52110         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
52111         of AC_LANG_PROGRAM.
52112
52113 2008-10-20  Simon Josefsson  <simon@josefsson.org>
52114
52115         * lib/netdb.in.h: Don't define GNU specific constants until they
52116         are supported or needed.  Reported by Bruno Haible
52117         <bruno@clisp.org>.
52118
52119 2008-10-20  Simon Josefsson  <simon@josefsson.org>
52120
52121         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
52122
52123 2008-10-20  Simon Josefsson  <simon@josefsson.org>
52124
52125         * lib/getaddrinfo.h: Remove file.
52126         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
52127         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
52128         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
52129         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
52130         * modules/netdb: Substitute GNULIB_GETADDRINFO.
52131         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
52132         * tests/test-getaddrinfo.c: Likewise.
52133         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
52134         * NEWS: Mention change.
52135
52136 2008-10-19  Bruno Haible  <bruno@clisp.org>
52137
52138         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
52139
52140 2008-10-19  Bruno Haible  <bruno@clisp.org>
52141
52142         * lib/wait-process.c: Include simply <sys/wait.h>.
52143         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
52144         WIFSTOPPED): Remove fallback definitions.
52145         * modules/wait-process (Depends-on): Add sys_wait.
52146
52147         New module 'sys_wait'.
52148         * modules/sys_wait: New file.
52149         * lib/sys_wait.in.h: New file, partially copied from
52150         lib/wait-process.c.
52151         * m4/sys_wait_h.m4: New file.
52152         * doc/posix-headers/sys_wait.texi: Mention the new module.
52153
52154 2008-10-19  Bruno Haible  <bruno@clisp.org>
52155
52156         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
52157
52158 2008-10-19  Bruno Haible  <bruno@clisp.org>
52159
52160         Assume that waitpid() fills an 'int' status, not a 'union wait'.
52161         * lib/wait-process.c (WAIT_T): Remove type.
52162         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
52163         (wait_subprocess): Update.
52164
52165 2008-10-19  Bruno Haible  <bruno@clisp.org>
52166
52167         New module 'atoll'.
52168         * modules/atoll: New file.
52169         * lib/stdlib.in.h (atoll): New declaration.
52170         * lib/atoll.c: New file, from glibc with modifications.
52171         * m4/atoll.m4: New file.
52172         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
52173         HAVE_ATOLL.
52174         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
52175         * doc/posix-functions/atoll.texi: Mention the new module.
52176
52177 2008-10-19  Bruno Haible  <bruno@clisp.org>
52178
52179         Add strtoull() declaration to <stdlib.h>.
52180         * lib/stdlib.in.h (strtoull): New declaration.
52181         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
52182         Set HAVE_STRTOULL.
52183         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
52184         HAVE_STRTOULL.
52185         * modules/strtoull (Depends-on): Add stdlib.
52186         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
52187         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
52188         HAVE_STRTOULL.
52189
52190 2008-10-19  Bruno Haible  <bruno@clisp.org>
52191
52192         Add strtoll() declaration to <stdlib.h>.
52193         * lib/stdlib.in.h (strtoll): New declaration.
52194         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
52195         Set HAVE_STRTOLL.
52196         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
52197         HAVE_STRTOLL.
52198         * modules/strtoll (Depends-on): Add stdlib.
52199         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
52200         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
52201
52202 2008-10-19  Bruno Haible  <bruno@clisp.org>
52203
52204         * modules/bcopy (Depends-on): Add strings.
52205         (Include): Specify <strings.h>.
52206
52207 2008-10-19  Bruno Haible  <bruno@clisp.org>
52208
52209         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
52210
52211 2008-10-19  Bruno Haible  <bruno@clisp.org>
52212
52213         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
52214         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
52215         mingw.
52216
52217 2008-10-19  Bruno Haible  <bruno@clisp.org>
52218
52219         * lib/atanl.c: Don't include isnanl.h.
52220         * lib/cosl.c: Likewise.
52221         * lib/ldexpl.c: Likewise.
52222         * lib/logl.c: Likewise.
52223         * lib/sinl.c: Likewise.
52224         * lib/sqrtl.c: Likewise.
52225         * lib/tanl.c: Likewise.
52226
52227         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
52228         * lib/isnanf.h: Remove file.
52229         * lib/isnand.h: Remove file.
52230         * lib/isnanl.h: Remove file.
52231         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
52232         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
52233         macros.
52234         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
52235         HAVE_ISNANF, don't define it as a C macro.
52236         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
52237         HAVE_ISNAND, don't define it as a C macro.
52238         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
52239         HAVE_ISNANL, don't define it as a C macro.
52240         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
52241         HAVE_ISNAN[FDL].
52242         * modules/isnanf (Files): Remove lib/isnanf.h.
52243         (Depends-on): Add math.
52244         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
52245         (Include): Specify <math.h> instead of isnanf.h.
52246         * modules/isnand (Files): Remove lib/isnand.h.
52247         (Depends-on): Add math.
52248         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
52249         (Include): Specify <math.h> instead of isnand.h.
52250         * modules/isnanl (Files): Remove lib/isnanl.h.
52251         (Depends-on): Add math.
52252         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
52253         (Include): Specify <math.h> instead of isnanl.h.
52254         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
52255         HAVE_ISNAN[FDL].
52256         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
52257         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
52258         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
52259         * NEWS: Mention the change.
52260
52261 2008-10-18  Bruno Haible  <bruno@clisp.org>
52262
52263         Add getusershell(), setusershell(), endusershell() declarations to
52264         <unistd.h>.
52265         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
52266         declarations.
52267         * lib/getusershell.c: Include unistd.h.
52268         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
52269         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
52270         HAVE_GETUSERSHELL.
52271         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
52272         and HAVE_GETUSERSHELL.
52273         * modules/getusershell (Depends-on): Add unistd, extensions.
52274         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52275         (Include): Specify <unistd.h>.
52276         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
52277         HAVE_GETUSERSHELL.
52278
52279 2008-10-18  Bruno Haible  <bruno@clisp.org>
52280
52281         Add a getloadavg() declaration to <stdlib.h>.
52282         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
52283         getloadavg declaration.
52284         (getloadavg): New declaration.
52285         * lib/getloadavg.c: Include <stdlib.h> first.
52286         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
52287         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
52288         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
52289         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
52290         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
52291         * modules/getloadavg (Depends-on): Add stdlib, extensions.
52292         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
52293         (Include): Specify <stdlib.h>.
52294         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
52295         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
52296
52297 2008-10-18  Bruno Haible  <bruno@clisp.org>
52298
52299         * lib/dirchownmod.c: Don't include lchmod.h.
52300
52301         Move the lchmod() declaration to <sys/stat.h>.
52302         * lib/lchmod.h: Remove file.
52303         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
52304         (lchmod): New declaration, moved here from lib/lchown.h.
52305         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
52306         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
52307         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
52308         and HAVE_LCHMOD.
52309         * modules/lchmod (Files): Remove lib/lchmod.h.
52310         (Depends-on): Add sys_stat, extensions.
52311         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
52312         (Include): Specify <sys/stat.h> instead of lchmod.h.
52313         * modules/sys_stat (Depends-on): Add link-warning.
52314         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
52315         definition of GL_LINK_WARNING.
52316         * NEWS: Mention the change.
52317
52318 2008-10-18  Bruno Haible  <bruno@clisp.org>
52319
52320         * lib/fchdir.c: Don't include dirfd.h.
52321         * lib/fts.c: Likewise.
52322         * lib/getcwd.c: Likewise.
52323         * lib/glob.c: Likewise.
52324
52325         Move the dirfd() declaration to <dirent.h>.
52326         * lib/dirfd.h: Remove file.
52327         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
52328         (dirfd): New declaration.
52329         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
52330         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
52331         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
52332         HAVE_DECL_DIRFD.
52333         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
52334         HAVE_DECL_DIRFD.
52335         * modules/dirfd (Files): Remove lib/dirfd.h.
52336         (Depends-on): Add dirent, extensions.
52337         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
52338         (Include): Specify <dirent.h> instead of dirfd.h.
52339         * modules/dirent (Depends-on): Add link-warning.
52340         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
52341         definition of GL_LINK_WARNING.
52342         * NEWS: Mention the change.
52343
52344 2008-10-18  Bruno Haible  <bruno@clisp.org>
52345
52346         Move the euidaccess() declaration to <unistd.h>.
52347         * lib/euidaccess.h: Remove file.
52348         * lib/unistd.in.h (euidaccess): New declaration.
52349         * lib/euidaccess.c: Don't include euidaccess.h.
52350         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
52351         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
52352         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
52353         and HAVE_EUIDACCESS.
52354         * modules/euidaccess (Files): Remove lib/euidaccess.h.
52355         (Depends-on): Add unistd.
52356         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52357         (Include): Specify <unistd.h> instead of euidaccess.h.
52358         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
52359         HAVE_EUIDACCESS.
52360         * NEWS: Mention the change.
52361
52362 2008-10-18  Bruno Haible  <bruno@clisp.org>
52363
52364         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
52365
52366         Move the getdomainname() declaration to <unistd.h>.
52367         * lib/getdomainname.h: Remove file.
52368         * lib/unistd.in.h (getdomainname): New declaration.
52369         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
52370         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
52371         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
52372         HAVE_GETDOMAINNAME.
52373         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52374         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
52375         * modules/getdomainname (Files): Remove lib/getdomainname.h.
52376         (Depends-on): Add unistd, extensions.
52377         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52378         (Includes): Specify <unistd.h> instead of getdomainname.h.
52379         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
52380         HAVE_GETDOMAINNAME.
52381         * NEWS: Mention the change.
52382
52383 2008-10-18  Bruno Haible  <bruno@clisp.org>
52384
52385         * modules/dirent: New file.
52386         * m4/dirent_h.m4: New file.
52387         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
52388         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
52389         * modules/fchdir (Files): Remove lib/dirent.in.h.
52390         (Depends-on): Add dirent.
52391         (Makefile.am): Move rules to modules/dirent.
52392         * doc/posix-headers/dirent.texi: Mention the new module.
52393
52394 2008-10-18  Bruno Haible  <bruno@clisp.org>
52395
52396         Avoid -Wunused-parameter warnings in public gnulib header files.
52397         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
52398         macro.
52399         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
52400
52401 2008-10-18  Bruno Haible  <bruno@clisp.org>
52402
52403         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
52404         * doc/glibc-functions/error.texi: Mention the module 'error'.
52405         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
52406         * doc/glibc-functions/getdomainname.texi: Mention the module
52407         'getdomainname'.
52408         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
52409         * doc/glibc-functions/getpagesize.texi: Mention the module
52410         'getpagesize'.
52411         * doc/glibc-functions/getusershell.texi: Mention the module
52412         'getusershell'.
52413         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
52414         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
52415         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
52416         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
52417         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
52418         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
52419         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
52420         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
52421         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
52422         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
52423         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
52424         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
52425         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
52426         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
52427
52428 2008-10-17  Bruno Haible  <bruno@clisp.org>
52429
52430         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
52431         HP-UX and IRIX, use -0.0L.
52432         * tests/test-ceill.c (minus_zero): Likewise.
52433         * tests/test-floorl.c (minus_zero): Likewise.
52434         * tests/test-frexpl.c (minus_zero): Likewise.
52435         * tests/test-isnan.c (minus_zerol): Likewise.
52436         * tests/test-isnanl.h (minus_zero): Likewise.
52437         * tests/test-ldexpl.c (minus_zero): Likewise.
52438         * tests/test-roundl.c (minus_zero): Likewise.
52439         * tests/test-signbit.c (minus_zerol): Likewise.
52440         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
52441         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
52442         * tests/test-truncl.c (minus_zero): Likewise.
52443         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
52444         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
52445         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
52446         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
52447
52448 2008-10-17  Bruno Haible  <bruno@clisp.org>
52449
52450         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
52451         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
52452         that it gets activated only for gcc >= 3.0.
52453         * lib/dirent.in.h: Likewise.
52454         * lib/errno.in.h: Likewise.
52455         * lib/fcntl.in.h: Likewise.
52456         * lib/float.in.h: Likewise.
52457         * lib/iconv.in.h: Likewise.
52458         * lib/inttypes.in.h: Likewise.
52459         * lib/locale.in.h: Likewise.
52460         * lib/math.in.h: Likewise.
52461         * lib/netdb.in.h: Likewise.
52462         * lib/netinet_in.in.h: Likewise.
52463         * lib/search.in.h: Likewise.
52464         * lib/signal.in.h: Likewise.
52465         * lib/spawn.in.h: Likewise.
52466         * lib/stdarg.in.h: Likewise.
52467         * lib/stdint.in.h: Likewise.
52468         * lib/stdio.in.h: Likewise.
52469         * lib/stdlib.in.h: Likewise.
52470         * lib/string.in.h: Likewise.
52471         * lib/strings.in.h: Likewise.
52472         * lib/sys_file.in.h: Likewise.
52473         * lib/sys_ioctl.in.h: Likewise.
52474         * lib/sys_select.in.h: Likewise.
52475         * lib/sys_socket.in.h: Likewise.
52476         * lib/sys_stat.in.h: Likewise.
52477         * lib/sys_time.in.h: Likewise.
52478         * lib/sysexits.in.h: Likewise.
52479         * lib/time.in.h: Likewise.
52480         * lib/unistd.in.h: Likewise.
52481         * lib/wchar.in.h: Likewise.
52482         * lib/wctype.in.h: Likewise.
52483         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52484
52485 2008-10-17  Jim Meyering  <meyering@redhat.com>
52486
52487         ignore-value: don't depend on inline module
52488         * modules/ignore-value (Depends-on): Remove 'inline'.
52489         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
52490         Suggestion from Bruno Haible.
52491
52492 2008-10-17  Bruno Haible  <bruno@clisp.org>
52493
52494         New implementation of condition variables for Win32.
52495         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
52496         (gl_linked_waitqueue_t): New type.
52497         (gl_cond_t): Use it.
52498         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
52499         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
52500         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
52501         (glthread_cond_init_func, glthread_cond_wait_func,
52502         glthread_cond_timedwait_func, glthread_cond_signal_func,
52503         glthread_cond_broadcast_func, glthread_cond_destroy_func):
52504         Reimplemented on the basis of gl_linked_waitqueue_t.
52505         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
52506         gl_waitqueue_t.
52507         (gl_rwlock_t): Update.
52508         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
52509
52510 2008-10-17  Simon Josefsson  <simon@josefsson.org>
52511
52512         * modules/recvfrom (Depends-on): Add dependency on getpeername.
52513         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
52514
52515 2008-10-17  Jim Meyering  <meyering@redhat.com>
52516
52517         ignore-value: new module
52518         * modules/ignore-value: New file.
52519         * lib/ignore-value.h: New file.
52520         * MODULES.html.sh (Compiler warning management): New section,
52521         just for this module.  More to come.
52522
52523 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
52524
52525         open-safer.c: avoid 'signed and unsigned in conditional...' warning
52526         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
52527         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
52528
52529 2008-10-16  Jim Meyering  <meyering@redhat.com>
52530
52531         openat-die.c: avoid 'no previous prototype' warning
52532         * lib/openat-die.c: Include "openat.h".
52533         Reported by Reuben Thomas <rrt@sc3d.org>.
52534
52535 2008-10-16  Simon Josefsson  <simon@josefsson.org>
52536
52537         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
52538         * lib/netdb.in.h: Fix typo.
52539         Reported by Bruno Haible  <bruno@clisp.org>
52540
52541         * lib/netdb.in.h: Include sys/socket.h for platforms without
52542         netdb.h, to get structures like hostent on MinGW.
52543         * modules/netdb (Depends-on): Add sys_socket.
52544
52545 2008-10-15  Simon Josefsson  <simon@josefsson.org>
52546
52547         * modules/netdb, modules/netdb-tests: New file.
52548         * m4/netdb_h.m4: New file.
52549         * lib/netdb.in.h: Add, currently just an empty file pending
52550         definitions.
52551         * tests/test-netdb.c: New file.
52552         * doc/posix-headers/netdb.texi: Mention that we replace it if
52553         needed.
52554         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52555         netdb.
52556
52557 2008-10-15  Simon Josefsson  <simon@josefsson.org>
52558
52559         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
52560         with code.
52561
52562 2008-10-13  Bruno Haible  <bruno@clisp.org>
52563
52564         * lib/glthread/cond.c (glthread_cond_wait_func,
52565         glthread_cond_timedwait_func): Add a comment.
52566
52567 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
52568
52569         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
52570         * tests/test-select.c: Likewise,
52571
52572 2008-10-13  Bruno Haible  <bruno@clisp.org>
52573
52574         * lib/glthread/cond.c (glthread_cond_wait_func,
52575         glthread_cond_timedwait_func): Fix variable name.
52576         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
52577
52578 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
52579
52580         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
52581         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
52582         struct sockaddr.sa_len.
52583         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
52584
52585 2008-10-13  Simon Josefsson  <simon@josefsson.org>
52586
52587         * build-aux/pmccabe2html: Add css and css_url parameters.
52588
52589 2008-10-12  Bruno Haible  <bruno@clisp.org>
52590
52591         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
52592         calling aclx_get.
52593         Reported by Rainer Tammer <tammer@tammer.net>.
52594
52595 2008-10-12  Bruno Haible  <bruno@clisp.org>
52596
52597         Use msvcrt aware primitives for creation/termination of Win32 threads.
52598         * lib/glthread/thread.c: Include <process.h>.
52599         (glthread_create_func): Use _beginthreadex instead of CreateThread.
52600         (wrapper_func): Update signature.
52601         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
52602
52603 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
52604             Bruno Haible  <bruno@clisp.org>
52605
52606         Provide a Win32 implementation of the 'cond' module.
52607         * lib/glthread/cond.h [USE_WIN32]: New implementation.
52608         * lib/glthread/cond.c (glthread_cond_init_func,
52609         glthread_cond_wait_func, glthread_cond_timedwait_func,
52610         glthread_cond_signal_func, glthread_cond_broadcast_func,
52611         glthread_cond_destroy_func) [USE_WIN32]: New functions.
52612         * modules/cond (Dependencies): Add gettimeofday.
52613
52614 2008-10-11  Bruno Haible  <bruno@clisp.org>
52615
52616         Make sleep work on older versions of mingw.
52617         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
52618         only whether it exists.
52619         * doc/posix-functions/sleep.texi: Mention the problem with older
52620         versions of mingw.
52621
52622 2008-10-11  Bruno Haible  <bruno@clisp.org>
52623
52624         New module 'shutdown'.
52625         * modules/shutdown: New file.
52626         * lib/sys_socket.in.h (shutdown): New declaration.
52627         * lib/winsock.c (shutdown): New function.
52628         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
52629         GNULIB_SHUTDOWN.
52630         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
52631         * doc/posix-functions/shutdown.texi: Document the new module.
52632
52633 2008-10-11  Jim Meyering  <meyering@redhat.com>
52634
52635         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
52636
52637 2008-10-11  Bruno Haible  <bruno@clisp.org>
52638
52639         New module 'fclose'.
52640         * modules/fclose: New file.
52641         * lib/stdio.in.h (fclose): New declaration.
52642         * lib/fclose.c: New file.
52643         * m4/fclose.m4: New file.
52644         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
52645         REPLACE_FCLOSE.
52646         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
52647         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
52648         REPLACE_FCLOSE.
52649         * modules/close (Depends-on): fclose.
52650         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
52651
52652 2008-10-11  Bruno Haible  <bruno@clisp.org>
52653
52654         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
52655         set errno and don't call _close.
52656
52657 2008-10-10  Bruno Haible  <bruno@clisp.org>
52658
52659         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
52660         ACL, not afterwards. Fixes test failure on Cygwin.
52661
52662 2008-10-09  Ben Pfaff  <blp@gnu.org>
52663
52664         * build-aux/announce-gen: Fix gnulib version related part of usage
52665         message.  Die with a useful error message if no tarballs are
52666         found.
52667
52668 2008-10-10  Jim Meyering  <meyering@redhat.com>
52669
52670         bootstrap: use git's --depth=N option only if it's supported
52671         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
52672         recognize the --depth option.  Reported by Pádraig Brady.
52673
52674 2008-10-09  Bruno Haible  <bruno@clisp.org>
52675
52676         New module 'ioctl'.
52677         * modules/ioctl: New file.
52678         * lib/sys_socket.in.h (ioctl): Remove declaration.
52679         * lib/winsock.c: Include <sys/ioctl.h>.
52680         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
52681         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
52682         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
52683         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
52684         * doc/posix-functions/ioctl.texi: Mention the new module.
52685
52686 2008-10-09  Bruno Haible  <bruno@clisp.org>
52687
52688         New module 'sys_ioctl'.
52689         * lib/sys_ioctl.in.h: New file.
52690         * m4/sys_ioctl_h.m4: New file.
52691         * modules/sys_ioctl: New file.
52692         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
52693
52694 2008-10-09  Bruno Haible  <bruno@clisp.org>
52695
52696         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
52697         * lib/winsock.c: Include <stdarg.h>.
52698         (rpl_ioctl): Change to second argument 'int' and then varargs.
52699
52700 2008-10-09  Bruno Haible  <bruno@clisp.org>
52701
52702         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
52703         when the sys_socket module is present and the system has <winsock2.h>.
52704
52705 2008-10-09  Bruno Haible  <bruno@clisp.org>
52706
52707         * doc/posix-functions/close.texi: Mention module 'close' instead of
52708         module 'sys_socket'.
52709
52710 2008-10-09  Bruno Haible  <bruno@clisp.org>
52711
52712         * doc/glibc-headers/sys_ioctl.texi: New file.
52713         * doc/gnulib.texi: Include it.
52714
52715 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
52716             Bruno Haible  <bruno@clisp.org>
52717
52718         Combine the two replacements of 'close'.
52719         * lib/sys_socket.in.h (close): Define to a reminder to include
52720         <unistd.h>.
52721         (_gl_close_fd_maybe_socket): New declaration.
52722         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
52723         * lib/winsock.c (close): Remove undefinition.
52724         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
52725         needed for the gnulib module 'close'.
52726         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
52727         define to an error symbol or to a warning, if suitable.
52728         * lib/close.c: Include <sys/socket.h>.
52729         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
52730         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
52731         UNISTD_H_HAVE_WINSOCK2_H.
52732         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
52733         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52734         UNISTD_H_HAVE_WINSOCK2_H.
52735         * modules/sys_socket (Files): Add m4/unistd_h.m4.
52736         (configure.ac): Set a module indicator.
52737         (Makefile.am): Substitute GNULIB_CLOSE.
52738         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
52739         * modules/poll-tests (Depends-on): Add close.
52740         * modules/select-tests (Depends-on): Likewise.
52741
52742 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
52743             Bruno Haible  <bruno@clisp.org>
52744
52745         New module 'close'.
52746         * modules/close: New file.
52747         * lib/unistd.in.h (close): Move declaration out of the
52748         FCHDIR_REPLACEMENT scope.
52749         (_gl_unregister_fd): New declaration.
52750         * lib/close.c: New file.
52751         * lib/fchdir.c (rpl_close): Remove function.
52752         * m4/close.m4: New file.
52753         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
52754         close.
52755         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
52756         REPLACE_CLOSE.
52757         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
52758         REPLACE_CLOSE.
52759         * modules/fchdir (Depends-on): Add close.
52760
52761 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
52762             Bruno Haible  <bruno@clisp.org>
52763
52764         * lib/fcntl.in.h (open): Simplify conditionals.
52765         (_gl_register_fd): New declaration.
52766         * lib/fchdir.c (rpl_open): Remove function.
52767         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
52768         also.
52769         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
52770         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
52771         open.
52772
52773 2008-10-09  Jim Meyering  <meyering@redhat.com>
52774
52775         GNUmakefile: use the more name-space-friendly "_version"
52776         * top/GNUmakefile (_dummy): Update.
52777         (_version): Rename from "version".
52778
52779 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
52780             Bruno Haible  <bruno@clisp.org>
52781
52782         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
52783         rpl_close.
52784         (_gl_register_fd): New function, extracted from rpl_open.
52785         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
52786         (rpl_open, rpl_opendir): Use _gl_register_fd.
52787
52788 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
52789
52790         Fix organization of 'open' replacement.
52791         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
52792         (gl_FUNC_OPEN): Use it.
52793         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
52794
52795 2008-10-08  Bruno Haible  <bruno@clisp.org>
52796
52797         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
52798
52799 2008-10-08  Simon Josefsson  <simon@josefsson.org>
52800
52801         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
52802         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
52803         listen).
52804
52805 2008-10-08  Eric Blake  <ebb9@byu.net>
52806
52807         GNUmakefile: add 'make version' target
52808         * top/GNUmakefile (_curr-ver): Split version update rules...
52809         (version): ...into a target.
52810
52811 2008-10-07  Bruno Haible  <bruno@clisp.org>
52812
52813         Use a more portable replacement expression for -0.0L.
52814         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
52815         instead of -0.0L. Fix m4 quotation.
52816
52817         * tests/test-signbit.c: Include <float.h>.
52818         (minus_zero): New variable.
52819         (test_signbitl): Use minus_zero instead of -zero.
52820         * modules/signbit-tests (Depends-on): Add float.
52821
52822         * tests/test-ceill.c: Include <float.h>.
52823         (zero): Remove variable.
52824         (minus_zero): New variable.
52825         (main): Use minus_zero instead of -zero.
52826         * modules/ceill-tests (Depends-on): Add float.
52827
52828         * tests/test-floorl.c: Include <float.h>.
52829         (zero): Remove variable.
52830         (minus_zero): New variable.
52831         (main): Use minus_zero instead of -zero.
52832         * modules/floorl-tests (Depends-on): Add float.
52833
52834         * tests/test-roundl.c: Include <float.h>.
52835         (zero): Remove variable.
52836         (minus_zero): New variable.
52837         (main): Use minus_zero instead of -zero.
52838         * modules/roundl-tests (Depends-on): Add float.
52839
52840         * tests/test-truncl.c: Include <float.h>.
52841         (zero): Remove variable.
52842         (minus_zero): New variable.
52843         (main): Use minus_zero instead of -zero.
52844         * modules/truncl-tests (Depends-on): Add float.
52845
52846         * tests/test-frexpl.c (zero): Remove variable.
52847         (minus_zero): New variable.
52848         (main): Use minus_zero instead of -zero.
52849         * modules/frexpl-tests (Depends-on): Add float.
52850
52851         * tests/test-isnan.c (zerol): Remove variable.
52852         (minus_zerol): New variable.
52853         (test_long_double): Use minus_zerol instead of -zerol.
52854         * modules/isnan-tests (Depends-on): Add float.
52855
52856         * tests/test-isnanl.h (zero): Remove variable.
52857         (minus_zero): New variable.
52858         (main): Use minus_zero instead of -zero.
52859         * modules/isnanl-nolibm-tests (Depends-on): Add float.
52860         * modules/isnanl-tests (Depends-on): Add float.
52861
52862         * tests/test-ldexpl.c (zero): Remove variable.
52863         (minus_zero): New variable.
52864         (main): Use minus_zero instead of -zero.
52865         * modules/ldexpl-tests (Depends-on): Add float.
52866
52867         * tests/test-snprintf-posix.h (zerol): Remove variable.
52868         (minus_zerol): New variable.
52869         (test_function): Use minus_zerol instead of -zerol.
52870         * modules/snprintf-posix-tests (Depends-on): Add float.
52871         * modules/vsnprintf-posix-tests (Depends-on): Add float.
52872
52873         * tests/test-sprintf-posix.h (zerol): Remove variable.
52874         (minus_zerol): New variable.
52875         (test_function): Use minus_zerol instead of -zerol.
52876         * modules/sprintf-posix-tests (Depends-on): Add float.
52877         * modules/vsprintf-posix-tests (Depends-on): Add float.
52878
52879         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
52880         (minus_zerol): New variable.
52881         (test_function): Use minus_zerol instead of -zerol.
52882         * modules/vasnprintf-posix-tests (Depends-on): Add float.
52883
52884         * tests/test-vasprintf-posix.c (zerol): Remove variable.
52885         (minus_zerol): New variable.
52886         (test_function): Use minus_zerol instead of -zerol.
52887         * modules/vasprintf-posix-tests (Depends-on): Add float.
52888
52889 2008-10-07  Simon Josefsson  <simon@josefsson.org>
52890
52891         * MODULES.html.sh (Support for building documentation): Mention
52892         pmccabe2html.  Sort entries.
52893
52894         Add pmccabe2html module, from gnupdf.
52895         * build-aux/pmccabe.css: New file.
52896         * build-aux/pmccabe2html: New file.
52897         * m4/pmccabe2html.m4: New file.
52898         * modules/pmccabe2html: New file.
52899
52900 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
52901
52902         flock: new module
52903         * MODULES.html.sh: Add to list of modules.
52904         * lib/flock.c: flock implementation for Windows and Unix systems
52905         which have fcntl.
52906         * doc/glibc-functions/flock.texi: Update documentation.
52907         * lib/sys_file.in.h: <sys/file.h> header file.
52908         * m4/flock.m4: M4 macros.
52909         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
52910         * modules/flock: flock module.
52911         * modules/flock-tests: flock tests module.
52912         * modules/sys_file: sys/file.h module.
52913         * tests/test-flock.c: test suite for flock.
52914
52915 2008-10-06  Jim Meyering  <meyering@redhat.com>
52916
52917         bootstrap: check for LT_INIT more portably still ;-)
52918         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
52919         Spotted by Bruno Haible.
52920
52921 2008-10-06  Eric Blake  <ebb9@byu.net>
52922
52923         test-signbit: avoid tripping Irix cc bug on -0.0L
52924         * tests/test-signbit.c (minus_zerol): Delete, and replace with
52925         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
52926         entire testsuite consistent and avoids an Irix 6.2 bug.
52927
52928 2008-10-05  Bruno Haible  <bruno@clisp.org>
52929             Jim Meyering  <jim@meyering.net>
52930
52931         Add an option for ignoring EPIPE during close_stdout.
52932         * lib/closeout.h: Include <stdbool.h>.
52933         (close_stdout_set_ignore_EPIPE): New declaration.
52934         * lib/closeout.c: Include <stdbool.h>.
52935         (ignore_EPIPE): New variable.
52936         (close_stdout_set_ignore_EPIPE): New function.
52937         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
52938         * lib/close-stream.c (close_stream): Mention the possible EPIPE
52939         failure.
52940         * modules/closeout (Depends-on): Add stdbool.
52941
52942 2008-10-05  Bruno Haible  <bruno@clisp.org>
52943
52944         * modules/accept: New file.
52945         * modules/bind: New file.
52946         * modules/connect: New file.
52947         * modules/getpeername: New file.
52948         * modules/getsockname: New file.
52949         * modules/getsockopt: New file.
52950         * modules/listen: New file.
52951         * modules/recv: New file.
52952         * modules/recvfrom: New file.
52953         * modules/send: New file.
52954         * modules/sendto: New file.
52955         * modules/setsockopt: New file.
52956         * modules/socket: New file.
52957         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
52958         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
52959         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
52960         the particular module is requested. Add a link warning when the
52961         particular module is not requested.
52962         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
52963         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
52964         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
52965         the particular module is requested.
52966         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
52967         gl_SYS_SOCKET_H_DEFAULTS): New macros.
52968         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
52969         * modules/sys_socket (Depends-on): Add link-warning.
52970         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
52971         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
52972         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
52973         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
52974         GL_LINK_WARNING.
52975         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
52976         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
52977         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
52978         * doc/posix-functions/getpeername.texi: Mention the new module
52979         'getpeername'.
52980         * doc/posix-functions/getsockname.texi: Mention the new module
52981         'getsockname'.
52982         * doc/posix-functions/getsockopt.texi: Mention the new module
52983         'getsockopt'.
52984         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
52985         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
52986         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
52987         * doc/posix-functions/send.texi: Mention the new module 'send'.
52988         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
52989         * doc/posix-functions/setsockopt.texi: Mention the new module
52990         'setsockopt'.
52991         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
52992         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
52993         listen, connect, accept.
52994         * modules/select-tests (Depends-on): Likewise.
52995
52996 2008-10-05  Bruno Haible  <bruno@clisp.org>
52997
52998         * lib/winsock.c (strerror): Remove unused #undef.
52999         (rpl_close): Remove unused local variable.
53000
53001         * modules/sys_socket (Depends-on); Add errno.
53002
53003 2008-10-05  Bruno Haible  <bruno@clisp.org>
53004
53005         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
53006         (select): Add a link warning when the 'select' module is not used.
53007         * modules/sys_select (Depends-on): Add link-warning.
53008         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
53009         Suggested by Paolo Bonzini.
53010
53011 2008-10-05  Jim Meyering  <meyering@redhat.com>
53012
53013         bootstrap: check for LT_INIT more portably
53014         * build-aux/bootstrap: Avoid using grep -E, since it's not
53015         portable enough.  Suggestion from Bruno Haible.
53016
53017 2008-10-05  Bruno Haible  <bruno@clisp.org>
53018
53019         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
53020         as being fixed by gnulib.
53021
53022 2008-10-05  Bruno Haible  <bruno@clisp.org>
53023
53024         * modules/select-tests: New file, mostly copied from
53025         modules/sys_select-tests.
53026         * tests/test-select.c: New file, mostly copied from
53027         tests/test-sys_select.c.
53028         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
53029         * modules/sys_select-tests (Depends-on): Remove all dependencies.
53030         (Makefile.am): Remove test_sys_select_LDADD.
53031
53032         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
53033         to an undefined symbol, for an error message.
53034         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
53035         (gl_SYS_SELECT_H_DEFAULTS): New macro.
53036         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
53037         winsock-select.c here.
53038         * modules/sys_select (Files): Remove lib/winsock-select.c.
53039         (Depends-on): Remove alloca.
53040         (Makefile.am): Substitute GNULIB_SELECT.
53041         * modules/select: New file.
53042         * doc/posix-functions/select.texi: Update.
53043
53044 2008-10-05  Bruno Haible  <bruno@clisp.org>
53045
53046         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
53047         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
53048         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
53049         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
53050         getdtablesize.
53051         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
53052         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
53053
53054 2008-10-05  Bruno Haible  <bruno@clisp.org>
53055
53056         * modules/getdtablesize-tests: New file.
53057         * tests/test-getdtablesize.c: New file.
53058
53059         New module 'getdtablesize'.
53060         * lib/unistd.in.h (getdtablesize): New declaration.
53061         * lib/getdtablesize.c: New file.
53062         * m4/getdtablesize.m4: New file.
53063         * modules/getdtablesize: New file.
53064         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
53065         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
53066         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
53067         HAVE_GETDTABLESIZE.
53068         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
53069
53070 2008-10-05  Bruno Haible  <bruno@clisp.org>
53071
53072         * modules/sched (Makefile.am): Fix typo.
53073         Reported by Simon Josefsson.
53074
53075 2008-10-05  Jim Meyering  <meyering@redhat.com>
53076
53077         bootstrap: check for LT_INIT, too
53078         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
53079         are deprecated.  Suggestion from Ralf Wildenhues.
53080
53081 2008-10-05  Bruno Haible  <bruno@clisp.org>
53082
53083         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
53084         overriding them by ours.
53085         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
53086
53087 2008-10-05  Jim Meyering  <meyering@redhat.com>
53088
53089         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
53090         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
53091         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
53092
53093 2008-10-04  Bruno Haible  <bruno@clisp.org>
53094
53095         * modules/dup2 (License): Change to LGPLv2+.
53096         * modules/sleep (License): Likewise.
53097         * modules/perror (License): Likewise.
53098         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
53099         Blake.
53100         * modules/signal (License): Likewise.
53101         * modules/sigprocmask (License): Likewise.
53102         * modules/raise (License): Change to LGPLv2+, with approval by Jim
53103         Meyering.
53104
53105 2008-10-04  Bruno Haible  <bruno@clisp.org>
53106
53107         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
53108         Reported by Rainer Tammer <tammer@tammer.net>.
53109
53110 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
53111             Bruno Haible  <bruno@clisp.org>
53112
53113         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
53114         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
53115         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
53116
53117 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
53118
53119         filevercmp: new module
53120         * lib/filevercmp.h: New function filevercmp comparing version strings.
53121         * lib/filevercmp.c: Implementation of filevercmp function.
53122         * modules/filevercmp: Module metadata.
53123         * tests/test-filevercmp.c: Unit test for new module.
53124         * modules/filevercmp-tests: Unit test metadata.
53125         * MODULES.html.sh: Add filevercmp module.
53126
53127 2008-10-03  Bruno Haible  <bruno@clisp.org>
53128
53129         * lib/c-ctype.h: Add comment.
53130         Reported by Jim Meyering.
53131
53132 2008-10-02  Bruno Haible  <bruno@clisp.org>
53133
53134         * modules/posix_spawn-internal (Depends-on): Add 'open'.
53135
53136 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
53137
53138         * build-aux/bootstrap: Allow renaming bootstrap, and change the
53139         name of bootstrap.conf accordingly.
53140
53141 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
53142
53143         * build-aux/bootstrap: Install git-merge-changelog configuration
53144         items into .gitconfig if needed.
53145
53146 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
53147
53148         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
53149         git repository, and initialize/update it accordingly.
53150
53151 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
53152
53153         * modules/fsync-tests: New file.
53154         * tests/test-fsync.c: New file.
53155
53156         New module 'fsync'.
53157         * lib/fsync.c: New file.
53158         * m4/fsync.m4: New file.
53159         * modules/fsync: New file.
53160         * lib/unistd.in.h (fsync): New declaration.
53161         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
53162         GNULIB_FSYNC and HAVE_FSYNC.
53163         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
53164         * MODULES.html.sh (posix_functions): Add fsync.
53165         * doc/posix-functions/fsync.texi: Mention the new module.
53166
53167 2008-10-02  Jim Meyering  <meyering@redhat.com>
53168
53169         fts.c: sync with similar code from coreutils' remove.c
53170         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
53171         Guard also with "#if defined __linux__", since for now at least,
53172         this code is Linux-kernel-specific.
53173
53174 2008-10-02  Jim Meyering  <meyering@redhat.com>
53175
53176         fts: bug fixes
53177         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
53178         Include <sys/vfs.h>, not <sys/statfs.h>.
53179
53180         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
53181         Include <sys/vfs.h>, not <sys/statfs.h>.
53182
53183 2008-10-01  Bruno Haible  <bruno@clisp.org>
53184
53185         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
53186         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
53187         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
53188         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
53189         * doc/posix-functions/posix_spawnp.texi: Likewise.
53190         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
53191         whether posix_spawn actually works.
53192         * m4/pipe.m4 (gl_PIPE): Likewise.
53193         * modules/execute (Files): Add m4/posix_spawn.m4.
53194         * modules/pipe (Files): Add m4/posix_spawn.m4.
53195         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
53196
53197 2008-10-01  Jim Meyering  <meyering@redhat.com>
53198
53199         remove trailing spaces
53200         * NEWS: Likewise.
53201         * lib/poll.c (poll): Likewise.
53202         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
53203         * lib/winsock.c (rpl_close): Likewise.
53204         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
53205         * modules/yield: Likewise.
53206         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
53207         * tests/test-sys_select.c (connect_to_socket): Likewise.
53208
53209         fts.c: adjust a new interface to be more generally useful
53210         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
53211         (fts_build): Adjust caller.
53212
53213 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53214
53215         * modules/cond-tests: New file.
53216         * tests/test-cond.c: New file.
53217
53218 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53219             Bruno Haible  <bruno@clisp.org>
53220
53221         * modules/cond (Dependencies): Add errno, time.
53222         * lib/glthread/cond.h: Include <time.h>.
53223         (gl_cond_define, gl_cond_define_initialized): Use the same definition
53224         across platforms.
53225
53226 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53227             Bruno Haible  <bruno@clisp.org>
53228
53229         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
53230
53231 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53232             Bruno Haible  <bruno@clisp.org>
53233
53234         * modules/tls-tests (Depends-on): Add thread, yield.
53235         (configure.ac): Remove all checks.
53236         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
53237         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
53238         gl_thread_self): Remove definitions. Include glthread/thread.h and
53239         glthread/yield.h instead.
53240         (test_tls): Pass an additional NULL argument to gl_thread_join.
53241
53242 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53243             Bruno Haible  <bruno@clisp.org>
53244
53245         * modules/lock-tests (Depends-on): Add thread, yield.
53246         (configure.ac): Remove all checks.
53247         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
53248         * tests/test-lock.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_lock, test_rwlock, test_recursive_lock, test_once): Pass an
53252         additional NULL argument to gl_thread_join.
53253
53254 2008-09-30  Bruno Haible  <bruno@clisp.org>
53255
53256         Fix the Win32 implementation of the 'thread' module.
53257         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
53258         pointer type.
53259         (gl_thread_self): Invoke gl_thread_self_func.
53260         (gl_thread_self_func): New declaration.
53261         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
53262         (do_init_self_key, init_self_key): New functions.
53263         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
53264         Remove some fields.
53265         (running_threads, running_lock): Remove variables.
53266         (get_current_thread_handle): New function.
53267         (gl_thread_self_func, wrapper_func, glthread_create_func,
53268         glthread_join_func, gl_thread_exit_func): Largely rewritten and
53269         simplified.
53270
53271 2008-09-30  Bruno Haible  <bruno@clisp.org>
53272
53273         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
53274         files.
53275
53276 2008-09-30  Jim Meyering  <meyering@redhat.com>
53277
53278         fts.m4: correct the test for statfs.f_type
53279         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
53280         when checking for statfs.f_type.
53281
53282 2008-09-15  Simon Josefsson  <simon@josefsson.org>
53283
53284         tests: avoid some compiler warnings
53285         * tests/test-memchr.c (main): Pass NULL indirectly.
53286         * tests/test-getdate.c (main): Remove unused variable 'ret'.
53287
53288 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
53289
53290         getdate.y: disallow countable dayshifts like "4 yesterday ago"
53291         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
53292         exactly specified dayshifts.
53293         (dayshift): New rule.
53294         (rel): Add dayshift.
53295         (relative_time_table) [tomorrow, yesterday, today, now]:
53296         Use tDAY_SHIFT in place of tDAY_UNIT.
53297         * tests/test-getdate.c: Add tests for now-disallowed countable
53298         dayshifts, e.g., "4 yesterday ago".
53299
53300 2008-09-29  Bruno Haible  <bruno@clisp.org>
53301
53302         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
53303         * tests/test-posix_spawn1.in.sh: Renamed from
53304         tests/test-posix_spawn.in.sh.
53305         * tests/test-posix_spawn2.c: New file.
53306         * tests/test-posix_spawn2.in.sh: New file.
53307         * modules/posix_spawnp-tests (Files): Update.
53308         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
53309
53310 2008-09-29  Bruno Haible  <bruno@clisp.org>
53311
53312         Propagate effects of putenv/setenv/unsetenv to child processes.
53313         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
53314         * lib/pipe.c (create_pipe): Likewise.
53315
53316 2008-09-29  Bruno Haible  <bruno@clisp.org>
53317
53318         Enable use of shell scripts as executables in mingw.
53319         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
53320         run the program as a shell script.
53321         * lib/pipe.c (create_pipe): Likewise.
53322         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
53323         resulting array.
53324
53325 2008-09-29  Eric Blake  <ebb9@byu.net>
53326
53327         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
53328
53329 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
53330
53331         * doc/posix-functions/accept.texi: Update mingw problems.
53332         * doc/posix-functions/bind.texi: Update mingw problems.
53333         * doc/posix-functions/close.texi: Update mingw problems.
53334         * doc/posix-functions/connect.texi: Update mingw problems.
53335         * doc/posix-functions/getpeername.texi: Update mingw problems.
53336         * doc/posix-functions/getsockname.texi: Update mingw problems.
53337         * doc/posix-functions/getsockopt.texi: Update mingw problems.
53338         * doc/posix-functions/ioctl.texi: Update mingw problems.
53339         * doc/posix-functions/listen.texi: Update mingw problems.
53340         * doc/posix-functions/recv.texi: Update mingw problems.
53341         * doc/posix-functions/recvfrom.texi: Update mingw problems.
53342         * doc/posix-functions/select.texi: Update mingw problems.
53343         * doc/posix-functions/send.texi: Update mingw problems.
53344         * doc/posix-functions/sendto.texi: Update mingw problems.
53345         * doc/posix-functions/setsockopt.texi: Update mingw problems.
53346         * doc/posix-functions/socket.texi: Update mingw problems.
53347
53348 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
53349             Bruno Haible  <bruno@clisp.org>
53350
53351         * lib/sys_select.in.h: Include sys/time.h.
53352         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
53353         * modules/sys_select: Depend on sys_time.
53354         * tests/test-sys_select.c: Test that sys/select.h defines struct
53355         timeval fully.
53356
53357 2008-09-29  Bruno Haible  <bruno@clisp.org>
53358
53359         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
53360         * lib/sys_select.in.h: Likewise.
53361
53362 2008-09-29  Bruno Haible  <bruno@clisp.org>
53363
53364         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
53365
53366 2008-09-29  Bruno Haible  <bruno@clisp.org>
53367
53368         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
53369         Set LIBSOCKET instead of augmenting LIBS.
53370         * modules/sockets (Link): New section.
53371         * modules/sockets-tests (test_sockets_LDADD): New variable.
53372         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
53373         * modules/poll-tests (test_poll_LDADD): New variable.
53374         * NEWS: Document the change.
53375
53376 2008-09-29  Bruno Haible  <bruno@clisp.org>
53377
53378         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
53379         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
53380         ARPA_INET_H directly.
53381         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
53382
53383 2008-09-28  Bruno Haible  <bruno@clisp.org>
53384
53385         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
53386         from gl_HEADER_SYS_SOCKET.
53387         (gl_HEADER_SYS_SOCKET): Invoke it.
53388         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
53389
53390 2008-09-28  Bruno Haible  <bruno@clisp.org>
53391
53392         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
53393         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
53394         Needed on OSF/1 4.0.
53395
53396 2008-09-28  Bruno Haible  <bruno@clisp.org>
53397
53398         Override open more carefully.
53399         * lib/open.c (orig_open): New function.
53400         (rpl_open): Use orig_open instead of open.
53401         * lib/fcntl.in.h: Add special invocation convention.
53402         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
53403         (gl_FUNC_OPEN): Invoke it.
53404
53405         Override freopen more carefully.
53406         * lib/freopen.c (orig_freopen): New function.
53407         (rpl_freopen): Use orig_freopen instead of freopen.
53408         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
53409         (gl_FUNC_FREOPEN): Invoke it.
53410
53411         Override fopen more carefully.
53412         * lib/fopen.c (orig_fopen): New function.
53413         (rpl_fopen): Use orig_fopen instead of fopen.
53414         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
53415         (gl_FUNC_FOPEN): Invoke it.
53416         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
53417
53418 2008-09-28  Bruno Haible  <bruno@clisp.org>
53419
53420         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
53421         SIGPIPE.
53422
53423 2008-09-28  Bruno Haible  <bruno@clisp.org>
53424
53425         * tests/test-sigaction.c (handler, main): Disable the check whether
53426         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
53427         glibc systems with LinuxThreads.
53428
53429 2008-09-28  Bruno Haible  <bruno@clisp.org>
53430
53431         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
53432
53433         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
53434         with AIX xlc.
53435         * lib/fcntl.in.h (open): Likewise.
53436         Reported by Rainer Tammer <tammer@tammer.net>.
53437
53438 2008-09-28  Bruno Haible  <bruno@clisp.org>
53439
53440         * modules/posix_spawnp-tests: New file.
53441         * tests/test-posix_spawn.c: New file.
53442         * tests/test-posix_spawn.in.sh: New file.
53443
53444         New module 'posix_spawnp'.
53445         * modules/posix_spawnp: New file.
53446         * lib/spawnp.c: New file, from GNU libc with modifications.
53447         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
53448
53449         New module 'posix_spawn'.
53450         * modules/posix_spawn: New file.
53451         * lib/spawn.c: New file, from GNU libc with modifications.
53452         * doc/posix-functions/posix_spawn.texi: Mention the new module.
53453
53454         New module 'posix_spawnattr_destroy'.
53455         * modules/posix_spawnattr_destroy: New file.
53456         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
53457         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
53458         module.
53459
53460         New module 'posix_spawnattr_setsigmask'.
53461         * modules/posix_spawnattr_setsigmask: New file.
53462         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
53463         modifications.
53464         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
53465         new module.
53466
53467         New module 'posix_spawnattr_getsigmask'.
53468         * modules/posix_spawnattr_getsigmask: New file.
53469         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
53470         modifications.
53471         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
53472         new module.
53473
53474         New module 'posix_spawnattr_setsigdefault'.
53475         * modules/posix_spawnattr_setsigdefault: New file.
53476         * lib/spawnattr_setdefault.c: New file, from GNU libc with
53477         modifications.
53478         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
53479         new module.
53480
53481         New module 'posix_spawnattr_getsigdefault'.
53482         * modules/posix_spawnattr_getsigdefault: New file.
53483         * lib/spawnattr_getdefault.c: New file, from GNU libc with
53484         modifications.
53485         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
53486         new module.
53487
53488         New module 'posix_spawnattr_setschedpolicy'.
53489         * modules/posix_spawnattr_setschedpolicy: New file.
53490         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
53491         modifications.
53492         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
53493         new module.
53494
53495         New module 'posix_spawnattr_getschedpolicy'.
53496         * modules/posix_spawnattr_getschedpolicy: New file.
53497         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
53498         modifications.
53499         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
53500         new module.
53501
53502         New module 'posix_spawnattr_setschedparam'.
53503         * modules/posix_spawnattr_setschedparam: New file.
53504         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
53505         modifications.
53506         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
53507         new module.
53508
53509         New module 'posix_spawnattr_getschedparam'.
53510         * modules/posix_spawnattr_getschedparam: New file.
53511         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
53512         modifications.
53513         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
53514         new module.
53515
53516         New module 'posix_spawnattr_setpgroup'.
53517         * modules/posix_spawnattr_setpgroup: New file.
53518         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
53519         modifications.
53520         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
53521         module.
53522
53523         New module 'posix_spawnattr_getpgroup'.
53524         * modules/posix_spawnattr_getpgroup: New file.
53525         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
53526         modifications.
53527         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
53528         module.
53529
53530         New module 'posix_spawnattr_setflags'.
53531         * modules/posix_spawnattr_setflags: New file.
53532         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
53533         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
53534         module.
53535
53536         New module 'posix_spawnattr_getflags'.
53537         * modules/posix_spawnattr_getflags: New file.
53538         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
53539         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
53540         module.
53541
53542         New module 'posix_spawnattr_init'.
53543         * modules/posix_spawnattr_init: New file.
53544         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
53545         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
53546         module.
53547
53548         New module 'posix_spawn_file_actions_destroy'.
53549         * modules/posix_spawn_file_actions_destroy: New file.
53550         * lib/spawn_faction_destroy.c: New file, from GNU libc with
53551         modifications.
53552         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
53553         the new module.
53554
53555         New module 'posix_spawn_file_actions_addopen'.
53556         * modules/posix_spawn_file_actions_addopen: New file.
53557         * lib/spawn_faction_addopen.c: New file, from GNU libc with
53558         modifications.
53559         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
53560         the new module.
53561
53562         New module 'posix_spawn_file_actions_adddup2'.
53563         * modules/posix_spawn_file_actions_adddup2: New file.
53564         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
53565         modifications.
53566         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
53567         the new module.
53568
53569         New module 'posix_spawn_file_actions_addclose'.
53570         * modules/posix_spawn_file_actions_addclose: New file.
53571         * lib/spawn_faction_addclose.c: New file, from GNU libc with
53572         modifications.
53573         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
53574         the new module.
53575
53576         New module 'posix_spawn_file_actions_init'.
53577         * modules/posix_spawn_file_actions_init: New file.
53578         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
53579         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
53580         new module.
53581
53582         New module 'posix_spawn-internal'.
53583         * modules/posix_spawn-internal: New file.
53584         * lib/spawn_int.h: New file, from GNU libc with modifications.
53585         * lib/spawni.c: New file, from GNU libc with modifications.
53586         * m4/posix_spawn.m4: New file.
53587
53588         New module 'spawn'.
53589         * modules/spawn: New file.
53590         * lib/spawn.in.h: New file, from GNU libc with modifications.
53591         * m4/spawn_h.m4: New file.
53592         * doc/posix-headers/spawn.texi: Mention the new module.
53593
53594 2008-09-28  Bruno Haible  <bruno@clisp.org>
53595
53596         * modules/sched-tests: New file.
53597         * tests/test-sched.c: New file.
53598
53599         New module 'sched'.
53600         * modules/sched: New file.
53601         * lib/sched.in.h: New file.
53602         * m4/sched_h.m4: New file.
53603         * doc/posix-headers/sched.texi: Mention the new module.
53604
53605 2008-09-27  Eric Blake  <ebb9@byu.net>
53606
53607         Fix previous patch, and tweak references to $0.
53608         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
53609         (func_version, func_gnulib_dir): Don't call this program
53610         gnulib-tool.
53611         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
53612         with using $0 in function.
53613         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
53614         (func_fatal_error): Reuse the name the user invoked us with.
53615
53616 2008-09-27  Bruno Haible  <bruno@clisp.org>
53617
53618         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
53619         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
53620         (gl_ICONV_H): Not here.
53621         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
53622         instead of assigning ICONV_H directly.
53623
53624         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
53625         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
53626         WCHAR_H directly.
53627
53628 2008-09-27  Bruno Haible  <bruno@clisp.org>
53629
53630         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
53631         * modules/arpa_inet (Depends-on): Add link-warning.
53632         (Makefile.am): Insert the definition of GL_LINK-WARNING.
53633         * modules/unistd (Makefile.am): Likewise.
53634
53635 2008-09-26  Bruno Haible  <bruno@clisp.org>
53636
53637         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
53638         variables.
53639         (func_version): Essentially copied from gnulib-tool.
53640         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
53641         func_readlink): Copied from gnulib-tool.
53642
53643 2008-09-26  Bruno Haible  <bruno@clisp.org>
53644
53645         * gnulib-tool (func_version): Change directory to $gnulib_dir before
53646         invoking git-version-gen.
53647
53648 2008-09-26  Bruno Haible  <bruno@clisp.org>
53649
53650         * posix-modules: Update to directory names changed on 2008-01-19.
53651         Remove commas in output before splitting into words. No more need to
53652         avoid 'ftruncate' since 2007-02-19.
53653
53654 2008-09-26  Bruno Haible  <bruno@clisp.org>
53655
53656         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
53657
53658 2008-09-26  Bruno Haible  <bruno@clisp.org>
53659
53660         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
53661         * modules/fwriteerror (Depends-on): Add errno.
53662
53663 2008-09-26  Bruno Haible  <bruno@clisp.org>
53664
53665         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
53666         * tests/test-vc-list-files-cvs.sh: Likewise.
53667
53668 2008-09-26  Bruno Haible  <bruno@clisp.org>
53669
53670         * doc/posix-headers/sys_resource.texi: Reorder items.
53671
53672 2008-09-26  Jim Meyering  <meyering@redhat.com>
53673
53674         fts: tweak inode comparison function
53675         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
53676         inode numbers, as documented.
53677
53678         fts: sort dirent entries on inode number before traversing
53679         This avoids a quadratic, seek-related performance penalty when
53680         operating on a directory containing many entries (measurable at 10k;
53681         3.5 hours at 2 million entries with a cold cache) on certain types
53682         of file systems, including ext3 and ext4, but not tmpfs.
53683         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
53684         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
53685         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
53686         (fs_handles_readdir_ordered_dirents_efficiently): New function.
53687         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
53688         (fts_build): Set the stat.st_ino member from D_INO.
53689         If it is likely to be useful, sort dirent entries on inode number.
53690
53691         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
53692         and the struct statfs.f_type member.
53693         * modules/fts (Depends-on): Add d-ino.
53694
53695 2008-09-26  Bruno Haible  <bruno@clisp.org>
53696
53697         * modules/sigpipe-die (Depends-on): Add sigpipe.
53698
53699         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
53700         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
53701         and GNULIB_STDIO_H_SIGPIPE are set.
53702         * lib/stdio-write.c: New file.
53703         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
53704         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
53705         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
53706         REPLACE_STDIO_WRITE_FUNCS.
53707         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
53708         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
53709         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
53710         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
53711         * modules/stdio (Files): Add lib/stdio-write.c.
53712         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
53713         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
53714         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
53715         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
53716         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
53717         REPLACE_FPRINTF_POSIX.
53718         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
53719         REPLACE_PRINTF_POSIX.
53720         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
53721         REPLACE_VFPRINTF_POSIX.
53722         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
53723         REPLACE_VPRINTF_POSIX.
53724         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
53725         SIGPIPE issue.
53726         * doc/posix-functions/fputc.texi: Likewise.
53727         * doc/posix-functions/fputs.texi: Likewise.
53728         * doc/posix-functions/fwrite.texi: Likewise.
53729         * doc/posix-functions/printf.texi: Likewise.
53730         * doc/posix-functions/putc.texi: Likewise.
53731         * doc/posix-functions/putchar.texi: Likewise.
53732         * doc/posix-functions/puts.texi: Likewise.
53733         * doc/posix-functions/vfprintf.texi: Likewise.
53734         * doc/posix-functions/vprintf.texi: Likewise.
53735
53736         * modules/safe-write (Depends-on): Add write.
53737
53738         * modules/sigpipe-tests: New file.
53739         * tests/test-sigpipe.c: New file.
53740         * tests/test-sigpipe.sh: New file.
53741
53742         * modules/write: New file.
53743         * lib/unistd.in.h: Include <sys/types.h>.
53744         (write): New declaration.
53745         * lib/write.c: New file.
53746         * m4/write.m4: New file.
53747         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
53748         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
53749         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
53750         GNULIB_WRITE, REPLACE_WRITE.
53751         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
53752         and the SIGPIPE issue.
53753
53754         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
53755         (raise): New declaration.
53756         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
53757         (ext_signal): New function.
53758         (rpl_raise): New function.
53759         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
53760         GNULIB_SIGNAL_H_SIGPIPE.
53761         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
53762         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
53763
53764         * modules/sigpipe: New file.
53765         * m4/sigpipe.m4: New file.
53766
53767 2008-09-25  Derek Price  <derek@ximbiot.com>
53768             Bruno Haible  <bruno@clisp.org>
53769
53770         * gnulib-tool (func_import): Report all license incompatibilities, not
53771         just the first one.
53772
53773 2008-09-25  Bruno Haible  <bruno@clisp.org>
53774
53775         * gnulib-tool (func_import): When computing the edits, consider not
53776         only the Makefile.ams that exist but also those that will be generated.
53777
53778 2008-09-25  Simon Josefsson  <simon@josefsson.org>
53779
53780         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
53781         fixes gnulib-tool --test warning about duplicate dependency.
53782
53783 2008-09-25  Bruno Haible  <bruno@clisp.org>
53784
53785         * gnulib-tool: Don't ask the user to perform edits in the generated
53786         Makefile.ams.
53787         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
53788         apply to the Makefile.am being generated.
53789         (func_emit_tests_Makefile_am): Execute edits that apply to the
53790         Makefile.am being generated.
53791         (func_import): Setup list of Makefile.am edits before emitting the
53792         Makefile.ams, not at the end.
53793         (func_create_testdir): Update.
53794         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
53795
53796 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53797
53798         * gnulib-tool (func_import): Store the --tests-base option in the
53799         comment in gnulib-cache.m4.
53800
53801 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
53802
53803         * NEWS: Document increased portability that sys_select now provides.
53804
53805         * lib/sys_select.in.h: Install select wrapper.
53806         * lib/sys_socket.in.h: Use more descriptive name when there is no
53807         select wrapper.
53808         * lib/winsock-select.c: New.
53809         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
53810         Require gl_HEADER_SYS_SOCKET.
53811         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
53812         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
53813         * tests/test-sys_select.c: Add functional tests.
53814
53815 2008-09-24  Eric Blake  <ebb9@byu.net>
53816
53817         open, fopen: close fd leak in last patch
53818         * lib/open.c (rpl_open): Close fd before returning error.
53819         * lib/fopen.c (rpl_fopen): Close fd before returning error.
53820         * doc/posix-functions/open.texi (open): Document that Irix also
53821         has the bug.
53822         * doc/posix-functions/fopen.texi (fopen): Likewise.
53823         Reported by Paolo Bonzini.
53824
53825 2008-09-24  Bruno Haible  <bruno@clisp.org>
53826
53827         Ensure that a filename ending in a slash cannot be used to access a
53828         non-directory.
53829         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
53830         to check whether it's really a directory.
53831         * lib/fopen.c: Include fcntl.h, unistd.h.
53832         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
53833         and fdopen().
53834         * modules/fopen (Depends-on): Add unistd.
53835         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
53836         * tests/test-fopen.c (main): Likewise.
53837         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
53838         * doc/posix-functions/fopen.texi: Likewise.
53839         Reported by Eric Blake.
53840
53841 2008-09-23  Eric Blake  <ebb9@byu.net>
53842
53843         c-stack: avoid compiler optimizations when provoking overflow
53844         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
53845         recursion harder to optimize, to ensure a stack overflow occurs.
53846         * tests/test-c-stack.c (recurse): Likewise.
53847         Borrowed from libsigsegv.
53848
53849         c-stack: work around Irix sigaltstack bug
53850         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
53851         whether sigaltstack uses wrong end of stack_t (copied in part from
53852         libsigsegv).
53853         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
53854         Irix bug, without requiring an over-allocation.
53855         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
53856         bug.
53857
53858         fopen: document mingw bug on directories
53859         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
53860         not allowing a stream visiting a directory, even though reading
53861         from such a stream is not portable.
53862
53863 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
53864
53865         * lib/poll.c: Rewrite.
53866         * modules/poll: Depend on alloca.
53867
53868 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
53869
53870         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
53871         instead define prototypes for a full set of wrappers.  Ensure
53872         that Cygwin does not use the compatibility code, which is only
53873         for MinGW.
53874         * lib/winsock.c: New.
53875         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
53876         * modules/sys_socket: Add lib/winsock.c.
53877
53878         * modules/poll-tests: Add errno and perror.
53879         * tests/test-poll.c: Use ioctl, not ioctlsocket.
53880
53881 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
53882
53883         * tests/test-poll.c: Downgrade minimum needed Winsock version.
53884
53885 2008-09-23  Bruno Haible  <bruno@clisp.org>
53886
53887         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
53888         * doc/glibc-functions/*: Likewise.
53889
53890 2008-09-23  Simon Josefsson  <simon@josefsson.org>
53891
53892         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
53893         success.
53894
53895 2008-09-22  Eric Blake  <ebb9@byu.net>
53896             Bruno Haible  <bruno@clisp.org>
53897
53898         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
53899         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
53900         supply %A but mishandle pseudo-NaN.
53901         Reported by Simon Josefsson.
53902
53903 2008-09-21  Bruno Haible  <bruno@clisp.org>
53904
53905         * tests/test-lock.c (main): Tweak skip message.
53906         * tests/test-tls.c (main): Likewise.
53907
53908 2008-09-21  Bruno Haible  <bruno@clisp.org>
53909
53910         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
53911         whether 'struct sigaction' has sa_sigaction here...
53912         (gl_PREREQ_SIG_HANDLER_H): ... not here.
53913         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
53914
53915 2008-09-21  Bruno Haible  <bruno@clisp.org>
53916
53917         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
53918         section.
53919         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
53920         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
53921         the new section.
53922         (Support for obsolete systems lacking POSIX:2001): New section.
53923         (String handling <string.h>): Move strdup to the new section.
53924         Suggested by Simon Josefsson and Paolo Bonzini.
53925
53926 2008-09-21  Bruno Haible  <bruno@clisp.org>
53927
53928         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
53929         exponents in %e and %g results on 'long double'. Needed for mingw's
53930         improved *printf functions.
53931         * tests/test-vasprintf-posix.c (test_function): Likewise.
53932         * tests/test-snprintf-posix.h (test_function): Likewise.
53933         * tests/test-sprintf-posix.h (test_function): Likewise.
53934         Reported by Eric Blake.
53935
53936 2008-09-21  Bruno Haible  <bruno@clisp.org>
53937
53938         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
53939         * tests/test-sprintf-posix.h (test_function): Likewise.
53940
53941 2008-09-21  Bruno Haible  <bruno@clisp.org>
53942
53943         * modules/getpass (Depends-on): Add strdup-posix.
53944
53945         New module 'strdup-posix'.
53946         * modules/strdup-posix: New file.
53947         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
53948         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
53949         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
53950         REPLACE_STRDUP.
53951         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
53952         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
53953         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53954         strdup-posix.
53955
53956         * modules/strdup (Depends-on): Remove malloc-posix.
53957
53958 2008-09-20  Bruno Haible  <bruno@clisp.org>
53959
53960         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
53961         Wildenhues.
53962
53963 2008-09-20  Bruno Haible  <bruno@clisp.org>
53964
53965         Ensure that wint_t gets defined on IRIX 5.3.
53966         * lib/wchar.in.h (wint_t): Define if not defined by the system.
53967         * lib/wctype.in.h (wint_t): Likewise.
53968         (__wctype_wint_t): Remove type.
53969         (isw*): Use wint_t instead of __wctype_wint_t.
53970         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
53971         * modules/wchar (Files): Add m4/wint_t.m4.
53972         (Makefile.am): Substitute HAVE_WINT_T.
53973         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
53974         * tests/test-wctype.c: Check that wint_t is defined.
53975         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
53976         * doc/posix-headers/wctype.texi: Likewise.
53977         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
53978
53979 2008-09-18  Bruno Haible  <bruno@clisp.org>
53980
53981         * gnulib-tool (func_exit): Update comment.
53982
53983 2008-09-18  Simon Josefsson  <simon@josefsson.org>
53984
53985         * modules/getaddrinfo (Depends-on): Remove strdup, this module
53986         assumes strdup exists and does not depend on strdup to return
53987         ENOMEM on out of memory conditions.
53988
53989 2008-09-18  Bruno Haible  <bruno@clisp.org>
53990
53991         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
53992         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
53993         digits for the exponent.
53994
53995 2008-09-18  Jim Meyering  <meyering@redhat.com>
53996             Bruno Haible  <bruno@clisp.org>
53997
53998         * lib/vasnprintf.c (decimal_point_char): Define also if
53999         NEED_PRINTF_INFINITE_LONG_DOUBLE.
54000
54001 2008-09-16  Bruno Haible  <bruno@clisp.org>
54002         and Eric Blake  <ebb9@byu.net>
54003
54004         vasnprintf: support Irix 5.3
54005         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
54006         that mishandle long double infinity.
54007         Reported by Tom G. Christensen.
54008
54009 2008-09-16  Bruno Haible  <bruno@clisp.org>
54010
54011         * doc/glibc-functions/scandir.texi: Mention the function is missing on
54012         Solaris 9.
54013         * doc/glibc-functions/alphasort.texi: Likewise.
54014         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
54015
54016 2008-09-16  Jim Meyering  <meyering@redhat.com>
54017
54018         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
54019         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
54020         a umask modification leak out of a subshell.  Otherwise, the
54021         opensolaris /bin/sh would be accepted and thus cause unwarranted
54022         failures in the coreutils test suite.
54023
54024 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
54025
54026         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
54027         to succeed.
54028
54029 2008-09-16  Jim Meyering  <meyering@redhat.com>
54030
54031         avoid spurious test failure when library is built without ACL support
54032         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
54033         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
54034         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
54035         * tests/test-copy-acl.sh: Likewise.
54036
54037 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54038
54039         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
54040         based on character occurrence counts.
54041
54042 2008-09-15  Eric Blake  <ebb9@byu.net>
54043
54044         tests: avoid some compiler warnings
54045         * tests/test-memchr.c (main): Pass NULL indirectly.
54046         * tests/test-closein.c (main): Avoid unused variable.
54047
54048 2008-09-15  Bruno Haible  <bruno@clisp.org>
54049
54050         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
54051         are missing on OpenBSD 4.0 individually.
54052         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
54053
54054 2008-09-15  Bruno Haible  <bruno@clisp.org>
54055
54056         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
54057         * doc/posix-functions/strerror.texi: Mention also Cygwin.
54058         * doc/posix-functions/perror.texi: Likewise.
54059         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
54060         is missing.
54061         Reported by Eric Blake.
54062
54063         * lib/errno.in.h: Use replacement values >= 2000.
54064         Reported by Eric Blake.
54065
54066 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54067
54068         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
54069         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
54070         limit.
54071         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
54072         compareseq was aborted.
54073
54074 2008-09-14  Bruno Haible  <bruno@clisp.org>
54075
54076         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
54077         yvec_edit_count.
54078         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
54079         (fstrcmp_bounded): Simplify result computation accordingly.
54080
54081 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54082
54083         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
54084         (fstrcmp): Define in terms of fstrcmp_bounded.
54085         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
54086         lower_bound argument.
54087         Return quickly if the result is certainly < lower_bound.
54088         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
54089
54090 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54091
54092         * lib/diffseq.h (EARLY_ABORT): New macro.
54093         (compareseq): Change return type to bool. Return true when EARLY_ABORT
54094         evaluates to true.
54095
54096 2008-09-14  Bruno Haible  <bruno@clisp.org>
54097
54098         * modules/perror-tests: New file.
54099         * tests/test-perror.sh: New file.
54100         * tests/test-perror.c: New file.
54101
54102         New module 'perror'.
54103         * lib/stdio.in.h (perror): New declaration.
54104         * lib/perror.c: New file.
54105         * m4/perror.m4: New file.
54106         * modules/perror: New file.
54107         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
54108         * doc/posix-functions/perror.texi: Mention the perror module.
54109         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
54110         REPLACE_PERROR.
54111         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
54112         REPLACE_PERROR.
54113
54114 2008-09-14  Bruno Haible  <bruno@clisp.org>
54115
54116         * modules/stdio (Makefile.am): Reorder to match the order in
54117         lib/stdio.in.h.
54118         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
54119
54120 2008-09-13  Bruno Haible  <bruno@clisp.org>
54121
54122         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
54123
54124 2008-09-13  Bruno Haible  <bruno@clisp.org>
54125
54126         Extend strerror to cover the added errno values.
54127         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
54128         (rpl_strerror): Provide error messages for the added errno values and
54129         for the WSA* values.
54130         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
54131         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
54132         strerror.
54133         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
54134         * modules/strerror (Depends-on): Add errno.
54135         * doc/posix-functions/strerror.texi: Document the change.
54136         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
54137         and EOVERFLOW.
54138
54139 2008-09-13  Bruno Haible  <bruno@clisp.org>
54140
54141         * modules/EOVERFLOW: Remove file.
54142         * m4/eoverflow.m4: Remove file.
54143         * modules/EOVERFLOW-tests: Remove file.
54144         * tests/test-EOVERFLOW.c: Remove file.
54145         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
54146         * modules/ftell (Depends-on): Likewise.
54147         * modules/getdelim (Depends-on): Likewise.
54148         * modules/getugroups (Depends-on): Likewise.
54149         * modules/poll (Depends-on): Likewise.
54150         * modules/snprintf (Depends-on): Likewise.
54151         * modules/sprintf-posix (Depends-on): Likewise.
54152         * modules/vasnprintf (Depends-on): Likewise.
54153         * modules/vasprintf (Depends-on): Likewise.
54154         * modules/vfprintf-posix (Depends-on): Likewise.
54155         * modules/vsnprintf (Depends-on): Likewise.
54156         * modules/vsprintf-posix (Depends-on): Likewise.
54157         * modules/xvasprintf (Depends-on): Likewise.
54158         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
54159         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
54160         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
54161         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
54162         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
54163         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
54164         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
54165         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
54166         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
54167         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
54168         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
54169         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
54170         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
54171         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
54172         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
54173         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
54174         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
54175         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
54176         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
54177         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
54178         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
54179         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
54180         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
54181         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
54182         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
54183         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
54184         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
54185         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
54186         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
54187         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
54188         * MODULES.html.sh: Remove EOVERFLOW.
54189         * NEWS: Mention the change.
54190
54191 2008-09-13  Bruno Haible  <bruno@clisp.org>
54192
54193         * modules/errno-tests: New file.
54194         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
54195
54196         * lib/errno.in.h: New file.
54197         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
54198         * modules/errno: New file.
54199         * doc/posix-headers/errno.texi: Update documentation.
54200         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
54201
54202 2008-09-13  Bruno Haible  <bruno@clisp.org>
54203
54204         * tests/test-poll.c: Use #if for native Windows, rather than testing
54205         __MSVCRT__.
54206
54207 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54208             Bruno Haible  <bruno@clisp.org>
54209
54210         * lib/glob.c: Don't include <pwd.h> on native Windows.
54211         (WINDOWS32): New macro.
54212         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
54213
54214 2008-09-13  Bruno Haible  <bruno@clisp.org>
54215
54216         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
54217         (ETIMEDOUT): Remove macro.
54218         (glthread_cond_timedwait_multithreaded): New declaration.
54219         (glthread_cond_timedwait): Use it.
54220         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
54221         (glthread_cond_timedwait_multithreaded): New function.
54222
54223 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
54224
54225         * modules/poll-tests: Do not check for io.h.
54226         * tests/test-poll.c: Check for __MSVCRT__ instead.
54227
54228 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
54229
54230         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
54231         * modules/poll-tests: Add inet_pton, stdbool, sockets.
54232         * tests/test-poll.c: Use them.  Use _pipe on Windows.
54233
54234 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
54235
54236         * modules/poll-tests: New.
54237         * tests/test-poll.c: New.
54238
54239 2008-09-12  Eric Blake  <ebb9@byu.net>
54240
54241         frexp: test for NetBSD failure on -0.0
54242         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
54243         not all, bugs from NetBSD 3.0 have been fixed.
54244         * doc/posix-functions/frexp.texi (frexp): Document bug.
54245         Reported by Thomas Klausner.
54246
54247         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
54248         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
54249         literal -0.0.
54250         Reported by Jonathan C. Patschke <jp@centtech.com>.
54251
54252 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54253
54254         * lib/glthread/cond.h: Use dummy implementation also if
54255         USE_WIN32_THREADS.
54256
54257 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54258
54259         * modules/fnmatch-posix (License): Change to LGPLv2+.
54260         * modules/fnmatch-gnu (License): Likewise.
54261
54262 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54263
54264         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
54265
54266 2008-09-11  Jim Meyering  <meyering@redhat.com>
54267
54268         * users.txt: Add gtk-vnc.
54269
54270 2008-09-08  Simon Josefsson  <simon@josefsson.org>
54271
54272         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
54273         rotate amounts.
54274
54275         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
54276         required for 16-bit and 8-bit rotates.
54277         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
54278         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
54279         UINT8_MAX instead of hard-coded constants.
54280         Suggested by Paul Eggert.
54281
54282 2008-09-07  Bruno Haible  <bruno@clisp.org>
54283
54284         * tests/test-striconveh.c (main): Check behaviour when converting from
54285         UTF-7.
54286
54287         Make striconveh work better with stateful encodings.
54288         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
54289         that iconv does not increment the inptr when returning -1/EINVAL.
54290
54291 2008-09-07  Bruno Haible  <bruno@clisp.org>
54292
54293         * build-aux/config.rpath: Update according to libtool-2.2.6.
54294         * build-aux/config.libpath: Likewise.
54295
54296 2008-09-06  Bruno Haible  <bruno@clisp.org>
54297
54298         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
54299         * lib/freadptr.c (freadptr): Likewise.
54300         * lib/freadseek.c (freadptrinc): Likewise.
54301         Reported by Simon Josefsson.
54302
54303 2008-09-06  Bruno Haible  <bruno@clisp.org>
54304
54305         * modules/freadptr (License): Change to LGPLv2+.
54306         * modules/freadseek (License): Likewise.
54307         Suggested by Eric Blake.
54308
54309         * modules/memchr2 (License): Change to LGPLv2+.
54310         Approved by Eric Blake.
54311
54312 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54313             Bruno Haible  <bruno@clisp.org>
54314
54315         Make gnulib-tool work with native 'sed' on AIX.
54316         * gnulib-tool (sed_noop): New variable.
54317         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
54318         func_add_or_update, func_create_testdir): Use it to initialize sed
54319         script variables.
54320         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
54321
54322 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
54323             Bruno Haible  <bruno@clisp.org>
54324
54325         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
54326         also works after #include directives.
54327
54328 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
54329
54330         getdate.y: reject an out-of-range timezone value
54331         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
54332         the range [-24...+24].  When specified with only one or two digits,
54333         * tests/test-getdate.c: Tests for the fix.
54334         * doc/getdate.texi: Document this change.
54335
54336 2008-09-03  Bruno Haible  <bruno@clisp.org>
54337
54338         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
54339
54340 2008-09-02  Simon Josefsson  <simon@josefsson.org>
54341
54342         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
54343         <bruce.korb@gmail.com> with ideas from Ben Pfaff
54344         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
54345         Blake <ebb9@byu.net>.
54346
54347         * tests/test-bitrotate.c: Add more test vectors.
54348
54349 2008-09-02  Eric Blake  <ebb9@byu.net>
54350
54351         vasnprintf-posix: handle large precision via %.*d
54352         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
54353         when handling it ourselves.
54354         * tests/test-vasnprintf-posix.c (test_function): Add test.
54355         * tests/test-snprintf-posix.h (test_function): Likewise.
54356         * tests/test-sprintf-posix.h (test_function): Likewise.
54357         * tests/test-vasprintf-posix.c (test_function): Likewise.
54358         Reported by Alain Guibert.
54359
54360 2008-09-01  Eric Blake  <ebb9@byu.net>
54361
54362         c-stack: make configure-time check more robust
54363         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
54364         successful sigaction call.
54365         Reported by Tom G. Christensen.
54366
54367 2008-09-01  Bruno Haible  <bruno@clisp.org>
54368
54369         New module 'findprog-lgpl'.
54370         * modules/findprog-lgpl: New file.
54371         * lib/findprog-lgpl.c: New file.
54372         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
54373         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
54374         to decide whether to use strdup or xstrdup, concatenated_filename or
54375         xconcatenated_filename.
54376
54377 2008-09-01  Bruno Haible  <bruno@clisp.org>
54378
54379         Split module 'concat-filename' into 'concat-filename' (LGPL) and
54380         'xconcat-filename' (GPL).
54381         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
54382         (License): Change to LGPLv2+.
54383         * modules/xconcat-filename: New file.
54384         * lib/concat-filename.h (concatenated_filename): Change specification.
54385         (xconcatenated_filename): New declaration.
54386         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
54387         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
54388         memory situations.
54389         * lib/xconcat-filename.c: New file.
54390         * NEWS: Mention the change.
54391         * lib/findprog.c: Include concat-filename.h, not filename.h.
54392         (find_in_path): Use xconcatenated_filename instead of
54393         concatenated_filename.
54394         * lib/javacomp.c: Include concat-filename.h, not filename.h.
54395         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
54396         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
54397         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
54398         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
54399         instead of concatenated_filename.
54400         * lib/javaexec.c: Include concat-filename.h, not filename.h.
54401         (execute_java_class): Use xconcatenated_filename instead of
54402         concatenated_filename.
54403         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
54404         * modules/javacomp (Depends-on): Likewise.
54405         * modules/javaexec (Depends-on): Likewise.
54406
54407 2008-09-01  Bruno Haible  <bruno@clisp.org>
54408
54409         Split module 'filename' into 'filename' and 'concat-filename'.
54410         * modules/filename: Keep only lib/filename.h.
54411         (License): Change to LGPLv2+.
54412         * modules/concat-filename: New file, extracted from modules/filename.
54413         * lib/filename.h (concatenated_filename): Remove declaration.
54414         * lib/concat-filename.h: New file, extracted from lib/filename.h.
54415         * lib/concat-filename.c: Include concat-filename.h.
54416         * NEWS: Mention the change.
54417
54418 2008-09-01  Simon Josefsson  <simon@josefsson.org>
54419
54420         * lib/bitrotate.h (rotl8, rotr8): Add.
54421
54422         * modules/bitrotate (configure.ac): Need
54423         AC_REQUIRE([AC_C_INLINE]).
54424         (Description): Mention stdint.h.  Reported by Bruno Haible
54425         <bruno@clisp.org>.
54426
54427         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
54428         Paolo Bonzini <bonzini@gnu.org>.
54429
54430 2008-08-31  Bruno Haible  <bruno@clisp.org>
54431
54432         Assume Solaris specific bi-arch conventions on Solaris systems.
54433         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
54434         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
54435         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
54436         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
54437         like acl_libdirstem.
54438         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
54439         acl_libdirstem.
54440         * NEWS: Mention the change.
54441         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
54442
54443 2008-08-31  Jim Meyering  <meyering@redhat.com>
54444
54445         * lib/strftime.h: Add comments describing the two added arguments.
54446
54447         remove duplicate #include directives
54448         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
54449         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
54450
54451 2008-08-31  Bruno Haible  <bruno@clisp.org>
54452
54453         New module 'sigpipe-die'.
54454         * modules/sigpipe-die: New file.
54455         * lib/sigpipe-die.h: New file.
54456         * lib/sigpipe-die.c: New file.
54457         * MODULES.html.sh (Signal handling): Add sigpipe-die.
54458
54459 2008-08-31  Bruno Haible  <bruno@clisp.org>
54460
54461         Don't override previously installed signal handlers.
54462         * lib/fatal-signal.c (saved_sigactions): New variable.
54463         (uninstall_handlers): Reset the signal to the saved handler, not
54464         to SIG_DFL (except when ignored).
54465         (install_handlers): Save the previous handlers.
54466
54467 2008-08-30  Bruno Haible  <bruno@clisp.org>
54468
54469         * gnulib-tool (func_reset_sigpipe): New function.
54470         (func_get_automake_snippet, func_modules_transitive_closure,
54471         func_import): Invoke it before a join command that reads from stdin,
54472         to avoid "echo: write error: Broken pipe" error messages on stderr.
54473         Reported by Sam Steingold <sds@gnu.org>.
54474
54475 2008-08-30  Bruno Haible  <bruno@clisp.org>
54476
54477         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
54478         Code copied from m4/open.m4.
54479         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
54480         access and the filename ends in a slash. Code copied from lib/open.c.
54481         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
54482         * tests/test-fopen.c (main): Check against bug with trailing slash.
54483
54484 2008-08-29  Bruno Haible  <bruno@clisp.org>
54485
54486         Avoid some "gcc -pedantic" warnings.
54487         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
54488         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
54489         * lib/dirent.in.h: Likewise.
54490         * lib/fcntl.in.h: Likewise.
54491         * lib/float.in.h: Likewise.
54492         * lib/iconv.in.h: Likewise.
54493         * lib/inttypes.in.h: Likewise.
54494         * lib/locale.in.h: Likewise.
54495         * lib/math.in.h: Likewise.
54496         * lib/netinet_in.in.h: Likewise.
54497         * lib/search.in.h: Likewise.
54498         * lib/signal.in.h: Likewise.
54499         * lib/stdarg.in.h: Likewise.
54500         * lib/stdint.in.h: Likewise.
54501         * lib/stdio.in.h: Likewise.
54502         * lib/stdlib.in.h: Likewise.
54503         * lib/string.in.h: Likewise.
54504         * lib/strings.in.h: Likewise.
54505         * lib/sys_select.in.h: Likewise.
54506         * lib/sys_socket.in.h: Likewise.
54507         * lib/sys_stat.in.h: Likewise.
54508         * lib/sys_time.in.h: Likewise.
54509         * lib/sysexits.in.h: Likewise.
54510         * lib/time.in.h: Likewise.
54511         * lib/unistd.in.h: Likewise.
54512         * lib/wchar.in.h: Likewise.
54513         * lib/wctype.in.h: Likewise.
54514         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
54515         * modules/fchdir (Makefile.am): Likewise.
54516         * modules/fcntl (Makefile.am): Likewise.
54517         * modules/float (Makefile.am): Likewise.
54518         * modules/iconv_open (Makefile.am): Likewise.
54519         * modules/inttypes (Makefile.am): Likewise.
54520         * modules/locale (Makefile.am): Likewise.
54521         * modules/math (Makefile.am): Likewise.
54522         * modules/netinet_in (Makefile.am): Likewise.
54523         * modules/search (Makefile.am): Likewise.
54524         * modules/signal (Makefile.am): Likewise.
54525         * modules/stdarg (Makefile.am): Likewise.
54526         * modules/stdint (Makefile.am): Likewise.
54527         * modules/stdio (Makefile.am): Likewise.
54528         * modules/stdlib (Makefile.am): Likewise.
54529         * modules/string (Makefile.am): Likewise.
54530         * modules/strings (Makefile.am): Likewise.
54531         * modules/sys_select (Makefile.am): Likewise.
54532         * modules/sys_socket (Makefile.am): Likewise.
54533         * modules/sys_stat (Makefile.am): Likewise.
54534         * modules/sys_time (Makefile.am): Likewise.
54535         * modules/sysexits (Makefile.am): Likewise.
54536         * modules/time (Makefile.am): Likewise.
54537         * modules/unistd (Makefile.am): Likewise.
54538         * modules/wchar (Makefile.am): Likewise.
54539         * modules/wctype (Makefile.am): Likewise.
54540         Reported by Reuben Thomas <rrt@sc3d.org>.
54541
54542 2008-08-29  Bruno Haible  <bruno@clisp.org>
54543
54544         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
54545         any more.
54546
54547 2008-08-29  Simon Josefsson  <simon@josefsson.org>
54548
54549         * MODULES.html.sh (Misc): Add bitrotate.
54550
54551         * modules/bitrotate: New file.
54552
54553         * lib/bitrotate.h: New file.
54554
54555         * modules/bitrotate-tests: New file.
54556
54557         * tests/test-bitrotate.c: New file.
54558
54559         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
54560         on the bitrotate module.
54561
54562         * lib/arctwo.c: Use new bitrotate module.
54563
54564 2008-08-29  Jim Meyering  <meyering@redhat.com>
54565
54566         bootstrap: merge changes from coreutils
54567         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
54568         of copied files.  Remove a kludge, now that this is fixed.
54569         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
54570         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
54571         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
54572
54573 2008-08-29  Bruno Haible  <bruno@clisp.org>
54574
54575         * MODULES.html.sh: Remove --cvs-urls option.
54576
54577 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
54578
54579         maint.mk: adjust to file name change
54580         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
54581
54582 2008-08-28  Jim Meyering  <meyering@redhat.com>
54583
54584         * modules/getndelim2 (License): Relicense to LGPLv2+.
54585         Approved by Richard Stallman for the version of 1995, and by
54586         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
54587
54588 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
54589
54590         * lib/getdelim.c (flockfile, funlockfile): Make all of them
54591         dummy if one is not available.  Do not touch them if
54592         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
54593         (getc_maybe_unlocked): New.
54594         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
54595
54596 2008-08-26  Eric Blake  <ebb9@byu.net>
54597
54598         doc/INSTALL: resync from autoconf
54599         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
54600         (INSTALL_PRELUDE): Delete; this is done more efficiently by
54601         moving...
54602         * install.texi [!autoconf]: ...here.  Resync from autoconf.
54603         * INSTALL: Regenerate.
54604         * INSTALL.ISO: New file.
54605         * INSTALL.UTF-8: Likewise.
54606
54607 2008-08-26  Jim Meyering  <meyering@redhat.com>
54608
54609         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
54610         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
54611         these definitions conditional, so that they may be overridden, too.
54612
54613 2008-08-26  Bruno Haible  <bruno@clisp.org>
54614
54615         Generate INSTALL file variants with prettier quotes.
54616         * doc/Makefile (INSTALL_PRELUDE): New macro.
54617         (INSTALL): Use it.
54618         (INSTALL.ISO, INSTALL.UTF-8): New rules.
54619
54620 2008-08-26  Bruno Haible  <bruno@clisp.org>
54621
54622         Run makeinfo in an English locale.
54623         * doc/Makefile (MAKEINFO): New variable.
54624
54625 2008-08-26  Bruno Haible  <bruno@clisp.org>
54626
54627         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
54628         Suggested by Eric Blake.
54629
54630 2008-08-25  Bruno Haible  <bruno@clisp.org>
54631
54632         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
54633
54634 2008-08-25  Eric Blake  <ebb9@byu.net>
54635
54636         c-stack: test that stack overflow can be caught
54637         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
54638         that platform allows handling stack overflow; at least OS/2 EMX
54639         has sigaltstack, but crashes before transferring control to
54640         handler on stack overflow.
54641         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
54642         check for HAVE_STACK_OVERFLOW_HANDLING.
54643         Reported by Elbert Pol.
54644
54645 2008-08-25  Bruno Haible  <bruno@clisp.org>
54646
54647         * doc/posix-functions/strftime.texi: Fix description of strftime
54648         module.
54649
54650 2008-08-24  Bruno Haible  <bruno@clisp.org>
54651
54652         * tests/uniwidth/test-uc_width2.c: New file.
54653         * tests/uniwidth/test-uc_width2.sh: New file.
54654         * modules/uniwidth/width-tests (Files): Add the new files.
54655         (TESTS): Add uniwidth/test-uc_width2.sh.
54656         (TESTS_ENVIRONMENT): New variable.
54657         (check_PROGRAMS): Add test-uc_width2.
54658         (test_uc_width2_SOURCES): New variable.
54659
54660         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
54661         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
54662         not 0x00AB.
54663         Reported by Alexander V. Lukyanov <lav@netis.ru>.
54664
54665 2008-08-22  Eric Blake  <ebb9@byu.net>
54666
54667         test-lock, test-tls: mention why a test is skipped
54668         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
54669         skipped.
54670         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
54671
54672         count-one-bits: relax license
54673         * modules/count-one-bits (License): Relicense to LGPLv2+.
54674         Suggested by Ludovic Courtès, approved by Ben Pfaff.
54675
54676 2008-08-22  Andreas Schwab  <schwab@suse.de>
54677
54678         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
54679         Remove spurious space in assignment.
54680
54681 2008-08-21  Simon Josefsson  <simon@josefsson.org>
54682
54683         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
54684         Paul Eggert <eggert@CS.UCLA.EDU>.
54685
54686 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
54687
54688         * modules/gettext: Add m4/threadlib.m4.
54689
54690 2008-08-19  Eric Blake  <ebb9@byu.net>
54691
54692         test-c-stack: fix compilation failure on FreeBSD 5.0
54693         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
54694         headers before <sys/resource.h>.
54695         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
54696         the bug.
54697         Reported by Nelson H. F. Beebe.
54698
54699         strverscmp: migrate from "strverscmp.h" to <string.h>
54700         * modules/string (Makefile.am): Add new hooks.
54701         * modules/strverscmp (Files): Remove strverscmp.h.
54702         (Depends-on): Add string.
54703         (configure.ac): Add indicator.
54704         (Include): Mention new header.
54705         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
54706         defaults.
54707         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
54708         results.
54709         * lib/strverscmp.h: Delete.
54710         * lib/string.in.h (strverscmp): Provide declaration, when needed.
54711         * tests/test-strverscmp.c (includes): Adjust client.
54712         * lib/check-version.c (includes): Likewise.
54713         * NEWS: Document the change.
54714
54715         strverscmp: add unit test
54716         * modules/strverscmp-tests: New file.
54717         * tests/test-strverscmp.c: Likewise.
54718
54719 2008-08-19  Simon Josefsson  <simon@josefsson.org>
54720
54721         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
54722         regarding Windows crypto stuff, from Mono.
54723
54724 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
54725
54726         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
54727         if present, for intel RND.  Return error on failures.
54728
54729 2008-08-18  Ben Pfaff  <blp@gnu.org>
54730
54731         gitlog-to-changelog: give better diagnostic for failed pipe-open
54732         * build-aux/gitlog-to-changelog: Improve error message: suggest
54733         that the version of Git may be too old.
54734
54735 2008-08-18  Simon Josefsson  <simon@josefsson.org>
54736
54737         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
54738         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
54739
54740 2008-08-18  Bruno Haible  <bruno@clisp.org>
54741
54742         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
54743         pthread_in_use().
54744
54745 2008-08-18  Bruno Haible  <bruno@clisp.org>
54746
54747         * lib/glthread/threadlib.c: Include <pthread.h>.
54748
54749 2008-08-18  Bruno Haible  <bruno@clisp.org>
54750
54751         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
54752         glthread_recursive_lock_* macros.
54753         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
54754         Fix syntax error.
54755
54756 2008-08-18  Bruno Haible  <bruno@clisp.org>
54757
54758         * lib/glthread/thread.c: Avoid forcing a context switch right after
54759         thread creation.
54760
54761 2008-08-17  Bruno Haible  <bruno@clisp.org>
54762
54763         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
54764         * lib/glthread/thread.h: Provide Win32 specific implementation.
54765         * modules/thread (Files): Add lib/glthread/thread.c.
54766         (Depends-on): Add lock.
54767         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
54768
54769 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54770
54771         New module 'yield'.
54772         * modules/yield: New file.
54773         * lib/glthread/yield.h: New file.
54774         * m4/yield.m4: New file.
54775         * MODULES.html.sh (Multithreading): Add yield.
54776
54777 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54778
54779         New module 'thread'.
54780         * modules/thread: New file.
54781         * lib/glthread/thread.h: New file.
54782         * m4/thread.m4: New file.
54783         * MODULES.html.sh (Multithreading): Add thread.
54784
54785 2008-08-17  Bruno Haible  <bruno@clisp.org>
54786
54787         * lib/glthread/lock.h: Include <stdlib.h> always.
54788         * lib/glthread/tls.h: Likewise.
54789         * lib/glthread/cond.h: Likewise.
54790
54791 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54792
54793         New module 'cond'.
54794         * modules/cond: New file.
54795         * lib/glthread/cond.h: New file.
54796         * lib/glthread/cond.c: New file.
54797         * m4/cond.m4: New file.
54798         * MODULES.html.sh (Multithreading): Add cond.
54799
54800 2008-08-16  Eric Blake  <ebb9@byu.net>
54801
54802         c-stack: fix regression on Irix 5.3 from 2008-06-21
54803         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
54804         sa_sigaction...
54805         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
54806         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
54807         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
54808         * modules/signal (Makefile.am): Use the value.
54809         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
54810         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
54811         * doc/posix-headers/signal.texi (signal.h): Document this
54812         portability issue.
54813         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
54814         Reported by Tom G. Christensen.
54815
54816 2008-08-17  Bruno Haible  <bruno@clisp.org>
54817
54818         New module 'threadlib'.
54819         * modules/threadlib: New file.
54820         * lib/glthread/threadlib.c: New file, extracted from
54821         lib/glthread/lock.c.
54822         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
54823         functions.
54824         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
54825         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
54826         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
54827         macros.
54828         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
54829         (gl_DISABLE_THREADS): Remove macro.
54830         * modules/lock (Files): Remove build-aux/config.rpath.
54831         (Depends-on): Remove havelib. Add threadlib.
54832         (configure.ac-early): Remove section.
54833         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
54834         * modules/tls (Depends-on): Remove lock. Add threadlib.
54835         (Link): New section, copied from threadlib.
54836         * MODULES.html.sh (Multithreading): Add threadlib.
54837
54838 2008-08-14  Bruno Haible  <bruno@clisp.org>
54839
54840         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
54841         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
54842         glthread_rwlock_unlock, glthread_rwlock_destroy,
54843         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
54844         glthread_recursive_lock_destroy): Define as macros always.
54845         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
54846         glthread_lock_lock.
54847         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
54848         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
54849         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
54850         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
54851         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
54852         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
54853         (glthread_recursive_lock_lock_func): Renamed from
54854         glthread_recursive_lock_lock.
54855         (glthread_recursive_lock_unlock_func): Renamed from
54856         glthread_recursive_lock_unlock.
54857         (glthread_recursive_lock_destroy_func): Renamed from
54858         glthread_recursive_lock_destroy.
54859
54860 2008-08-14  Bruno Haible  <bruno@clisp.org>
54861
54862         * lib/glthread/lock.h: Renamed from lib/lock.h.
54863         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
54864         * lib/glthread/tls.h: Renamed from lib/tls.h.
54865         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
54866         * lib/fstrcmp.c: Update includes.
54867         * lib/strsignal.c: Update includes.
54868         * modules/lock (Files, Makefile.am): Update.
54869         (Include): Change to "glthread/lock.h".
54870         * modules/tls (Files, Makefile.am): Update.
54871         (Include): Change to "glthread/tls.h".
54872         * tests/test-lock.c: Update includes.
54873         * tests/test-tls.c: Update includes.
54874         * NEWS: Mention the renamed header files.
54875
54876 2008-08-11  Jim Meyering  <meyering@redhat.com>
54877
54878         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
54879
54880 2008-08-11  Eric Blake  <ebb9@byu.net>
54881
54882         test-c-stack: avoid C99-ism
54883         * tests/test-c-stack.c (main): Fix whitespace, move declaration
54884         before statement.
54885         Reported by Alain Guibert.
54886
54887 2008-08-10  Jim Meyering  <meyering@redhat.com>
54888
54889         ensure that return value of uinttostr et al are not ignored
54890         * lib/inttostr.h (__GNUC_PREREQ): Define.
54891         (__attribute_warn_unused_result__): Define.
54892         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
54893
54894 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
54895
54896         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
54897         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
54898
54899 2008-08-07  Jim Meyering  <meyering@redhat.com>
54900
54901         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
54902
54903         * modules/mkstemp (License): Relicense under LGPLv2+.
54904         * modules/tempname (License): Likewise.
54905
54906 2008-08-06  Bruno Haible  <bruno@clisp.org>
54907
54908         * lib/poll.c (poll): Further micro-optimization.
54909
54910 2008-08-06  Jim Meyering  <meyering@redhat.com>
54911
54912         inet_pton.c: use locale-independent tolower
54913         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
54914         (inet_pton6): Use c_tolower rather than tolower.
54915         * modules/inet_pton (Depends-on): Add c-ctype.
54916
54917 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
54918
54919         * lib/poll.c (poll): Avoid division when timeout is 0, cache
54920         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
54921
54922 2008-08-06  Jim Meyering  <meyering@redhat.com>
54923
54924         * modules/inet_pton (License): Relicense under LGPLv2+.
54925
54926 2008-08-03  Bruno Haible  <bruno@clisp.org>
54927
54928         Additional non-aborting API for lock and tls.
54929         * lib/lock.h: Include <errno.h>.
54930         (glthread_lock_init): New macro/function.
54931         (gl_lock_init): Define as wrapper around glthread_lock_init.
54932         (glthread_lock_lock): New macro/function.
54933         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
54934         (glthread_lock_unlock): New macro/function.
54935         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
54936         (glthread_lock_destroy): New macro/function.
54937         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
54938         (glthread_rwlock_init): New macro/function.
54939         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
54940         (glthread_rwlock_rdlock): New macro/function.
54941         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
54942         (glthread_rwlock_wrlock): New macro/function.
54943         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
54944         (glthread_rwlock_unlock): New macro/function.
54945         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
54946         (glthread_rwlock_destroy): New macro/function.
54947         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
54948         (glthread_recursive_lock_init): New macro/function.
54949         (gl_recursive_lock_init): Define as wrapper around
54950         glthread_recursive_lock_init.
54951         (glthread_recursive_lock_lock): New macro/function.
54952         (gl_recursive_lock_lock): Define as wrapper around
54953         glthread_recursive_lock_lock.
54954         (glthread_recursive_lock_unlock): New macro/function.
54955         (gl_recursive_lock_unlock): Define as wrapper around
54956         glthread_recursive_lock_unlock.
54957         (glthread_recursive_lock_destroy): New macro/function.
54958         (gl_recursive_lock_destroy): Define as wrapper around
54959         glthread_recursive_lock_destroy.
54960         (glthread_once): New macro/function.
54961         (gl_once): Define as wrapper around glthread_once.
54962         Update function declarations.
54963         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
54964         glthread_rwlock_init. Return error code.
54965         (glthread_rwlock_rdlock_multithreaded): Renamed from
54966         glthread_rwlock_rdlock. Return error code.
54967         (glthread_rwlock_wrlock_multithreaded): Renamed from
54968         glthread_rwlock_wrlock. Return error code.
54969         (glthread_rwlock_unlock_multithreaded): Renamed from
54970         glthread_rwlock_unlock. Return error code.
54971         (glthread_rwlock_destroy_multithreaded): Renamed from
54972         glthread_rwlock_destroy. Return error code.
54973         (glthread_recursive_lock_init_multithreaded): Renamed from
54974         glthread_recursive_lock_init. Return error code.
54975         (glthread_recursive_lock_lock_multithreaded): Renamed from
54976         glthread_recursive_lock_lock. Return error code.
54977         (glthread_recursive_lock_unlock_multithreaded): Renamed from
54978         glthread_recursive_lock_unlock. Return error code.
54979         (glthread_recursive_lock_destroy_multithreaded): Renamed from
54980         glthread_recursive_lock_destroy. Return error code.
54981         (glthread_once_call): Make static.
54982         (glthread_once_multithreaded): Renamed from glthread_once.
54983         * lib/tls.h: Include <errno.h>.
54984         (glthread_tls_key_init): New macro/function.
54985         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
54986         (glthread_tls_set): New macro/function.
54987         (gl_tls_set): Define as wrapper around glthread_tls_set.
54988         (glthread_tls_key_destroy): New macro/function.
54989         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
54990         Update function declarations.
54991         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
54992         glthread_tls_get.
54993         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
54994
54995 2008-08-04  Eric Blake  <ebb9@byu.net>
54996
54997         gnumakefile: use space, not TAB, outside of targets
54998         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
54999
55000 2008-08-02  Jim Meyering  <meyering@redhat.com>
55001
55002         getdate.y: avoid locale-dependent date parsing failure
55003         In Turkish locales, getdate would fail to recognize keywords
55004         containing a lowercase "i".  The solution is not to rely on
55005         locale-sensitive case-conversion.
55006         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
55007         (lookup_word): Use c_toupper in place of toupper.
55008         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
55009         Reported by Vefa Bicakci <bicave@superonline.com> in
55010         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
55011         * modules/getdate (Depends-on): Add c-ctype.
55012
55013 2008-08-02  Bruno Haible  <bruno@clisp.org>
55014
55015         * gnulib-tool (func_import): When updating or creating a .gitignore
55016         file, prepend each added line with a slash, and ignore leading slashes
55017         from the existing lines.
55018         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
55019
55020 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55021
55022         Portability fix for GNU make 3.79.1.
55023         * top/GNUmakefile: Avoid 'else COND', which older GNU make
55024         versions do not understand.
55025
55026 2008-08-01  Bruno Haible  <bruno@clisp.org>
55027
55028         Work around bug of HP-UX 10.20 cc with -0.0 literal.
55029         * tests/test-isnanf.h (zero): New variable.
55030         (main): Avoid literal -0.0f.
55031         * tests/test-isnand.h (zero): New variable.
55032         (main): Avoid literal -0.0.
55033         * tests/test-isnanl.h (zero): New variable.
55034         (main): Avoid literal -0.0L.
55035         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
55036         (test_float, test_double, test_long_double): Avoid literals -0.0f,
55037         -0.0, -0.0L.
55038         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
55039         (test_signbitd): Avoid literal -0.0.
55040         (test_signbitl): Avoid literal -0.0L.
55041         * tests/test-ceilf1.c (zero): New variable.
55042         (main): Avoid literal -0.0f.
55043         * tests/test-ceill.c (zero): New variable.
55044         (main): Avoid literal -0.0L.
55045         * tests/test-floorf1.c (zero): New variable.
55046         (main): Avoid literal -0.0f.
55047         * tests/test-floorl.c (zero): New variable.
55048         (main): Avoid literal -0.0L.
55049         * tests/test-roundf1.c (zero): New variable.
55050         (main): Avoid literal -0.0f.
55051         * tests/test-round1.c (zero): New variable.
55052         (main): Avoid literal -0.0.
55053         * tests/test-roundl.c (zero): New variable.
55054         (main): Avoid literal -0.0L.
55055         * tests/test-truncf1.c (zero): New variable.
55056         (main): Avoid literal -0.0f.
55057         * tests/test-trunc1.c (zero): New variable.
55058         (main): Avoid literal -0.0.
55059         * tests/test-truncl.c (zero): New variable.
55060         (main): Avoid literal -0.0L.
55061         * tests/test-frexp.c (zero): New variable.
55062         (main): Avoid literal -0.0.
55063         * tests/test-frexpl.c (zero): New variable.
55064         (main): Avoid literal -0.0L.
55065         * tests/test-ldexpl.c (zero): New variable.
55066         (main): Avoid literal -0.0L.
55067         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
55068         (zerod, zerol): New variables.
55069         (test_function): Avoid literals -0.0, -0.0L.
55070         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
55071         (zerod, zerol): New variables.
55072         (test_function): Avoid literals -0.0, -0.0L.
55073         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
55074         (zerod, zerol): New variables.
55075         (test_function): Avoid literals -0.0, -0.0L.
55076         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
55077         (zerod, zerol): New variables.
55078         (test_function): Avoid literals -0.0, -0.0L.
55079         * tests/test-strtod.c (zero): New variable.
55080         (main): Avoid literal -0.0.
55081         Reported by Jonathan C. Patschke <jp@centtech.com>.
55082
55083 2008-07-31  Jim Meyering  <meyering@redhat.com>
55084
55085         sha256.h: correct definition of SHA224_DIGEST_SIZE
55086         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
55087         Reported by Paulie Pena IV <paulie4@gmail.com>.
55088         Define as 224 / 8, rather than as a literal.
55089         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
55090         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
55091         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
55092
55093 2008-07-31  Bruno Haible  <bruno@clisp.org>
55094
55095         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
55096         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
55097         Reported by Jonathan Patschke <jp@centtech.com>.
55098
55099 2008-07-31  Bruno Haible  <bruno@clisp.org>
55100
55101         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
55102         Reported by Paolo Bonzini <bonzini@gnu.org>.
55103
55104 2008-07-30  Eric Blake  <ebb9@byu.net>
55105
55106         test-strtod: allow compilation without -lm
55107         * tests/test-strtod.c (main): Avoid link dependence on fabs.
55108         Reported by Dennis Clarke <blastwave@gmail.com>.
55109
55110 2008-07-28  Jim Meyering  <meyering@redhat.com>
55111
55112         bootstrap: work also when there are no .po files in po/
55113         * build-aux/bootstrap (update_po_files): Complete the change
55114         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
55115
55116 2008-07-27  Jim Meyering  <meyering@redhat.com>
55117
55118         * users.txt: Add zile.
55119
55120 2008-07-26  Ben Pfaff  <blp@gnu.org>
55121
55122         Add missing dependencies on new m4/exponent[fdl].m4 files.
55123         * modules/isnanf-nolibm: Add m4/exponentf.m4.
55124         * modules/isnand-nolibm: Add m4/exponentd.m4.
55125         * modules/isnanl-nolibm: Add m4/exponentl.m4.
55126         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
55127         m4/isnan[fdl].m4, because the macros actually used moved.
55128         Reported by Jim Meyering.
55129
55130 2008-07-14  Ben Pfaff  <blp@gnu.org>
55131
55132         Add isinf module.
55133         * lib/isinf.c: New file.
55134         * lib/math.in.h: Define isinf macro if we have decided to replace
55135         it.
55136         * m4/isinf.m4: New file.
55137         * m4/math_h.m4: Initialize and substitute variables for isinf
55138         module.
55139         * modules/isinf: New file.
55140         * modules/isinf-tests: New file.
55141         * modules/math: Add substitutions for new module.
55142         * tests/test-isinf.c: New file.
55143         * doc/posix-functions/isinf.texi: Mention new module.
55144         * MODULES.html.sh: Mention new module.
55145
55146 2008-07-14  Ben Pfaff  <blp@gnu.org>
55147
55148         Factor out some macros for use by additional modules.
55149         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
55150         exponentf.m4.
55151         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
55152         exponentd.m4.
55153         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
55154         file exponentl.m4.
55155         * m4/exponentf.m4: New file.
55156         * m4/exponentd.m4: New file.
55157         * m4/exponentl.m4: New file.
55158         * modules/isnanf: Use new file m4/exponentf.m4.
55159         * modules/isnand: Use new file m4/exponentd.m4.
55160         * modules/isnanl: Use new file m4/exponentl.m4.
55161
55162 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
55163
55164         mktime.c: normalize tp->tm_isdst value to -1/0/1.
55165         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
55166         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
55167         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
55168
55169         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
55170         readlink on platforms without PATH_MAX.
55171
55172 2008-07-21  Eric Blake  <ebb9@byu.net>
55173
55174         Warn, not fail, on stale version.
55175         * top/GNUmakefile (_curr-ver): Tone down previous patch.
55176
55177         Don't allow installation with stale devel version number.
55178         * top/GNUmakefile (_is-install-target): New macro.
55179         (_curr-ver): Forbid installation with stale version number.
55180
55181 2008-07-20  Bruno Haible  <bruno@clisp.org>
55182
55183         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
55184         TESTS_ENVIRONMENT.
55185         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
55186
55187 2008-07-20  Bruno Haible  <bruno@clisp.org>
55188
55189         * lib/c-stack.h (c_stack_action): Add documentation.
55190         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
55191
55192 2008-07-20  Bruno Haible  <bruno@clisp.org>
55193
55194         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
55195         * modules/readlink (License): Likewise.
55196
55197 2008-07-17  Eric Blake  <ebb9@byu.net>
55198
55199         * modules/c-stack (Link): Fix typo.
55200
55201         Make c-stack use libsigsegv, when available.
55202         * modules/c-stack (Depends-on): Add libsigsegv.
55203         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
55204         needed.
55205         * lib/c-stack.c (SIGSTKSZ): Define fallback.
55206         (segv_handler, overflow_handler, c_stack_action)
55207         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
55208         implementation when libsigsegv is available, but only when using
55209         the library is necessary.
55210         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
55211         comment, explaining why XSI check fails on Linux.
55212         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
55213         * tests/test-c-stack2.sh: Tweak skip message.
55214         * NEWS: Document new link-time requirements.
55215
55216 2008-07-16  Eric Blake  <ebb9@byu.net>
55217
55218         c-stack: Expose false positives when not using libsigsegv.
55219         * modules/c-stack-tests (Files): Expand test.
55220         * tests/test-c-stack.c (main): Add means to conditionally trigger
55221         non-overflow SIGSEGV.
55222         * tests/test-c-stack2.sh: New file.
55223
55224 2008-07-14  Bruno Haible  <bruno@clisp.org>
55225
55226         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
55227         Reported by Eric Blake.
55228
55229 2008-07-14  Sam Steingold  <sds@gnu.org>
55230             Bruno Haible  <bruno@clisp.org>
55231
55232         New module libsigsegv.
55233         * modules/libsigsegv: New file.
55234         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
55235         modifications.
55236         * MODULES.html.sh (Signal handling): New section.
55237
55238 2008-07-14  Bruno Haible  <bruno@clisp.org>
55239
55240         * modules/unictype/ctype-* (Description): Add the word "function".
55241         Improves the resulting doc in MODULES.html.
55242
55243 2008-07-12  Ben Pfaff  <blp@gnu.org>
55244
55245         Add longlong module.
55246         * modules/longlong: New file.
55247
55248 2008-07-12  Bruno Haible  <bruno@clisp.org>
55249
55250         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
55251         to empty.
55252
55253 2008-07-10  Ben Pfaff  <blp@gnu.org>
55254
55255         Add isnan module.
55256         * doc/posix-functions/isnan.texi: Mention new module.
55257         * lib/math.in.h: Define isnan macro if we have decided to replace
55258         it.
55259         * m4/isnan.m4: New file.
55260         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
55261         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
55262         also.
55263         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
55264         redundancy.
55265         * m4/math_h.m4: Initialize and substitute variables for isnan
55266         module.
55267         * modules/isnan: New file.
55268         * modules/isnan-tests: New file.
55269         * modules/math: Add substitutions for new module.
55270         * tests/test-isnan.c: New file.
55271         * MODULES.html.sh: Mention new module.
55272
55273 2008-07-10  Ben Pfaff  <blp@gnu.org>
55274
55275         Add isnanf module.
55276         * lib/isnanf.m4: New file.
55277         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
55278         (gl_HAVE_ISNANF_IN_LIBM): New macro.
55279         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
55280         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
55281         * modules/isnanf: New file.
55282         * modules/isnanf-tests: New file.
55283         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
55284         files.
55285         * tests/test-isnanf-nolibm.c: factored most of its contents into
55286         new file tests/test-isnanf.h.
55287         * tests/test-isnanf.h: New file.
55288         * tests/test-isnanf.c: New file.
55289         * MODULES.html.sh: Mention new module.
55290         * doc/glibc-functions/isnanf.texi: Mention new module.
55291
55292 2008-07-10  Ben Pfaff  <blp@gnu.org>
55293
55294         Add isnand module.
55295         * lib/isnand.h: New file.
55296         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
55297         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
55298         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
55299         functionality also.
55300         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
55301         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
55302         (gl_HAVE_ISNAND_IN_LIBM): New macro.
55303         * modules/isnand: New file.
55304         * modules/isnand-tests: New file.
55305         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
55306         files.
55307         * tests/test-isnand-nolibm.c: factored most of its contents into
55308         new file tests/test-isnand.h.
55309         * tests/test-isnand.h: New file.
55310         * tests/test-isnand.c: New file.
55311         * MODULES.html.sh: Mention new module.
55312
55313 2008-07-10  Ben Pfaff  <blp@gnu.org>
55314
55315         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
55316         * lib/isnand.h: Rename lib/isnand-nolibm.h.
55317         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
55318         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
55319         * modules/isnanf-nolibm: Update references to renamed files.
55320         * modules/isnand-nolibm: Likewise.
55321         * modules/isnanf-nolibm-tests: Likewise.
55322         * modules/isnand-nolibm-tests: Likewise.
55323         * lib/frexp.c: Likewise.
55324         * lib/isfinite.c: Likewise.
55325         * lib/signbitd.c: Likewise.
55326         * lib/signbitf.c: Likewise.
55327         * lib/vasnprintf.c: Likewise.
55328         * tests/test-ceilf1.c: Likewise.
55329         * tests/test-ceilf2.c: Likewise.
55330         * tests/test-floorf1.c: Likewise.
55331         * tests/test-floorf2.c: Likewise.
55332         * tests/test-frexp.c: Likewise.
55333         * tests/test-round1.c: Likewise.
55334         * tests/test-round2.c: Likewise.
55335         * tests/test-roundf1.c: Likewise.
55336         * tests/test-strtod.c: Likewise.
55337         * tests/test-trunc1.c: Likewise.
55338         * tests/test-trunc2.c: Likewise.
55339         * tests/test-truncf1.c: Likewise.
55340         * tests/test-truncf2.c: Likewise.
55341         * NEWS: Mention the renamed header files.
55342
55343 2008-07-11  Jim Meyering  <meyering@redhat.com>
55344
55345         vc-list-files: make the last-resort awk code more portable
55346         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
55347         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
55348         does not support it.
55349
55350 2008-07-10  Eric Blake  <ebb9@byu.net>
55351
55352         Work with tar's bootstrap.
55353         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
55354         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
55355         an m4 comment.
55356
55357 2008-07-09  Jim Meyering  <meyering@redhat.com>
55358
55359         posix-shell.m4: fix typo that made this test malfunction
55360         * m4/posix-shell.m4: Remove capitalization in variable name.
55361
55362 2008-07-08  Bruno Haible  <bruno@clisp.org>
55363
55364         * m4/onceonly.m4: Update comments.
55365         Reported by Ben Pfaff <blp@cs.stanford.edu>.
55366
55367 2008-07-04  Jim Meyering  <meyering@redhat.com>
55368
55369         * users.txt: Add vc-dwim.
55370         (bison, coreutils): Use the gitweb URL.
55371
55372 2008-07-03  Jim Meyering  <meyering@redhat.com>
55373
55374         * users.txt: Add libffcall.  From Sam Steingold.
55375
55376 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
55377
55378         getdate.y: do not ignore TZ with relative day, month or year offset
55379         * lib/getdate.y (get_date): Move the tz-handling block to follow the
55380         relative-date-handling, since otherwise, the latter would clobber the
55381         sole output (an updated Start value) of the tz-handling block.
55382         * tests/test-getdate.c: Tests for the fix
55383
55384 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55385
55386         Recognize 'foo_LIBRARIES += libgnu.a'.
55387         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
55388         makefile snippet has already specified an installation location,
55389         also using '+='.
55390
55391 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
55392
55393         getdate.y: factor out common actions
55394         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
55395         Use them in place of open-coded actions.
55396
55397 2008-07-01  Simon Josefsson  <simon@josefsson.org>
55398
55399         Add self-test for getdate module.
55400         * modules/getdate-tests: New file.
55401         * tests/test-getdate.c: New file.
55402
55403 2008-06-29  Bruno Haible  <bruno@clisp.org>
55404
55405         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
55406         .gitignore.
55407         Reported by Sylvain Beucler <beuc@beuc.net>.
55408
55409 2008-06-29  Bruno Haible  <bruno@clisp.org>
55410
55411         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
55412         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
55413
55414 2008-06-29  Bruno Haible  <bruno@clisp.org>
55415
55416         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
55417         EXTRA_DIST.
55418         Reported by Sylvain Beucler <beuc@beuc.net>.
55419
55420 2008-06-26  Jim Meyering  <meyering@redhat.com>
55421
55422         make several modules depend on the "open" module
55423         This provides slightly increased consistency when opening-for-write
55424         the name of a non-directory spelled with a trailing slash.
55425         * modules/chdir-safer: Likewise.
55426         * modules/chown: Likewise.
55427         * modules/clean-temp: Likewise.
55428         * modules/copy-file: Likewise.
55429         * modules/fchdir: Likewise.
55430         * modules/fcntl-safer: Likewise.
55431         * modules/pipe: Likewise.
55432         * modules/utime: Likewise.
55433         Prompted by Eric Blake and Bruno Haible.
55434
55435 2008-06-24  Andreas Schwab  <schwab@suse.de>
55436
55437         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
55438         literals can be used as initializers for global variables.
55439
55440 2008-06-23  Eric Blake  <ebb9@byu.net>
55441
55442         Make gnulib-cache.m4 easier to diff.
55443         * gnulib-tool (func_import): Allow newlines when reading cached
55444         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
55445
55446 2008-06-23  Bruno Haible  <bruno@clisp.org>
55447
55448         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
55449         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
55450         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
55451         m4/signalblocking.m4.
55452         (gl_PREREQ_SIGACTION): Don't invoke it.
55453         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
55454         gl_PREREQ_SIG_HANDLER_H.
55455         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
55456         Don't check for sigaction here.
55457
55458 2008-06-23  Bruno Haible  <bruno@clisp.org>
55459
55460         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
55461         (install_handlers): Don't set the SA_RESETHAND flag.
55462
55463 2008-06-23  Bruno Haible  <bruno@clisp.org>
55464
55465         * m4/sigaction.m4: Comment fixes.
55466         * lib/signal.in.h: Likewise.
55467
55468 2008-06-23  Eric Blake  <ebb9@byu.net>
55469
55470         Fix typo.
55471         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
55472
55473         Avoid SA_ namespace.
55474         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
55475         Reported by Ralf Wildenhues.
55476
55477         Avoid test failure due to SA_RESTORER.
55478         * tests/test-sigaction.c (SA_MASK): New macro.
55479         (main): Avoid failing due to extension flags being set.
55480         Reported by Jim Meyering.
55481
55482         Revert use of sig-handler.h in sigprocmask.c.
55483         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
55484         it requires the existence of struct sigaction.
55485         * lib/sigprocmask.c (handler_t): Restore typedef.
55486         (rpl_signal, old_handlers): Use local type.
55487
55488 2008-06-22  Bruno Haible  <bruno@clisp.org>
55489
55490         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
55491         conditionally.
55492         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
55493
55494 2008-06-22  Bruno Haible  <bruno@clisp.org>
55495
55496         * doc/posix-functions/siginterrupt.texi: Move note.
55497
55498         * lib/signal.in.h (SA_RESTART): New macro.
55499         * lib/sigaction.c: Update comment.
55500
55501         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
55502
55503         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
55504         (gl_PREREQ_SIGPROCMASK): Invoke it.
55505         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
55506
55507         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
55508
55509         * lib/sigprocmask.c: Update a comment.
55510
55511 2008-06-21  Eric Blake  <ebb9@byu.net>
55512
55513         Use sigaction module rather than signal().
55514         * modules/c-stack (Depends-on): Add sigaction.
55515         * modules/fatal-signal (Depends-on): Likewise.
55516         * modules/nanosleep (Depends-on): Likewise.
55517         * modules/sigprocmask (Files): Add sig-handler.h.
55518         * modules/sigaction (Files): Likewise.
55519         * lib/sig-handler.h (get_handler): New file, suggested by Paul
55520         Eggert.
55521         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
55522         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
55523         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
55524         (init_fatal_signals): Likewise.
55525         * lib/nanosleep.c (rpl_nanosleep): Likewise.
55526         (siginterrupt): Delete fallback.
55527         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
55528         instead.
55529         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
55530         siginterrupt.
55531
55532         New module sigaction, for mingw.
55533         * modules/sigaction: New module...
55534         * modules/sigaction-tests: ...and its test.
55535         * m4/sigaction.m4: New file.
55536         * lib/sigaction.c: Likewise.
55537         * tests/test-sigaction.c: Likewise.
55538         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
55539         * modules/signal (Makefile.am): Likewise.
55540         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
55541         needed.
55542         * doc/posix-headers/signal.texi (signal.h): Mention provided
55543         types.
55544         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
55545         that sigaction is preferable.
55546         * doc/posix-functions/sigaction.texi (sigaction): Mention new
55547         module.
55548         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
55549         sigaction.
55550
55551         Improve robustness of sigprocmask by overriding signal.
55552         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
55553         is in use.
55554         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
55555         (SIGKILL, SIGSTOP): Provide fallbacks.
55556         (rpl_signal): Implement.
55557         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
55558         signal can be called inside handlers.
55559
55560         Fix nanosleep module on mingw.
55561         * modules/nanosleep (Depends-on): Add sys_select.
55562         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
55563
55564         Fix licensing of sigprocmask.
55565         * modules/raise (License): Relicense as LGPL.
55566
55567 2008-06-21  Bruno Haible  <bruno@clisp.org>
55568
55569         * lib/propername.c (proper_name_utf8): Don't use the transliterated
55570         result if it contains question marks.
55571         Reported by Michael Geng <linux@michaelgeng.de>.
55572
55573 2008-06-19  Bruno Haible  <bruno@clisp.org>
55574
55575         Fix CVS-ism.
55576         * doc/gnulib.texi: Include updated-stamp.texi.
55577         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
55578         (updated-stamp.texi): New rule.
55579         (gnulib.info): Depend on it.
55580         * doc/.gitignore: Add updated-stamp.texi.
55581         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
55582
55583 2008-06-19  Bruno Haible  <bruno@clisp.org>
55584
55585         * doc/Makefile (gnulib.info): Update and simplify dependencies.
55586         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
55587
55588 2008-06-19  Eric Blake  <ebb9@byu.net>
55589
55590         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
55591         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
55592         Reported by Stepan Kasal.
55593
55594 2008-06-18  Bruno Haible  <bruno@clisp.org>
55595
55596         * lib/fatal-signal.c (init_fatal_signals): Add comment.
55597         Reported by Eric Blake.
55598
55599 2008-06-18  Eric Blake  <ebb9@byu.net>
55600
55601         Work around cygwin 1.5.25 strsignal bug.
55602         * tests/test-strsignal.c: Allow for const char *.
55603         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
55604
55605 2008-06-18  Simon Josefsson  <simon@josefsson.org>
55606
55607         * users.txt: Update URL to article and add author/date
55608         information.
55609
55610 2008-06-17  Bruno Haible  <bruno@clisp.org>
55611
55612         New macro gl_DISABLE_THREADS.
55613         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
55614         if the user did not pass --enable-threads or --disable-threads option.
55615         (gl_DISABLE_THREADS): New macro.
55616         Reported by Eric Blake <ebb9@byu.net>.
55617
55618 2008-06-17  Bruno Haible  <bruno@clisp.org>
55619
55620         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
55621         when the macro ignores it.
55622         Based on a patch by Eric Blake <ebb9@byu.net>.
55623
55624 2008-06-17  Bruno Haible  <bruno@clisp.org>
55625
55626         * modules/tls (License): Change to LGPLv2+.
55627         Reported by Eric Blake.
55628
55629 2008-06-17  Eric Blake  <ebb9@byu.net>
55630
55631         Simplify c-stack prerequisites.
55632         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
55633         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
55634         no longer requires <ucontext.h> to exist.  Optimize setrlimit
55635         check.
55636         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
55637         <sys/resource.h>.
55638
55639         Move c-stack test into testsuite.
55640         * modules/c-stack-tests: New file.
55641         * lib/c-stack.c [DEBUG]: Move test program...
55642         * tests/test-c-stack.c: ...into this new file.  Skip rather than
55643         fail test if sigaltstack is lacking.
55644         * tests/test-c-stack.sh: New driver file.
55645
55646 2008-06-16  Eric Blake  <ebb9@byu.net>
55647
55648         Use raise module consistently.
55649         * modules/fatal-signal (Depends-on): Add raise.
55650         * modules/sigprocmask (Depends-on): Likewise.
55651         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
55652         * lib/sigprocmask.c (sigprocmask): Likewise.
55653         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
55654         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
55655
55656         Fix compliance bug in sigpending.
55657         * lib/sigprocmask.c (sigpending): Return pending array via
55658         parameter, not return value.
55659
55660 2008-06-14  Eric Blake  <ebb9@byu.net>
55661
55662         Improve obstack-printf test code.
55663         * tests/test-obstack-printf.c (test_function): Fix comment, and
55664         simplify usage of obstack_* in macros.  Add a test for coverage.
55665         Reported by Bruno Haible.
55666
55667 2008-06-14  Bruno Haible  <bruno@clisp.org>
55668
55669         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
55670         array size as a constant, not as a const variable.
55671         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
55672         AC_USE_SYSTEM_EXTENSIONS.
55673         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
55674         Test whether the obstack_printf function actually exists.
55675         * modules/obstack-printf (Depends-on): Add extensions.
55676         (Include): Remove obstack.h.
55677         * modules/obstack-printf-posix (Depends-on): Add extensions.
55678         (Include): Remove obstack.h.
55679
55680 2008-06-13  Eric Blake  <ebb9@byu.net>
55681
55682         Add obstack-printf and obstack-printf-posix modules.
55683         * modules/obstack-printf: New file.
55684         * modules/obstack-printf-posix: Likewise.
55685         * MODULES.html.sh (Misc): Mention them.
55686         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
55687         Likewise.
55688         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
55689         Likewise.
55690         * modules/stdio (Makefile.am): Accomodate new modules.
55691         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
55692         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
55693         Declare.
55694         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
55695         functions.
55696         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
55697         (gl_REPLACE_OBSTACK_PRINTF): New macros
55698         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
55699         * tests/test-obstack-printf.c: New file.
55700         * modules/obstack-printf-tests: Likewise.
55701         * modules/obstack-printf-posix-tests: Likewise.
55702
55703 2008-06-11  Bruno Haible  <bruno@clisp.org>
55704
55705         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
55706         * lib/open.c: Include errno.h.
55707         (open): Fail when attempting to write to a file that has a trailing
55708         slash.
55709         * tests/test-open.c (main): Test against trailing slash bug.
55710         * doc/posix-functions/open.texi: Mention the trailing slash bug.
55711
55712 2008-06-10  Bruno Haible  <bruno@clisp.org>
55713
55714         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
55715         for $? to work inside the trap command, with various /bin/sh-s.
55716         * tests/test-vc-list-files-cvs.sh: Likewise.
55717
55718 2008-06-10  Bruno Haible  <bruno@clisp.org>
55719
55720         * lib/acl-internal.h: Don't include gettext.h here.
55721         * lib/set-mode-acl.c: Include gettext.h here.
55722         * lib/copy-acl.c: Likewise.
55723
55724 2008-06-10  Bruno Haible  <bruno@clisp.org>
55725
55726         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
55727         * lib/wait-process.c (wait_subprocess): Likewise.
55728         * lib/execute.h (execute): Add termsigp argument.
55729         * lib/execute.c (execute): Likewise.
55730         * lib/csharpcomp.c (compile_csharp_using_pnet,
55731         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
55732         * lib/csharpexec.c (execute_csharp_using_pnet,
55733         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
55734         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
55735         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
55736         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
55737         is_jikes_present): Update.
55738         * lib/javaexec.c (execute_java_class): Update.
55739         * lib/javaversion.c (execute_and_read_line): Update.
55740         * NEWS: Document the changes.
55741         Reported by Eric Blake.
55742
55743 2008-06-10  Eric Blake  <ebb9@byu.net>
55744
55745         Add missing include.
55746         * tests/test-strstr.c (includes): Add <signal.h>.
55747         * tests/test-strcasestr.c (includes): Likewise.
55748         * tests/test-memmem.c (includes): Likewise.
55749
55750 2008-06-10  Bruno Haible  <bruno@clisp.org>
55751
55752         * lib/wait-process.c (wait_subprocess): Add an assertion.
55753
55754 2008-06-10  Bruno Haible  <bruno@clisp.org>
55755
55756         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
55757
55758 2008-06-10  Bruno Haible  <bruno@clisp.org>
55759
55760         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
55761         using alarm().
55762         * tests/test-strcasestr.c (main): Likewise.
55763         * tests/test-strstr.c (main): Likewise.
55764
55765 2008-06-09  Bruno Haible  <bruno@clisp.org>
55766
55767         Work around the Solaris 10 ACE ACLs ABI change.
55768         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
55769         declare if ACL_NO_TRIVIAL is present.
55770         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
55771         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
55772         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
55773         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
55774         define if ACL_NO_TRIVIAL is present.
55775         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
55776         and use the current ABI.
55777         (file_has_acl): Use same #if condition as elsewhere.
55778         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
55779         in use, and use the current ABI.
55780         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
55781         Reported by Jim Meyering.
55782
55783 2008-06-09  Eric Blake  <ebb9@byu.net>
55784
55785         Work around environments that (stupidly) ignore SIGALRM.
55786         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
55787         before using alarm().
55788         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
55789         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
55790         Reported by Ian Beckwith <ianb@erislabs.net>.
55791
55792         Produce autobuild blurb earlier in log.
55793         * modules/autobuild (configure.ac-early): Move AB_INIT here.
55794
55795 2008-06-09  Jim Meyering  <meyering@redhat.com>
55796         and Ondřej Vašík  <ovasik@redhat.com>
55797
55798         utimens.c: correct kernel bug work-around
55799         Ondřej Vašík found that the invalid return value of 280 indicates
55800         failure, not success, and the kernel bug we're trying to work
55801         around affects not just the utimensat call, but also the fallback
55802         futimens call.
55803         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
55804         not success.
55805         [HAVE_FUTIMENS]: Use the same work-around, here.
55806
55807 2008-06-09  Jim Meyering  <meyering@redhat.com>
55808
55809         add more guards around definition of ACE_-related code
55810         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
55811         ALLOW and ACE_OWNER are also defined.
55812
55813 2008-06-08  Bruno Haible  <bruno@clisp.org>
55814
55815         * lib/acl-internal.h: Add me as co-author.
55816         * lib/file-has-acl.c: Likewise.
55817         * lib/set-mode-acl.c: Likewise.
55818         * lib/copy-acl.c: Likewise.
55819
55820 2008-06-08  Bruno Haible  <bruno@clisp.org>
55821
55822         Add support for AIX ACLs.
55823         * lib/acl-internal.h (acl_nontrivial): New declaration.
55824         * lib/file-has-acl.c (acl_nontrivial): New function.
55825         (file_has_acl): Add implementation using AIX 4 ACL API.
55826         * lib/set-mode-acl.c (qset_acl): Likewise.
55827         * lib/copy-acl.c (qcopy_acl): Likewise.
55828
55829 2008-06-08  Bruno Haible  <bruno@clisp.org>
55830
55831         Add support for HP-UX ACLs.
55832         * lib/acl-internal.h (acl_nontrivial): New declaration.
55833         * lib/file-has-acl.c (acl_nontrivial): New function.
55834         (file_has_acl): Add implementation using HP-UX 11 ACL API.
55835         * lib/set-mode-acl.c (qset_acl): Likewise.
55836         * lib/copy-acl.c (qcopy_acl): Likewise.
55837
55838 2008-06-08  Bruno Haible  <bruno@clisp.org>
55839
55840         Add support for Cygwin ACLs.
55841         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
55842         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
55843         the chmod_or_fchmod call.
55844         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
55845
55846 2008-06-08  Bruno Haible  <bruno@clisp.org>
55847
55848         Fix bug with setuid modes in Solaris 10+ code.
55849         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
55850         succeeded, when the mode contains some special bits.
55851
55852 2008-06-08  Bruno Haible  <bruno@clisp.org>
55853
55854         Add support for Solaris 7..10 ACLs.
55855         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
55856         declarations.
55857         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
55858         functions.
55859         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
55860         * lib/set-mode-acl.c (qset_acl): Likewise.
55861         * lib/copy-acl.c (qcopy_acl): Likewise.
55862
55863 2008-06-08  Bruno Haible  <bruno@clisp.org>
55864
55865         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
55866         declaration.
55867         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
55868         (acl_access_nontrivial): Remove MacOS X case.
55869         (file_has_acl): Use acl_extended_nontrivial.
55870         * lib/copy-acl.c (qcopy_acl): Likewise.
55871
55872 2008-06-08  Bruno Haible  <bruno@clisp.org>
55873
55874         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
55875
55876 2008-06-08  Jim Meyering  <meyering@redhat.com>
55877
55878         * modules/acl (Maintainer): Add Bruno Haible.
55879
55880 2008-06-07  Bruno Haible  <bruno@clisp.org>
55881
55882         Improve support for Tru64 ACLs.
55883         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
55884         ACL on OSF/1.
55885
55886 2008-06-07  Bruno Haible  <bruno@clisp.org>
55887
55888         Add support for MacOS X ACLs.
55889         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
55890         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
55891         * lib/set-mode-acl.c (qset_acl): Likewise.
55892         * lib/copy-acl.c (qcopy_acl): Likewise.
55893
55894 2008-06-07  Bruno Haible  <bruno@clisp.org>
55895
55896         Fix memory leak introduced on 2008-05-22.
55897         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
55898         use.
55899
55900 2008-06-07  Bruno Haible  <bruno@clisp.org>
55901
55902         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
55903         to construct an empty ACL.
55904
55905 2008-06-07  Bruno Haible  <bruno@clisp.org>
55906
55907         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
55908         precisely.
55909         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
55910
55911 2008-06-07  Bruno Haible  <bruno@clisp.org>
55912
55913         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
55914         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
55915
55916 2008-06-07  Bruno Haible  <bruno@clisp.org>
55917
55918         * doc/posix-functions/_setjmp.texi: Explain the use of this function
55919         regardless of POSIX.
55920         * doc/posix-functions/_longjmp.texi: Likewise.
55921         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
55922         SystemV platform in this case.
55923
55924 2008-06-06  Eric Blake  <ebb9@byu.net>
55925
55926         Document abort() bugs.
55927         * doc/posix-functions/abort.texi (abort): Mention anomalies.
55928
55929         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
55930         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
55931         sigsetjmp.
55932         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
55933         siglongjmp, but only as a macro.
55934         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
55935         is obsolete.
55936         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
55937
55938         Tweak documentation to cover cygwin argz bugs.
55939         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
55940         argz bug fix; no code change needed since no cygwin releases
55941         occurred between the last fix and the bug being tested.
55942         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
55943         module and recently fixed cygwin bugs.
55944         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
55945         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
55946         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
55947         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
55948         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
55949         Likewise.
55950         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
55951         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
55952         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
55953         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
55954         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
55955         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
55956         Likewise.
55957
55958         Avoid gcc warning on cygwin.
55959         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
55960         !ACL_NO_TRIVIAL]: Avoid unused variable.
55961
55962 2008-06-05  Eric Blake  <ebb9@byu.net>
55963
55964         Be tolerant of UNKNOWN version in gnulib-tool test dir.
55965         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
55966         git-version-gen fails to come up with a version.
55967         Reported by Simon Josefsson.
55968
55969 2008-06-05  Jim Meyering  <meyering@redhat.com>
55970             Paul Eggert  <eggert@cs.ucla.edu>
55971
55972         utimens.c: work around a probable Linux kernel bug
55973         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
55974         appears to be a kernel bug that causes utimensat to return 280
55975         instead of 0, indicating success.
55976
55977 2008-06-04  Bruno Haible  <bruno@clisp.org>
55978
55979         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
55980         2008-06-01 commit.
55981
55982 2008-06-04  Bruno Haible  <bruno@clisp.org>
55983
55984         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
55985         * lib/file-has-acl.c (acl_access_nontrivial): New function.
55986         (file_has_acl): Use it. Save errno afterwards.
55987         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
55988
55989 2008-06-03  Bruno Haible  <bruno@clisp.org>
55990
55991         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
55992         draft code. Simplify #ifs.
55993         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
55994         Put Solaris code after POSIX-draft code. Fix comments regarding
55995         Solaris 10, HP-UX. Mention Cygwin.
55996         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
55997
55998 2008-06-03  Eric Blake  <ebb9@byu.net>
55999
56000         Provide fallback for older kernels.
56001         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
56002         Provide runtime fallback if kernel lacks support.
56003         Reported by Mike Frysinger.
56004
56005 2008-06-02  Bruno Haible  <bruno@clisp.org>
56006
56007         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
56008         it exists.
56009
56010 2008-06-02  Bruno Haible  <bruno@clisp.org>
56011
56012         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
56013         * lib/copy-acl.c (qcopy_acl): Update comment.
56014
56015 2008-06-02  Bruno Haible  <bruno@clisp.org>
56016
56017         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
56018         like ACL APIs.
56019
56020 2008-06-02  Bruno Haible  <bruno@clisp.org>
56021
56022         * tests/test-file-has-acl.sh: Use different code for Cygwin.
56023         * tests/test-set-mode-acl.sh: Likewise.
56024         * tests/test-copy-acl.sh: Likewise.
56025         * tests/test-copy-file.sh: Likewise.
56026
56027 2008-06-02  Bruno Haible  <bruno@clisp.org>
56028
56029         * tests/test-file-has-acl.sh: Remove unused code.
56030
56031 2008-06-01  Bruno Haible  <bruno@clisp.org>
56032
56033         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
56034         (copy_acl): Just a wrapper around qcopy_acl that emits the error
56035         messages.
56036         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
56037
56038 2008-06-01  Bruno Haible  <bruno@clisp.org>
56039
56040         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
56041         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
56042         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
56043         APIs.
56044         * modules/acl-tests (configure.ac): Remove tests now contained in
56045         m4/acl.m4.
56046
56047 2008-06-02  Jim Meyering  <meyering@redhat.com>
56048
56049         announce-gen: use a better key-server host name
56050         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
56051         it may be more consistently reliable.  Suggested by Werner Koch
56052         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
56053
56054 2008-06-01  Bruno Haible  <bruno@clisp.org>
56055
56056         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
56057         Reported by Voroskoi Andras <voroskoi@gmail.com>.
56058
56059 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
56060
56061         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
56062
56063 2008-06-01  Bruno Haible  <bruno@clisp.org>
56064
56065         New ACL tests.
56066         * tests/test-file-has-acl.sh: New file.
56067         * tests/test-file-has-acl.c: New file.
56068         * tests/test-set-mode-acl.sh: New file.
56069         * tests/test-set-mode-acl.c: New file.
56070         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
56071         * tests/test-copy-acl.c: New file.
56072         * modules/acl-tests: New file, based on modules/copy-file-tests.
56073         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
56074         (Depends-on): Add acl-tests.
56075         (configure.ac): Remove checks.
56076         (Makefile.am): Don't create test-sameacls program here any more.
56077
56078 2008-06-01  Bruno Haible  <bruno@clisp.org>
56079
56080         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
56081         * tests/test-sameacls.c: Include progname.h.
56082         (main): Invoke set_program_name. Portability fixes for MacOS X,
56083         Solaris, HP-UX.
56084
56085 2008-06-01  Bruno Haible  <bruno@clisp.org>
56086
56087         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
56088         function.
56089         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
56090
56091 2008-06-01  Bruno Haible  <bruno@clisp.org>
56092
56093         * modules/rpmatch (Depends-on): Add strdup.
56094
56095 2008-06-01  Bruno Haible  <bruno@clisp.org>
56096
56097         * lib/pipe.c: Include unistd-safer.h.
56098         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
56099         * modules/pipe (Depends-on): Add unistd-safer.
56100
56101 2008-05-30  Simon Josefsson  <simon@josefsson.org>
56102
56103         * modules/autobuild (configure.ac): Call AB_INIT.
56104
56105 2008-05-30  Simon Josefsson  <simon@josefsson.org>
56106
56107         * tests/test-getaddrinfo.c: Don't print debug messages by default.
56108         Suggested by Bruno Haible <bruno@clisp.org>.
56109
56110 2008-05-30  Simon Josefsson  <simon@josefsson.org>
56111
56112         * tests/test-base64.c: Cast size_t to unsigned long when invoking
56113         printf.  Use %lu instead of %d.  Reported by Bruno Haible
56114         <bruno@clisp.org>.
56115
56116 2008-05-29  Eric Blake  <ebb9@byu.net>
56117
56118         Prefer new POSIX 200x interfaces over futimesat.
56119         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
56120         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
56121         when available.
56122         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
56123
56124 2008-05-28  Bruno Haible  <bruno@clisp.org>
56125
56126         * modules/stpcpy (License): Change to LGPLv2+.
56127         Requested by David Lutterkort <dlutter@redhat.com>.
56128
56129 2008-05-27  Bruno Haible  <bruno@clisp.org>
56130
56131         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
56132         current mingw.
56133         Reported by Jose E. Marchesi <jemarch@gnu.org>.
56134
56135 2008-05-27  Bruno Haible  <bruno@clisp.org>
56136
56137         * modules/iconv_open (Link): New section, from module 'iconv'.
56138         * modules/striconv (Link): Likewise.
56139         * modules/striconveh (Link): Likewise.
56140         * modules/xstriconv (Link): Likewise.
56141         * modules/unicodeio (Link): Likewise.
56142         * modules/propername (Link): Likewise.
56143         Reported by Jim Meyering.
56144
56145 2008-05-26  Jim Meyering  <meyering@redhat.com>
56146
56147         sha256: do not artificially restrict buffer length to be < 2^32
56148         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
56149         uint32_t to size_t.
56150         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
56151         to match.
56152
56153         avoid unaligned access errors, e.g., on sparc
56154         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
56155         direct access through a possibly-unaligned uint64* pointer.
56156         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
56157         direct access through a possibly-unaligned uint32* pointer.
56158         Prompted by this patch from Tom "spot" Callaway:
56159         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
56160
56161         sha512.c: fix typo in comment
56162         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
56163
56164 2008-05-25  Bruno Haible  <bruno@clisp.org>
56165
56166         * lib/set-mode-acl.c: Renamed from lib/acl.c.
56167         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
56168         (Makefile.am): Update lib_SOURCES.
56169
56170 2008-05-25  Bruno Haible  <bruno@clisp.org>
56171
56172         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
56173
56174 2008-05-25  Jim Meyering  <meyering@redhat.com>
56175
56176         useless-if-before-free: freed expr may have white-space differences
56177         * build-aux/useless-if-before-free: Recognize cases in which the
56178         freed expression differs from the tested one in embedded white
56179         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
56180         $1 was used, so we can't make any regexp shy.  Improved tests now
56181         detect this.
56182
56183         useless-if-before-free: accept white space in the expression.
56184         * build-aux/useless-if-before-free: For now, any white space
56185         in the expression must be identical in the free argument.
56186
56187         useless-if-before-free: efficiency tweak
56188         * build-aux/useless-if-before-free: Make the expression-matching
56189         regexp "shy".
56190         Make the *outer* regexp shy, not the expr-matching one.
56191
56192         update code-in-comment to accept cast of free arg
56193         * build-aux/useless-if-before-free: Update regexp.
56194
56195 2008-05-25  Bruno Haible  <bruno@clisp.org>
56196
56197         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
56198         * modules/copy-file-tests (Files, Makefile.am): Update.
56199         * tests/test-copy-file.c (func_test_copy): Update.
56200
56201 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
56202
56203         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
56204
56205 2008-05-23  Bruno Haible  <bruno@clisp.org>
56206
56207         Improve support for ACLs on OSF/1.
56208         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
56209         Remove fallback for unknown flavors of ACLs.
56210
56211 2008-05-22  Bruno Haible  <bruno@clisp.org>
56212
56213         Add support for ACLs on OSF/1.
56214         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
56215         replacements.
56216         (acl_free_text): New macro fallback.
56217         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
56218         acl_free.
56219         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
56220         acl_free_text function. Require AC_C_INLINE.
56221
56222 2008-05-22  Bruno Haible  <bruno@clisp.org>
56223
56224         Make copy_acl work on MacOS X 10.5.
56225         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
56226         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
56227         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
56228         If MODE_INSIDE_ACL, don't assume that every system has the same text
56229         representation for ACLs as FreeBSD.
56230         * lib/copy-acl.c (copy_acl): Add support for platforms with
56231         !MODE_INSIDE_ACL.
56232         * lib/file-has-acl.c (file_has_acl): Likewise.
56233         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
56234         FreeBSD, MacOS X, or IRIX, respectively.
56235
56236 2008-05-22  Bruno Haible  <bruno@clisp.org>
56237
56238         * lib/acl.h: Don't include <sys/acl.h>.
56239         (GETACLCNT): Move fallback to lib/acl-internal.h.
56240         * lib/acl-internal.h: Include <sys/acl.h> here.
56241         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
56242
56243 2008-05-22  Bruno Haible  <bruno@clisp.org>
56244
56245         Split off copy_acl function to separate file.
56246         * lib/copy-acl.c: New file, extracted from lib/acl.c.
56247         * lib/acl.c (copy_acl): Moved function to separate file.
56248         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
56249         * modules/acl (Files): Add lib/copy-acl.c.
56250         (Makefiles.am): Augment lib_SOURCES.
56251
56252 2008-05-22  Bruno Haible  <bruno@clisp.org>
56253
56254         * modules/copy-file-tests: New file.
56255         * tests/test-copy-file.sh: New file.
56256         * tests/test-copy-file.c: New file.
56257         * tests/test-copy-file-sameacls.c: New file.
56258
56259 2008-05-22  Eric Blake  <ebb9@byu.net>
56260
56261         Avoid gcc warning.
56262         * tests/test-memcmp.c (main): Pass NULL indirectly.
56263
56264 2008-05-21  Bruno Haible  <bruno@clisp.org>
56265
56266         Add reference doc about ACLs.
56267         * doc/acl-resources.txt: New file.
56268         * doc/acl-cygwin.txt: New file.
56269
56270 2008-05-21  Bruno Haible  <bruno@clisp.org>
56271
56272         Avoid one more warning from gcc.
56273         * lib/vasnprintf.c (IF_LINT): Update comments.
56274         (VASNPRINTF): Use it also for the 'prefix' array initializer.
56275
56276 2008-05-21  Jim Meyering  <meyering@redhat.com>
56277
56278         avoid a warning from gcc
56279         * lib/vasnprintf.c (IF_LINT): Define.
56280         (scale10_round_decimal_long_double):
56281         Use it to avoid a "may be used uninitialized" warning.
56282         (scale10_round_decimal_double): Likewise.
56283
56284 2008-05-21  Simon Josefsson  <simon@josefsson.org>
56285
56286         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
56287         declared.
56288
56289 2008-05-20  Bruno Haible  <bruno@clisp.org>
56290
56291         * tests/test-memcmp.c (main): Test also the sign of the result. Test
56292         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
56293
56294 2008-05-20  Simon Josefsson  <simon@josefsson.org>
56295
56296         * modules/memcmp-tests: New file.
56297         * tests/test-memcmp.c: New file.
56298
56299 2008-05-19  Bruno Haible  <bruno@clisp.org>
56300
56301         * modules/propername (Notice, configure.ac): Put quoted "..." into
56302         --keyword option.
56303         * lib/propername.h: Update comments accordingly.
56304         Reported by Eric Blake.
56305
56306 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
56307
56308         * modules/getpass-gnu (Depends-on): Add fseeko.
56309
56310 2008-05-19  Simon Josefsson  <simon@josefsson.org>
56311
56312         * modules/base64-tests: New file.
56313
56314 2008-05-19  Bo Borgerson <gigabo@gmail.com>
56315
56316         * lib/base64.c (base64_decode_ctx): If a decode context structure
56317         was passed in use it to ignore newlines.  If a context structure
56318         was _not_ passed in, continue to treat newlines as garbage (this
56319         is the historical behavior).  Formerly base64_decode.
56320         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
56321         takes a decode context structure.
56322         * lib/base64.h (base64_decode): Macro for four-argument calls.
56323         (base64_decode_alloc): Likewise.
56324         * lib/base64.c (base64_decode_ctx): If a decode context structure
56325         was passed in use it to ignore newlines.  If a context structure
56326         was _not_ passed in, continue to treat newlines as garbage (this
56327         is the historical behavior).  Formerly base64_decode.
56328         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
56329         takes a decode context structure.
56330         * lib/base64.h (base64_decode): Macro for four-argument calls.
56331         (base64_decode_alloc): Likewise.
56332
56333 2008-05-19  Jim Meyering  <meyering@redhat.com>
56334
56335         avoid a warning from gcc
56336         * lib/trim.c (IF_LINT): Define.
56337         (trim2): Use it to avoid a "may be used uninitialized" warning.
56338
56339         Fix doc typo.
56340         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
56341
56342 2008-05-19  Bruno Haible  <bruno@clisp.org>
56343
56344         * doc/glibc-functions/getpass.texi: Document limits of other
56345         implementations.
56346
56347 2008-05-19  Simon Josefsson  <simon@josefsson.org>
56348             Bruno Haible <bruno@clisp.org>
56349
56350         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
56351
56352 2008-05-18  Bruno Haible  <bruno@clisp.org>
56353
56354         * modules/propername: New file, from GNU gettext.
56355         * lib/propername.h: New file, from GNU gettext.
56356         * lib/propername.c: New file, from GNU gettext.
56357         * MODULES.html.sh (Internationalization functions): Add propername.
56358
56359 2008-05-16  Jim Meyering  <meyering@redhat.com>
56360             Bruno Haible  <bruno@clisp.org>
56361
56362         Avoid some warnings from "gcc -Wshadow".
56363         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
56364
56365 2008-05-15  Eric Blake  <ebb9@byu.net>
56366
56367         Extend previous patch to cygwin 1.7.0.
56368         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
56369         fast implementation in cygwin >= 1.7.0.
56370         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
56371         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
56372
56373 2008-05-15  Bruno Haible  <bruno@clisp.org>
56374
56375         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
56376         implementation in glibc >= 2.9.
56377         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
56378         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
56379
56380 2008-05-15  Bruno Haible  <bruno@clisp.org>
56381
56382         * MODULES.html.sh (Internationalization functions): Remove linebreak.
56383         (Unicode string functions): Add unilbrk/*.
56384         Reported by Karl Berry.
56385
56386 2008-05-15  Eric Blake  <ebb9@byu.net>
56387
56388         Fix violation of <stdbool.h> replacement in regex.
56389         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
56390         * lib/regexec.c (re_search_internal): Likewise.
56391         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
56392
56393 2008-05-15  Jim Meyering  <meyering@redhat.com>
56394
56395         avoid distracting test output when git or cvs is not found
56396         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
56397         * tests/test-vc-list-files-git.sh: Likewise.
56398
56399 2008-05-15  Eric Blake  <ebb9@byu.net>
56400
56401         Glibc finally accepted the memmem speedup code, bugzilla #5514.
56402         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
56403         glibc version.
56404         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
56405         * doc/posix-functions/strstr.texi (strstr): Likewise.
56406         * lib/str-two-way.h (MAX): Sychronize with glibc.
56407
56408 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
56409
56410         * lib/regcomp.c (optimize_utf8): Add a note on why we test
56411         opr.ctx_type.
56412         (calc_first): Initialize constraint field.
56413         (duplicate_node_closure): Use it instead of special casing ANCHORS.
56414         Fix grammar.
56415         (duplicate_node): Merge constraint field for all node types.
56416         (calc_eclosure_iter): Look at constraint field for all node types.
56417         * lib/regex_internal.c (create_cd_newstate): Don't look at
56418         opr.ctx_type.
56419
56420 2008-05-14  Bruno Haible  <bruno@clisp.org>
56421
56422         Help GCC to do better code generation.
56423         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
56424         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
56425         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
56426         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
56427         Declare with attribute 'malloc' if supported.
56428
56429 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
56430
56431         use "echo STR|wc -c" rather than unportable "expr length STR"
56432         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
56433         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
56434
56435 2008-05-14  Jim Meyering  <meyering@redhat.com>
56436
56437         use dd ibs=$n count=1 ... rather than less-portable head -c$n
56438         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
56439         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
56440         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
56441         via Collin Lasse.
56442
56443 2008-05-14  Eric Blake  <ebb9@byu.net>
56444
56445         Avoid quadratic growth in gl_LIBSOURCES.
56446         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
56447         Suggested by Bruno Haible.
56448
56449         Test xmemdup0.
56450         * modules/xmemdup0-tests: New file.
56451         * tests/test-xmemdup0.c: Likewise.
56452
56453 2008-05-13  Eric Blake  <ebb9@byu.net>
56454
56455         Split xmemdup0 into its own module.
56456         * modules/xmemdup0: New file.
56457         * lib/xmemdup0.h: Likewise.
56458         * lib/xmemdup0.c: Likewise.
56459         * MODULES.html.sh (Memory management functions): Add xmemdup0.
56460         * lib/xalloc.h (xmemdup0): Remove.
56461         * lib/xmalloc.c (xmemdup0): Likewise.
56462
56463 2008-05-13  Eric Blake  <ebb9@byu.net>
56464             Bruno Haible  <bruno@clisp.org>
56465
56466         Reduce number of forks required during autoconf.
56467         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
56468         and gl_LIBSOURCES_DIR.
56469         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
56470         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
56471         m4_syscmd per file.
56472         <m4_foreach_w>: Move...
56473         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
56474
56475 2008-05-13  Eric Blake  <ebb9@byu.net>
56476
56477         * gnulib-tool: Fix various comment typos.
56478
56479 2008-05-12  Bruno Haible  <bruno@clisp.org>
56480
56481         Tailor the linebreaking algorithm.
56482         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
56483
56484 2008-05-12  Bruno Haible  <bruno@clisp.org>
56485
56486         Update to Unicode 5.0.0.
56487         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
56488         LBP_JV, LBP_JT. Redistribute values.
56489         (unilbrk_table): Change size.
56490         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
56491         Unicode TR#14 rev. 22.
56492         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
56493         LBP_JV, LBP_JT. Redistribute values.
56494         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
56495         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
56496         Update.
56497         * lib/unilbrk/lbrkprop1.h: Regenerated.
56498         * lib/unilbrk/lbrkprop2.h: Regenerated.
56499         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
56500         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
56501         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
56502         Likewise.
56503         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
56504         Likewise.
56505         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
56506         result.
56507         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
56508         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
56509         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
56510         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
56511         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
56512         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
56513
56514 2008-05-11  Bruno Haible  <bruno@clisp.org>
56515
56516         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
56517
56518 2008-05-11  Bruno Haible  <bruno@clisp.org>
56519
56520         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
56521         * modules/unilbrk/gen-lbrk: New file.
56522
56523 2008-05-11  Bruno Haible  <bruno@clisp.org>
56524
56525         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
56526         * m4/sha512.m4 (gl_SHA512): Likewise.
56527
56528 2008-05-11  Jim Meyering  <meyering@redhat.com>
56529
56530         New modules: crypto/sha256, crypto/sha512 (from coreutils)
56531         * modules/crypto/sha256: New file.
56532         * modules/crypto/sha512: Likewise.
56533         * lib/sha256.c: Likewise.
56534         * lib/sha256.h: Likewise.
56535         * lib/sha512.c: Likewise.
56536         * lib/sha512.h: Likewise.
56537         * lib/u64.h: Likewise.
56538         * m4/sha256.m4: Likewise.
56539         * m4/sha512.m4: Likewise.
56540         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
56541
56542 2008-05-10  Bruno Haible  <bruno@clisp.org>
56543
56544         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
56545         (Input/Output <stdio.h>): Add xprintf.
56546         (Signal handling <signal.h>): Add strsignal.
56547         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
56548         (Core language properties): Add func.
56549         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
56550         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
56551         strings.
56552         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
56553         (Input/output): New section.
56554         (File system functions): Add openat-die, stat-macros.
56555         (Networking functions): Add sockets.
56556         (Unicode string functions): Add unictype/*.
56557         (Support for building libraries and executables): Add gperf.
56558         (Support for building documentation): Add agpl-3.0.
56559         (Misc): Add nocrash.
56560
56561 2008-05-10  Bruno Haible  <bruno@clisp.org>
56562
56563         * modules/unictype/gen-ctype: New file.
56564
56565 2008-05-10  Jim Meyering  <meyering@redhat.com>
56566
56567         Make chdir-safer.c more efficient on a system with no symlinks.
56568         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
56569         also if ELOOP is zero.  Suggested by Bruno Haible.
56570
56571         Make chdir-safer.c slightly safer.
56572         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
56573         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
56574
56575         Avoid compile failure on systems without ELOOP (like mingw).
56576         * lib/chdir-safer.c (ELOOP): Define if not already defined.
56577         Reported by Bruno Haible.
56578
56579 2008-05-10  Bruno Haible  <bruno@clisp.org>
56580
56581         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
56582         (is_utf8_encoding): Use a case-insensitive comparison.
56583         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
56584         streq.
56585
56586 2008-05-10  Bruno Haible  <bruno@clisp.org>
56587
56588         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
56589         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
56590         * lib/unilbrk/ulc-common.h (iconv_string_length,
56591         iconv_string_keeping_offsets): Remove declarations.
56592         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
56593         Don't include <iconv.h>, streq.h, xsize.h.
56594         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
56595         conversion.
56596         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
56597         <iconv.h>, streq.h, xsize.h.
56598         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
56599         conversion.
56600         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
56601         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
56602         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
56603         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
56604
56605 2008-05-10  Bruno Haible  <bruno@clisp.org>
56606
56607         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
56608         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
56609
56610         * modules/unilbrk/u32-width-linebreaks-tests: New file.
56611         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
56612
56613         * modules/unilbrk/u16-width-linebreaks-tests: New file.
56614         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
56615
56616         * modules/unilbrk/u8-width-linebreaks-tests: New file.
56617         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
56618
56619         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
56620         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
56621
56622         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
56623         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
56624
56625         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
56626         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
56627
56628         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
56629         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
56630
56631 2008-05-10  Bruno Haible  <bruno@clisp.org>
56632
56633         Split up 'linebreak' module.
56634         * lib/unilbrk.h: New file, based on lib/linebreak.h.
56635         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
56636         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
56637         modifications.
56638         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
56639         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
56640         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
56641         lib/linebreak.c.
56642         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
56643         lib/linebreak.c.
56644         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
56645         lib/linebreak.c.
56646         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
56647         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
56648         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
56649         lib/linebreak.c.
56650         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
56651         lib/linebreak.c.
56652         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
56653         lib/linebreak.c.
56654         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
56655         lib/linebreak.c.
56656         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
56657         lib/linebreak.c.
56658         * modules/unilbrk/base: New file.
56659         * modules/unilbrk/tables: New file.
56660         * modules/unilbrk/u8-possible-linebreaks: New file.
56661         * modules/unilbrk/u16-possible-linebreaks: New file.
56662         * modules/unilbrk/u32-possible-linebreaks: New file.
56663         * modules/unilbrk/ulc-common: New file.
56664         * modules/unilbrk/ulc-possible-linebreaks: New file.
56665         * modules/unilbrk/u8-width-linebreaks: New file.
56666         * modules/unilbrk/u16-width-linebreaks: New file.
56667         * modules/unilbrk/u32-width-linebreaks: New file.
56668         * modules/unilbrk/ulc-width-linebreaks: New file.
56669         * lib/linebreak.h: Remove file.
56670         * lib/linebreak.c: Remove file.
56671         * m4/linebreak.m4: Remove file.
56672         * modules/linebreak: Remove file.
56673         * NEWS: Mention the changes.
56674
56675 2008-05-09  Eric Blake  <ebb9@byu.net>
56676
56677         Add xmemdup0.
56678         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
56679         implementation.
56680         * lib/xmalloc.c (xmemdup0): New C implementation.
56681
56682 2008-05-08  Bruno Haible  <bruno@clisp.org>
56683
56684         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
56685
56686 2008-05-07  Eric Blake  <ebb9@byu.net>
56687
56688         Support cross-compilation of <wctype.h>.
56689         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
56690         AC_CACHE_CHECK.
56691
56692 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
56693
56694         * build-aux/vc-list-files: Add support for bzr.
56695
56696 2008-05-03  Jim Meyering  <meyering@redhat.com>
56697
56698         avoid failed assertion with tight malloc
56699         * tests/test-getndelim2.c: Correct an off-by-one assertion.
56700
56701 2008-05-03  Simon Josefsson  <simon@josefsson.org>
56702
56703         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
56704         are needed from arpa/inet.h.
56705         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
56706         Reported by Bruno Haible.
56707
56708 2008-05-02  Jim Meyering  <meyering@redhat.com>
56709
56710         avoid compilation error on FreeBSD 6
56711         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
56712
56713 2008-05-01  Jim Meyering  <meyering@redhat.com>
56714
56715         useless-if-before-free: correct --help's exit status description
56716         * build-aux/useless-if-before-free (usage): Like grep, exit 0
56717         for one or more matches, etc.  Reported by Bruno Haible.
56718
56719         vc-list-files: make the stand-alone gnulib test work
56720         * modules/vc-list-files-tests (configure.ac):
56721         Define and AC_SUBST abs_aux_dir.
56722         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
56723         $(abs_top_srcdir) to each script and having each of them
56724         duplicate the work of setting PATH, set PATH here, using
56725         the new variable, abs_aux_dir instead.
56726         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
56727         * tests/test-vc-list-files-git.sh: Likewise.
56728         Reported by Bruno Haible.
56729
56730 2008-05-01  Bruno Haible  <bruno@clisp.org>
56731
56732         * lib/getndelim2.c (getndelim2): Fix newsize computation during
56733         reallocation. Rename 'done' to 'found_delimiter'.
56734
56735 2008-05-01  Jim Meyering  <meyering@redhat.com>
56736
56737         vc-list-files: accommodate /bin/sh like the one from Solaris 10
56738         * build-aux/vc-list-files: Use `...`, not $(...).
56739
56740 2008-04-30  Jim Meyering  <meyering@redhat.com>
56741
56742         add tests for vc-list-files
56743         * modules/vc-list-files-tests: New module.
56744         * tests/test-vc-list-files-cvs.sh: New file.
56745         * tests/test-vc-list-files-git.sh: New file.
56746
56747         avoid a warning from gcc
56748         * lib/getndelim2.c (IF_LINT): Define.
56749         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
56750
56751         vc-list-files: work properly with build-aux/cvsu, too
56752         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
56753         to all cvs-based clauses.
56754
56755         vc-list-files: work properly in the CVS+awk case, too
56756         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
56757
56758         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
56759         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
56760         take more than one file argument, so .  Add quotes, just in case $dir
56761         ever contains a shell meta-character.  Prompted by Soren Hansen in
56762         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
56763
56764 2008-04-29  Eric Blake  <ebb9@byu.net>
56765
56766         Optimize getndelim2 to use block operations when possible.
56767         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
56768         freadseek, and memchr2.
56769         * lib/getndelim2.c (getndelim2): Use them for block reads.
56770
56771 2008-04-29  Bruno Haible  <bruno@clisp.org>
56772
56773         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
56774         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
56775         * modules/inet_ntop (Depends-on): Add extensions.
56776         * modules/inet_pton (Depends-on): Likewise.
56777         Reported by Simon Josefsson.
56778
56779 2008-04-29  Jim Meyering  <meyering@redhat.com>
56780
56781         When the is more than one match in a block, match all of them.
56782         * build-aux/useless-if-before-free: Iterate through each block
56783         until there are no more matches.
56784
56785         Fix broken useless-if-before-free script.
56786         * build-aux/useless-if-before-free: Fix typo: missing "?" after
56787         the expression to match cast of argument to free-like function.
56788
56789 2008-04-29  Eric Blake  <ebb9@byu.net>
56790
56791         Use new header.
56792         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
56793
56794 2008-04-29  Jim Meyering  <meyering@redhat.com>
56795
56796         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
56797         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
56798         by gnulib to exist and to declare e.g., inet_ntop.
56799         Don't include "inet_ntop.h", now removed.
56800
56801         * m4/arpa_inet_h.m4: Remove trailing blanks.
56802
56803 2008-04-29  Eric Blake  <ebb9@byu.net>
56804
56805         Silence valgrind on safe reads beyond potential array bounds.
56806         * lib/rawmemchr.valgrind: New file.
56807         * lib/strchrnul.valgrind: Likewise.
56808         * modules/rawmemchr (Files): Distribute new file.
56809         * modules/strchrnul (Files): Likewise.
56810         Suggested by Bruno Haible.
56811
56812 2008-04-29  Bruno Haible  <bruno@clisp.org>
56813
56814         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
56815         (inet_ntop, inet_pton): Change portability warning's wording.
56816         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
56817         Invoke gl_CHECK_NEXT_HEADERS.
56818         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
56819         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
56820         set ARPA_INET_H.
56821         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
56822         * modules/arpa_inet (Description): No longer only for systems that
56823         lack it.
56824         (Depends-on): Add include_next.
56825         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
56826         HAVE_ARPA_INET_H.
56827
56828 2008-04-29  Jim Meyering  <meyering@redhat.com>
56829
56830         * modules/mkdir (License): Re-license as LGPLv2+.
56831
56832 2008-04-29  Bruno Haible  <bruno@clisp.org>
56833
56834         * modules/rawmemchr (Maintainer): Set to Eric.
56835         * modules/strchrnul (Maintainer): Likewise.
56836
56837 2008-04-29  Simon Josefsson  <simon@josefsson.org>
56838
56839         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
56840         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
56841
56842         * modules/arpa_inet (arpa/inet.h): Use them.
56843
56844 2008-04-28  Eric Blake  <ebb9@byu.net>
56845
56846         Test getndelim2.
56847         * modules/getndelim2-tests: New file.
56848         * tests/test-getndelim2.c: Likewise.
56849         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
56850         stream.
56851         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
56852
56853         * MODULES.html.sh: Document new module.
56854
56855 2008-04-20  Bruno Haible  <bruno@clisp.org>
56856
56857         * lib/c-stack.c (die): Use raise.
56858         * modules/c-stack (Depends-on): Add raise.
56859
56860 2008-04-28  Bruno Haible  <bruno@clisp.org>
56861
56862         Expect rpmatch to be declared.
56863         * lib/yesno.c (rpmatch): Remove declaration.
56864
56865         Declare rpmatch.
56866         * lib/stdlib.in.h (rpmatch): New declaration.
56867         * lib/rpmatch.c: Include <stdlib.h> first.
56868         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
56869         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
56870         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
56871         HAVE_RPMATCH.
56872         * modules/rpmatch (Depends-on): Add stdlib, extensions.
56873         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
56874         (Include): Set to <stdlib.h>.
56875         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
56876         HAVE_RPMATCH.
56877         * NEWS: Document the change.
56878
56879 2008-04-28  Bruno Haible  <bruno@clisp.org>
56880
56881         Change rpmatch to use nl_langinfo when appropriate.
56882         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
56883         (N_): New macro.
56884         (localized_pattern): New function/macro.
56885         (try): Remove match, nomatch arguments. Copy the pattern into safe
56886         memory before caching it.
56887         (rpmatch): Use localized_pattern. Add translator comments.
56888         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
56889         Suggested by Eric Blake.
56890         * modules/rpmatch (Depends-on): Add stdbool.
56891
56892 2008-04-28  Eric Blake  <ebb9@byu.net>
56893
56894         Add rawmemchr module, matching glibc.
56895         * modules/string (Makefile.am): New indicator.
56896         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
56897         * lib/string.in.h (rawmemchr): Declare when appropriate.
56898         * modules/rawmemchr: New file.
56899         * m4/rawmemchr.m4: Likewise.
56900         * lib/rawmemchr.c: Likewise.
56901         * modules/rawmemchr-tests: Likewise.
56902         * tests/test-rawmemchr.c: Likewise.
56903         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
56904         module.
56905         * modules/strchrnul (Depends-on): Add rawmemchr.
56906         * lib/strchrnul.c (strchrnul): Optimize a corner case.
56907
56908         Whitespace cleanup.
56909         * tests/test-strchrnul.c: Reindent.
56910         * lib/strchrnul.c: Likewise.
56911
56912         Optimize and test strchrnul.
56913         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
56914         * modules/strchrnul-tests: New file.
56915         * tests/test-strchrnul.c: Likewise.
56916
56917         Remove intprops dependency.
56918         * modules/memchr (Depends-on): Remove intprops.
56919         * modules/memrchr (Depends-on): Likewise.
56920         * modules/memchr2 (Depends-on): Likewise.
56921         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
56922         * lib/memrchr.c (__memrchr): Likewise.
56923         * lib/memrchr2.c (memchr2): Likewise.
56924         Reported by Simon Josefsson.
56925
56926 2008-04-28  Simon Josefsson  <simon@josefsson.org>
56927
56928         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
56929         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56930
56931 2008-04-28  Simon Josefsson  <simon@josefsson.org>
56932
56933         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
56934
56935         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
56936
56937         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
56938
56939         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
56940         declarations.
56941         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
56942
56943         * m4/inet_pton.m4: Don't check for header files.
56944
56945         * m4/inet_ntop.m4: Don't check for header files.
56946
56947 2008-04-28  Simon Josefsson  <simon@josefsson.org>
56948
56949         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
56950         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
56951         trigger for cygwin).
56952         Reported by Bruno Haible  <bruno@clisp.org>.
56953
56954 2008-04-28  Bruno Haible  <bruno@clisp.org>
56955
56956         * doc/posix-functions/strdup.texi: Mention mingw problem.
56957
56958 2008-04-27  Bruno Haible  <bruno@clisp.org>
56959
56960         * modules/stat-time-tests (Depends-on): Add sleep.
56961         * tests/test-stat-time.c (force_unlink): New function.
56962         (cleanup): Use it.
56963         (test_mtime): Remove the ctime related tests.
56964         (test_ctime): New function, containing the ctime related tests.
56965         (main): Call test_ctime, except on native Windows platforms.
56966
56967 2008-04-27  Bruno Haible  <bruno@clisp.org>
56968
56969         * lib/rpmatch.c (rpmatch): Add some comments.
56970         Reported by James Youngman <jay@gnu.org>.
56971
56972 2008-04-27  Bruno Haible  <bruno@clisp.org>
56973
56974         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
56975         quiet NaNs.
56976
56977 2008-04-27  Bruno Haible  <bruno@clisp.org>
56978
56979         Make test-yesno.sh work on mingw.
56980         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
56981         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
56982         (main): Set stdin to binary mode.
56983         * modules/yesno-tests (Depends-on): Add binary-io.
56984
56985 2008-04-27  Bruno Haible  <bruno@clisp.org>
56986
56987         Fix 'isfinite' on x86, x86_64, ia64 platforms.
56988         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
56989         argument that lie outside the IEEE 854 domain.
56990         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
56991         (gl_ISFINITE): Use it.
56992         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
56993
56994 2008-04-27  Bruno Haible  <bruno@clisp.org>
56995
56996         Allow local renaming in config.h.
56997         * lib/memrchr.c (memrchr): Don't undefine outside libc.
56998
56999 2008-04-27  Bruno Haible  <bruno@clisp.org>
57000
57001         * lib/memchr.c (__memchr): Change type of 'i'.
57002         * lib/memchr2.c (memchr2): Likewise.
57003
57004 2008-04-26  Eric Blake  <ebb9@byu.net>
57005         and Bruno Haible  <bruno@clisp.org>
57006
57007         Optimize and test memrchr.
57008         * modules/memrchr (Depends-on): Add intprops.
57009         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
57010         * modules/memrchr-tests: New file.
57011         * tests/test-memrchr.c: New file.
57012
57013 2008-04-26  Bruno Haible  <bruno@clisp.org>
57014
57015         Add tentative support for DragonFly BSD.
57016         * lib/stdio-impl.h: Add macros for DragonFly BSD.
57017         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
57018         fp.
57019         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
57020         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
57021         * lib/fpurge.c (fpurge): Likewise.
57022         * lib/freadable.c (freaadable): Likewise.
57023         * lib/freadahead.c (freadahead): Likewise.
57024         * lib/freading.c (freading): Likewise.
57025         * lib/freadptr.c (freadptr): Likewise.
57026         * lib/freadseek.c (freadptrinc): Likewise.
57027         * lib/fseeko.c (fseeko): Likewise.
57028         * lib/fseterr.c (fseterr): Likewise.
57029         * lib/fwritable.c (fwritable): Likewise.
57030         * lib/fwriting.c (fwriting): Likewise.
57031
57032 2008-04-26  Bruno Haible  <bruno@clisp.org>
57033
57034         * lib/stdio-impl.h: New file.
57035         * lib/fbufmode.c: Include stdio-impl.h.
57036         (fbufmode): Use fp_, remove redundant #defines.
57037         * lib/fflush.c: Include stdio-impl.h.
57038         (clear_ungetc_buffer): Remove redundant #defines.
57039         * lib/fpurge.c: Include stdio-impl.h.
57040         (fpurge): Remove redundant #defines.
57041         * lib/freadable.c: Include stdio-impl.h.
57042         (freadable): Remove redundant #defines.
57043         * lib/freadahead.c: Include stdio-impl.h.
57044         (freadahead): Remove redundant #defines.
57045         * lib/freading.c: Include stdio-impl.h.
57046         (freading): Remove redundant #defines.
57047         * lib/freadptr.c: Include stdio-impl.h.
57048         (freadptr): Remove redundant #defines.
57049         * lib/freadseek.c: Include stdio-impl.h.
57050         (freadptrinc): Remove redundant #defines.
57051         * lib/fseeko.c: Include stdio-impl.h.
57052         (rpl_fseeko): Remove redundant #defines.
57053         * lib/fseterr.c: Include stdio-impl.h.
57054         (fseterr): Remove redundant #defines.
57055         * lib/fwritable.c: Include stdio-impl.h.
57056         (fwritable: Remove redundant #defines.
57057         * lib/fwriting.c: Include stdio-impl.h.
57058         (fwriting): Remove redundant #defines.
57059         * modules/fbufmode (Files): Add lib/stdio-impl.h.
57060         * modules/fflush (Files): Likewise.
57061         * modules/fpurge (Files): Likewise.
57062         * modules/freadable (Files): Likewise.
57063         * modules/freadahead (Files): Likewise.
57064         * modules/freading (Files): Likewise.
57065         * modules/freadptr (Files): Likewise.
57066         * modules/freadseek (Files): Likewise.
57067         * modules/fseeko (Files): Likewise.
57068         * modules/fseterr (Files): Likewise.
57069         * modules/fwritable (Files): Likewise.
57070         * modules/fwriting (Files): Likewise.
57071
57072 2008-04-26  Bruno Haible  <bruno@clisp.org>
57073
57074         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
57075         restore_seek_optimization, update_fpos_cache): New functions, extracted
57076         from rpl_fflush.
57077         (rpl_fflush): Use them.
57078         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
57079         (gl_REPLACE_FFLUSH): Use it.
57080
57081 2008-04-26  Bruno Haible  <bruno@clisp.org>
57082
57083         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
57084         on Solaris.
57085         * tests/test-xstrtoimax.sh: Likewise.
57086         * tests/test-xstrtoumax.sh: Likewise.
57087         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57088
57089 2008-04-26  Bruno Haible  <bruno@clisp.org>
57090
57091         * modules/memchr-tests: New file.
57092         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
57093
57094 2008-04-26  Eric Blake  <ebb9@byu.net>
57095             Bruno Haible  <bruno@clisp.org>
57096
57097         * lib/memchr.c: Include intprops.h.
57098         (__memchr): Optimize parallel detection of matching bytes. Rename local
57099         variables. Add explanatory comments.
57100
57101 2008-04-26  Bruno Haible  <bruno@clisp.org>
57102
57103         Fix module 'memchr', broken since 2000-10-28.
57104         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
57105
57106 2008-04-26  Bruno Haible  <bruno@clisp.org>
57107
57108         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
57109         comments.
57110
57111 2008-04-25  Eric Blake  <ebb9@byu.net>
57112
57113         Use native fstatat on cygwin 1.7.0.
57114         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
57115         first.
57116
57117 2008-04-23  Eric Blake  <ebb9@byu.net>
57118
57119         Improve memchr2 performance.
57120         * lib/memchr2.c (memchr2): Further optimize parallel detection of
57121         NUL bytes.
57122         * modules/memchr2 (Depends-on): Use intprops.h.
57123
57124 2008-04-23  Simon Josefsson  <simon@josefsson.org>
57125
57126         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
57127         an inline function instead of a CPP macro.  Patch by Ben Pfaff
57128         <blp@cs.stanford.edu>.
57129
57130 2008-04-23  Simon Josefsson  <simon@josefsson.org>
57131
57132         * lib/arpa_inet.in.h: New file.
57133
57134         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
57135         (Makefile.am): Sed in substitute header file.
57136
57137         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
57138         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
57139
57140         * modules/inet_ntop (configure.ac): Use
57141         gl_ARPA_INET_MODULE_INDICATOR.
57142
57143         * modules/inet_pton (configure.ac): Use
57144         gl_ARPA_INET_MODULE_INDICATOR.
57145
57146 2008-04-22  Jim Meyering  <meyering@redhat.com>
57147
57148         * modules/verify (License): Re-license as LGPLv2+.
57149
57150 2008-04-22  Simon Josefsson  <simon@josefsson.org>
57151
57152         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
57153         parameter to void* as per POSIX standard (MinGW uses char*).
57154
57155 2008-04-21  Bruno Haible  <bruno@clisp.org>
57156
57157         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
57158         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
57159         Define to replacements if REPLACE_ISWCNTRL is 1.
57160         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
57161         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
57162         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
57163         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
57164         what it fixes.
57165         * doc/posix-functions/iswalpha.texi: Likewise.
57166         * doc/posix-functions/iswblank.texi: Likewise.
57167         * doc/posix-functions/iswcntrl.texi: Likewise.
57168         * doc/posix-functions/iswdigit.texi: Likewise.
57169         * doc/posix-functions/iswgraph.texi: Likewise.
57170         * doc/posix-functions/iswlower.texi: Likewise.
57171         * doc/posix-functions/iswprint.texi: Likewise.
57172         * doc/posix-functions/iswpunct.texi: Likewise.
57173         * doc/posix-functions/iswspace.texi: Likewise.
57174         * doc/posix-functions/iswupper.texi: Likewise.
57175         * doc/posix-functions/iswxdigit.texi: Likewise.
57176         Reported by Alain Guibert.
57177
57178 2008-04-21  Bruno Haible  <bruno@clisp.org>
57179
57180         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
57181         Patch by Alain Guibert.
57182
57183 2008-04-21  Bruno Haible  <bruno@clisp.org>
57184
57185         Fix test failures on mingw.
57186         * tests/test-xstrtol.c (print_no_progname): New function.
57187         (main): Install it in error_print_progname hook.
57188         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
57189         * tests/test-xstrtoimax.sh: Likewise.
57190         * tests/test-xstrtoumax.sh: Likewise.
57191
57192 2008-04-21  Bruno Haible  <bruno@clisp.org>
57193
57194         Fix test failure on mingw.
57195         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
57196
57197 2008-04-21  Bruno Haible  <bruno@clisp.org>
57198
57199         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
57200         Actually assign a value.
57201
57202 2008-04-20  Bruno Haible  <bruno@clisp.org>
57203
57204         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
57205         take 2.
57206         * lib/canonicalize.c (canonicalize_file_name): Elide if the
57207         'canonicalize-lgpl' module is also used.
57208         * lib/canonicalize-lgpl.c: Undo last change.
57209         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
57210
57211 2008-04-20  Bruno Haible  <bruno@clisp.org>
57212
57213         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
57214         config.h. Provide _mkdir based fallback for mingw.
57215         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
57216         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
57217         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
57218         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
57219         rather than defining mkdir in config.h.
57220         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
57221         (gl_SYS_STAT_H_DEFAULTS): New macro.
57222         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
57223         HAVE_IO_H any more.
57224         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
57225         HAVE_DECL_MKDIR and HAVE_IO_H.
57226
57227 2008-04-20  Bruno Haible  <bruno@clisp.org>
57228
57229         * lib/isapipe.c: Port to native Windows platforms.
57230
57231 2008-04-20  Bruno Haible  <bruno@clisp.org>
57232
57233         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
57234
57235 2008-04-21  Eric Blake  <ebb9@byu.net>
57236
57237         Work around preprocessors that don't handle UINTMAX_MAX.
57238         * lib/memchr2.c (memchr2): Avoid embedded #if.
57239         Reported by Alain Guibert, fix suggested by Bruno Haible.
57240
57241 2008-04-21  Simon Josefsson  <simon@josefsson.org>
57242
57243         * doc/posix-functions/strftime.texi (strftime): Explain better
57244         Windows incompatibility.  Suggested by Micah Cowan
57245         <micah@cowan.name>.
57246
57247 2008-04-20  Bruno Haible  <bruno@clisp.org>
57248
57249         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
57250         unistr/u8-mblen.
57251
57252 2008-04-20  Bruno Haible  <bruno@clisp.org>
57253
57254         Fix test failure on platforms with non-GNU iconv.
57255         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
57256         (U_TO_U8): Use it, rather than u16_to_u8.
57257         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
57258         units at the end of the input string.
57259         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
57260
57261 2008-04-20  Bruno Haible  <bruno@clisp.org>
57262
57263         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
57264         when the resulting length is 0.
57265         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
57266
57267 2008-04-20  Bruno Haible  <bruno@clisp.org>
57268
57269         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
57270         works.
57271         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
57272
57273 2008-04-20  Bruno Haible  <bruno@clisp.org>
57274
57275         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
57276         * modules/tsearch-tests (configure.ac): Test for initstate function.
57277
57278 2008-04-20  Bruno Haible  <bruno@clisp.org>
57279
57280         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
57281         for nlink_t if missing.
57282         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
57283
57284 2008-04-19  Bruno Haible  <bruno@clisp.org>
57285
57286         Work around snprintf bug on Linux libc5.
57287         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
57288         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
57289         gl_SNPRINTF_SIZE1.
57290         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57291         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
57292         that test failed.
57293         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
57294         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
57295         * modules/snprintf (Files): Add m4/printf.m4.
57296         * modules/vsnprintf (Files): Likewise.
57297         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
57298         * doc/posix-functions/vsnprintf.texi: Likewise.
57299
57300 2008-04-19  Bruno Haible  <bruno@clisp.org>
57301
57302         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
57303         from 0.0058 to less than 10^-7.
57304
57305 2008-04-19  Bruno Haible  <bruno@clisp.org>
57306
57307         Fix rounding when a precision is given.
57308         * lib/vasnprintf.c (is_borderline): New function.
57309         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
57310         9...9x.
57311         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
57312         %e, %g.
57313         * tests/test-vasprintf-posix.c (test_function): Likewise.
57314         * tests/test-snprintf-posix.h (test_function): Likewise.
57315         * tests/test-sprintf-posix.h (test_function): Likewise.
57316         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
57317         * tests/test-printf-posix.h (test_function): Likewise.
57318         * tests/test-printf-posix.output: Update.
57319         Reported by John Darrington <john@darrington.wattle.id.au> via
57320         Ben Pfaff <blp@cs.stanford.edu>.
57321
57322 2008-04-18  Simon Josefsson  <simon@josefsson.org>
57323
57324         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
57325         Suggested by Bruno Haible <bruno@clisp.org>.
57326
57327 2008-04-17  Bruno Haible  <bruno@clisp.org>
57328
57329         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
57330         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
57331         implementation.
57332         Patch by Bruce Merry <bmerry@gmail.com>.
57333
57334 2008-04-17  Simon Josefsson  <simon@josefsson.org>
57335
57336         * doc/posix-functions/strftime.texi (strftime): Mention that %e
57337         doesn't work under Windows.
57338
57339 2008-04-16  Bruno Haible  <bruno@clisp.org>
57340
57341         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
57342         New macros.
57343         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
57344         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
57345         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
57346         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
57347         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
57348         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
57349         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
57350         macros.
57351         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
57352         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
57353         Northern Sotho, Uighur.
57354
57355 2008-04-16  Bruno Haible  <bruno@clisp.org>
57356
57357         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
57358         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
57359         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
57360         Reported by Daniel Bergström <daniel@octocode.com>.
57361
57362 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
57363             Bruno Haible  <bruno@clisp.org>
57364
57365         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
57366         function.
57367         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
57368         New functions, mostly extracted from gl_locale_name_default.
57369         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
57370
57371 2008-04-16  Eric Blake  <ebb9@byu.net>
57372
57373         Adjust strtod detection to catch glibc 2.7 bug.
57374         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
57375         Reported by John Gatewood Ham.
57376
57377 2008-04-16  Bruno Haible  <bruno@clisp.org>
57378
57379         Add tentative support for Linux libc5.
57380         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
57381         * lib/fpurge.c (fpurge): Likewise.
57382         * lib/freadable.c (freadable): Likewise.
57383         * lib/freadahead.c (freadahead): Likewise.
57384         * lib/freading.c (freading): Likewise.
57385         * lib/freadptr.c (freadptr): Likewise.
57386         * lib/freadseek.c (freadptrinc): Likewise.
57387         * lib/fseeko.c (rpl_fseeko): Likewise.
57388         * lib/fseterr.c (fseterr): Likewise.
57389         * lib/fwritable.c (fwritable): Likewise.
57390         * lib/fwriting.c (fwriting): Likewise.
57391         Reported by Alain Guibert <alguibert+bts@free.fr>.
57392
57393 2008-04-15  Bruno Haible  <bruno@clisp.org>
57394
57395         * modules/mathl (configure.ac): Define module indicator.
57396
57397 2008-04-15  Bruno Haible  <bruno@clisp.org>
57398
57399         * lib/logl.c (logl): Remove unused variables.
57400
57401 2008-04-15  Bruno Haible  <bruno@clisp.org>
57402
57403         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
57404         fails.
57405
57406 2008-04-15  Bruno Haible  <bruno@clisp.org>
57407
57408         * lib/trim.c (trim2): Fix argument of isspace() macro.
57409
57410 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
57411
57412         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
57413         to 0.
57414         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
57415
57416 2008-04-14  Bruno Haible  <bruno@clisp.org>
57417
57418         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
57419         AC_LANG_PROGRAM argument.
57420         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
57421         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
57422         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
57423         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
57424         * m4/math_h.m4 (gl_MATH_H): Likewise.
57425         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
57426         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
57427         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
57428         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
57429         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
57430         * m4/regex.m4 (gl_REGEX): Likewise.
57431         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
57432         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
57433         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
57434         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
57435         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
57436         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
57437         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
57438         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
57439
57440 2008-04-14  Jim Meyering  <meyering@redhat.com>
57441
57442         test-strtod: fix typos: s/abs/fabs/
57443         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
57444
57445 2008-04-13  Bruno Haible  <bruno@clisp.org>
57446
57447         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
57448         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
57449         module is also used and while not building the reloc-wrapper.
57450
57451 2008-04-13  Bruno Haible  <bruno@clisp.org>
57452
57453         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
57454
57455 2008-04-13  Bruno Haible  <bruno@clisp.org>
57456
57457         Fix AIX compilation failure introduced on 2008-04-02.
57458         * tests/test-frexp.c (exp): Undefine before redefining.
57459         * tests/test-frexpl.c (exp): Likewise.
57460
57461 2008-04-13  Bruno Haible  <bruno@clisp.org>
57462
57463         Work around a HP-UX stdio bug.
57464         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
57465         * tests/test-ftello.c (main): Likewise.
57466         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
57467         * doc/posix-functions/ftello.texi: Likewise.
57468
57469 2008-04-13  Bruno Haible  <bruno@clisp.org>
57470
57471         Make test-signbit pass on HP-UX/hppa.
57472         * tests/test-signbit.c (minus_zerol): New variable.
57473         (test_signbitl): Use it.
57474
57475 2008-04-13  Bruno Haible  <bruno@clisp.org>
57476
57477         Make truncl work on OSF/1 4.0.
57478         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
57479         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
57480         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
57481         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
57482         HAVE_DECL_TRUNCL.
57483         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
57484         HAVE_DECL_TRUNCL.
57485         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
57486
57487 2008-04-13  Bruno Haible  <bruno@clisp.org>
57488
57489         * lib/unictype.h: Remove trailing comma from enumeration definitions.
57490
57491 2008-04-13  Bruno Haible  <bruno@clisp.org>
57492
57493         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
57494         expression, so as to avoid HP-UX 11 cc compiler bug.
57495
57496 2008-04-13  Bruno Haible  <bruno@clisp.org>
57497
57498         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
57499
57500 2008-04-13  Bruno Haible  <bruno@clisp.org>
57501
57502         * lib/git-merge-changelog.c: Remove empty declaration outside of
57503         functions.
57504
57505 2008-04-13  Bruno Haible  <bruno@clisp.org>
57506
57507         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
57508
57509 2008-04-13  Bruno Haible  <bruno@clisp.org>
57510
57511         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
57512         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
57513         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
57514         also if it exists but lacks definitions of the SHUT_* macros.
57515         * modules/sys_socket (Description): Update.
57516         Reported by Elbert Pol <e.pol@chello.nl>.
57517
57518 2008-04-13  Bruno Haible  <bruno@clisp.org>
57519
57520         * lib/localcharset.c (OS2): Don't redefine if already defined.
57521         Reported by Elbert Pol <e.pol@chello.nl>.
57522
57523 2008-04-13  Bruno Haible  <bruno@clisp.org>
57524
57525         * lib/binary-io.h [__EMX__]: Include <io.h>.
57526         Reported by Elbert Pol <e.pol@chello.nl>.
57527
57528 2008-04-12  Bruno Haible  <bruno@clisp.org>
57529
57530         * lib/fpucw.h: Enable the definitions also for x86_64.
57531         Needed for NetBSD/x86_64.
57532         Reported by Thomas Klausner <tk@giga.or.at>.
57533
57534 2008-04-12  Bruno Haible  <bruno@clisp.org>
57535
57536         * tests/test-strtod.c: Include isnand.h.
57537         (main): Use isnand instead of isnan.
57538         Reported by Jim Meyering.
57539
57540 2008-04-12  Bruno Haible  <bruno@clisp.org>
57541
57542         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
57543         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
57544
57545 2008-04-12  Jim Meyering  <meyering@redhat.com>
57546
57547         * m4/math_h.m4 (gl_MATH_H): Fix typos.
57548
57549 2008-04-12  Bruno Haible  <bruno@clisp.org>
57550
57551         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
57552         Reported by Elbert Pol <e.pol@chello.nl>.
57553
57554 2008-04-12  Eric Blake  <ebb9@byu.net>
57555
57556         Work around Solaris 10 math.h bug.
57557         * m4/math_h.m4 (gl_MATH_H): Check for bug.
57558         (gl_MATH_H_DEFAULTS): Set up default.
57559         * modules/math (Makefile.am): Replace new indicators.
57560         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
57561         * tests/test-math.c (main): Test this.
57562         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
57563         * doc/posix-headers/math.texi (math.h): Mention bug.
57564         Reported by Nelson H. F. Beebe and Jim Meyering.
57565
57566 2008-04-11  Bruno Haible  <bruno@clisp.org>
57567
57568         Adapt to future versions of Apple GCC.
57569         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
57570         Reported by Peter O'Gorman <peter@pogma.com>.
57571
57572 2008-04-11  Bruno Haible  <bruno@clisp.org>
57573
57574         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
57575
57576 2008-04-11  Bruno Haible  <bruno@clisp.org>
57577
57578         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
57579
57580         * modules/getaddrinfo-tests (Makefile.am): Define
57581         test_getaddrinfo_LDADD.
57582
57583 2008-04-11  Bruno Haible  <bruno@clisp.org>
57584
57585         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
57586         (init): Fix syntax error.
57587         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
57588         is declared.
57589
57590 2008-04-11  Bruno Haible  <bruno@clisp.org>
57591
57592         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
57593         * modules/glob (Depends-on): Add stdbool.
57594
57595 2008-04-11  Bruno Haible  <bruno@clisp.org>
57596
57597         * lib/trim.c: Include <string.h>.
57598
57599 2008-04-11  Eric Blake  <ebb9@byu.net>
57600
57601         Avoid compile failure on OS/2.
57602         * lib/regex_internal.h (internal_function): Disable optimization
57603         on OS/2 (__EMX__), where it caused compiler error.
57604         Reported by Elbert Pol.
57605
57606 2008-04-11  Bruno Haible  <bruno@clisp.org>
57607
57608         Flush the standard error stream before aborting. Needed on mingw.
57609         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
57610         * tests/test-array_list.c (ASSERT): Likewise.
57611         * tests/test-array_oset.c (ASSERT): Likewise.
57612         * tests/test-avltree_list.c (ASSERT): Likewise.
57613         * tests/test-avltree_oset.c (ASSERT): Likewise.
57614         * tests/test-avltreehash_list.c (ASSERT): Likewise.
57615         * tests/test-binary-io.c (ASSERT): Likewise.
57616         * tests/test-byteswap.c (ASSERT): Likewise.
57617         * tests/test-c-ctype.c (ASSERT): Likewise.
57618         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
57619         * tests/test-c-strcasestr.c (ASSERT): Likewise.
57620         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
57621         * tests/test-c-strstr.c (ASSERT): Likewise.
57622         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
57623         * tests/test-canonicalize.c (ASSERT): Likewise.
57624         * tests/test-carray_list.c (ASSERT): Likewise.
57625         * tests/test-ceilf1.c (ASSERT): Likewise.
57626         * tests/test-ceilf2.c (ASSERT): Likewise.
57627         * tests/test-ceill.c (ASSERT): Likewise.
57628         * tests/test-count-one-bits.c (ASSERT): Likewise.
57629         * tests/test-fbufmode.c (ASSERT): Likewise.
57630         * tests/test-fflush2.c (ASSERT): Likewise.
57631         * tests/test-floorf1.c (ASSERT): Likewise.
57632         * tests/test-floorf2.c (ASSERT): Likewise.
57633         * tests/test-floorl.c (ASSERT): Likewise.
57634         * tests/test-fopen.c (ASSERT): Likewise.
57635         * tests/test-fpending.c (ASSERT): Likewise.
57636         * tests/test-fprintf-posix.c (ASSERT): Likewise.
57637         * tests/test-fpurge.c (ASSERT): Likewise.
57638         * tests/test-freadable.c (ASSERT): Likewise.
57639         * tests/test-freadahead.c (ASSERT): Likewise.
57640         * tests/test-freading.c (ASSERT): Likewise.
57641         * tests/test-freadptr.c (ASSERT): Likewise.
57642         * tests/test-freadptr2.c (ASSERT): Likewise.
57643         * tests/test-freadseek.c (ASSERT): Likewise.
57644         * tests/test-freopen.c (ASSERT): Likewise.
57645         * tests/test-frexp.c (ASSERT): Likewise.
57646         * tests/test-frexpl.c (ASSERT): Likewise.
57647         * tests/test-fseek.c (ASSERT): Likewise.
57648         * tests/test-fseeko.c (ASSERT): Likewise.
57649         * tests/test-fstrcmp.c (ASSERT): Likewise.
57650         * tests/test-ftell.c (ASSERT): Likewise.
57651         * tests/test-ftello.c (ASSERT): Likewise.
57652         * tests/test-func.c (ASSERT): Likewise.
57653         * tests/test-fwritable.c (ASSERT): Likewise.
57654         * tests/test-fwriting.c (ASSERT): Likewise.
57655         * tests/test-getdelim.c (ASSERT): Likewise.
57656         * tests/test-getline.c (ASSERT): Likewise.
57657         * tests/test-i-ring.c (ASSERT): Likewise.
57658         * tests/test-iconv-utf.c (ASSERT): Likewise.
57659         * tests/test-iconv.c (ASSERT): Likewise.
57660         * tests/test-isfinite.c (ASSERT): Likewise.
57661         * tests/test-isnand.c (ASSERT): Likewise.
57662         * tests/test-isnanf.c (ASSERT): Likewise.
57663         * tests/test-isnanl.h (ASSERT): Likewise.
57664         * tests/test-ldexpl.c (ASSERT): Likewise.
57665         * tests/test-linked_list.c (ASSERT): Likewise.
57666         * tests/test-linkedhash_list.c (ASSERT): Likewise.
57667         * tests/test-localename.c (ASSERT): Likewise.
57668         * tests/test-lseek.c (ASSERT): Likewise.
57669         * tests/test-mbscasecmp.c (ASSERT): Likewise.
57670         * tests/test-mbscasestr1.c (ASSERT): Likewise.
57671         * tests/test-mbscasestr2.c (ASSERT): Likewise.
57672         * tests/test-mbscasestr3.c (ASSERT): Likewise.
57673         * tests/test-mbscasestr4.c (ASSERT): Likewise.
57674         * tests/test-mbschr.c (ASSERT): Likewise.
57675         * tests/test-mbscspn.c (ASSERT): Likewise.
57676         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
57677         * tests/test-mbspbrk.c (ASSERT): Likewise.
57678         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
57679         * tests/test-mbsrchr.c (ASSERT): Likewise.
57680         * tests/test-mbsspn.c (ASSERT): Likewise.
57681         * tests/test-mbsstr1.c (ASSERT): Likewise.
57682         * tests/test-mbsstr2.c (ASSERT): Likewise.
57683         * tests/test-mbsstr3.c (ASSERT): Likewise.
57684         * tests/test-memchr2.c (ASSERT): Likewise.
57685         * tests/test-memmem.c (ASSERT): Likewise.
57686         * tests/test-open.c (ASSERT): Likewise.
57687         * tests/test-printf-frexp.c (ASSERT): Likewise.
57688         * tests/test-printf-frexpl.c (ASSERT): Likewise.
57689         * tests/test-printf-posix.c (ASSERT): Likewise.
57690         * tests/test-quotearg.c (ASSERT): Likewise.
57691         * tests/test-rbtree_list.c (ASSERT): Likewise.
57692         * tests/test-rbtree_oset.c (ASSERT): Likewise.
57693         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
57694         * tests/test-round1.c (ASSERT): Likewise.
57695         * tests/test-roundf1.c (ASSERT): Likewise.
57696         * tests/test-roundl.c (ASSERT): Likewise.
57697         * tests/test-signbit.c (ASSERT): Likewise.
57698         * tests/test-sleep.c (ASSERT): Likewise.
57699         * tests/test-snprintf-posix.c (ASSERT): Likewise.
57700         * tests/test-snprintf.c (ASSERT): Likewise.
57701         * tests/test-sprintf-posix.c (ASSERT): Likewise.
57702         * tests/test-stat-time.c (ASSERT): Likewise.
57703         * tests/test-strcasestr.c (ASSERT): Likewise.
57704         * tests/test-strerror.c (ASSERT): Likewise.
57705         * tests/test-striconv.c (ASSERT): Likewise.
57706         * tests/test-striconveh.c (ASSERT): Likewise.
57707         * tests/test-striconveha.c (ASSERT): Likewise.
57708         * tests/test-strsignal.c (ASSERT): Likewise.
57709         * tests/test-strstr.c (ASSERT): Likewise.
57710         * tests/test-strtod.c (ASSERT): Likewise.
57711         * tests/test-trunc1.c (ASSERT): Likewise.
57712         * tests/test-trunc2.c (ASSERT): Likewise.
57713         * tests/test-truncf1.c (ASSERT): Likewise.
57714         * tests/test-truncf2.c (ASSERT): Likewise.
57715         * tests/test-truncl.c (ASSERT): Likewise.
57716         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
57717         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
57718         * tests/test-vasnprintf.c (ASSERT): Likewise.
57719         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
57720         * tests/test-vasprintf.c (ASSERT): Likewise.
57721         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
57722         * tests/test-vprintf-posix.c (ASSERT): Likewise.
57723         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
57724         * tests/test-vsnprintf.c (ASSERT): Likewise.
57725         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
57726         * tests/test-wcwidth.c (ASSERT): Likewise.
57727         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
57728         * tests/test-xprintf-posix.c (ASSERT): Likewise.
57729         * tests/test-xvasprintf.c (ASSERT): Likewise.
57730         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
57731         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
57732         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
57733         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
57734         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
57735         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
57736         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
57737         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
57738         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
57739         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
57740         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
57741         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
57742         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
57743         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
57744         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
57745         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
57746         * tests/unictype/test-block_list.c (ASSERT): Likewise.
57747         * tests/unictype/test-block_of.c (ASSERT): Likewise.
57748         * tests/unictype/test-block_test.c (ASSERT): Likewise.
57749         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
57750         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
57751         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
57752         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
57753         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
57754         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
57755         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
57756         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
57757         * tests/unictype/test-combining.c (ASSERT): Likewise.
57758         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
57759         * tests/unictype/test-digit.c (ASSERT): Likewise.
57760         * tests/unictype/test-mirror.c (ASSERT): Likewise.
57761         * tests/unictype/test-numeric.c (ASSERT): Likewise.
57762         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
57763         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
57764         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
57765         * tests/unictype/test-scripts.c (ASSERT): Likewise.
57766         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
57767         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
57768         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
57769         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
57770         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
57771         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
57772         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
57773         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
57774         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
57775         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
57776         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
57777         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
57778         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
57779         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
57780         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
57781         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
57782         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
57783         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
57784         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
57785         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
57786         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
57787         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
57788         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
57789         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
57790         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
57791         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
57792         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
57793         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
57794         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
57795         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
57796         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
57797         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
57798         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
57799         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
57800         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
57801         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
57802         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
57803         Reported by Eric Blake.
57804
57805 2008-04-11  Bruno Haible  <bruno@clisp.org>
57806
57807         * lib/wchar.in.h: Tweak comment.
57808
57809 2008-04-11  Bruno Haible  <bruno@clisp.org>
57810
57811         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
57812         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
57813         gl_COMMON.
57814         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
57815
57816 2008-04-11  Bruno Haible  <bruno@clisp.org>
57817
57818         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
57819
57820 2008-04-11  Simon Josefsson  <simon@josefsson.org>
57821
57822         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
57823         of attempting to use non-existing /dev/*random.  Based on patch
57824         from Adam Strzelecki <ono@java.pl> in
57825         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
57826
57827 2008-04-08  Bruno Haible  <bruno@clisp.org>
57828
57829         Add tentative support for emx+gcc.
57830         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
57831         * lib/fpurge.c (fpurge): Likewise.
57832         * lib/freadable.c (freadable): Likewise.
57833         * lib/freadahead.c (freadahead): Likewise.
57834         * lib/freading.c (freading): Likewise.
57835         * lib/freadptr.c (freadptr): Likewise.
57836         * lib/freadseek.c (freadptrinc): Likewise.
57837         * lib/fseeko.c (rpl_fseeko): Likewise.
57838         * lib/fseterr.c (fseterr): Likewise.
57839         * lib/fwritable.c (fwritable): Likewise.
57840         * lib/fwriting.c (fwriting): Likewise.
57841         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
57842
57843 2008-04-09  Eric Blake  <ebb9@byu.net>
57844
57845         Avoid some autoconf warnings.
57846         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
57847         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
57848         * m4/afs.m4 (gl_AFS): Likewise.
57849         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
57850         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
57851         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
57852         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
57853         (gl_INTEGER_TYPE_SUFFIX): Likewise.
57854         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
57855         (AC_CHECK_DECLS_ONCE): Likewise.
57856         Rename file...
57857         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
57858         gnulib-tool requires autoconf 2.59 or better.
57859         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
57860
57861 2008-04-08  Eric Blake  <ebb9@byu.net>
57862
57863         Use 'git describe --match' if present (added in git 1.5.5).
57864         * build-aux/git-version-gen: Limit result to tags that match 'v*'
57865         if possible.
57866
57867 2008-04-08  Bruno Haible  <bruno@clisp.org>
57868
57869         Add tentative support for OpenServer.
57870         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
57871         _ptr, _cnt.
57872         * lib/fpurge.c (fpurge): Likewise.
57873         * lib/freadable.c (freadable): Likewise.
57874         * lib/freadahead.c (freadahead): Likewise.
57875         * lib/freading.c (freading): Likewise.
57876         * lib/freadptr.c (freadptr): Likewise.
57877         * lib/freadseek.c (freadptrinc): Likewise.
57878         * lib/fseeko.c (rpl_fseeko): Likewise.
57879         * lib/fseterr.c (fseterr): Likewise.
57880         * lib/fwritable.c (fwritable): Likewise.
57881         * lib/fwriting.c (fwriting): Likewise.
57882         Reported by Roger Cornelius <rac@tenzing.org> and
57883         Brian K. White <brian@aljex.com>.
57884
57885 2008-04-06  Jim Meyering  <meyering@redhat.com>
57886
57887         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
57888
57889 2008-04-06  Bruno Haible  <bruno@clisp.org>
57890
57891         Avoid possible error with non-ASCII bytes in UTF-8 locales.
57892         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
57893         * tests/test-printf-posix.sh: Likewise.
57894         * tests/test-vfprintf-posix.sh: Likewise.
57895         * tests/test-vprintf-posix.sh: Likewise.
57896         * tests/test-xprintf-posix.sh: Likewise.
57897
57898 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57899
57900         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
57901         hide error from 'ls', needed on OS/2.
57902         Report by Elbert Pol <elbert.pol@gmail.com>.
57903
57904 2008-04-04  Eric Blake  <ebb9@byu.net>
57905
57906         Make test-fseeko.c failures meaningful.
57907         * tests/test-fseeko.c: Print line number on failure.
57908         * tests/test-fseek.c: Likewise.
57909         Reported by Nelson H. F. Beebe.
57910
57911         Improve strtod bug detection check.
57912         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
57913         required for Solaris 10.
57914         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
57915
57916 2008-04-04  Bruno Haible  <bruno@clisp.org>
57917
57918         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
57919         by m4/setenv.m4.
57920
57921 2008-04-03  Eric Blake  <ebb9@byu.net>
57922
57923         Ensure sane .version contents.
57924         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
57925         version string.
57926         * build-aux/git-version-gen: Improve documentation.
57927
57928         Make GNU make output nicer.
57929         * top/GNUmakefile [!_have-Makefile]: Add dependency on
57930         MAKECMDGOALS to enforce message for all command line targets.  Set
57931         srcdir for use in maint.mk.
57932
57933         Another maintainer tweak.
57934         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
57935         a target that regenerates version.
57936
57937 2008-04-03  Jim Meyering  <meyering@redhat.com>
57938
57939         vc-list-files: don't cause coreutils "make po-check" failure
57940         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
57941
57942 2008-04-03  Eric Blake  <ebb9@byu.net>
57943
57944         Allow VPATH usage of vc-list-files.
57945         * build-aux/vc-list-files (scriptversion): Add timestamp.
57946         (options): Add --help, --version, -C.
57947         (CVS): Support installed cvsu.
57948
57949 2008-04-02  Bruno Haible  <bruno@clisp.org>
57950
57951         Avoid some "statement with no effect" warnings from gcc.
57952         * tests/test-wctype.c (main): Explicitly ignore unused values.
57953         Reported by Jim Meyering.
57954
57955 2008-04-02  Jim Meyering  <meyering@redhat.com>
57956
57957         Avoid some warnings from "gcc -Wshadow".
57958         * tests/test-frexp.c (exp): Define to a different identifier.
57959         * tests/test-frexpl.c (exp): Likewise.
57960
57961 2008-04-03  Jim Meyering  <meyering@redhat.com>
57962
57963         bootstrap: remove dangling *.[ch] symlinks from lib
57964         * build-aux/bootstrap [dangling symlink removal]: Move find's
57965         -depth option to precede all others, to avoid a warning.
57966         Remove *.[ch] files too, and from "$source_base" (usually lib/).
57967
57968 2008-04-02  Bruno Haible  <bruno@clisp.org>
57969
57970         Avoid some warnings from "gcc -Wshadow".
57971         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
57972         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
57973         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
57974         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
57975         Reported by Jim Meyering.
57976
57977 2008-04-01  Bruno Haible  <bruno@clisp.org>
57978
57979         Fix test to work on IRIX 6.5 with cc.
57980         * tests/test-math.c (numeric_equal): New function.
57981         (main): Use it.
57982
57983 2008-04-01  Bruno Haible  <bruno@clisp.org>
57984
57985         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
57986
57987 2008-04-01  Bruno Haible  <bruno@clisp.org>
57988
57989         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
57990         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
57991         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
57992         (Depends-on): Remove math.
57993
57994         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
57995         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
57996         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
57997         (Depends-on): Remove math.
57998
57999         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
58000         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
58001         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
58002         (Depends-on): Remove math.
58003         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
58004         (Depends-on): Remove math.
58005
58006         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
58007         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
58008         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
58009         (Depends-on): Remove math.
58010         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
58011         (Depends-on): Remove math.
58012
58013         * tests/test-round1.c: Include nan.h.
58014         (main): Use NaNd instead of NAN.
58015         * modules/round-tests (Files): Add tests/nan.h.
58016
58017         * tests/test-trunc1.c: Include nan.h.
58018         (main): Use NaNd instead of NAN.
58019         * modules/trunc-tests (Files): Add tests/nan.h.
58020
58021         * tests/test-roundf1.c: Include nan.h.
58022         (main): Use NaNf instead of NAN.
58023         * modules/roundf-tests (Files): Add tests/nan.h.
58024
58025         * tests/test-truncf1.c: Include nan.h.
58026         (main): Use NaNf instead of NAN.
58027         * modules/truncf-tests (Files): Add tests/nan.h.
58028
58029         * tests/test-ceilf1.c: Include nan.h.
58030         (main): Use NaNf instead of NAN.
58031         * modules/ceilf-tests (Files): Add tests/nan.h.
58032
58033         * tests/test-floorf1.c: Include nan.h.
58034         (main): Use NaNf instead of NAN.
58035         * modules/floorf-tests (Files): Add tests/nan.h.
58036
58037         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
58038         (main): Use NaNf instead of NAN.
58039         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
58040
58041         * tests/test-isnand.c: Include nan.h instead of <math.h>.
58042         (main): Use NaNd instead of NAN.
58043         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
58044
58045         * tests/test-frexp.c: Include nan.h.
58046         (main): Use NaNd instead of NAN.
58047         * modules/frexp-tests (Files): Add tests/nan.h.
58048
58049         * lib/isnan.c: Don't include <math.h>.
58050         (FUNC): Don't use NAN macro.
58051         * modules/isnand-nolibm (Depends-on): Remove math.
58052         * modules/isnanf-nolibm (Depends-on): Remove math.
58053         * modules/isnanl (Depends-on): Remove math.
58054         * modules/isnanl-nolibm (Depends-on): Remove math.
58055
58056         * tests/nan.h: New file.
58057
58058 2008-04-01  Eric Blake  <ebb9@byu.net>
58059
58060         Fix typos.
58061         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
58062         values to be the right type.
58063
58064         For now, cater to gnulib strtod inaccuracies.
58065         * tests/test-strtod.c (main): Allow 1-ulp error on expected
58066         fractional results.  While not as nice from a QoI perspective, it
58067         is a quicker patch than correctly implementing decimal to binary
58068         rounding.
58069
58070 2008-03-31  Eric Blake  <ebb9@byu.net>
58071
58072         Guarantee a definition of NAN.
58073         * lib/math.in.h (NAN): Define if missing.
58074         * tests/test-math.c (main): Test it.
58075         * doc/posix-headers/math.texi (math.h): Document this.
58076         * lib/isnan.c (rpl_isnand): Use it.
58077         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
58078         * tests/test-floorf1.c (NaN): Likewise.
58079         * tests/test-frexp.c (NaN): Likewise.
58080         * tests/test-isnand.c (NaN): Likewise.
58081         * tests/test-isnanf.c (NaN): Likewise.
58082         * tests/test-round1.c (NaN): Likewise.
58083         * tests/test-roundf1.c (NaN): Likewise.
58084         * tests/test-snprintf-posix.h (NaN): Likewise.
58085         * tests/test-sprintf-posix.h (NaN): Likewise.
58086         * tests/test-trunc1.c (NaN): Likewise.
58087         * tests/test-truncf1.c (NaN): Likewise.
58088         * tests/test-vasnprintf-posix.c (NaN): Likewise.
58089         * tests/test-vasprintf-posix.c (NaN): Likewise.
58090         * modules/isnand-nolibm (Depends-on): Add math.
58091         * modules/isnanf-nolibm (Depends-on): Likewise.
58092         * modules/isnanl (Depends-on): Likewise.
58093         * modules/isnanl-nolibm (Depends-on): Likewise.
58094         * modules/snprintf-posix-tests (Depends-on): Likewise.
58095         * modules/sprintf-posix-tests (Depends-on): Likewise.
58096         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
58097         * modules/vsprintf-posix-tests (Depends-on): Likewise.
58098         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
58099         * modules/vasprintf-posix-tests (Depends-on): Likewise.
58100
58101 2008-03-31  Bruno Haible  <bruno@clisp.org>
58102
58103         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
58104         * doc/posix-functions/strtod.texi: Likewise.
58105
58106 2008-03-31  Bruno Haible  <bruno@clisp.org>
58107
58108         * tests/test-strtod.c (main): Don't use C99 syntax.
58109
58110 2008-03-31  Bruno Haible  <bruno@clisp.org>
58111
58112         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
58113         Reported by Eric Blake.
58114
58115 2008-03-31  Jim Meyering  <meyering@redhat.com>
58116
58117         Don't compare actual signbit return values.
58118         * tests/test-strtod.c (main): Rather, compare only their
58119         zero/non-zero nature.
58120
58121 2008-03-31  Eric Blake  <ebb9@byu.net>
58122
58123         More strtod documentation.
58124         * doc/posix-functions/strtod.texi (strtod): Interpret more test
58125         failures as distinct bugs.
58126
58127 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
58128
58129         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
58130         Problem reported by Erik Benada in
58131         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
58132
58133 2008-03-30  Bruno Haible  <bruno@clisp.org>
58134
58135         * tests/test-strtod.c: Add comments about which assertion fails on which
58136         platform.
58137         * doc/posix-functions/strtod.texi: Add info about many more platforms.
58138
58139 2008-03-30  Eric Blake  <ebb9@byu.net>
58140
58141         Test signbit behavior on zeros.
58142         * tests/test-signbit.c (test_signbitf): Add tests for zero.
58143         (test_signbitd, test_signbitl): Likewise.
58144
58145         More strtod touchups.
58146         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
58147         sign of negative underflow, for now.  Use .5, not .1.
58148         * doc/posix-functions/strtod.texi (strtod): Mention these
58149         limitations.
58150         Reported by Jim Meyering.
58151
58152 2008-03-30  Bruno Haible  <bruno@clisp.org>
58153
58154         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
58155         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
58156
58157 2008-03-30  Bruno Haible  <bruno@clisp.org>
58158
58159         Avoid failure when attempting to return empty iconv results on some
58160         platforms.
58161         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
58162         allocation, don't report ENOMEM when the resulting string is empty.
58163
58164 2008-03-30  Bruno Haible  <bruno@clisp.org>
58165
58166         Fix buffer overrun.
58167         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
58168         Don't consider the width for tmp_length. Check count against tmp_length
58169         before doing the padding. Ensure enough allocation during padding.
58170
58171 2008-03-30  Eric Blake  <ebb9@byu.net>
58172
58173         strtod touchups.
58174         * lib/strtod.c (strtod): Avoid compiler warnings.
58175         Reported by Jim Meyering.
58176
58177 2008-03-30  Bruno Haible  <bruno@clisp.org>
58178
58179         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
58180         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
58181         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
58182         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
58183         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
58184         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
58185         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
58186         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
58187
58188         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
58189         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
58190         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
58191         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
58192         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
58193         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
58194         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
58195         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
58196
58197         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
58198         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
58199         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
58200         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
58201         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
58202         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
58203         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
58204         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
58205
58206         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
58207         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
58208
58209         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
58210         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
58211
58212         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
58213         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
58214
58215         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
58216         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
58217         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
58218
58219         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
58220         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
58221         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
58222
58223         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
58224         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
58225         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
58226
58227         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
58228         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
58229         * modules/vasprintf (Depends-on): Add EOVERFLOW.
58230
58231         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
58232         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
58233         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
58234         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
58235         (Depends-on): Add EOVERFLOW.
58236         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
58237         (Depends-on): Add EOVERFLOW.
58238         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
58239         (Depends-on): Add EOVERFLOW.
58240         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
58241         (Depends-on): Add EOVERFLOW.
58242         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
58243         (Depends-on): Add EOVERFLOW.
58244         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
58245         (Depends-on): Add EOVERFLOW.
58246         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
58247         (Depends-on): Add EOVERFLOW.
58248         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
58249         (Depends-on): Add EOVERFLOW.
58250
58251         * lib/sprintf.c (EOVERFLOW): Remove fallback.
58252         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
58253         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
58254
58255         * lib/snprintf.c (EOVERFLOW): Remove fallback.
58256         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
58257         * modules/snprintf (Depends-on): Add EOVERFLOW.
58258
58259         * lib/poll.c (EOVERFLOW): Remove fallback.
58260         * modules/poll (Depends-on): Add EOVERFLOW.
58261
58262         * lib/getugroups.c (EOVERFLOW): Remove fallback.
58263         * modules/getugroups (Depends-on): Add EOVERFLOW.
58264
58265         * lib/getdelim.c (EOVERFLOW): Remove fallback.
58266         * modules/getdelim (Depends-on): Add EOVERFLOW.
58267
58268         * lib/ftell.c (EOVERFLOW): Remove fallback.
58269         * modules/ftell (Depends-on): Add EOVERFLOW.
58270
58271         * lib/fprintf.c (EOVERFLOW): Remove fallback.
58272         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
58273         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
58274
58275         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
58276
58277         * modules/EOVERFLOW-tests: New file.
58278         * tests/test-EOVERFLOW.c: New file.
58279
58280         * modules/EOVERFLOW: New file.
58281         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
58282
58283 2008-03-30  Bruno Haible  <bruno@clisp.org>
58284
58285         Fix bug introduced on 2007-06-10.
58286         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
58287         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
58288
58289 2008-03-30  Bruno Haible  <bruno@clisp.org>
58290
58291         Improve freadseek's efficiency after ungetc.
58292         * lib/freadseek.c: Include freadahead.h.
58293         (freadptrinc): New function, extracted from freadseek.
58294         (freadseek): Use it in a loop. Use freadahead to determine the number
58295         of loop iterations.
58296         * modules/freadseek (Depends-on): Add freadahead.
58297         (configure.ac): Require AC_C_INLINE.
58298
58299 2008-03-30  Bruno Haible  <bruno@clisp.org>
58300
58301         * lib/freadseek.c (freadseek): Don't ignore the return value of
58302         freadptr.
58303
58304 2008-03-29  Eric Blake  <ebb9@byu.net>
58305
58306         Add hex float support.
58307         * modules/strtod (Depends-on): Add c-ctype.
58308         (Link): Mention POW_LIB.
58309         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
58310         whitespace between 'e' and exponent.
58311         * tests/test-strtod.c (main): Enable hex float tests.
58312         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
58313         now provides.
58314
58315         Document various strtod bugs, with some fixes.
58316         * doc/posix-functions/strtod.texi (strtod): Document bugs with
58317         "-0x", "inf", "nan", and hex constants.
58318         * doc/posix-functions/atof.texi (atof): Likewise.
58319         * modules/stdlib (Makefile.am): Support strtod.
58320         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
58321         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
58322         detect additional strtod bugs.
58323         * lib/stdlib.in.h (rpl_strtod): Add declarations.
58324         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
58325         bool where appropriate.  Parse 'inf' and 'nan'.
58326         * tests/test-strtod.c: New file.
58327         * modules/strtod (Depends-on): Add stdbool, stdlib.
58328         (configure.ac): Turn on module indicator.
58329         * modules/strtod-tests: New module.
58330
58331 2008-03-29  Eric Blake  <ebb9@byu.net>
58332
58333         Fix ftell on mingw.
58334         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
58335         * modules/ftell-tests (Depends-on): Add binary-io.
58336         * modules/ftello-tests (Depends-on): Likewise.
58337         * tests/test-ftell.c (main): Enhance test to cover behavior after
58338         ungetc.  Enforce binary mode.
58339         * tests/test-ftello.c (main): Likewise.
58340
58341         Pass test-freadseek on cygwin.
58342         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
58343         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
58344         ungetc buffer.
58345
58346         * tests/test-fflush2.c (main): Fix typo.
58347
58348 2008-03-29  Bruno Haible  <bruno@clisp.org>
58349
58350         * tests/test-fflush2.c (main): Temporarily disable the contents of
58351         this test.
58352         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
58353         Reported by Eric Blake.
58354
58355 2008-03-28  Simon Josefsson  <simon@josefsson.org>
58356
58357         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
58358         (GC_SHA224_DIGEST_SIZE): Add.
58359
58360         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
58361         (gc_hash_digest_length): Likewise.
58362         (gc_hash_buffer): Likewise.
58363
58364 2008-03-25  Bruno Haible  <bruno@clisp.org>
58365
58366         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
58367         detail which gettext release to use.
58368         Reported by Simon Josefsson.
58369
58370 2008-03-26  Jim Meyering  <meyering@redhat.com>
58371
58372         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
58373         * modules/gnumakefile (clean-GNUmakefile): Also, use
58374         test ... && ... || : syntax rather than if-then ... fi.
58375
58376         gnumakefile: Don't double-quote-expand $(VPATH) value.
58377         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
58378
58379 2008-03-24  Eric Blake  <ebb9@byu.net>
58380
58381         Alter GNUmakefile to install into top directory.
58382         * modules/maintainer-makefile: Split, and add dependency...
58383         * modules/gnumakefile: to this new module.
58384         * build-aux/GNUmakefile: Move...
58385         * top/GNUmakefile: ...here.
58386         * build-aux/maint.mk: Move...
58387         * top/maint.mk: ...here.
58388         * MODULES.html.sh (Support for maintaining...): Document new
58389         module.
58390
58391 2008-03-23  Bruno Haible  <bruno@clisp.org>
58392
58393         * gnulib-tool: New options --vc-files, --no-vc-files.
58394         (func_usage): Document them.
58395         (vc_files): New variable.
58396         (func_import): Consider vc_files.
58397         (func_create_testdir): Set vc_files to empty.
58398         Suggested by Jim Meyering and Karl Berry.
58399
58400 2008-03-23  Bruno Haible  <bruno@clisp.org>
58401
58402         Fix regex compilation error on HP-UX 11.
58403         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
58404         * modules/regex (Files): Add m4/mbstate_t.m4.
58405         Reported by Ton Voon <ton.voon@altinity.com>.
58406
58407 2008-03-23  Bruno Haible  <bruno@clisp.org>
58408
58409         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
58410
58411 2008-03-23  Eric Blake  <ebb9@byu.net>
58412             Bruno Haible  <bruno@clisp.org>
58413
58414         Install files from top/ in the destination directory.
58415         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
58416         augmentation also for the files from top/.
58417         (func_import, func_create_testdir): Rewrite file names:
58418         top/filename -> filename.
58419
58420 2008-03-23  Bruno Haible  <bruno@clisp.org>
58421
58422         Tweak "gnulib --version" output.
58423         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
58424
58425 2008-03-23  Bruno Haible  <bruno@clisp.org>
58426
58427         Tweak "gnulib --version" output.
58428         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
58429         rather than contents of ChangeLog, when possible.
58430
58431 2008-03-21  Eric Blake  <ebb9@byu.net>
58432
58433         More --version tweaks.
58434         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
58435         date of last ChangeLog entry.
58436
58437 2008-03-21  Jim Meyering  <meyering@redhat.com>
58438
58439         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
58440
58441 2008-03-20  Eric Blake  <ebb9@byu.net>
58442
58443         VPATH fix.
58444         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
58445
58446 2008-03-20  Simon Josefsson  <simon@josefsson.org>
58447
58448         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
58449         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
58450
58451 2008-03-20  Eric Blake  <ebb9@byu.net>
58452
58453         Sync GNUmakefile with coreutils.
58454         * build-aux/GNUmakefile (have-Makefile): Rename...
58455         (_have-Makefile): ...to this, for namespace consideration.
58456         (GNUmakefile.cfg): Include, if present.
58457         (_autoreconf): Define a default.
58458         (_is-dist-target): New rule for rebuilds to pick up intra-release
58459         version.
58460         (maint-cfg.mk): Rename...
58461         (cfg.mk): ...to this.
58462
58463 2008-03-18  Jim Meyering  <meyering@redhat.com>
58464
58465         New script and module: mktempd
58466         * MODULES.html.sh (maint+release support): Add mktempd.
58467         * build-aux/mktempd: New file.
58468         * modules/mktempd: New file.
58469
58470 2008-03-15  Jim Meyering  <meyering@redhat.com>
58471
58472         Undo last change.
58473         * lib/sha1.c, lib/md5.c: 63 != ~63.
58474         Reported by Andreas Schwab.
58475
58476         sha1.c, md5.c: Hoist a redundant expression.
58477         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
58478         "ctx->buflen" only once, before calling *_process_block.
58479         * lib/md5.c (md5_process_bytes): Likewise.
58480
58481 2008-03-14  Eric Blake  <ebb9@byu.net>
58482
58483         Bump copyright year in files generated by gnulib-tool.
58484         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
58485         gnulib-tool, rather than hard-coding it.
58486
58487         Fix 'gnulib-tool --version' output to work with git.
58488         * gnulib-tool (func_gnulib_dir): New function, extracted from...
58489         (startup): ...here.
58490         (func_version): Use it to invoke git-version-gen, rather than
58491         relying on CVS keyword expansion.  Modernize wording.
58492         (cvsdatestamp, last_checkin_date, version): Kill unused
58493         variables.
58494
58495 2008-03-12  Jim Meyering  <meyering@redhat.com>
58496
58497         Recognize optional cast of the argument to free.
58498         * build-aux/useless-if-before-free: Update regexps.
58499
58500         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
58501
58502 2008-03-11  Bruno Haible  <bruno@clisp.org>
58503
58504         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
58505         by a single package.
58506         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
58507         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
58508         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
58509         Reported by Sam Steingold <sds@gnu.org>.
58510
58511 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
58512
58513         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
58514         repositories.
58515
58516 2008-03-11  Bruno Haible  <bruno@clisp.org>
58517
58518         Avoid conflicts between local macro definitions.
58519         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
58520         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
58521
58522 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
58523             Bruno Haible  <bruno@clisp.org>
58524
58525         Make va_copy work with some version of xlc on AIX 5.1.
58526         * lib/stdarg.in.h: New file.
58527         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
58528         On AIX, use a <stdarg.h> file substitute.
58529         * modules/stdarg (Files): Add lib/stdarg.in.h.
58530         (Depends-on): Add include_next.
58531         (Makefile.am): Build a stdarg.h substitute if requested.
58532         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
58533
58534 2008-03-10  Bruno Haible  <bruno@clisp.org>
58535
58536         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
58537         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
58538         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
58539
58540 2008-03-10  Bruno Haible  <bruno@clisp.org>
58541
58542         * modules/stdlib (Depends-on): Add include_next, remove
58543         absolute-header.
58544
58545 2008-03-09  Bruno Haible  <bruno@clisp.org>
58546
58547         * lib/freadahead.h (freadahead): Document more precisely.
58548         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
58549         the sum of both buffer sizes.
58550         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
58551         * NEWS: Document the change.
58552
58553 2008-03-09  Bruno Haible  <bruno@clisp.org>
58554
58555         Extend freadptr to return also the buffer size.
58556         * lib/freadptr.h (freadptr): Add sizep argument.
58557         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
58558         (freadptr): Add sizep argument. Determine buffer size like freadahead
58559         does.
58560         * tests/test-freadptr.c: Don't include freadahead.h.
58561         (main): Adapt for new calling convention of freadptr.
58562         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
58563         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
58564         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
58565         tests/test-freadptr2.sh.
58566         (Depends): Remove freadahead.
58567         (TESTS): Add test-freadptr2.sh.
58568         (check_PROGRAMS): Add test-freadptr2.
58569
58570 2008-03-09  Bruno Haible  <bruno@clisp.org>
58571
58572         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
58573         Report and solution by Simon Josefsson.
58574
58575 2008-03-06  Bruno Haible  <bruno@clisp.org>
58576
58577         Make fflush after ungetc work on BSD platforms.
58578         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
58579         * tests/test-fflush2.c: New file.
58580         * tests/test-fflush2.sh: New file.
58581         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
58582         tests/test-fflush2.c.
58583         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
58584         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
58585
58586 2008-03-06  Eric Blake  <ebb9@byu.net>
58587
58588         Likewise for ftello.
58589         * modules/ftello (Dependencies): Add extensions.
58590         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
58591
58592 2008-03-06  Bruno Haible  <bruno@clisp.org>
58593
58594         * modules/fseeko (Dependencies): Add extensions.
58595         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
58596         Needed on glibc systems.
58597
58598 2008-03-06  Bruno Haible  <bruno@clisp.org>
58599
58600         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
58601         email address.
58602         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
58603
58604 2008-03-06  Bruno Haible  <bruno@clisp.org>
58605
58606         * users.txt: Add libgnupdf.
58607
58608 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
58609
58610         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
58611         (Header File Substitutes, Function Substitutes,
58612         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
58613         (Build robot for gnulib): Fix typo.
58614
58615 2008-03-06  Bruno Haible  <bruno@clisp.org>
58616
58617         * doc/gnulib-tool.texi (VCS Issues): Small updates.
58618         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
58619
58620 2008-03-06  Bruno Haible  <bruno@clisp.org>
58621
58622         * doc/func.texi: New file, extracted from doc/gnulib.texi.
58623         * doc/gnulib.texi: Include it.
58624
58625 2008-03-06  Simon Josefsson  <simon@josefsson.org>
58626
58627         * modules/func (License): Change license to unlimited; there was
58628         no LGPL parts in the module anyway.
58629
58630 2008-03-06  Simon Josefsson  <simon@josefsson.org>
58631
58632         * modules/__func__: Renamed to modules/func.
58633         * modules/__func__-tests: Renamed to modules/func-tests.
58634         * tests/test-__func__.c: Renamed to tests/test-func.c.
58635         * m4/__func__.m4: Renamed to m4/func.m4.
58636         * doc/gnulib.texi (__func__): Section renamed to func.
58637         Suggested by Eric Blake <ebb9@byu.net>.
58638
58639 2008-03-06  Simon Josefsson  <simon@josefsson.org>
58640
58641         * doc/gnulib.texi (__func__): Use C99 terminology when talking
58642         about __func__.  Make example self-contained.  Suggested by Eric
58643         Blake <ebb9@byu.net>.
58644
58645         * tests/test-__func__.c (main): Avoid extraneous () around __func.
58646         Suggested by Eric Blake <ebb9@byu.net>.
58647
58648 2008-03-06  Simon Josefsson  <simon@josefsson.org>
58649
58650         * modules/__func__: New file.
58651         * modules/__func__-tests: New file.
58652         * tests/test-__func__.c: New file.
58653         * m4/__func__.m4: New file.
58654         * doc/gnulib.texi (__func__): Document __func__ module.
58655
58656 2008-03-05  Simon Josefsson  <simon@josefsson.org>
58657
58658         * modules/byteswap (License): Re-license as LGPLv2+.
58659
58660 2008-03-05  Simon Josefsson  <simon@josefsson.org>
58661
58662         * doc/Makefile: Add pdf target.
58663
58664 2008-03-05  Simon Josefsson  <simon@josefsson.org>
58665
58666         * modules/inline (License): Use 'unlimited', since there are only
58667         *.m4 files in this module.
58668
58669 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
58670             Bruno Haible  <bruno@clisp.org>
58671
58672         Add support for HP C 7.1 on OpenVMS 8.3.
58673         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
58674
58675 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
58676
58677         Update VMS specifics.
58678         * lib/getopt.c [VMS]: Remove include of unixlib.h.
58679
58680 2008-03-02  Jim Meyering  <meyering@redhat.com>
58681
58682         Remove the last dependency on the "free" module.
58683         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
58684         Reported by Bob Proulx.
58685
58686         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
58687
58688         Remove useless "if" tests before free.  Deprecate "free" module.
58689         * doc/posix-functions/free.texi: Mention that this
58690         module is no longer useful.
58691         * modules/free (Notice): Say this module is obsolete.
58692         * modules/readutmp (Depends-on): Remove free.
58693         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
58694         * lib/putenv.c (putenv): Likewise.
58695         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
58696         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
58697         * tests/test-c-strcasestr.c (main): Likewise.
58698         * tests/test-c-strstr.c (main): Likewise.
58699         * tests/test-mbscasestr1.c (main): Likewise.
58700         * tests/test-mbscasestr2.c (main): Likewise.
58701         * tests/test-mbsstr1.c (main): Likewise.
58702         * tests/test-mbsstr2.c (main): Likewise.
58703         * tests/test-memmem.c (main): Likewise.
58704         * tests/test-strcasestr.c (main): Likewise.
58705         * tests/test-striconv.c (main): Likewise.
58706         * tests/test-striconveh.c (main): Likewise.
58707         * tests/test-striconveha.c (main): Likewise.
58708         * tests/test-strstr.c (main): Likewise.
58709
58710         * build-aux/git-version-gen: Adjust a comment and the Usage string.
58711
58712         bootstrap: sync from coreutils again
58713         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
58714
58715 2008-03-01  Jim Meyering  <meyering@redhat.com>
58716
58717         bootstrap: sync from coreutils
58718         * build-aux/bootstrap (update_po_files): Copy a .po file into place
58719         also when the target doesn't exist.
58720
58721 2008-03-01  Eric Blake  <ebb9@byu.net>
58722
58723         Fix bugs in last patch.
58724         * lib/memchr2.c (memchr2): Fix typo.
58725         * tests/test-memchr2.c: Test previous bug, and don't use GNU
58726         extension.
58727         Reported by Bruce Korb.
58728
58729         New module 'memchr2'.
58730         * modules/memchr2: New file.
58731         * modules/memchr2-tests: Likewise.
58732         * lib/memchr2.h: Likewise.
58733         * lib/memchr2.c: Likewise, based on memchr.c.
58734         * tests/test-memchr2.c: New test.
58735         * MODULES.html.sh (String handling): Add memchr2.
58736
58737 2008-02-29  Bruno Haible  <bruno@clisp.org>
58738
58739         * modules/freadseek-tests: New file.
58740         * tests/test-freadseek.sh: New file.
58741         * tests/test-freadseek.c: New file.
58742
58743         New module 'freadseek'.
58744         * modules/freadseek: New file.
58745         * lib/freadseek.h: New file.
58746         * lib/freadseek.c: New file.
58747         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
58748
58749 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
58750
58751         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
58752         wydawca.
58753
58754         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
58755         program_invocation_name and program_invocation_short_name are
58756         present.
58757
58758 2008-02-28  Bruno Haible  <bruno@clisp.org>
58759
58760         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
58761         * tests/test-freadptr.sh: Also test non-seekable stdin.
58762
58763 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
58764
58765         * build-aux/bootstrap (source_base, m4_base)
58766         (doc_base, tests_base): New variables.
58767         (gnulib_tool_options): Do not hardcode base directories, use
58768         the above variables instead.
58769
58770 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
58771
58772         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
58773
58774 2008-02-28  Bruno Haible  <bruno@clisp.org>
58775
58776         * modules/freadptr-tests: New file.
58777         * tests/test-freadptr.sh: New file.
58778         * tests/test-freadptr.c: New file.
58779
58780         New module 'freadptr'.
58781         * modules/freadptr: New file.
58782         * lib/freadptr.h: New file.
58783         * lib/freadptr.c: New file.
58784         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
58785
58786 2008-02-26  Karl Berry  <karl@freefriends.org>
58787
58788         Sync from Libtool:
58789         * libltdl/argz.c (argz_add, argz_count): New functions.
58790         * libltdl/argz.in.h: Declare them.
58791         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
58792
58793 2008-02-22  Bruno Haible  <bruno@clisp.org>
58794
58795         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
58796         is a pointer type.  Needed for HP-UX 10.
58797         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
58798         * doc/posix-functions/gmtime_r.texi: Likewise.
58799         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
58800
58801 2008-02-24  Bruno Haible  <bruno@clisp.org>
58802
58803         * modules/environ-tests: New file.
58804         * tests/test-environ.c: New file.
58805
58806         New module 'environ'.
58807         * modules/environ: New file.
58808         * lib/unistd.in.h (environ): New declaration.
58809         * m4/environ.m4: New file.
58810         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
58811         after use.
58812         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
58813         HAVE_DECL_ENVIRON.
58814         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
58815         HAVE_DECL_ENVIRON.
58816         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
58817         wrong claim that 'environ' is missing on some systems.
58818         * modules/execute (Depends-on): Add environ.
58819         * lib/execute.c (environ): Remove fallback declaration.
58820         * modules/pipe (Depends-on): Add environ.
58821         * lib/pipe.c (environ): Remove fallback declaration.
58822         * modules/setenv (Depends-on): Add environ.
58823         * lib/setenv.c (environ): Remove fallback declaration.
58824         * modules/unsetenv (Depends-on): Add environ.
58825         * lib/unsetenv.c (environ): Remove fallback declaration.
58826         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
58827         m4/environ.m4.
58828         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
58829         (gl_PREREQ_UNSETENV): Likewise.
58830
58831 2008-02-24  Bruno Haible  <bruno@clisp.org>
58832
58833         * doc/posix-functions/environ.texi: Document the MacOS X problem.
58834
58835 2008-02-20  Bob Proulx  <bob@proulx.com>
58836
58837         Enable use of older two part flavor 'git describe'.
58838         * build-aux/git-version-gen: If using the older two part flavor of
58839         git version then recreate the third part now present in the
58840         newer three part flavor of git describe.
58841
58842 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
58843
58844         * lib/fts.c (fts_build): Typo correction to comment.
58845
58846 2008-02-17  Bruno Haible  <bruno@clisp.org>
58847
58848         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
58849         generating no-op conflicts.
58850
58851 2008-02-17  Bruno Haible  <bruno@clisp.org>
58852
58853         Speed up by 10%.
58854         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
58855         result_entries, rather than an index-based loop.
58856
58857 2008-02-17  Bruno Haible  <bruno@clisp.org>
58858
58859         Speed up by 25%.
58860         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
58861         'hashcode_cached'.
58862         (entry_create): New function.
58863         (entry_hashcode): Use the cached hashcode if possible.
58864         (read_changelog_file, try_split_merged_entry): Use entry_create.
58865
58866 2008-02-17  Bruno Haible  <bruno@clisp.org>
58867
58868         Speed up from O(n^2) to O(n) for long ChangeLog files.
58869         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
58870         (read_changelog_file): Change implementation of entries_reversed list
58871         to rbtreehash.
58872         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
58873
58874 2008-02-17  Bruno Haible  <bruno@clisp.org>
58875
58876         New option --split-merged-entry.
58877         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
58878         (find_paragraph_end, try_split_merged_entry): New functions.
58879         (long_options): Add option --split-merged-entry.
58880         (usage): Document option --split-merged-entry.
58881         (main): Implement option --split-merged-entry.
58882         Reported by Eric Blake.
58883
58884 2008-02-17  Bruno Haible  <bruno@clisp.org>
58885
58886         * lib/git-merge-changelog.c: Include c-strstr.h.
58887         (main): Support the "git pull --rebase" situation.
58888         * modules/git-merge-changelog (Depends-on): Add c-strstr.
58889         Reported by Eric Blake.
58890
58891 2008-02-16  Eric Blake  <ebb9@byu.net>
58892
58893         Avoid doubling \ in common case of "c-maybe" quoting style.
58894         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
58895         eliding outer quotes.
58896         * lib/quotearg.h: Document this.
58897         * tests/test-quotearg.c (result_strings, inputs, results_g)
58898         (flag_results, locale_results): Test it by adding a new string to
58899         each test group.
58900         (compare_strings): Test new string.
58901
58902 2008-02-13  Eric Blake  <ebb9@byu.net>
58903
58904         Avoid trigraph quoting in default output.
58905         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
58906         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
58907         unless explicitly requested.
58908         * tests/test-quotearg.c (flag_results, main): Add additional tests.
58909
58910 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
58911
58912         Don't rely on signed integer overflowing to negative value.
58913         * lib/getugroups.c (getugroups): Include <limits.h>.
58914         Instead, compare against INT_MAX, and increment only if the test passes.
58915
58916 2008-02-13  Jim Meyering  <meyering@redhat.com>
58917         and Eric Blake  <ebb9@byu.net>
58918
58919         Avoid shadowing warning and compile errors on Linux.
58920         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
58921         forwarding macros on Linux.
58922         (dcgettext): Define a stub, for Linux.
58923         (results_g, main): Avoid warnings.
58924
58925 2008-02-12  Eric Blake  <ebb9@byu.net>
58926
58927         Silence warning in last patch.
58928         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
58929
58930         Quotearg part 4: add tests, fix c-maybe colon quoting.
58931         * lib/quotearg.h: Improve documentation.
58932         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
58933         escapes when adding outer quotes.  When quoting trigraphs, use
58934         valid C notation.  When quoting NUL, omit extra characters if next
58935         character is not digit.  Alter prototype.
58936         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
58937         callers.
58938         * modules/quotearg-tests: New module.
58939         * tests/test-quotearg.c: New test.
58940
58941 2008-02-07  Eric Blake  <ebb9@byu.net>
58942
58943         Quotearg part 3: add flag to control outer quote elision.
58944         * lib/quotearg.h (c_maybe_quoting_style): New style.
58945         (enum quoting_flags): Better documentation of flags.
58946         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
58947         c-maybe style.
58948         (quotearg_buffer_restyled): Handle new flag to elide outer
58949         quotes.
58950
58951         Quotearg part 2: add flag that can control NUL elision.
58952         * lib/quotearg.h (set_quoting_flags): New prototype.
58953         * lib/quotearg.c (struct quoting_options): Add flag field.
58954         (set_quoting_flags): New function.
58955         (quotearg_buffer_restyled): Add flags parameter.
58956         (quotearg_alloc_mem): Set the flag if length cannot be returned.
58957         (quotearg_n_options): Set the flag, since length cannot be
58958         returned.
58959         (quoting_options_from_style): Default flags correctly.
58960
58961         Quotearg part 1: more wrappers, restore quotearg_char state.
58962         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
58963         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
58964         (quotearg_colon_mem): New wrappers.
58965         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
58966         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
58967         functions.
58968         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
58969         (quotearg_colon_mem): New functions.
58970
58971 2008-02-11  Bruno Haible  <bruno@clisp.org>
58972
58973         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
58974         library in the current directory: it does not work with parallel make.
58975         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58976
58977 2008-02-11  Bruno Haible  <bruno@clisp.org>
58978
58979         * .gitattributes: New file.
58980
58981 2008-02-11  Jim Meyering  <meyering@redhat.com>
58982
58983         useless-if-before-free: Fix reversed exit values.
58984         * build-aux/useless-if-before-free: Use correct values
58985         for EXIT_MATCH and EXIT_NO_MATCH.
58986
58987         * build-aux/useless-if-before-free: Close stdout carefully.
58988
58989 2008-02-10  Bruno Haible  <bruno@clisp.org>
58990
58991         New module 'git-merge-changelog'.
58992         * modules/git-merge-changelog: New file.
58993         * lib/git-merge-changelog.c: New file.
58994
58995 2008-02-10  Jim Meyering  <meyering@redhat.com>
58996
58997         useless-if-before-free: New option: --list (-l).
58998
58999         useless-if-before-free: Don't exit immediately upon open failure.
59000         * build-aux/useless-if-before-free: Exit 2 for errors.
59001         Upon failure to open a file, don't exit immediately.
59002         Rather, just warn and continue with any remaining files.
59003
59004 2008-02-10  Bruno Haible  <bruno@clisp.org>
59005
59006         New abstract list operation 'node_set_value'.
59007         * lib/gl_list.h (gl_list_node_set_value): New function.
59008         (struct gl_list_implementation): New field node_set_value.
59009         * lib/gl_list.c (gl_list_node_set_value): New function.
59010         * lib/gl_array_list.c (gl_array_node_set_value): New function.
59011         (gl_array_list_implementation): Update.
59012         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
59013         (gl_carray_list_implementation): Update.
59014         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
59015         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
59016         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
59017         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
59018         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
59019         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
59020         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
59021         Update.
59022         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
59023         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
59024         (gl_sublist_list_implementation): Update.
59025
59026 2008-02-10  Bruno Haible  <bruno@clisp.org>
59027
59028         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
59029         Needed when ELEMENT is #defined to 'some_type *'.
59030
59031 2008-02-10  Jim Meyering  <meyering@redhat.com>
59032
59033         New script and module: useless-if-before-free
59034         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
59035         * build-aux/useless-if-before-free: New file.
59036         * modules/useless-if-before-free: New file.
59037
59038         * build-aux/gitlog-to-changelog: Use committer date, not author date.
59039
59040         xstrtol_error: Fix typo.
59041         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
59042         s/exit_failure/exit_status/.
59043
59044 2008-02-09  Jim Meyering  <meyering@redhat.com>
59045
59046         New script and module: gitlog-to-changelog
59047         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
59048         * modules/gitlog-to-changelog: New file.
59049         * build-aux/gitlog-to-changelog: New file.
59050
59051 2008-02-08  Jim Meyering  <meyering@redhat.com>
59052
59053         Avoid two "parameter unused" warnings.
59054         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
59055         Mark "st" as used.
59056
59057         Use "git COMMAND", not "git-COMMAND".
59058         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
59059         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
59060         * build-aux/git-version-gen: Use "git status", not "git-status".
59061
59062 2008-02-07  Bruno Haible  <bruno@clisp.org>
59063
59064         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
59065         Avoids a crash on Windows Vista.
59066         Reported by Adam Strzelecki <ono@java.pl> via
59067         Simon Josefsson <simon@josefsson.org>.
59068
59069 2008-02-06  Bruno Haible  <bruno@clisp.org>
59070
59071         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
59072         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
59073         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
59074         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
59075         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
59076         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59077         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
59078         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
59079         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59080         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59081         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59082         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59083         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59084         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59085         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59086         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
59087         left-adjust flag.
59088         * tests/test-snprintf-posix.h (test_function): Likewise.
59089         * tests/test-sprintf-posix.h (test_function): Likewise.
59090         * tests/test-vasprintf-posix.c (test_function): Likewise.
59091         * doc/posix-functions/fprintf.texi: Update.
59092         * doc/posix-functions/printf.texi: Update.
59093         * doc/posix-functions/snprintf.texi: Update.
59094         * doc/posix-functions/sprintf.texi: Update.
59095         * doc/posix-functions/vfprintf.texi: Update.
59096         * doc/posix-functions/vprintf.texi: Update.
59097         * doc/posix-functions/vsnprintf.texi: Update.
59098         * doc/posix-functions/vsprintf.texi: Update.
59099         Reported by Peter Fales <psfales@alcatel-lucent.com>.
59100
59101 2008-02-06  Bruno Haible  <bruno@clisp.org>
59102
59103         Fix bug introduced on 2008-01-26.
59104         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
59105
59106 2008-02-06  Bruno Haible  <bruno@clisp.org>
59107
59108         Fix bug introduced on 2007-06-10.
59109         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
59110         !NEED_PRINTF_FLAG_ZERO.
59111
59112 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
59113
59114         getloadavg: use libperfstat on AIX5
59115         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
59116
59117 2008-02-03  Bruno Haible  <bruno@clisp.org>
59118
59119         * lib/diffseq.h: Add comments about required #includes.
59120         Reported by Michael Biggs <gnulib@doubleplum.net>.
59121
59122 2008-02-01  Bruno Haible  <bruno@clisp.org>
59123
59124         * users.txt: Add gnuit.
59125
59126 2008-01-31  Bruno Haible  <bruno@clisp.org>
59127
59128         * lib/md4.c (set_uint32): Mark as inline.
59129         * lib/md5.c (set_uint32): Likewise.
59130         * lib/sha1.c (set_uint32): Likewise.
59131         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
59132         * m4/md5.m4 (gl_MD5): Likewise.
59133         * m4/sha1.m4 (gl_SHA1): Likewise.
59134
59135 2008-01-31  Jim Meyering  <meyering@redhat.com>
59136
59137         Use "sizeof VAR", rather than a literal "4".
59138         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
59139         * lib/md4.c (md4_read_ctx): Likewise.
59140         * lib/sha1.c (sha1_read_ctx): Likewise.
59141
59142 2008-01-31  Simon Josefsson  <simon@josefsson.org>
59143
59144         * tests/test-sha1.c: New file, based on test-md5.c.
59145
59146         * modules/crypto/sha1-tests: New file.
59147
59148 2008-01-31  Simon Josefsson  <simon@josefsson.org>
59149
59150         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
59151
59152 2008-01-31  Jim Meyering  <meyering@redhat.com>
59153
59154         Prefer "sizeof v" over the equivalent "4".
59155         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
59156         * lib/md5.c (set_uint32): Likewise.
59157         * lib/sha1.c (set_uint32): Likewise.
59158
59159 2008-01-31  Simon Josefsson  <simon@josefsson.org>
59160
59161         * lib/sha1.c (set_uint32): Mark function as static.
59162
59163 2008-01-31  Simon Josefsson  <simon@josefsson.org>
59164
59165         md2: clarify comments to say that alignment is not required.
59166         * lib/md2.h: Remove warning about alignment in comment.
59167         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
59168         never been required.
59169
59170 2008-01-31  Simon Josefsson  <simon@josefsson.org>
59171
59172         md4: adapt alignment constraint fix from sha1.
59173         * lib/md4.c (set_uint32): New function, from sha1.c
59174         (md4_read_ctx): Use it.
59175         (md4_finish_ctx): Doc fix.
59176         * lib/md4.h: Doc fix.
59177
59178 2008-01-31  Simon Josefsson  <simon@josefsson.org>
59179
59180         md5: adapt alignment constraint fix from sha1.
59181         * lib/md5.c (set_uint32): New function, from sha1.c
59182         (md5_read_ctx): Use it.
59183         (md5_finish_ctx): Doc fix.
59184         * lib/md5.h: Doc fix.
59185
59186 2008-01-30  Peter Palfrader  <weasel@debian.org>
59187
59188         sha1: remove the result buffer alignment constraint
59189         * lib/sha1.c (set_uint32): New function.
59190         (sha1_read_ctx): Rewrite to remove the result buffer alignment
59191         constraint.
59192         (sha1_finish_ctx): Remove comment warning about alignment constraint.
59193         * lib/sha1.h: Likewise.
59194
59195 2008-01-30  Andreas Schwab  <schwab@suse.de>
59196             Bruno Haible  <bruno@clisp.org>
59197
59198         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
59199         correct definition of LDBL_MIN_EXP.
59200
59201 2008-01-30  Karl Berry  <karl@gnu.org>
59202
59203         * config/srclist-update: try to preserve x bit on updates.
59204         * config/srclistvars.sh: update for karl.
59205
59206 2008-01-29  Jim Meyering  <meyering@redhat.com>
59207
59208         vasnprintf.c: Avoid warning about unused label
59209         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
59210         "overflow" label definition and associated code with the
59211         same cpp condition that guards the sole use of that label.
59212
59213 2008-01-26  Bruno Haible  <bruno@clisp.org>
59214
59215         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
59216         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
59217         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
59218         * lib/isnanl-nolibm.h (isnanl): Likewise.
59219         Reported by Paul Eggert <eggert@cs.ucla.edu>.
59220
59221 2008-01-26  Bruno Haible  <bruno@clisp.org>
59222
59223         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
59224         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
59225
59226 2008-01-26  Bruno Haible  <bruno@clisp.org>
59227
59228         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
59229         GCC >= 4.0 built-in.
59230         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
59231
59232 2008-01-26  Bruno Haible  <bruno@clisp.org>
59233
59234         Rename isnan, applicable to 'double' only, to isnand.
59235         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
59236         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
59237         (configure.ac): Update.
59238         (Include): Replace "isnan.h" with "isnand.h".
59239         * m4/isnand.m4: Renamed from m4/isnan.m4.
59240         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
59241         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
59242         instead of isnan.c.
59243         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
59244         instead of HAVE_ISNAN_IN_LIBC.
59245         (isnand): Renamed from isnan.
59246         * lib/isnand.c: New file.
59247         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
59248         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
59249         (Makefile.am): Update.
59250         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
59251         Include isnand.h instead of isnan.h.
59252         (main): Test isnand instead of isnan.
59253         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
59254         isnan-nolibm.
59255         * modules/frexp (Depends-on): Likewise.
59256         * modules/frexp-tests (Depends-on): Likewise.
59257         * modules/frexp-nolibm (Depends-on): Likewise.
59258         * modules/frexp-nolibm-tests (Depends-on): Likewise.
59259         * modules/isfinite (Depends-on): Likewise.
59260         * modules/round-tests (Depends-on): Likewise.
59261         * modules/signbit (Depends-on): Likewise.
59262         * modules/signbit-tests (Depends-on): Likewise.
59263         * modules/snprintf-posix (Depends-on): Likewise.
59264         * modules/sprintf-posix (Depends-on): Likewise.
59265         * modules/trunc-tests (Depends-on): Likewise.
59266         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
59267         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
59268         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
59269         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
59270         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
59271         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
59272         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
59273         * modules/vasnprintf-posix (Depends-on): Likewise.
59274         * modules/vasprintf-posix (Depends-on): Likewise.
59275         * modules/vfprintf-posix (Depends-on): Likewise.
59276         * modules/vsnprintf-posix (Depends-on): Likewise.
59277         * modules/vsprintf-posix (Depends-on): Likewise.
59278         * lib/frexp.c: Include isnand.h instead of isnan.h.
59279         (ISNAN): Set to isnand instead of isnan.
59280         * lib/isfinite.c: Include isnand.h instead of isnan.h.
59281         (gl_isfinited): Use isnand instead of isnan.
59282         * lib/signbitd.c: Include isnand.h instead of isnan.h.
59283         (gl_signbitd): Use isnand instead of isnan.
59284         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
59285         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
59286         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
59287         (main): Use isnand instead of isnan.
59288         * tests/test-round1.c: Include isnand.h.
59289         (main): Use isnand instead of isnan.
59290         * tests/test-round2.c: Include isnand.h instead of isnan.h.
59291         (ISNAN): Set to isnand instead of isnan.
59292         * tests/test-trunc1.c: Include isnand.h.
59293         (main): Use isnand instead of isnan.
59294         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
59295         (equal): Use isnand instead of isnan.
59296         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
59297         isnand-nolibm.
59298         * NEWS: Mention the change.
59299
59300 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
59301             Bruno Haible  <bruno@clisp.org>
59302
59303         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
59304         the GCC builtins for signbits are present and set
59305         REPLACE_SIGNBIT_USING_GCC if so.
59306         * lib/math.in.h (signbit): Define using GCC builtins if
59307         REPLACE_SIGNBIT_USING_GCC is set.
59308         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
59309         REPLACE_SIGNBIT_USING_GCC.
59310         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
59311
59312 2008-01-25  Jim Meyering  <meyering@redhat.com>
59313
59314         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
59315         * lib/poll.c: Include <config.h>, not "config.h".
59316         * tests/test-getaddrinfo.c: Likewise.
59317
59318 2008-01-25  Simon Josefsson  <simon@josefsson.org>
59319
59320         * modules/sockets-tests: New file.
59321
59322 2008-01-24  Simon Josefsson  <simon@josefsson.org>
59323
59324         * modules/sockets: New module, can be used to call WSA_Startup and
59325         WSA_Cleanup when needed.
59326
59327         * lib/sockets.h, lib/sockets.c: New files.
59328
59329         * m4/sockets.m4: New file.
59330
59331         * tests/test-sockets.c: New file.
59332
59333 2008-01-19  Bruno Haible  <bruno@clisp.org>
59334
59335         * doc/posix-headers: Renamed from doc/headers.
59336         * doc/posix-functions: Renamed from doc/functions.
59337         * doc/gnulib.texi: Update.
59338
59339 2008-01-19  Bruno Haible  <bruno@clisp.org>
59340
59341         * doc/glibc-functions/strcasestr.texi: Include contents of
59342         doc/functions/strcasestr.texi, fixing the list of platforms.
59343         * doc/functions/strcasestr.texi: Remove file.
59344
59345 2008-01-19  Bruno Haible  <bruno@clisp.org>
59346
59347         * doc/glibc-functions/memmem.texi: Include contents of
59348         doc/functions/memmem.texi.
59349         * doc/functions/memmem.texi: Remove file.
59350
59351 2008-01-18  Bruno Haible  <bruno@clisp.org>
59352
59353         * doc/glibc-functions/*.texi: New files.
59354         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
59355         to use the new files.
59356
59357 2008-01-17  Bruno Haible  <bruno@clisp.org>
59358
59359         * tests/test-gethostname.c (main): Fix printf statement.
59360
59361 2008-01-17  Simon Josefsson  <simon@josefsson.org>
59362
59363         * modules/gethostname-tests: New file.
59364
59365         * tests/test-gethostname.c: New file.
59366
59367 2008-01-17  Simon Josefsson  <simon@josefsson.org>
59368
59369         * lib/gethostname.c: Include string.h unconditionally, strncpy is
59370         used by the UNAME case.  Reported by Bruno Haible
59371         <bruno@clisp.org>.
59372
59373 2008-01-17  Eric Blake  <ebb9@byu.net>
59374
59375         Convert c-strcasestr to be more efficient.
59376         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
59377         (Depends-on): Add c-strcase, remove malloca, strnlen.
59378         * tests/test-c-strcasestr.c (main): Enhance test.
59379         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
59380
59381 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
59382
59383         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
59384         Use it in creating po/Makevars.
59385
59386 2008-01-15  Simon Josefsson  <simon@josefsson.org>
59387
59388         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
59389         Applications that requires it should initialize libgcrypt
59390         manually.
59391
59392 2008-01-16  Simon Josefsson  <simon@josefsson.org>
59393
59394         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
59395
59396 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
59397
59398         Fix problem with getdate on mingw32 reported by Simon Josefsson
59399         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
59400         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
59401         tzname", when deciding whether to declare tzname.
59402         * lib/strftime.c (tzname): Likewise.
59403
59404 2008-01-15  Bruno Haible  <bruno@clisp.org>
59405
59406         Work around a MacOS X 10.5 bug in frexpl().
59407         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
59408         * doc/functions/frexpl.texi: Document the bug.
59409         Reported by Elias Pipping <pipping@gentoo.org>.
59410
59411 2008-01-14  Eric Blake  <ebb9@byu.net>
59412
59413         Touch up previous patch.
59414         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
59415         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
59416
59417         Convert strcasestr module to use Two-Way algorithm.
59418         * modules/strcasestr-simple: New module, based on the old
59419         strcasestr, but with Two-Way rather than KMP.
59420         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
59421         * lib/string.in.h (rpl_strcasestr): Declare.
59422         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
59423         performance.
59424         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
59425         * modules/string (Makefile.am): Support strcasestr.
59426         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
59427         * modules/strcasestr-tests (Depends-on): Check for alarm.
59428         * tests/test-strcasestr.c: Augment test.
59429         * lib/str-two-way.h: Clean up stray macro.
59430         * NEWS: Document new module.
59431         * MODULES.html.sh (string handling): Likewise.
59432         * doc/functions/strcasestr.texi: New file.
59433         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
59434         here, since it is not a POSIX function.
59435
59436 2008-01-14  Colin Watson  <cjwatson@debian.org>
59437             Bruno Haible  <bruno@clisp.org>
59438
59439         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
59440         works fine; if not, set REPLACE_STRSIGNAL.
59441         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
59442         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
59443         REPLACE_STRSIGNAL.
59444         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
59445         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
59446         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
59447
59448 2008-01-14  Bruno Haible  <bruno@clisp.org>
59449
59450         * modules/strsignal (Include): Change to <string.h>.
59451
59452 2008-01-14  Colin Watson  <cjwatson@debian.org>
59453
59454         * modules/argp (Notice): Add a notice recommending to change
59455         XGETTEXT_OPTIONS.
59456         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
59457
59458 2008-01-13  Colin Watson  <cjwatson@debian.org>
59459
59460         * modules/strsignal-tests: New file.
59461         * tests/test-strsignal.c: New file.
59462
59463         * lib/strsignal.c: New file, from glibc with modifications.
59464         * lib/siglist.h: New file, from glibc with modifications.
59465         * lib/string.in.h (strsignal): New declaration.
59466         * m4/strsignal.m4: New file.
59467         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
59468         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
59469         * modules/strsignal: New file.
59470         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
59471         HAVE_DECL_STRSIGNAL.
59472
59473 2008-01-13  Bruno Haible  <bruno@clisp.org>
59474
59475         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
59476         locale encoding is not ASCII. Needed for OpenBSD 4.0.
59477         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
59478         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
59479
59480 2008-01-13  Bruno Haible  <bruno@clisp.org>
59481
59482         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
59483         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
59484         * lib/argp.h (__attribute__): Likewise.
59485         * lib/c-stack.c (__attribute__): Likewise.
59486         * lib/error.h (__attribute__): Likewise.
59487         * lib/fts.c (__attribute__): Likewise.
59488         * lib/openat.h (__attribute__): Likewise.
59489         * lib/stdio.in.h (__attribute__): Likewise.
59490         * lib/string.in.h (__attribute__): Likewise.
59491         * lib/utimens.c (__attribute__): Likewise.
59492         * lib/vasnprintf.h (__attribute__): Likewise.
59493         * lib/xalloc.h (__attribute__): Likewise.
59494         * lib/xprintf.h (__attribute__): Likewise.
59495         * lib/xstrtol.h (__attribute__): Likewise.
59496         * lib/xvasprintf.h (__attribute__): Likewise.
59497
59498 2008-01-12  Bruno Haible  <bruno@clisp.org>
59499
59500         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
59501         * doc/glibc-headers/a.out.texi: New file.
59502         * doc/glibc-headers/aliases.texi: New file.
59503         * doc/glibc-headers/alloca.texi: New file.
59504         * doc/glibc-headers/ar.texi: New file.
59505         * doc/glibc-headers/argp.texi: New file.
59506         * doc/glibc-headers/argz.texi: New file.
59507         * doc/glibc-headers/byteswap.texi: New file.
59508         * doc/glibc-headers/crypt.texi: New file.
59509         * doc/glibc-headers/endian.texi: New file.
59510         * doc/glibc-headers/envz.texi: New file.
59511         * doc/glibc-headers/err.texi: New file.
59512         * doc/glibc-headers/error.texi: New file.
59513         * doc/glibc-headers/execinfo.texi: New file.
59514         * doc/glibc-headers/fpu_control.texi: New file.
59515         * doc/glibc-headers/fstab.texi: New file.
59516         * doc/glibc-headers/fts.texi: New file.
59517         * doc/glibc-headers/getopt.texi: New file.
59518         * doc/glibc-headers/ieee754.texi: New file.
59519         * doc/glibc-headers/ifaddrs.texi: New file.
59520         * doc/glibc-headers/libintl.texi: New file.
59521         * doc/glibc-headers/mcheck.texi: New file.
59522         * doc/glibc-headers/mntent.texi: New file.
59523         * doc/glibc-headers/obstack.texi: New file.
59524         * doc/glibc-headers/paths.texi: New file.
59525         * doc/glibc-headers/printf.texi: New file.
59526         * doc/glibc-headers/pty.texi: New file.
59527         * doc/glibc-headers/resolv.texi: New file.
59528         * doc/glibc-headers/shadow.texi: New file.
59529         * doc/glibc-headers/sysexits.texi: New file.
59530         * doc/glibc-headers/ttyent.texi: New file.
59531
59532 2008-01-12  Jim Meyering  <meyering@redhat.com>
59533
59534         announce-gen: emit Gnulib's git-based version string.
59535         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
59536         New option --gnulib-version=V, where V is expected to be
59537         the output of running git describe in the gnulib directory.
59538         (get_tool_versions): Request feedback on xdelta.  I suspect it's
59539         not useful, and plan to stop publishing an xdelta file with each
59540         coreutils release.
59541
59542         * build-aux/announce-gen: Also check for lzma-compressed files.
59543
59544 2008-01-11  Bruno Haible  <bruno@clisp.org>
59545
59546         * tests/test-memmem.c (main): Increase maximum allowed time.
59547         * tests/test-strstr.c (main): Likewise.
59548
59549 2008-01-11  Bruno Haible  <bruno@clisp.org>
59550
59551         * doc/functions/memmem.texi: Add more precisions about platforms.
59552         * doc/functions/strstr.texi: Likewise.
59553
59554 2008-01-10  Eric Blake  <ebb9@byu.net>
59555
59556         * m4/strstr.m4: Delete cruft from copy-n-paste.
59557         Reported by Bruno Haible.
59558
59559 2008-01-10  Bruno Haible  <bruno@clisp.org>
59560
59561         Make c-strstr rely on strstr.
59562         * lib/c-strstr.c: Don't include str-kmp.h.
59563         (c_strstr): Define in terms of strstr.
59564         * modules/c-strstr (Files): Remove lib/str-kmp.h.
59565         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
59566
59567 2008-01-10  Bruno Haible  <bruno@clisp.org>
59568
59569         * doc/gnulib.texi (String Functions in C Locale): New section.
59570         * doc/c-ctype.texi: New file.
59571         * doc/c-strcase.texi: New file.
59572         * doc/c-strcaseeq.texi: New file.
59573         * doc/c-strcasestr.texi: New file.
59574         * doc/c-strstr.texi: New file.
59575         * doc/c-strtod.texi: New file.
59576         * doc/c-strtold.texi: New file.
59577
59578 2008-01-10  Eric Blake  <ebb9@byu.net>
59579
59580         * lib/relocatable.h: Fix a comment.
59581
59582 2008-01-10  Eric Blake  <ebb9@byu.net>
59583
59584         Share two-way algorithm.
59585         * lib/str-two-way.h: New file, merged from...
59586         * lib/memmem.c: ...here...
59587         * lib/strstr.c: ...and here.
59588         * modules/memmem (Files): Use it.
59589         * modules/strstr (Files): Likewise.
59590
59591         Avoid quadratic strstr implementations.
59592         * lib/strstr.c: New file.
59593         * m4/strstr.m4: Likewise.
59594         * modules/strstr: Likewise.
59595         * modules/strstr-tests: Likewise.
59596         * tests/test-strstr.c: Likewise.
59597         * lib/string.in.h (rpl_strstr): Declare.
59598         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
59599         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
59600         * modules/string (Makefile.am): Likewise.
59601         * MODULES.html.sh (string handling): Mention new module.
59602         * doc/functions/strstr.texi (strstr): Document the bug.
59603
59604 2008-01-10  Bruno Haible  <bruno@clisp.org>
59605
59606         * lib/relocatable.h (relocate): State whether result is freshly
59607         allocated or not.
59608         * lib/relocatable.c (relocate): Return a freshly allocated string
59609         instead of a pointer to a privately held string.
59610         Reported by Sylvain Beucler <beuc@gnu.org>.
59611
59612 2008-01-10  Colin Watson  <cjwatson@debian.org>
59613
59614         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
59615         s/S_ISNLK/S_ISLNK/.
59616
59617 2008-01-09  Bruno Haible  <bruno@clisp.org>
59618
59619         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
59620         and other files.
59621         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
59622         if it's only a guess.
59623         * modules/memmem: Simplify by depending on memmem-simple.
59624
59625 2008-01-09  Bruno Haible  <bruno@clisp.org>
59626
59627         Work around OpenBSD 4.0 tdelete() bug.
59628         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
59629         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
59630         macros and don't redefine the enum values.
59631         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
59632         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
59633         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
59634
59635 2008-01-09  Bruno Haible  <bruno@clisp.org>
59636
59637         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
59638         (main): Don't perform the tests if setlocale did not install a UTF-8
59639         locale. Needed on OpenBSD 4.0.
59640         * modules/wcwidth-tests (Depends-on): Add localcharset.
59641
59642 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
59643
59644         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
59645         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
59646         * NEWS: announce this.
59647         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
59648
59649 2008-01-09  Simon Josefsson  <simon@josefsson.org>
59650         and Eric Blake  <ebb9@byu.net>
59651
59652         Add memmem-simple module.
59653         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
59654         (gl_FUNC_MEMMEM): Separate performance from presence checks.
59655         * modules/memmem-simple: New file.
59656         * modules/memmem (Description): Tweak.
59657         * MODULES.html.sh (string handling): Mention new module.
59658         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
59659         addressed by memmem-simple.
59660         * NEWS: Document the difference.
59661
59662 2008-01-09  Eric Blake  <ebb9@byu.net>
59663
59664         Give gcc some memmem optimization hints.
59665         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
59666         (strcasestr): Declare as pure.
59667         * modules/memmem (Maintainer): Claim my implementation.
59668
59669 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59670
59671         Support AIX 6.1 and higher.
59672         * build-aux/config.libpath: Likewise.
59673         * build-aux/config.rpath: Likewise.
59674
59675 2008-01-08  Jim Meyering  <meyering@redhat.com>
59676             Bruno Haible  <bruno@clisp.org>
59677
59678         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
59679         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
59680         Reported by Peter Fales in
59681         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
59682
59683 2008-01-08  Bruno Haible  <bruno@clisp.org>
59684
59685         * modules/unictype/category-of (Depends-on): Add
59686         unictype/category-none.
59687         * modules/unictype/category-and-tests (Depends-on): Add
59688         unictype/category-{L,N,Lu,Nd}.
59689         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
59690         * modules/unictype/category-or-tests (Depends-on): Add
59691         unictype/category-{L,N}.
59692         * modules/unictype/category-name-tests (Depends-on): Add
59693         unictype/category-{Z,Nl}.
59694         Reported by Simon Josefsson.
59695
59696 2008-01-08  Bruno Haible  <bruno@clisp.org>
59697
59698         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
59699         convention better.
59700         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
59701         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
59702         Reported by Peter Miller <millerp@canb.auug.org.au>.
59703
59704 2008-01-08  Eric Blake  <ebb9@byu.net>
59705
59706         Rewrite memmem to guarantee linear complexity without malloc.
59707         * lib/memmem.c (memmem): Use Two-Way rather than
59708         Knuth-Morris-Pratt, to allow O(1) space usage.
59709         (critical_factorization, two_way_short_needle)
59710         (two_way_long_needle): New functions.
59711         (knuth_morris_pratt): Delete.
59712         * modules/memmem (Depends-on): No longer need malloca or stdbool.
59713         Add stdint.
59714         * tests/test-memmem.c (main): Add tests for periodic needle and
59715         sublinear performance.
59716         * doc/functions/memmem.texi (memmem): Document other deficiencies
59717         in cygwin and older glibc.
59718
59719 2008-01-08  Bruno Haible  <bruno@clisp.org>
59720
59721         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
59722         augmentation.
59723
59724 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
59725
59726         Add a configure time option: --disable-acl.
59727         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
59728         AC_ARG_ENABLE(acl).
59729
59730 2008-01-06  Simon Josefsson  <simon@josefsson.org>
59731
59732         * tests/test-localename.c: Don't include obsolete "setenv.h".
59733
59734         * modules/localename-tests (Depends-on): Need unsetenv.
59735
59736 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59737
59738         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
59739
59740 2008-01-06  Colin Watson  <cjwatson@debian.org>
59741
59742         * users.txt: Add man-db.
59743
59744 2008-01-07  Bruno Haible  <bruno@clisp.org>
59745
59746         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
59747         previous section name.
59748
59749 2008-01-07  Bruno Haible  <bruno@clisp.org>
59750
59751         * lib/progname.c (set_program_name): Don't strip off a leading
59752         "lt-" prefix outside a .libs directory.
59753         Suggested by Paul Eggert.
59754
59755 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
59756             Bruno Haible  <bruno@clisp.org>
59757
59758         Improve memory cleanup in 'relocatable' module.
59759         * lib/relocatable.h (compute_curr_prefix): Change return type to
59760         'char *'.
59761         * lib/relocatable.c (compute_curr_prefix): Change return type to
59762         'char *'. Free curr_installdir after use.
59763         (relocate): Free curr_prefix_better after use.
59764         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
59765
59766 2008-01-01  Bruno Haible  <bruno@clisp.org>
59767
59768         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
59769         failure on older glibc systems.
59770         Reported by Peter Fales <psfales@alcatel-lucent.com>.
59771
59772 2008-01-05  Eric Blake  <ebb9@byu.net>
59773
59774         Avoid quadratic system memmem.
59775         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
59776         Reported by Ralf Wildenhues.
59777
59778         Fix memmem test for mingw.
59779         * modules/memmem-tests (configure.ac): Check for alarm.
59780         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
59781         it.
59782         * doc/functions/memmem.texi: New file.
59783         * doc/gnulib.texi (Function Substitutes): Add memmem.
59784         Reported by Bruno Haible.
59785
59786 2008-01-04  Bruno Haible  <bruno@clisp.org>
59787
59788         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
59789         Require gl_HEADER_STRINGS_H_DEFAULTS, not
59790         gl_HEADER_STRING_H_DEFAULTS.
59791
59792 2008-01-04  Eric Blake  <ebb9@byu.net>
59793
59794         Shorten duration of memmem test.
59795         * tests/test-memmem.c (main): Use alarm to declare failure if test
59796         is taking too long.
59797         Reported by Ralf Wildenhues.
59798
59799 2007-12-21  Simon Josefsson  <simon@josefsson.org>
59800
59801         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
59802         string, needed by strerror.
59803
59804 2008-01-03  Colin Watson  <cjwatson@debian.org>
59805             Bruno Haible  <bruno@clisp.org>
59806
59807         * doc/gnulib-tool.texi (Localization): New section.
59808
59809 2008-01-02  Bruno Haible  <bruno@clisp.org>
59810
59811         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
59812         variables to 'unsigned char *' type.
59813         Reported by Paul Eggert.
59814
59815 2008-01-02  Jim Meyering  <jim@meyering.net>
59816
59817         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
59818
59819 2007-12-31  Jim Meyering  <jim@meyering.net>
59820
59821         Avoid use of private FTS type name.
59822         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
59823
59824 2007-12-30  Karl Berry  <karl@gnu.org>
59825
59826         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
59827         work around defect in Texinfo and/or the standalone Info browser.
59828
59829 2007-12-30  Bruno Haible  <bruno@clisp.org>
59830
59831         Unify 5 copies of the KMP code.
59832         * lib/str-kmp.h: New file.
59833         * lib/c-strcasestr.c: Include str-kmp.h.
59834         (knuth_morris_pratt): Remove function.
59835         (c_strcasestr): Update.
59836         * lib/c-strstr.c: Include str-kmp.h.
59837         (knuth_morris_pratt): Remove function.
59838         (c_strcasestr): Update.
59839         * lib/mbscasestr.c: Include str-kmp.h.
59840         (knuth_morris_pratt_unibyte): Remove function.
59841         * lib/mbsstr.c: Include str-kmp.h.
59842         (knuth_morris_pratt_unibyte): Remove function.
59843         * lib/strcasestr.c: Include str-kmp.h.
59844         (knuth_morris_pratt): Remove function.
59845         (strcasestr): Update.
59846         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
59847         * modules/c-strstr (Files): Likewise.
59848         * modules/mbscasestr (Files): Likewise.
59849         * modules/mbsstr (Files): Likewise.
59850         * modules/strcasestr (Files): Likewise.
59851         Suggested by Paul Eggert.
59852
59853 2007-12-30  Bruno Haible  <bruno@clisp.org>
59854
59855         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
59856         defined.
59857
59858 2007-12-30  Bruno Haible  <bruno@clisp.org>
59859
59860         * lib/xmalloca.h: Include xalloc.h.
59861         (xnmalloca): New macro.
59862
59863 2007-12-30  Bruno Haible  <bruno@clisp.org>
59864
59865         * lib/malloca.h (nmalloca): New macro.
59866         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
59867         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
59868         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
59869         knuth_morris_pratt_multibyte): Likewise.
59870         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
59871         knuth_morris_pratt_multibyte): Likewise.
59872         * lib/memmem.c (knuth_morris_pratt): Likewise.
59873         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
59874
59875 2007-12-25  Bruno Haible  <bruno@clisp.org>
59876
59877         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
59878         * lib/glob.c: Don't include openat.h.
59879         (link_exists2_p): Add back the code that deals with the
59880         !GLOB_ALTDIRFUNC case.
59881         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
59882         let it do the filename concatenation.
59883         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
59884         * modules/glob (Depends-on): Remove openat.
59885
59886 2007-12-31  Bruno Haible  <bruno@clisp.org>
59887
59888         * modules/dirfd (License): Change to LGPLv2+.
59889         Approved by Jim Meyering.
59890
59891 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
59892
59893         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
59894         when multiplying M by sizeof (size_t).
59895
59896 2007-12-10  Martin Lambers  <marlam@marlam.de>
59897
59898         Override getpagesize on mingw.
59899         * lib/getpagesize.c: New file.
59900         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
59901         * modules/getpagesize (Files): Add lib/getpagesize.c.
59902         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
59903         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
59904         REPLACE_GETPAGESIZE.
59905         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
59906
59907 2007-12-25  Bruno Haible  <bruno@clisp.org>
59908
59909         * modules/localcharset (Notice): New field.
59910         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
59911         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
59912
59913 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
59914             Bruno Haible  <bruno@clisp.org>
59915
59916         Avoid using the syntax symbol() in formatted documentation.
59917         * MODULES.html.sh (func_module): When replacing symbol() with a
59918         hyperlink, remove the parentheses. Show an error if some remain.
59919         Recognize and render the '...' syntax.
59920         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
59921         Rework. Add paragraph about GCC's inlining.
59922         * doc/alloca.texi: Likewise.
59923         * doc/error.texi: Remove parentheses from symbol reference.
59924         * doc/gnulib-intro.texi: Likewise.
59925         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
59926         * modules/fnmatch (Description): Reword to say "the ... function".
59927         * modules/full-read (Description): Likewise.
59928         * modules/full-write (Description): Likewise.
59929         * modules/safe-read (Description): Likewise.
59930         * modules/safe-write (Description): Likewise.
59931         * modules/strchrnul (Description): Likewise.
59932         * modules/trim (Description): Likewise.
59933         * modules/error (Description): Remove parentheses from symbol
59934         references.
59935         * modules/verror (Description): Likewise.
59936         Reported by Karl Berry.
59937
59938 2007-12-25  Bruno Haible  <bruno@clisp.org>
59939
59940         Fixup after 2007-10-16 commit.
59941         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
59942
59943 2007-12-24  Bruno Haible  <bruno@clisp.org>
59944
59945         Make --enable-relocatable work with DESTDIR.
59946         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
59947         to compute installdir from destprog.
59948         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
59949         also set the RELOC_DESTDIR variable.
59950         Reported by Левашев Иван <octagram@bluebottle.com>.
59951
59952 2007-12-24  Bruno Haible  <bruno@clisp.org>
59953
59954         Fix link error due to xalloc_die().
59955         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
59956         of xreadlink.
59957         * lib/relocwrapper.c: Update comments.
59958         * build-aux/install-reloc: Remove xreadlink.c from file list.
59959         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
59960         xreadlink.c.
59961         Reported by Левашев Иван <octagram@bluebottle.com>.
59962
59963 2007-12-24  Bruno Haible  <bruno@clisp.org>
59964
59965         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
59966         * lib/setenv.h: Remove file.
59967         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
59968         lib/setenv.h.
59969         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
59970         (Depends-on): Add stdlib.
59971         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
59972         gl_FUNC_UNSETENV.
59973         (Include): Replace setenv.h with <stdlib.h>.
59974         * modules/unsetenv: New file.
59975         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
59976         * lib/unsetenv.c: Include <stdlib.h> first.
59977         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
59978         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
59979         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
59980         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
59981         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
59982         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
59983         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
59984         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
59985         * doc/functions/unsetenv.texi: Update.
59986         * modules/xsetenv (Depends-on): Add unsetenv.
59987         * modules/getdate (Depends-on): Likewise.
59988         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
59989         * lib/xsetenv.c: Don't include setenv.h.
59990         * lib/getdate.y: Likewise.
59991         * lib/relocwrapper.c: Likewise.
59992         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
59993         (Depends-on): Add stdlib.
59994         * NEWS: Mention the changes.
59995         Reported by Левашев Иван <octagram@bluebottle.com>.
59996
59997 2007-12-23  Bruno Haible  <bruno@clisp.org>
59998
59999         * lib/memmem.c (memmem): Use lowercase variable names. Tab
60000         indentation.
60001
60002 2007-12-23  Bruno Haible  <bruno@clisp.org>
60003
60004         * lib/c-strcasestr.c: Add more comments.
60005         * lib/c-strstr.c: Likewise.
60006         * lib/mbscasestr.c: Likewise.
60007         * lib/mbsstr.c: Likewise.
60008         * lib/strcasestr.c: Likewise.
60009         * lib/memmem.c: Likewise.
60010
60011 2007-12-23  Bruno Haible  <bruno@clisp.org>
60012
60013         * tests/test-memmem.c: Include <string.h> first.
60014
60015 2007-12-22  Bruno Haible  <bruno@clisp.org>
60016
60017         * gnulib-tool (func_create_testdir): Change $auxdir while generating
60018         the contents of $testsbase.
60019         Reported by Ralf Wildenhues.
60020
60021 2007-12-22  Bruno Haible  <bruno@clisp.org>
60022
60023         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
60024         two variables local_ldadd_before, local_ldadd_last.
60025
60026 2007-12-20  Eric Blake  <ebb9@byu.net>
60027
60028         Work around circular library issue when cross-compiling.
60029         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
60030         that progname.o does not need to pull in rpl_memcmp.
60031
60032 2007-12-19  Eric Blake  <ebb9@byu.net>
60033
60034         Fix memmem to avoid O(n^2) worst-case complexity.
60035         * lib/memmem.c (knuth_morris_pratt): New function.
60036         (memmem): Use it if first few naive iterations fail.
60037         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
60038         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
60039         * modules/memchr (License): Likewise.
60040         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
60041         malloca.
60042         * tests/test-memmem.c: Rewrite, borrowing ideas from
60043         test-mbsstr1.c; the old version wouldn't even compile!
60044         * modules/memmem-tests: New file.
60045         * lib/string.in.h (rpl_memmem): Add declaration.
60046         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
60047         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
60048         REPLACE_MEMMEM.
60049
60050 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
60051
60052         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
60053         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
60054         before any system include files, and undef after them all.  This
60055         should fix a problem on VMS reported by John E. Malmberg in
60056         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
60057
60058 2007-12-17  Eric Blake  <ebb9@byu.net>
60059
60060         Revert addition of verify, for BSD/OS.
60061         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
60062         can't handle large files, for the sake of obsolete platforms.
60063         * modules/fseeko (Depends-on): Remove verify.
60064         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
60065         * doc/functions/ftello.texi (ftello): Likewise.
60066         * doc/functions/fgetpos.texi (fgetpos): Likewise.
60067         Reported by Larry Jones.
60068
60069 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
60070
60071         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
60072         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
60073
60074 2007-12-17  Jim Meyering  <meyering@redhat.com>
60075
60076         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
60077         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
60078         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
60079         * modules/getcwd (Depends-on): Add openat.
60080         Reported by Petr Salinger.
60081
60082 2007-12-17  Bruno Haible  <bruno@clisp.org>
60083
60084         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
60085         avoid a segmentation fault of the configure test on x86_64 systems.
60086
60087 2007-12-15  Jim Meyering  <meyering@redhat.com>
60088
60089         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
60090
60091 2007-12-13  Eric Blake  <ebb9@byu.net>
60092
60093         Another fseek test.
60094         * tests/test-fseek.c (main): Also test ungetc handling.
60095         * tests/test-fseeko.c (main): Likewise.
60096         * modules/fseeko (Depends-on): Add verify.
60097         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
60098         large.
60099         Reported by Larry Jones.
60100
60101         Fix fseeko on mingw.
60102         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
60103         seek.
60104
60105         Beef up fseek tests.
60106         * tests/test-fseek.c (main): Also test eof handling.
60107         * tests/test-fseeko.c (main): Likewise.
60108         Reported by Larry Jones.
60109
60110 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
60111
60112         Fix fseeko on BSD-based platforms.
60113         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
60114         successful seek.
60115
60116 2007-12-12  Eric Blake  <ebb9@byu.net>
60117
60118         Allow circular dependency of separate libtests.a
60119         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
60120         when use_libtests.
60121
60122 2007-12-11  Eric Blake  <ebb9@byu.net>
60123
60124         Fix bug with -0.0L in previous patch.
60125         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
60126         * tests/test-isnan.c (main): Also test on zeroes.
60127         * tests/test-isnanf.c (main): Likewise.
60128         * tests/test-isnanl.h (main): Likewise.
60129
60130         Detect pseudo-denormals on x86 even when cross-compiling.
60131         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
60132         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
60133         invalid bit patterns that happen to satisfy ==.
60134
60135         Avoid link failures with separate libtests.a.
60136         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
60137         last, to satisfy circular dependencies.
60138
60139 2007-12-11  Eric Blake  <ebb9@byu.net>
60140         and Bruno Haible  <bruno@clisp.org>
60141
60142         Fix OpenBSD 4.0 <float.h> handling of long double.
60143         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
60144         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
60145         * doc/headers/float.texi (float.h): Document OpenBSD bug.
60146
60147 2007-12-11  Jim Meyering  <meyering@redhat.com>
60148
60149         * users.txt: Add libvirt.
60150
60151         Support versions of autoconf prior to 2.59c.
60152         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
60153         if it is not already defined.
60154
60155 2007-12-09  Bruno Haible  <bruno@clisp.org>
60156
60157         Let 'gnulib-tool --import' collect sources needed for the tests in
60158         tests/ rather than in lib/.
60159         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
60160         argument. If true, add rules to generate libtests.a, and put libtests.a
60161         into $(LDADD). Consider source files in subdirectories and set
60162         uses_subdirs.
60163         (func_emit_initmacro_start, func_emit_initmacro_end,
60164         func_emit_initmacro_done): Pass all arguments explicitly.
60165         (func_import): Determine two module lists main_modules,
60166         testsrelated_modules. Determine use_libtests. Determine two variables
60167         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
60168         instead of just sed_transform_lib_file. Determine two variables
60169         main_files and testsrelated_files. Compute 'files' as the union of
60170         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
60171         func_add_or_update. In the generated gnulib-comp.m4, collect the
60172         object files for tests/ in different variables than those for lib/.
60173         Substitute LIBTESTS_LIBDEPS.
60174         (func_create_testdir): Combine the uses_subdirs results from
60175         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
60176
60177 2007-12-09  Bruno Haible  <bruno@clisp.org>
60178
60179         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
60180         the build-aux directory.
60181
60182 2007-12-09  Bruno Haible  <bruno@clisp.org>
60183
60184         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
60185         introduced on 2006-09-09.
60186
60187 2007-12-07  Jim Meyering  <meyering@redhat.com>
60188
60189         Let these macros work also with autoconf-2.59.
60190         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
60191         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
60192         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
60193
60194 2007-12-06  Jim Meyering  <meyering@redhat.com>
60195
60196         Avoid a configure-time syntax error in gl_FUNC_ACL.
60197         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
60198         function in each branch, before testing the cache variable.
60199
60200 2007-12-04  Eric Blake  <ebb9@byu.net>
60201
60202         Make scripts executable.
60203         * build-aux/config.guess: Add execute permissions.
60204         * build-aux/config.sub: Likewise.
60205         * build-aux/gendocs.sh: Likewise.
60206
60207         Fix frexp on mingw.
60208         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
60209         cross-compiling.
60210         * doc/functions/frexp.texi (frexp): Document the bug.
60211
60212         Make cygwin fseeko check more reliable.
60213         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
60214         version numbers, rather than unrelated feature check.
60215         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
60216         * doc/functions/ftello.texi (ftello): Likewise.
60217         Reported by Bruno Haible.
60218
60219         * m4/strerror.m4: Bump version number.
60220
60221 2007-12-03  Bruno Haible  <bruno@clisp.org>
60222
60223         * doc/functions/mprotect.texi: Mention the mingw problem.
60224
60225 2007-12-03  Eric Blake  <ebb9@byu.net>
60226
60227         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
60228         REPLACE_STRERROR is initialized before this macro.
60229
60230 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
60231
60232         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
60233         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
60234         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
60235         put -lsec in even for programs other than 'ls'.  This fixes a problem
60236         for gettext reported by Bruno Haible in
60237         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
60238         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
60239         Add support for Solaris 10.  This isn't efficient, but should get the
60240         job done for now.
60241
60242 2007-12-03  James Youngman  <jay@gnu.org>
60243
60244         * doc/regexprops-generic.texi: change "an close-group" to "a
60245         close-group" and "illegal" to "not allowed".
60246
60247 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60248
60249         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
60250         pr_byname.h. Needed for the rare case when the maintainer has done
60251         "make maintainer-clean" in the source directory and then attempts a
60252         build outside the source directory.
60253         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
60254         scripts_byname.h.
60255
60256 2007-12-02  Martin Lambers <marlam@marlam.de>
60257             Bruno Haible  <bruno@clisp.org>
60258
60259         * lib/getpagesize.h: Remove file.
60260         * lib/unistd.in.h: Include declaration of getpagesize here.
60261         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
60262         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
60263         HAVE_SYS_PARAM_H.
60264         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
60265         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
60266         * modules/getpagesize (Files): Remove lib/getpagesize.h.
60267         (Depends-on): Add unistd.
60268         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
60269         (Include): Use <unistd.h> instead of getpagesize.h.
60270         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
60271         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
60272         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
60273         gl_GETPAGESIZE invocation, already handled by module dependency.
60274         * lib/pagealign_alloc.c: Don't include getpagesize.h.
60275
60276 2007-12-02  Bruno Haible  <bruno@clisp.org>
60277
60278         * modules/strings-tests: New file.
60279         * tests/test-strings.c: New file.
60280
60281         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
60282         * lib/strings.in.h: New file.
60283         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
60284         * m4/strings_h.m4: New file.
60285         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
60286         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
60287         * modules/strings: New file.
60288         * modules/string (Makefile.am): Update.
60289         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
60290         Reported by Karl Berry.
60291
60292 2007-12-01  Eric Blake  <ebb9@byu.net>
60293
60294         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
60295         accommodate fix in cygwin 1.5.25.
60296
60297 2007-12-01  Jim Meyering  <meyering@redhat.com>
60298
60299         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
60300         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
60301         that would inhibit utf8-optimization of a regexp containing line-
60302         or buffer-anchors, e.g., `^', `$'.
60303
60304 2007-11-30  Bruno Haible  <bruno@clisp.org>
60305
60306         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
60307         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
60308         glthread_recursive_lock_init.
60309         * lib/lock.c (glthread_recursive_lock_init)
60310         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
60311         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
60312
60313 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
60314
60315         New function qset_acl, like set_acl but with syscall semantics.
60316         * lib/acl.h (qset_acl): New decl.
60317         * lib/acl.c (qset_acl): New function.
60318         (set_acl): Use new function.  Use more-consistent diagnostics.
60319
60320 2007-11-28  Jim Meyering  <meyering@redhat.com>
60321
60322         * modules/physmem (License): Change from GPL to LGPLv2+.
60323
60324 2007-11-26  Bruno Haible  <bruno@clisp.org>
60325
60326         * lib/vasnprintf.c (decode_long_double): Don't abort if the
60327         'long double' type has excess precision.
60328         Reported by Jim Meyering in
60329         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
60330
60331 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60332
60333         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
60334         Sync from <http://gnu.org/licenses>.
60335         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
60336         with license text from same location.
60337         * doc/maintain.texi, doc/standards.texi:  Sync from
60338         <http://savannah.gnu.org/projects/gnustandards>.
60339
60340 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
60341         and Jim Meyering  <meyering@redhat.com>
60342
60343         Adjust getdate' grammar to accept a slightly more regular language.
60344         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
60345         Before, the former was rejected.
60346         * lib/getdate.y (digits_to_date_time): New function, factored
60347         out of ...
60348         (number): ...here.  Just call digits_to_date_time.
60349         (hybrid): New non-terminal to handle an <unsigned number,
60350         signed relative offset> sequence consistently.
60351
60352 2007-11-18  Jim Meyering  <meyering@redhat.com>
60353
60354         Pull my changes from coreutils:
60355         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
60356         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
60357         use of $gnulib_tool_option_extras, so that it's separated from the
60358         preceding argument.
60359
60360         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
60361         * build-aux/bootstrap (cp_mark_as_generated): Create any required
60362         parent destination directories before copying a file into place.
60363
60364 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
60365
60366         bootstrap: work also with 4-argument variant of AC_INIT
60367         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
60368
60369 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
60370
60371         Port test-getaddrinfo to Solaris.
60372         Problem reported by Bruno Haible in
60373         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
60374         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
60375         explanation of setting 'hints'.
60376         Don't reject an implementation merely because it returns EAI_SERVICE.
60377         (EAI_SERVICE): Define to 0 if not defined.
60378
60379 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
60380
60381         The license of gnu-make and posix-shell is now "GPLed build tool".
60382         * modules/gnu-make (License): Likewise.
60383         * modules/posix-shell (License): Likewise.
60384
60385         New module posix-shell, for determining a POSIX shell
60386         or perhaps something that is close enough to a POSIX shell.
60387         * m4/posix-shell.m4: New file.
60388         * modules/posix-shell: New file.
60389
60390         * MODULES.html.sh: Mention new module.
60391
60392         New module gnu-make, for determining whether we're using GNU Make.
60393         * m4/gnu-make.m4: New file.
60394         * modules/gnu-make: New file.
60395         * MODULES.html.sh: Mention new module.
60396
60397 2007-11-14  Jim Meyering  <meyering@redhat.com>
60398
60399         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
60400         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
60401         use this macro to create a function _definition_.
60402         Remove useless "#undef ARGMATCH_DIE".
60403
60404 2007-11-14  Bruno Haible  <bruno@clisp.org>
60405
60406         * lib/config.charset: Update for OpenBSD 4.1.
60407         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
60408
60409 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
60410
60411         Document 64-bit #if problems in stdint.texi.
60412         * doc/headers/stdint.texi (stdint.h): Mention problems with
60413         64-bit-#if, and how to work around them.
60414
60415         Don't insist on 'long long int' support in the preprocessor.  It
60416         breaks too many things.  For example, PRIdMAX still uses a 'long
60417         long int' format with the latest Sun compiler, even though
60418         HAVE_LONG_LONG_INT isn't defined due to that compiler's
60419         preprocessor problem.  This causes the latest coreutils to dump
60420         core on Solaris 10 sparc with the Sun C compiler.
60421         Instead, fix the 2007-10-16 problem in a different way, by evaluating
60422         the troublesome expressions at configure-time, not at #if-time.
60423         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
60424         preprocessor.
60425         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
60426         compile-time C checks, done at 'configure'-time.
60427         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
60428         * modules/inttypes (Makefile): Substitute the new symbols that
60429         gl_INTTYPES_H now generates.
60430         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
60431
60432 2007-11-12  Bruno Haible  <bruno@clisp.org>
60433
60434         Tests for Unicode character classification functions.
60435
60436         * modules/unictype/bidicategory-byname-tests: New file.
60437         * modules/unictype/bidicategory-name-tests: New file.
60438         * modules/unictype/bidicategory-of-tests: New file.
60439         * modules/unictype/bidicategory-test-tests: New file.
60440         * modules/unictype/block-list-tests: New file.
60441         * modules/unictype/block-of-tests: New file.
60442         * modules/unictype/block-test-tests: New file.
60443         * modules/unictype/category-C-tests: New file.
60444         * modules/unictype/category-Cc-tests: New file.
60445         * modules/unictype/category-Cf-tests: New file.
60446         * modules/unictype/category-Cn-tests: New file.
60447         * modules/unictype/category-Co-tests: New file.
60448         * modules/unictype/category-Cs-tests: New file.
60449         * modules/unictype/category-L-tests: New file.
60450         * modules/unictype/category-Ll-tests: New file.
60451         * modules/unictype/category-Lm-tests: New file.
60452         * modules/unictype/category-Lo-tests: New file.
60453         * modules/unictype/category-Lt-tests: New file.
60454         * modules/unictype/category-Lu-tests: New file.
60455         * modules/unictype/category-M-tests: New file.
60456         * modules/unictype/category-Mc-tests: New file.
60457         * modules/unictype/category-Me-tests: New file.
60458         * modules/unictype/category-Mn-tests: New file.
60459         * modules/unictype/category-N-tests: New file.
60460         * modules/unictype/category-Nd-tests: New file.
60461         * modules/unictype/category-Nl-tests: New file.
60462         * modules/unictype/category-No-tests: New file.
60463         * modules/unictype/category-P-tests: New file.
60464         * modules/unictype/category-Pc-tests: New file.
60465         * modules/unictype/category-Pd-tests: New file.
60466         * modules/unictype/category-Pe-tests: New file.
60467         * modules/unictype/category-Pf-tests: New file.
60468         * modules/unictype/category-Pi-tests: New file.
60469         * modules/unictype/category-Po-tests: New file.
60470         * modules/unictype/category-Ps-tests: New file.
60471         * modules/unictype/category-S-tests: New file.
60472         * modules/unictype/category-Sc-tests: New file.
60473         * modules/unictype/category-Sk-tests: New file.
60474         * modules/unictype/category-Sm-tests: New file.
60475         * modules/unictype/category-So-tests: New file.
60476         * modules/unictype/category-Z-tests: New file.
60477         * modules/unictype/category-Zl-tests: New file.
60478         * modules/unictype/category-Zp-tests: New file.
60479         * modules/unictype/category-Zs-tests: New file.
60480         * modules/unictype/category-and-not-tests: New file.
60481         * modules/unictype/category-and-tests: New file.
60482         * modules/unictype/category-byname-tests: New file.
60483         * modules/unictype/category-name-tests: New file.
60484         * modules/unictype/category-none-tests: New file.
60485         * modules/unictype/category-of-tests: New file.
60486         * modules/unictype/category-or-tests: New file.
60487         * modules/unictype/category-test-withtable-tests: New file.
60488         * modules/unictype/combining-class-tests: New file.
60489         * modules/unictype/ctype-alnum-tests: New file.
60490         * modules/unictype/ctype-alpha-tests: New file.
60491         * modules/unictype/ctype-blank-tests: New file.
60492         * modules/unictype/ctype-cntrl-tests: New file.
60493         * modules/unictype/ctype-digit-tests: New file.
60494         * modules/unictype/ctype-graph-tests: New file.
60495         * modules/unictype/ctype-lower-tests: New file.
60496         * modules/unictype/ctype-print-tests: New file.
60497         * modules/unictype/ctype-punct-tests: New file.
60498         * modules/unictype/ctype-space-tests: New file.
60499         * modules/unictype/ctype-upper-tests: New file.
60500         * modules/unictype/ctype-xdigit-tests: New file.
60501         * modules/unictype/decimal-digit-tests: New file.
60502         * modules/unictype/digit-tests: New file.
60503         * modules/unictype/mirror-tests: New file.
60504         * modules/unictype/numeric-tests: New file.
60505         * modules/unictype/property-alphabetic-tests: New file.
60506         * modules/unictype/property-ascii-hex-digit-tests: New file.
60507         * modules/unictype/property-bidi-arabic-digit-tests: New file.
60508         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
60509         * modules/unictype/property-bidi-block-separator-tests: New file.
60510         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
60511         * modules/unictype/property-bidi-common-separator-tests: New file.
60512         * modules/unictype/property-bidi-control-tests: New file.
60513         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
60514         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
60515         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
60516         * modules/unictype/property-bidi-european-digit-tests: New file.
60517         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
60518         * modules/unictype/property-bidi-left-to-right-tests: New file.
60519         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
60520         * modules/unictype/property-bidi-other-neutral-tests: New file.
60521         * modules/unictype/property-bidi-pdf-tests: New file.
60522         * modules/unictype/property-bidi-segment-separator-tests: New file.
60523         * modules/unictype/property-bidi-whitespace-tests: New file.
60524         * modules/unictype/property-byname-tests: New file.
60525         * modules/unictype/property-combining-tests: New file.
60526         * modules/unictype/property-composite-tests: New file.
60527         * modules/unictype/property-currency-symbol-tests: New file.
60528         * modules/unictype/property-dash-tests: New file.
60529         * modules/unictype/property-decimal-digit-tests: New file.
60530         * modules/unictype/property-default-ignorable-code-point-tests: New file.
60531         * modules/unictype/property-deprecated-tests: New file.
60532         * modules/unictype/property-diacritic-tests: New file.
60533         * modules/unictype/property-extender-tests: New file.
60534         * modules/unictype/property-format-control-tests: New file.
60535         * modules/unictype/property-grapheme-base-tests: New file.
60536         * modules/unictype/property-grapheme-extend-tests: New file.
60537         * modules/unictype/property-grapheme-link-tests: New file.
60538         * modules/unictype/property-hex-digit-tests: New file.
60539         * modules/unictype/property-hyphen-tests: New file.
60540         * modules/unictype/property-id-continue-tests: New file.
60541         * modules/unictype/property-id-start-tests: New file.
60542         * modules/unictype/property-ideographic-tests: New file.
60543         * modules/unictype/property-ids-binary-operator-tests: New file.
60544         * modules/unictype/property-ids-trinary-operator-tests: New file.
60545         * modules/unictype/property-ignorable-control-tests: New file.
60546         * modules/unictype/property-iso-control-tests: New file.
60547         * modules/unictype/property-join-control-tests: New file.
60548         * modules/unictype/property-left-of-pair-tests: New file.
60549         * modules/unictype/property-line-separator-tests: New file.
60550         * modules/unictype/property-logical-order-exception-tests: New file.
60551         * modules/unictype/property-lowercase-tests: New file.
60552         * modules/unictype/property-math-tests: New file.
60553         * modules/unictype/property-non-break-tests: New file.
60554         * modules/unictype/property-not-a-character-tests: New file.
60555         * modules/unictype/property-numeric-tests: New file.
60556         * modules/unictype/property-other-alphabetic-tests: New file.
60557         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
60558         * modules/unictype/property-other-grapheme-extend-tests: New file.
60559         * modules/unictype/property-other-id-continue-tests: New file.
60560         * modules/unictype/property-other-id-start-tests: New file.
60561         * modules/unictype/property-other-lowercase-tests: New file.
60562         * modules/unictype/property-other-math-tests: New file.
60563         * modules/unictype/property-other-uppercase-tests: New file.
60564         * modules/unictype/property-paired-punctuation-tests: New file.
60565         * modules/unictype/property-paragraph-separator-tests: New file.
60566         * modules/unictype/property-pattern-syntax-tests: New file.
60567         * modules/unictype/property-pattern-white-space-tests: New file.
60568         * modules/unictype/property-private-use-tests: New file.
60569         * modules/unictype/property-punctuation-tests: New file.
60570         * modules/unictype/property-quotation-mark-tests: New file.
60571         * modules/unictype/property-radical-tests: New file.
60572         * modules/unictype/property-sentence-terminal-tests: New file.
60573         * modules/unictype/property-soft-dotted-tests: New file.
60574         * modules/unictype/property-space-tests: New file.
60575         * modules/unictype/property-terminal-punctuation-tests: New file.
60576         * modules/unictype/property-test-tests: New file.
60577         * modules/unictype/property-titlecase-tests: New file.
60578         * modules/unictype/property-unassigned-code-value-tests: New file.
60579         * modules/unictype/property-unified-ideograph-tests: New file.
60580         * modules/unictype/property-uppercase-tests: New file.
60581         * modules/unictype/property-variation-selector-tests: New file.
60582         * modules/unictype/property-white-space-tests: New file.
60583         * modules/unictype/property-xid-continue-tests: New file.
60584         * modules/unictype/property-xid-start-tests: New file.
60585         * modules/unictype/property-zero-width-tests: New file.
60586         * modules/unictype/scripts-tests: New file.
60587         * modules/unictype/syntax-c-ident-tests: New file.
60588         * modules/unictype/syntax-c-whitespace-tests: New file.
60589         * modules/unictype/syntax-java-ident-tests: New file.
60590         * modules/unictype/syntax-java-whitespace-tests: New file.
60591         * tests/unictype/test-bidi_byname.c: New file.
60592         * tests/unictype/test-bidi_name.c: New file.
60593         * tests/unictype/test-bidi_of.c: New file.
60594         * tests/unictype/test-bidi_test.c: New file.
60595         * tests/unictype/test-block_list.c: New file.
60596         * tests/unictype/test-block_of.c: New file.
60597         * tests/unictype/test-block_test.c: New file.
60598         * tests/unictype/test-categ_and.c: New file.
60599         * tests/unictype/test-categ_and_not.c: New file.
60600         * tests/unictype/test-categ_byname.c: New file.
60601         * tests/unictype/test-categ_name.c: New file.
60602         * tests/unictype/test-categ_none.c: New file.
60603         * tests/unictype/test-categ_of.c: New file.
60604         * tests/unictype/test-categ_or.c: New file.
60605         * tests/unictype/test-categ_test_withtable.c: New file.
60606         * tests/unictype/test-combining.c: New file.
60607         * tests/unictype/test-decdigit.c: New file.
60608         * tests/unictype/test-digit.c: New file.
60609         * tests/unictype/test-mirror.c: New file.
60610         * tests/unictype/test-numeric.c: New file.
60611         * tests/unictype/test-pr_byname.c: New file.
60612         * tests/unictype/test-pr_test.c: New file.
60613         * tests/unictype/test-predicate-part1.h: New file.
60614         * tests/unictype/test-predicate-part2.h: New file.
60615         * tests/unictype/test-scripts.c: New file.
60616         * tests/unictype/test-sy_c_ident.c: New file.
60617         * tests/unictype/test-sy_java_ident.c: New file.
60618
60619         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
60620         for Unicode 5.0.0.
60621         * tests/unictype/test-categ_Cc.c: Likewise.
60622         * tests/unictype/test-categ_Cf.c: Likewise.
60623         * tests/unictype/test-categ_Cn.c: Likewise.
60624         * tests/unictype/test-categ_Co.c: Likewise.
60625         * tests/unictype/test-categ_Cs.c: Likewise.
60626         * tests/unictype/test-categ_L.c: Likewise.
60627         * tests/unictype/test-categ_Ll.c: Likewise.
60628         * tests/unictype/test-categ_Lm.c: Likewise.
60629         * tests/unictype/test-categ_Lo.c: Likewise.
60630         * tests/unictype/test-categ_Lt.c: Likewise.
60631         * tests/unictype/test-categ_Lu.c: Likewise.
60632         * tests/unictype/test-categ_M.c: Likewise.
60633         * tests/unictype/test-categ_Mc.c: Likewise.
60634         * tests/unictype/test-categ_Me.c: Likewise.
60635         * tests/unictype/test-categ_Mn.c: Likewise.
60636         * tests/unictype/test-categ_N.c: Likewise.
60637         * tests/unictype/test-categ_Nd.c: Likewise.
60638         * tests/unictype/test-categ_Nl.c: Likewise.
60639         * tests/unictype/test-categ_No.c: Likewise.
60640         * tests/unictype/test-categ_P.c: Likewise.
60641         * tests/unictype/test-categ_Pc.c: Likewise.
60642         * tests/unictype/test-categ_Pd.c: Likewise.
60643         * tests/unictype/test-categ_Pe.c: Likewise.
60644         * tests/unictype/test-categ_Pf.c: Likewise.
60645         * tests/unictype/test-categ_Pi.c: Likewise.
60646         * tests/unictype/test-categ_Po.c: Likewise.
60647         * tests/unictype/test-categ_Ps.c: Likewise.
60648         * tests/unictype/test-categ_S.c: Likewise.
60649         * tests/unictype/test-categ_Sc.c: Likewise.
60650         * tests/unictype/test-categ_Sk.c: Likewise.
60651         * tests/unictype/test-categ_Sm.c: Likewise.
60652         * tests/unictype/test-categ_So.c: Likewise.
60653         * tests/unictype/test-categ_Z.c: Likewise.
60654         * tests/unictype/test-categ_Zl.c: Likewise.
60655         * tests/unictype/test-categ_Zp.c: Likewise.
60656         * tests/unictype/test-categ_Zs.c: Likewise.
60657         * tests/unictype/test-ctype_alnum.c: Likewise.
60658         * tests/unictype/test-ctype_alpha.c: Likewise.
60659         * tests/unictype/test-ctype_blank.c: Likewise.
60660         * tests/unictype/test-ctype_cntrl.c: Likewise.
60661         * tests/unictype/test-ctype_digit.c: Likewise.
60662         * tests/unictype/test-ctype_graph.c: Likewise.
60663         * tests/unictype/test-ctype_lower.c: Likewise.
60664         * tests/unictype/test-ctype_print.c: Likewise.
60665         * tests/unictype/test-ctype_punct.c: Likewise.
60666         * tests/unictype/test-ctype_space.c: Likewise.
60667         * tests/unictype/test-ctype_upper.c: Likewise.
60668         * tests/unictype/test-ctype_xdigit.c: Likewise.
60669         * tests/unictype/test-decdigit.h: Likewise.
60670         * tests/unictype/test-digit.h: Likewise.
60671         * tests/unictype/test-numeric.h: Likewise.
60672         * tests/unictype/test-pr_alphabetic.c: Likewise.
60673         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
60674         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
60675         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
60676         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
60677         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
60678         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
60679         * tests/unictype/test-pr_bidi_control.c: Likewise.
60680         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
60681         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
60682         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
60683         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
60684         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
60685         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
60686         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
60687         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
60688         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
60689         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
60690         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
60691         * tests/unictype/test-pr_combining.c: Likewise.
60692         * tests/unictype/test-pr_composite.c: Likewise.
60693         * tests/unictype/test-pr_currency_symbol.c: Likewise.
60694         * tests/unictype/test-pr_dash.c: Likewise.
60695         * tests/unictype/test-pr_decimal_digit.c: Likewise.
60696         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
60697         * tests/unictype/test-pr_deprecated.c: Likewise.
60698         * tests/unictype/test-pr_diacritic.c: Likewise.
60699         * tests/unictype/test-pr_extender.c: Likewise.
60700         * tests/unictype/test-pr_format_control.c: Likewise.
60701         * tests/unictype/test-pr_grapheme_base.c: Likewise.
60702         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
60703         * tests/unictype/test-pr_grapheme_link.c: Likewise.
60704         * tests/unictype/test-pr_hex_digit.c: Likewise.
60705         * tests/unictype/test-pr_hyphen.c: Likewise.
60706         * tests/unictype/test-pr_id_continue.c: Likewise.
60707         * tests/unictype/test-pr_id_start.c: Likewise.
60708         * tests/unictype/test-pr_ideographic.c: Likewise.
60709         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
60710         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
60711         * tests/unictype/test-pr_ignorable_control.c: Likewise.
60712         * tests/unictype/test-pr_iso_control.c: Likewise.
60713         * tests/unictype/test-pr_join_control.c: Likewise.
60714         * tests/unictype/test-pr_left_of_pair.c: Likewise.
60715         * tests/unictype/test-pr_line_separator.c: Likewise.
60716         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
60717         * tests/unictype/test-pr_lowercase.c: Likewise.
60718         * tests/unictype/test-pr_math.c: Likewise.
60719         * tests/unictype/test-pr_non_break.c: Likewise.
60720         * tests/unictype/test-pr_not_a_character.c: Likewise.
60721         * tests/unictype/test-pr_numeric.c: Likewise.
60722         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
60723         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
60724         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
60725         * tests/unictype/test-pr_other_id_continue.c: Likewise.
60726         * tests/unictype/test-pr_other_id_start.c: Likewise.
60727         * tests/unictype/test-pr_other_lowercase.c: Likewise.
60728         * tests/unictype/test-pr_other_math.c: Likewise.
60729         * tests/unictype/test-pr_other_uppercase.c: Likewise.
60730         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
60731         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
60732         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
60733         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
60734         * tests/unictype/test-pr_private_use.c: Likewise.
60735         * tests/unictype/test-pr_punctuation.c: Likewise.
60736         * tests/unictype/test-pr_quotation_mark.c: Likewise.
60737         * tests/unictype/test-pr_radical.c: Likewise.
60738         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
60739         * tests/unictype/test-pr_soft_dotted.c: Likewise.
60740         * tests/unictype/test-pr_space.c: Likewise.
60741         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
60742         * tests/unictype/test-pr_titlecase.c: Likewise.
60743         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
60744         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
60745         * tests/unictype/test-pr_uppercase.c: Likewise.
60746         * tests/unictype/test-pr_variation_selector.c: Likewise.
60747         * tests/unictype/test-pr_white_space.c: Likewise.
60748         * tests/unictype/test-pr_xid_continue.c: Likewise.
60749         * tests/unictype/test-pr_xid_start.c: Likewise.
60750         * tests/unictype/test-pr_zero_width.c: Likewise.
60751         * tests/unictype/test-sy_c_whitespace.c: Likewise.
60752         * tests/unictype/test-sy_java_whitespace.c: Likewise.
60753
60754 2007-11-12  Bruno Haible  <bruno@clisp.org>
60755
60756         Unicode character classification functions.
60757         * lib/unictype.h: New file.
60758         * modules/unictype/base: New file.
60759         * modules/unictype/category-L: New file.
60760         * modules/unictype/category-Lu: New file.
60761         * modules/unictype/category-Ll: New file.
60762         * modules/unictype/category-Lt: New file.
60763         * modules/unictype/category-Lm: New file.
60764         * modules/unictype/category-Lo: New file.
60765         * modules/unictype/category-M: New file.
60766         * modules/unictype/category-Mn: New file.
60767         * modules/unictype/category-Mc: New file.
60768         * modules/unictype/category-Me: New file.
60769         * modules/unictype/category-N: New file.
60770         * modules/unictype/category-Nd: New file.
60771         * modules/unictype/category-Nl: New file.
60772         * modules/unictype/category-No: New file.
60773         * modules/unictype/category-P: New file.
60774         * modules/unictype/category-Pc: New file.
60775         * modules/unictype/category-Pd: New file.
60776         * modules/unictype/category-Ps: New file.
60777         * modules/unictype/category-Pe: New file.
60778         * modules/unictype/category-Pi: New file.
60779         * modules/unictype/category-Pf: New file.
60780         * modules/unictype/category-Po: New file.
60781         * modules/unictype/category-S: New file.
60782         * modules/unictype/category-Sm: New file.
60783         * modules/unictype/category-Sc: New file.
60784         * modules/unictype/category-Sk: New file.
60785         * modules/unictype/category-So: New file.
60786         * modules/unictype/category-Z: New file.
60787         * modules/unictype/category-Zs: New file.
60788         * modules/unictype/category-Zl: New file.
60789         * modules/unictype/category-Zp: New file.
60790         * modules/unictype/category-C: New file.
60791         * modules/unictype/category-Cc: New file.
60792         * modules/unictype/category-Cf: New file.
60793         * modules/unictype/category-Cs: New file.
60794         * modules/unictype/category-Co: New file.
60795         * modules/unictype/category-Cn: New file.
60796         * modules/unictype/category-or: New file.
60797         * modules/unictype/category-of: New file.
60798         * modules/unictype/category-test: New file.
60799         * modules/unictype/category-test-withtable: New file.
60800         * modules/unictype/category-byname: New file.
60801         * modules/unictype/category-none: New file.
60802         * modules/unictype/category-and: New file.
60803         * modules/unictype/category-and-not: New file.
60804         * modules/unictype/category-name: New file.
60805         * modules/unictype/combining-class: New file.
60806         * modules/unictype/category-all: New file.
60807         * modules/unictype/bidicategory-all: New file.
60808         * modules/unictype/bidicategory-byname: New file.
60809         * modules/unictype/bidicategory-name: New file.
60810         * modules/unictype/bidicategory-of: New file.
60811         * modules/unictype/bidicategory-test: New file.
60812         * modules/unictype/decimal-digit: New file.
60813         * modules/unictype/digit: New file.
60814         * modules/unictype/numeric: New file.
60815         * modules/unictype/mirror: New file.
60816         * modules/unictype/property-white-space: New file.
60817         * modules/unictype/property-alphabetic: New file.
60818         * modules/unictype/property-other-alphabetic: New file.
60819         * modules/unictype/property-not-a-character: New file.
60820         * modules/unictype/property-default-ignorable-code-point: New file.
60821         * modules/unictype/property-other-default-ignorable-code-point: New
60822         file.
60823         * modules/unictype/property-deprecated: New file.
60824         * modules/unictype/property-logical-order-exception: New file.
60825         * modules/unictype/property-variation-selector: New file.
60826         * modules/unictype/property-private-use: New file.
60827         * modules/unictype/property-unassigned-code-value: New file.
60828         * modules/unictype/property-uppercase: New file.
60829         * modules/unictype/property-other-uppercase: New file.
60830         * modules/unictype/property-lowercase: New file.
60831         * modules/unictype/property-other-lowercase: New file.
60832         * modules/unictype/property-titlecase: New file.
60833         * modules/unictype/property-soft-dotted: New file.
60834         * modules/unictype/property-id-start: New file.
60835         * modules/unictype/property-other-id-start: New file.
60836         * modules/unictype/property-id-continue: New file.
60837         * modules/unictype/property-other-id-continue: New file.
60838         * modules/unictype/property-xid-start: New file.
60839         * modules/unictype/property-xid-continue: New file.
60840         * modules/unictype/property-pattern-white-space: New file.
60841         * modules/unictype/property-pattern-syntax: New file.
60842         * modules/unictype/property-join-control: New file.
60843         * modules/unictype/property-grapheme-base: New file.
60844         * modules/unictype/property-grapheme-extend: New file.
60845         * modules/unictype/property-other-grapheme-extend: New file.
60846         * modules/unictype/property-grapheme-link: New file.
60847         * modules/unictype/property-bidi-control: New file.
60848         * modules/unictype/property-bidi-left-to-right: New file.
60849         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
60850         * modules/unictype/property-bidi-arabic-right-to-left: New file.
60851         * modules/unictype/property-bidi-european-digit: New file.
60852         * modules/unictype/property-bidi-eur-num-separator: New file.
60853         * modules/unictype/property-bidi-eur-num-terminator: New file.
60854         * modules/unictype/property-bidi-arabic-digit: New file.
60855         * modules/unictype/property-bidi-common-separator: New file.
60856         * modules/unictype/property-bidi-block-separator: New file.
60857         * modules/unictype/property-bidi-segment-separator: New file.
60858         * modules/unictype/property-bidi-whitespace: New file.
60859         * modules/unictype/property-bidi-non-spacing-mark: New file.
60860         * modules/unictype/property-bidi-boundary-neutral: New file.
60861         * modules/unictype/property-bidi-pdf: New file.
60862         * modules/unictype/property-bidi-embedding-or-override: New file.
60863         * modules/unictype/property-bidi-other-neutral: New file.
60864         * modules/unictype/property-hex-digit: New file.
60865         * modules/unictype/property-ascii-hex-digit: New file.
60866         * modules/unictype/property-ideographic: New file.
60867         * modules/unictype/property-unified-ideograph: New file.
60868         * modules/unictype/property-radical: New file.
60869         * modules/unictype/property-ids-binary-operator: New file.
60870         * modules/unictype/property-ids-trinary-operator: New file.
60871         * modules/unictype/property-zero-width: New file.
60872         * modules/unictype/property-space: New file.
60873         * modules/unictype/property-non-break: New file.
60874         * modules/unictype/property-iso-control: New file.
60875         * modules/unictype/property-format-control: New file.
60876         * modules/unictype/property-dash: New file.
60877         * modules/unictype/property-hyphen: New file.
60878         * modules/unictype/property-punctuation: New file.
60879         * modules/unictype/property-line-separator: New file.
60880         * modules/unictype/property-paragraph-separator: New file.
60881         * modules/unictype/property-quotation-mark: New file.
60882         * modules/unictype/property-sentence-terminal: New file.
60883         * modules/unictype/property-terminal-punctuation: New file.
60884         * modules/unictype/property-currency-symbol: New file.
60885         * modules/unictype/property-math: New file.
60886         * modules/unictype/property-other-math: New file.
60887         * modules/unictype/property-paired-punctuation: New file.
60888         * modules/unictype/property-left-of-pair: New file.
60889         * modules/unictype/property-combining: New file.
60890         * modules/unictype/property-composite: New file.
60891         * modules/unictype/property-decimal-digit: New file.
60892         * modules/unictype/property-numeric: New file.
60893         * modules/unictype/property-diacritic: New file.
60894         * modules/unictype/property-extender: New file.
60895         * modules/unictype/property-ignorable-control: New file.
60896         * modules/unictype/property-test: New file.
60897         * modules/unictype/property-byname: New file.
60898         * modules/unictype/property-all: New file.
60899         * modules/unictype/scripts: New file.
60900         * modules/unictype/scripts-all: New file.
60901         * modules/unictype/block-of: New file.
60902         * modules/unictype/block-test: New file.
60903         * modules/unictype/block-list: New file.
60904         * modules/unictype/block-all: New file.
60905         * modules/unictype/syntax-c-whitespace: New file.
60906         * modules/unictype/syntax-java-whitespace: New file.
60907         * modules/unictype/syntax-c-ident: New file.
60908         * modules/unictype/syntax-java-ident: New file.
60909         * modules/unictype/ctype-alnum: New file.
60910         * modules/unictype/ctype-alpha: New file.
60911         * modules/unictype/ctype-cntrl: New file.
60912         * modules/unictype/ctype-digit: New file.
60913         * modules/unictype/ctype-graph: New file.
60914         * modules/unictype/ctype-lower: New file.
60915         * modules/unictype/ctype-print: New file.
60916         * modules/unictype/ctype-punct: New file.
60917         * modules/unictype/ctype-space: New file.
60918         * modules/unictype/ctype-upper: New file.
60919         * modules/unictype/ctype-xdigit: New file.
60920         * modules/unictype/ctype-blank: New file.
60921         * lib/unictype/bidi_byname.c: New file.
60922         * lib/unictype/bidi_name.c: New file.
60923         * lib/unictype/bidi_of.c: New file.
60924         * lib/unictype/bidi_test.c: New file.
60925         * lib/unictype/bitmap.h: New file.
60926         * lib/unictype/block_test.c: New file.
60927         * lib/unictype/blocks.c: New file.
60928         * lib/unictype/categ_C.c: New file.
60929         * lib/unictype/categ_Cc.c: New file.
60930         * lib/unictype/categ_Cf.c: New file.
60931         * lib/unictype/categ_Cn.c: New file.
60932         * lib/unictype/categ_Co.c: New file.
60933         * lib/unictype/categ_Cs.c: New file.
60934         * lib/unictype/categ_L.c: New file.
60935         * lib/unictype/categ_Ll.c: New file.
60936         * lib/unictype/categ_Lm.c: New file.
60937         * lib/unictype/categ_Lo.c: New file.
60938         * lib/unictype/categ_Lt.c: New file.
60939         * lib/unictype/categ_Lu.c: New file.
60940         * lib/unictype/categ_M.c: New file.
60941         * lib/unictype/categ_Mc.c: New file.
60942         * lib/unictype/categ_Me.c: New file.
60943         * lib/unictype/categ_Mn.c: New file.
60944         * lib/unictype/categ_N.c: New file.
60945         * lib/unictype/categ_Nd.c: New file.
60946         * lib/unictype/categ_Nl.c: New file.
60947         * lib/unictype/categ_No.c: New file.
60948         * lib/unictype/categ_P.c: New file.
60949         * lib/unictype/categ_Pc.c: New file.
60950         * lib/unictype/categ_Pd.c: New file.
60951         * lib/unictype/categ_Pe.c: New file.
60952         * lib/unictype/categ_Pf.c: New file.
60953         * lib/unictype/categ_Pi.c: New file.
60954         * lib/unictype/categ_Po.c: New file.
60955         * lib/unictype/categ_Ps.c: New file.
60956         * lib/unictype/categ_S.c: New file.
60957         * lib/unictype/categ_Sc.c: New file.
60958         * lib/unictype/categ_Sk.c: New file.
60959         * lib/unictype/categ_Sm.c: New file.
60960         * lib/unictype/categ_So.c: New file.
60961         * lib/unictype/categ_Z.c: New file.
60962         * lib/unictype/categ_Zl.c: New file.
60963         * lib/unictype/categ_Zp.c: New file.
60964         * lib/unictype/categ_Zs.c: New file.
60965         * lib/unictype/categ_and.c: New file.
60966         * lib/unictype/categ_and_not.c: New file.
60967         * lib/unictype/categ_byname.c: New file.
60968         * lib/unictype/categ_name.c: New file.
60969         * lib/unictype/categ_none.c: New file.
60970         * lib/unictype/categ_of.c: New file.
60971         * lib/unictype/categ_or.c: New file.
60972         * lib/unictype/categ_test.c: New file.
60973         * lib/unictype/combining.c: New file.
60974         * lib/unictype/ctype_alnum.c: New file.
60975         * lib/unictype/ctype_alpha.c: New file.
60976         * lib/unictype/ctype_blank.c: New file.
60977         * lib/unictype/ctype_cntrl.c: New file.
60978         * lib/unictype/ctype_digit.c: New file.
60979         * lib/unictype/ctype_graph.c: New file.
60980         * lib/unictype/ctype_lower.c: New file.
60981         * lib/unictype/ctype_print.c: New file.
60982         * lib/unictype/ctype_punct.c: New file.
60983         * lib/unictype/ctype_space.c: New file.
60984         * lib/unictype/ctype_upper.c: New file.
60985         * lib/unictype/ctype_xdigit.c: New file.
60986         * lib/unictype/decdigit.c: New file.
60987         * lib/unictype/digit.c: New file.
60988         * lib/unictype/identsyntaxmap.h: New file.
60989         * lib/unictype/mirror.c: New file.
60990         * lib/unictype/numeric.c: New file.
60991         * lib/unictype/pr_alphabetic.c: New file.
60992         * lib/unictype/pr_ascii_hex_digit.c: New file.
60993         * lib/unictype/pr_bidi_arabic_digit.c: New file.
60994         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
60995         * lib/unictype/pr_bidi_block_separator.c: New file.
60996         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
60997         * lib/unictype/pr_bidi_common_separator.c: New file.
60998         * lib/unictype/pr_bidi_control.c: New file.
60999         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
61000         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
61001         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
61002         * lib/unictype/pr_bidi_european_digit.c: New file.
61003         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
61004         * lib/unictype/pr_bidi_left_to_right.c: New file.
61005         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
61006         * lib/unictype/pr_bidi_other_neutral.c: New file.
61007         * lib/unictype/pr_bidi_pdf.c: New file.
61008         * lib/unictype/pr_bidi_segment_separator.c: New file.
61009         * lib/unictype/pr_bidi_whitespace.c: New file.
61010         * lib/unictype/pr_byname.c: New file.
61011         * lib/unictype/pr_byname.gperf: New file.
61012         * lib/unictype/pr_combining.c: New file.
61013         * lib/unictype/pr_composite.c: New file.
61014         * lib/unictype/pr_currency_symbol.c: New file.
61015         * lib/unictype/pr_dash.c: New file.
61016         * lib/unictype/pr_decimal_digit.c: New file.
61017         * lib/unictype/pr_default_ignorable_code_point.c: New file.
61018         * lib/unictype/pr_deprecated.c: New file.
61019         * lib/unictype/pr_diacritic.c: New file.
61020         * lib/unictype/pr_extender.c: New file.
61021         * lib/unictype/pr_format_control.c: New file.
61022         * lib/unictype/pr_grapheme_base.c: New file.
61023         * lib/unictype/pr_grapheme_extend.c: New file.
61024         * lib/unictype/pr_grapheme_link.c: New file.
61025         * lib/unictype/pr_hex_digit.c: New file.
61026         * lib/unictype/pr_hyphen.c: New file.
61027         * lib/unictype/pr_id_continue.c: New file.
61028         * lib/unictype/pr_id_start.c: New file.
61029         * lib/unictype/pr_ideographic.c: New file.
61030         * lib/unictype/pr_ids_binary_operator.c: New file.
61031         * lib/unictype/pr_ids_trinary_operator.c: New file.
61032         * lib/unictype/pr_ignorable_control.c: New file.
61033         * lib/unictype/pr_iso_control.c: New file.
61034         * lib/unictype/pr_join_control.c: New file.
61035         * lib/unictype/pr_left_of_pair.c: New file.
61036         * lib/unictype/pr_line_separator.c: New file.
61037         * lib/unictype/pr_logical_order_exception.c: New file.
61038         * lib/unictype/pr_lowercase.c: New file.
61039         * lib/unictype/pr_math.c: New file.
61040         * lib/unictype/pr_non_break.c: New file.
61041         * lib/unictype/pr_not_a_character.c: New file.
61042         * lib/unictype/pr_numeric.c: New file.
61043         * lib/unictype/pr_other_alphabetic.c: New file.
61044         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
61045         * lib/unictype/pr_other_grapheme_extend.c: New file.
61046         * lib/unictype/pr_other_id_continue.c: New file.
61047         * lib/unictype/pr_other_id_start.c: New file.
61048         * lib/unictype/pr_other_lowercase.c: New file.
61049         * lib/unictype/pr_other_math.c: New file.
61050         * lib/unictype/pr_other_uppercase.c: New file.
61051         * lib/unictype/pr_paired_punctuation.c: New file.
61052         * lib/unictype/pr_paragraph_separator.c: New file.
61053         * lib/unictype/pr_pattern_syntax.c: New file.
61054         * lib/unictype/pr_pattern_white_space.c: New file.
61055         * lib/unictype/pr_private_use.c: New file.
61056         * lib/unictype/pr_punctuation.c: New file.
61057         * lib/unictype/pr_quotation_mark.c: New file.
61058         * lib/unictype/pr_radical.c: New file.
61059         * lib/unictype/pr_sentence_terminal.c: New file.
61060         * lib/unictype/pr_soft_dotted.c: New file.
61061         * lib/unictype/pr_space.c: New file.
61062         * lib/unictype/pr_terminal_punctuation.c: New file.
61063         * lib/unictype/pr_test.c: New file.
61064         * lib/unictype/pr_titlecase.c: New file.
61065         * lib/unictype/pr_unassigned_code_value.c: New file.
61066         * lib/unictype/pr_unified_ideograph.c: New file.
61067         * lib/unictype/pr_uppercase.c: New file.
61068         * lib/unictype/pr_variation_selector.c: New file.
61069         * lib/unictype/pr_white_space.c: New file.
61070         * lib/unictype/pr_xid_continue.c: New file.
61071         * lib/unictype/pr_xid_start.c: New file.
61072         * lib/unictype/pr_zero_width.c: New file.
61073         * lib/unictype/scripts.c: New file.
61074         * lib/unictype/sy_c_ident.c: New file.
61075         * lib/unictype/sy_c_whitespace.c: New file.
61076         * lib/unictype/sy_java_ident.c: New file.
61077         * lib/unictype/sy_java_whitespace.c: New file.
61078
61079         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
61080         Unicode 5.0.0.
61081         * lib/unictype/blocks.h: Likewise.
61082         * lib/unictype/categ_C.h: Likewise.
61083         * lib/unictype/categ_Cc.h: Likewise.
61084         * lib/unictype/categ_Cf.h: Likewise.
61085         * lib/unictype/categ_Cn.h: Likewise.
61086         * lib/unictype/categ_Co.h: Likewise.
61087         * lib/unictype/categ_Cs.h: Likewise.
61088         * lib/unictype/categ_L.h: Likewise.
61089         * lib/unictype/categ_Ll.h: Likewise.
61090         * lib/unictype/categ_Lm.h: Likewise.
61091         * lib/unictype/categ_Lo.h: Likewise.
61092         * lib/unictype/categ_Lt.h: Likewise.
61093         * lib/unictype/categ_Lu.h: Likewise.
61094         * lib/unictype/categ_M.h: Likewise.
61095         * lib/unictype/categ_Mc.h: Likewise.
61096         * lib/unictype/categ_Me.h: Likewise.
61097         * lib/unictype/categ_Mn.h: Likewise.
61098         * lib/unictype/categ_N.h: Likewise.
61099         * lib/unictype/categ_Nd.h: Likewise.
61100         * lib/unictype/categ_Nl.h: Likewise.
61101         * lib/unictype/categ_No.h: Likewise.
61102         * lib/unictype/categ_P.h: Likewise.
61103         * lib/unictype/categ_Pc.h: Likewise.
61104         * lib/unictype/categ_Pd.h: Likewise.
61105         * lib/unictype/categ_Pe.h: Likewise.
61106         * lib/unictype/categ_Pf.h: Likewise.
61107         * lib/unictype/categ_Pi.h: Likewise.
61108         * lib/unictype/categ_Po.h: Likewise.
61109         * lib/unictype/categ_Ps.h: Likewise.
61110         * lib/unictype/categ_S.h: Likewise.
61111         * lib/unictype/categ_Sc.h: Likewise.
61112         * lib/unictype/categ_Sk.h: Likewise.
61113         * lib/unictype/categ_Sm.h: Likewise.
61114         * lib/unictype/categ_So.h: Likewise.
61115         * lib/unictype/categ_Z.h: Likewise.
61116         * lib/unictype/categ_Zl.h: Likewise.
61117         * lib/unictype/categ_Zp.h: Likewise.
61118         * lib/unictype/categ_Zs.h: Likewise.
61119         * lib/unictype/categ_of.h: Likewise.
61120         * lib/unictype/combining.h: Likewise.
61121         * lib/unictype/ctype_alnum.h: Likewise.
61122         * lib/unictype/ctype_alpha.h: Likewise.
61123         * lib/unictype/ctype_blank.h: Likewise.
61124         * lib/unictype/ctype_cntrl.h: Likewise.
61125         * lib/unictype/ctype_digit.h: Likewise.
61126         * lib/unictype/ctype_graph.h: Likewise.
61127         * lib/unictype/ctype_lower.h: Likewise.
61128         * lib/unictype/ctype_print.h: Likewise.
61129         * lib/unictype/ctype_punct.h: Likewise.
61130         * lib/unictype/ctype_space.h: Likewise.
61131         * lib/unictype/ctype_upper.h: Likewise.
61132         * lib/unictype/ctype_xdigit.h: Likewise.
61133         * lib/unictype/decdigit.h: Likewise.
61134         * lib/unictype/digit.h: Likewise.
61135         * lib/unictype/mirror.h: Likewise.
61136         * lib/unictype/numeric.h: Likewise.
61137         * lib/unictype/pr_alphabetic.h: Likewise.
61138         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
61139         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
61140         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
61141         * lib/unictype/pr_bidi_block_separator.h: Likewise.
61142         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
61143         * lib/unictype/pr_bidi_common_separator.h: Likewise.
61144         * lib/unictype/pr_bidi_control.h: Likewise.
61145         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
61146         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
61147         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
61148         * lib/unictype/pr_bidi_european_digit.h: Likewise.
61149         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
61150         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
61151         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
61152         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
61153         * lib/unictype/pr_bidi_pdf.h: Likewise.
61154         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
61155         * lib/unictype/pr_bidi_whitespace.h: Likewise.
61156         * lib/unictype/pr_combining.h: Likewise.
61157         * lib/unictype/pr_composite.h: Likewise.
61158         * lib/unictype/pr_currency_symbol.h: Likewise.
61159         * lib/unictype/pr_dash.h: Likewise.
61160         * lib/unictype/pr_decimal_digit.h: Likewise.
61161         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
61162         * lib/unictype/pr_deprecated.h: Likewise.
61163         * lib/unictype/pr_diacritic.h: Likewise.
61164         * lib/unictype/pr_extender.h: Likewise.
61165         * lib/unictype/pr_format_control.h: Likewise.
61166         * lib/unictype/pr_grapheme_base.h: Likewise.
61167         * lib/unictype/pr_grapheme_extend.h: Likewise.
61168         * lib/unictype/pr_grapheme_link.h: Likewise.
61169         * lib/unictype/pr_hex_digit.h: Likewise.
61170         * lib/unictype/pr_hyphen.h: Likewise.
61171         * lib/unictype/pr_id_continue.h: Likewise.
61172         * lib/unictype/pr_id_start.h: Likewise.
61173         * lib/unictype/pr_ideographic.h: Likewise.
61174         * lib/unictype/pr_ids_binary_operator.h: Likewise.
61175         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
61176         * lib/unictype/pr_ignorable_control.h: Likewise.
61177         * lib/unictype/pr_iso_control.h: Likewise.
61178         * lib/unictype/pr_join_control.h: Likewise.
61179         * lib/unictype/pr_left_of_pair.h: Likewise.
61180         * lib/unictype/pr_line_separator.h: Likewise.
61181         * lib/unictype/pr_logical_order_exception.h: Likewise.
61182         * lib/unictype/pr_lowercase.h: Likewise.
61183         * lib/unictype/pr_math.h: Likewise.
61184         * lib/unictype/pr_non_break.h: Likewise.
61185         * lib/unictype/pr_not_a_character.h: Likewise.
61186         * lib/unictype/pr_numeric.h: Likewise.
61187         * lib/unictype/pr_other_alphabetic.h: Likewise.
61188         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
61189         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
61190         * lib/unictype/pr_other_id_continue.h: Likewise.
61191         * lib/unictype/pr_other_id_start.h: Likewise.
61192         * lib/unictype/pr_other_lowercase.h: Likewise.
61193         * lib/unictype/pr_other_math.h: Likewise.
61194         * lib/unictype/pr_other_uppercase.h: Likewise.
61195         * lib/unictype/pr_paired_punctuation.h: Likewise.
61196         * lib/unictype/pr_paragraph_separator.h: Likewise.
61197         * lib/unictype/pr_pattern_syntax.h: Likewise.
61198         * lib/unictype/pr_pattern_white_space.h: Likewise.
61199         * lib/unictype/pr_private_use.h: Likewise.
61200         * lib/unictype/pr_punctuation.h: Likewise.
61201         * lib/unictype/pr_quotation_mark.h: Likewise.
61202         * lib/unictype/pr_radical.h: Likewise.
61203         * lib/unictype/pr_sentence_terminal.h: Likewise.
61204         * lib/unictype/pr_soft_dotted.h: Likewise.
61205         * lib/unictype/pr_space.h: Likewise.
61206         * lib/unictype/pr_terminal_punctuation.h: Likewise.
61207         * lib/unictype/pr_titlecase.h: Likewise.
61208         * lib/unictype/pr_unassigned_code_value.h: Likewise.
61209         * lib/unictype/pr_unified_ideograph.h: Likewise.
61210         * lib/unictype/pr_uppercase.h: Likewise.
61211         * lib/unictype/pr_variation_selector.h: Likewise.
61212         * lib/unictype/pr_white_space.h: Likewise.
61213         * lib/unictype/pr_xid_continue.h: Likewise.
61214         * lib/unictype/pr_xid_start.h: Likewise.
61215         * lib/unictype/pr_zero_width.h: Likewise.
61216         * lib/unictype/scripts.h: Likewise.
61217         * lib/unictype/scripts_byname.gperf: Likewise.
61218         * lib/unictype/sy_c_ident.h: Likewise.
61219         * lib/unictype/sy_c_whitespace.h: Likewise.
61220         * lib/unictype/sy_java_ident.h: Likewise.
61221         * lib/unictype/sy_java_whitespace.h: Likewise.
61222
61223         * lib/unictype/Makefile: New file.
61224         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
61225         glibc.
61226         * lib/unictype/3level.h: New file, copied from glibc.
61227         * lib/unictype/3levelbit.h: New file.
61228
61229 2007-11-11  Bruno Haible  <bruno@clisp.org>
61230
61231         * modules/gperf: New file.
61232         * modules/iconv_open (Depends-on): Add it.
61233         (Makefile.am): Remove the GPERF definition.
61234
61235 2007-11-11  Bruno Haible  <bruno@clisp.org>
61236
61237         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
61238         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
61239
61240 2007-11-11  Bruno Haible  <bruno@clisp.org>
61241
61242         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
61243         (usage): Remove function.
61244
61245 2007-11-11  Bruno Haible  <bruno@clisp.org>
61246
61247         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
61248         gl_FUNC_CEILF_LIBS.
61249         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
61250         gl_FUNC_CEIL_LIBS.
61251         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
61252         gl_FUNC_CEILL_LIBS.
61253         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
61254         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
61255         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
61256
61257 2007-11-11  Bruno Haible  <bruno@clisp.org>
61258
61259         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
61260         roundf were declared but do not exist on functions.
61261         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
61262         roundl were declared but do not exist on functions.
61263         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
61264         HAVE_FLOORL_AND_CEILL, respectively.
61265         Needed for Sun C on Solaris 10.
61266
61267 2007-11-11  Bruno Haible  <bruno@clisp.org>
61268
61269         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
61270         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
61271         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
61272         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
61273         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
61274         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
61275         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
61276         HAVE_DECL_ROUNDF.
61277         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
61278         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
61279         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
61280         of HAVE_DECL_ROUND*.
61281         * modules/math (Makefile.am): Update.
61282
61283 2007-11-10  Bruno Haible  <bruno@clisp.org>
61284
61285         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
61286         ptrdiff_t as m4/intl.m4.
61287
61288 2007-11-10  Jim Meyering  <meyering@redhat.com>
61289
61290         Avoid link failure for the argmatch test.
61291         * tests/test-argmatch.c (usage): Define function to avoid a link
61292         failure: argmatch_die requires a usage function.
61293
61294 2007-11-09  Bruno Haible  <bruno@clisp.org>
61295
61296         * doc/functions/snprintf.texi: Mention BeOS deficiency.
61297         * doc/functions/vsnprintf.texi: Likewise.
61298         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
61299         with a size argument < 2.
61300
61301 2007-11-09  Bruno Haible  <bruno@clisp.org>
61302
61303         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
61304         buffer. Fixes an inefficiency introduced on 2007-11-03.
61305
61306 2007-11-09  Bruno Haible  <bruno@clisp.org>
61307
61308         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
61309         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
61310
61311 2007-11-08  Jim Meyering  <meyering@redhat.com>
61312
61313         Change cache variable name prefix "jm_" to "gl_" everywhere.
61314         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
61315         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
61316         * m4/uptime.m4: s/gl_/jm_/
61317
61318 2007-11-07  Bruno Haible  <bruno@clisp.org>
61319
61320         Update to GNU gettext 0.17.
61321         * m4/intl.m4: Update to GNU gettext 0.17.
61322         * m4/po.m4: Likewise.
61323         * modules/gettext (Files): Remove m4/ulonglong.m4.
61324         (configure.ac): Require gettext infrastructure from version 0.17.
61325
61326 2007-11-06  Bruno Haible  <bruno@clisp.org>
61327
61328         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
61329         symbolic values are not defined in a public header.
61330         * lib/freadable.c (freadable) [QNX]: Likewise.
61331         * lib/freadahead.c (freadahead) [QNX]: Likewise.
61332         * lib/freading.c (freading) [QNX]: Likewise.
61333         * lib/fseterr.c (fseterr) [QNX]: Likewise.
61334         * lib/fwritable.c (fwritable) [QNX]: Likewise.
61335         * lib/fwriting.c (fwriting) [QNX]: Likewise.
61336         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
61337         Reported by Alain Magloire.
61338
61339         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
61340
61341 2007-11-05  Bruno Haible  <bruno@clisp.org>
61342
61343         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
61344         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
61345         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
61346         Reported by Eric Blake.
61347
61348 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61349             Bruno Haible  <bruno@clisp.org>
61350
61351         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
61352         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
61353         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
61354         (malloc): Undefine also before including <stdlib.h>.
61355         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
61356         Needed on OSF/1 4.0.
61357
61358 2007-11-05  Jim Meyering  <meyering@redhat.com>
61359
61360         git-version-gen: sync from coreutils.
61361         * build-aux/git-version-gen: Add comments.
61362         Change the first '-' to '.' in the snapshot version string,
61363         e.g., 6.9-377-08144 -> 6.9.377-08144
61364         Remove first parameter.
61365         Don't declare a version "-dirty" merely because a time
61366         stamp has changed.
61367
61368 2007-11-04  Bruno Haible  <bruno@clisp.org>
61369
61370         * lib/lock.h: Protect all macro definitions containing an 'if'
61371         statement through a "do { ... } while (0)".
61372         * lib/tls.h: Likewise.
61373
61374 2007-11-04  Bruno Haible  <bruno@clisp.org>
61375
61376         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
61377
61378 2007-11-04  Bruno Haible  <bruno@clisp.org>
61379
61380         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
61381         * modules/fprintf-posix (Depends-on): Add nocrash.
61382         * modules/snprintf-posix (Depends-on): Likewise.
61383         * modules/sprintf-posix (Depends-on): Likewise.
61384         * modules/vasnprintf-posix (Depends-on): Likewise.
61385         * modules/vasprintf-posix (Depends-on): Likewise.
61386         * modules/vfprintf-posix (Depends-on): Likewise.
61387         * modules/vsnprintf-posix (Depends-on): Likewise.
61388         * modules/vsprintf-posix (Depends-on): Likewise.
61389         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
61390         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
61391         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
61392         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
61393         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
61394         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
61395         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
61396
61397 2007-11-04  Bruno Haible  <bruno@clisp.org>
61398
61399         * modules/nocrash: New file.
61400         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
61401         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
61402
61403 2007-11-04  Bruno Haible  <bruno@clisp.org>
61404
61405         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
61406         precision handling.
61407         * tests/test-vasprintf-posix.c (test_function): Likewise.
61408         * tests/test-snprintf-posix.h (test_function): Likewise.
61409         * tests/test-sprintf-posix.h (test_function): Likewise.
61410
61411         Fix *printf behaviour for large precisions on mingw and BeOS.
61412         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
61413         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
61414         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
61415         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
61416         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
61417         gl_PRINTF_PRECISION and test its result. Invoke
61418         gl_PREREQ_VASNPRINTF_PRECISION.
61419         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61420         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61421         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61422         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61423         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61424         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61425         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61426         * doc/functions/fprintf.texi: Update.
61427         * doc/functions/printf.texi: Update.
61428         * doc/functions/snprintf.texi: Update.
61429         * doc/functions/sprintf.texi: Update.
61430         * doc/functions/vfprintf.texi: Update.
61431         * doc/functions/vprintf.texi: Update.
61432         * doc/functions/vsnprintf.texi: Update.
61433         * doc/functions/vsprintf.texi: Update.
61434
61435 2007-11-04  Bruno Haible  <bruno@clisp.org>
61436
61437         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
61438
61439 2007-11-04  Bruno Haible  <bruno@clisp.org>
61440
61441         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
61442         Reported by Sylvain Beucler <beuc@gnu.org>.
61443
61444 2007-11-03  Bruno Haible  <bruno@clisp.org>
61445
61446         * tests/test-fprintf-posix2.sh: New file.
61447         * tests/test-fprintf-posix2.c: New file.
61448         * modules/fprintf-posix-tests (Files): Add them.
61449         (TESTS): Add test-fprintf-posix2.sh.
61450         (configure.ac): Check for getrlimit and setrlimit.
61451         (check_PROGRAMS): Add test-fprintf-posix2.
61452
61453         * tests/test-printf-posix2.sh: New file.
61454         * tests/test-printf-posix2.c: New file.
61455         * modules/printf-posix-tests (Files): Add them.
61456         (TESTS): Add test-printf-posix2.sh.
61457         (configure.ac): Check for getrlimit and setrlimit.
61458         (check_PROGRAMS): Add test-printf-posix2.
61459
61460         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
61461         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
61462         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
61463         (decode_double): New function, copied from decode_long_double.
61464         (scale10_round_decimal_decoded): New function, extracted from
61465         scale10_round_decimal_long_double.
61466         (scale10_round_decimal_long_double): Use it.
61467         (scale10_round_decimal_double): New function.
61468         (floorlog10): New function.
61469         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
61470         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
61471         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
61472         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
61473         gl_PRINTF_ENOMEM and test its result. Invoke
61474         gl_PREREQ_VASNPRINTF_ENOMEM.
61475         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61476         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61477         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61478         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61479         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61480         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61481         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61482         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
61483         * modules/snprintf-posix (Depends-on): Likewise.
61484         * modules/sprintf-posix (Depends-on): Likewise.
61485         * modules/vasnprintf-posix (Depends-on): Likewise.
61486         * modules/vasprintf-posix (Depends-on): Likewise.
61487         * modules/vfprintf-posix (Depends-on): Likewise.
61488         * modules/vsnprintf-posix (Depends-on): Likewise.
61489         * modules/vsprintf-posix (Depends-on): Likewise.
61490         * doc/functions/fprintf.texi: Update.
61491         * doc/functions/printf.texi: Update.
61492         * doc/functions/snprintf.texi: Update.
61493         * doc/functions/sprintf.texi: Update.
61494         * doc/functions/vfprintf.texi: Update.
61495         * doc/functions/vprintf.texi: Update.
61496         * doc/functions/vsnprintf.texi: Update.
61497         * doc/functions/vsprintf.texi: Update.
61498
61499 2007-11-03  Bruno Haible  <bruno@clisp.org>
61500
61501         * modules/frexp-nolibm-tests: New file.
61502
61503         * modules/frexp-nolibm: New file.
61504         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
61505
61506 2007-11-03  Bruno Haible  <bruno@clisp.org>
61507
61508         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
61509         value is C99 compliant.
61510         Needed for OSF/1 5.1.
61511
61512 2007-11-03  Bruno Haible  <bruno@clisp.org>
61513
61514         Fix out-of-memory handling of vasnprintf.
61515         * lib/printf-parse.c: Include <errno.h>.
61516         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
61517         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
61518         is already set.
61519
61520 2007-11-02  Eric Blake  <ebb9@byu.net>
61521
61522         Fix tests on cygwin.
61523         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
61524
61525 2007-11-01  Bruno Haible  <bruno@clisp.org>
61526
61527         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
61528         warning.
61529         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
61530         needed for POSIX compatibility.
61531
61532 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
61533
61534         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
61535         for compatibility with GNU.
61536
61537 2007-11-01  Bruno Haible  <bruno@clisp.org>
61538
61539         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
61540         (putenv): Renamed from rpl_putenv. Change argument type from
61541         'const char *' to 'char *'.
61542         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
61543         of defining putenv in config.h, just set REPLACE_PUTENV.
61544         * modules/putenv (Depends-on): Add stdlib.
61545         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
61546         (Include): Use <stdlib.h>.
61547         * lib/stdlib.in.h (putenv): New declaration.
61548         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
61549         REPLACE_PUTENV.
61550         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
61551         REPLACE_PUTENV.
61552         Needed for MacOS X 10.5.0.
61553         Reported by Peter O'Gorman <peter@pogma.com>.
61554
61555 2007-11-01  Jim Meyering  <meyering@redhat.com>
61556
61557         Treat an empty date string exactly like "0".
61558         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
61559         if the remaining date string (to be parsed) is empty, use "0".
61560         Reported by Mischa Molhoek and discussed in this thread:
61561         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
61562
61563 2007-10-31  Bruno Haible  <bruno@clisp.org>
61564
61565         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
61566         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
61567         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
61568         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
61569         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
61570         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
61571
61572 2007-10-31  Bruno Haible  <bruno@clisp.org>
61573
61574         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
61575         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
61576         (AC_TYPE_LONG_LONG_INT): Use it.
61577         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
61578         it as well.
61579         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
61580         to m4/longlong.m4.
61581         * modules/stdint (Files): Remove m4/ulonglong.m4.
61582         * modules/strtoull (Files): Use m4/longlong.m4 instead of
61583         m4/ulonglong.m4.
61584         * modules/strtoumax (Files): Likewise.
61585
61586 2007-10-30  Bruno Haible  <bruno@clisp.org>
61587
61588         * modules/xvasprintf-posix: New file.
61589         Suggested by Eric Blake.
61590
61591 2007-10-30  Bruno Haible  <bruno@clisp.org>
61592
61593         * modules/xprintf-posix-tests: New file.
61594         * tests/test-xprintf-posix.sh: New file.
61595         * tests/test-xprintf-posix.c: New file.
61596         * tests/test-xfprintf-posix.c: New file.
61597
61598         * modules/xprintf-posix: New file.
61599
61600 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61601
61602         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
61603         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
61604         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
61605
61606 2007-10-29  Bruno Haible  <bruno@clisp.org>
61607
61608         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
61609         contain the special marker '_cv_'.
61610         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
61611         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
61612         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
61613         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
61614         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
61615         Reported by Ralf Wildenhues.
61616
61617 2007-10-29  Bruno Haible  <bruno@clisp.org>
61618
61619         * gnulib-tool (func_import): When --lgpl is not specified, set
61620         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
61621         GPLv3.
61622         Reported by Simon Josefsson.
61623
61624 2007-10-28  Bruno Haible  <bruno@clisp.org>
61625
61626         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
61627         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
61628         HAVE_DECL_ISFINITE.
61629         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
61630         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
61631         HAVE_DECL_ISFINITE.
61632
61633 2007-10-28  Bruno Haible  <bruno@clisp.org>
61634
61635         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
61636         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
61637
61638 2007-10-28  Bruno Haible  <bruno@clisp.org>
61639
61640         Fix link errors with Sun C 5.0 on Solaris 10.
61641         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
61642         function is declared but not present in the compiler's libm.
61643         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
61644         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
61645         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
61646         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
61647         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
61648         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
61649         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
61650         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
61651         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
61652         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
61653         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
61654         HAVE_DECL_FLOORL.
61655
61656 2007-10-28  Bruno Haible  <bruno@clisp.org>
61657
61658         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
61659         gl_FUNC_FLOORL. Cache the result.
61660         (gl_FUNC_FLOORL): Use it.
61661         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
61662         gl_FUNC_CEILL. Cache the result.
61663         (gl_FUNC_CEILL): Use it.
61664
61665         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
61666         gl_FUNC_FLOOR. Cache the result.
61667         (gl_FUNC_FLOOR): Use it.
61668         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
61669         gl_FUNC_CEIL. Cache the result.
61670         (gl_FUNC_CEIL): Use it.
61671
61672         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
61673         gl_FUNC_FLOORF. Cache the result.
61674         (gl_FUNC_FLOORF): Use it.
61675         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
61676         gl_FUNC_CEILF. Cache the result.
61677         (gl_FUNC_CEILF): Use it.
61678
61679 2007-10-28  Bruno Haible  <bruno@clisp.org>
61680
61681         * gnulib-tool: Allow specifying the LGPL version number through
61682         --lgpl=2 or --lgpl=3.
61683         (func_usage): Document --lgpl with argument.
61684         Handle --lgpl=... arguments.
61685         (func_import): Recognize also gl_LGPL calls with an argument. When
61686         --lgpl=2 is used and the module's license is just LGPL, report an
61687         error. Set sed_transform_lib_file according to the lgpl variable. In
61688         the generated files, use --lgpl or gl_LGPL invocations with argument,
61689         if necessary.
61690         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
61691         an LGPv2+ license.
61692         * doc/gnulib-tool.texi (Modified imports): Update explanation of
61693         gl_LGPL macro.
61694
61695 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61696             Bruno Haible  <bruno@clisp.org>
61697
61698         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
61699         (u16_uctomb_aux): Likewise.
61700         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
61701         !HAVE_INLINE.
61702         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
61703
61704 2007-10-28  Bruno Haible  <bruno@clisp.org>
61705
61706         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
61707         Invoke AM_GETTEXT_OPTION if it exists.
61708         * modules/vasprintf: Likewise.
61709         * modules/verror: Likewise.
61710         * modules/xprintf: Likewise.
61711         * modules/xvasprintf: Likewise.
61712
61713 2007-10-27  Ben Pfaff  <blp@gnu.org>
61714
61715         * lib/math.in.h: Define isfinite macro and prototypes for
61716         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
61717         implementations.
61718         * m4/math_h.m4: New substitutions for isfinite module.
61719         * lib/isfinite.c: New file.
61720         * m4/isfinite.m4: New file.
61721         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
61722         * modules/isfinite: New file.
61723         * modules/isfinite-tests: New file.
61724         * tests/tests-isfinite.c: New file.
61725         * doc/functions/isfinite.texi: Mention isfinite module.
61726         * MODULES.html.sh: Mention new module.
61727
61728 2007-10-27  Ben Pfaff  <blp@gnu.org>
61729
61730         Ralf Wildenhues reported that Tru64 4.0D declares the round
61731         functions but does not have definitions.
61732         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
61733         cannot be found in any library, set the output variable to
61734         "missing" instead of "".
61735         * m4/round.m4: Also use our substitute if we cannot find round in
61736         any library, even if it is declared.
61737         * m4/roundf.m4: Likewise for roundf.
61738         * m4/roundl.m4: Likewise for roundl.
61739         * lib/math.in.h: Undefine roundf, round, roundl before defining
61740         their replacements, to allow for hypothetical systems where these
61741         may be defined as macros but not available in libraries.
61742
61743 2007-10-27  Bruno Haible  <bruno@clisp.org>
61744
61745         * doc/gnulib.texi: Invoke @firstparagraphindent.
61746         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
61747         changes in gnulib.
61748         (Source changes): New section.
61749
61750 2007-10-26  Bruno Haible  <bruno@clisp.org>
61751
61752         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
61753         borrowed from autoconf.
61754
61755 2007-10-26  Bruno Haible  <bruno@clisp.org>
61756
61757         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
61758         strerror returned the empty string. Needed on HP-UX 11.00.
61759
61760 2007-10-24  Micah Cowan  <micah@cowan.name>
61761
61762         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
61763         * build-aux/bootstrap: Remove support for now-unnecessary option,
61764         --cvs-user, and envvars CVS_USER, CVS_RSH.
61765
61766 2007-10-24  Jim Meyering  <meyering@redhat.com>
61767
61768         Avoid diagnostics from sha1sum when there is no cached checksum.
61769         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
61770         if the po.s1 file hasn't been created yet.
61771
61772         * build-aux/bootstrap: Sync from coreutils:
61773         2007-10-24  Jim Meyering  <meyering@redhat.com>
61774         Get gnulib from the git repository, not from an obsolete cvs one.
61775         * build-aux/bootstrap: Suggestion from Micah Cowan.
61776         2007-10-04  Jim Meyering  <jim@meyering.net>
61777         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
61778         (update_po_files): Work also when there are no .po files in po/.
61779
61780 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
61781
61782         * README: Append ".git" to git and cg examples.
61783         Problem reported by Benoit Sigoure.
61784
61785 2007-10-23  Micah Cowan  <micah@cowan.name>
61786
61787         * users.txt: Add wget.
61788
61789 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61790
61791         Fix linking of some unistdio tests on FreeBSD.
61792         * modules/unistdio/u16-vsnprintf-tests
61793         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
61794         * modules/unistdio/u16-vsprintf-tests
61795         (test_u16_vsnprintf1_LDADD): Likewise.
61796         * modules/unistdio/u32-vsnprintf-tests
61797         (test_u32_vsnprintf1_LDADD): Likewise.
61798         * modules/unistdio/u32-vsprintf-tests
61799         (test_u32_vsprintf1_LDADD): Likewise.
61800         * modules/unistdio/u8-vsnprintf-tests
61801         (test_u8_vsnprintf1_LDADD): Likewise.
61802         * modules/unistdio/u8-vsprintf-tests
61803         (test_u8_vsprintf1_LDADD): Likewise.
61804         * modules/unistdio/ulc-vsnprintf-tests
61805         (test_ulc_vsnprintf1_LDADD): Likewise.
61806         * modules/unistdio/ulc-vsprintf-tests
61807         (test_ulc_vsprintf1_LDADD): Likewise.
61808
61809         Fix linking of some uniconv tests on FreeBSD.
61810         * modules/uniconv/u16-conv-from-enc-tests
61811         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
61812         * modules/uniconv/u16-conv-to-enc-tests
61813         (test_u16_conv_to_enc_LDADD): Likewise.
61814         * modules/uniconv/u16-strconv-from-enc-tests
61815         (test_u16_strconv_from_enc_LDADD): Likewise.
61816         * modules/uniconv/u16-strconv-to-enc-tests
61817         (test_u16_strconv_to_enc_LDADD): Likewise.
61818         * modules/uniconv/u32-conv-from-enc-tests
61819         (test_u32_conv_from_enc_LDADD): Likewise.
61820         * modules/uniconv/u32-conv-to-enc-tests
61821         (test_u32_conv_to_enc_LDADD): Likewise.
61822         * modules/uniconv/u32-strconv-from-enc-tests
61823         (test_u32_strconv_from_enc_LDADD): Likewise.
61824         * modules/uniconv/u32-strconv-to-enc-tests
61825         (test_u32_strconv_to_enc_LDADD): Likewise.
61826         * modules/uniconv/u8-conv-from-enc-tests
61827         (test_u8_conv_from_enc_LDADD): Likewise.
61828         * modules/uniconv/u8-conv-to-enc-tests
61829         (test_u8_conv_to_enc_LDADD): Likewise.
61830         * modules/uniconv/u8-strconv-from-enc-tests
61831         (test_u8_strconv_from_enc_LDADD): Likewise.
61832         * modules/uniconv/u8-strconv-to-enc-tests
61833         (test_u8_strconv_to_enc_LDADD): Likewise.
61834
61835 2007-10-22  Bruno Haible  <bruno@clisp.org>
61836
61837         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
61838         size.
61839
61840 2007-10-22  Eric Blake  <ebb9@byu.net>
61841
61842         Tweak x*printf documentation.
61843         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
61844         variable name and comments.
61845         Suggested by Bruno Haible.
61846
61847 2007-10-22  Bruno Haible  <bruno@clisp.org>
61848
61849         * lib/acl.c (copy_acl): Fix file name in comment.
61850
61851 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
61852
61853         Fix Tru64 problem with stdbool.h.
61854         * lib/stdbool.in.h (false, true):
61855         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
61856         Don't declare as an enum in this situation; it runs afoul of Tru64.
61857         Problem reported by Steven M. Schweda in
61858         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
61859
61860 2007-10-22  Eric Blake  <ebb9@byu.net>
61861
61862         Also wrap vf?printf.
61863         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
61864         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
61865         (xvprintf, xvfprintf): New functions.
61866
61867 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61868
61869         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
61870         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
61871
61872         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
61873         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
61874
61875 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
61876
61877         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
61878         by Bruno Haible.
61879
61880 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61881
61882         * lib/getloadavg.c
61883         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
61884         Undef `sys' after including sys/table.h, for Tru64 4.0D.
61885
61886         * tests/test-i-ring.c: Work for C89.
61887
61888 2007-10-22  Bruno Haible  <bruno@clisp.org>
61889
61890         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
61891         -1u, in preprocessor expression, so that we don't test for the bug
61892         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
61893         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
61894
61895 2007-10-22  Eric Blake  <ebb9@byu.net>
61896
61897         * tests/test-yesno.sh: Silence stderr during test.
61898
61899 2007-10-22  Simon Josefsson  <simon@josefsson.org>
61900
61901         * modules/crypto/gc-camellia: New file.
61902
61903         * m4/gc-camellia.m4: New file.
61904
61905         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
61906
61907         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
61908
61909 2007-10-22  Simon Josefsson  <simon@josefsson.org>
61910
61911         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
61912         --help to stdout.  Reported by sms@antinode.org (Steven
61913         M. Schweda).
61914
61915 2007-10-22  Simon Josefsson  <simon@josefsson.org>
61916
61917         * users.txt: Fix link to libksba.
61918
61919 2007-10-21  Ben Pfaff  <blp@gnu.org>
61920
61921         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
61922         round.c roundf implementation that depends on floorf and ceilf to
61923         be tested unconditionally.
61924
61925 2007-10-21  Ben Pfaff  <blp@gnu.org>
61926
61927         * m4/check-libm-func.m4: Removed.
61928         * m4/check-math-lib.m4: New file.
61929         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
61930         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
61931         definition and lack of AC_LIBOBJ([roundf]).
61932         * m4/roundl.m4: Ditto, and similarly for roundl.
61933         * modules/round: Reference new m4 file.
61934         * modules/roundf: Ditto.
61935         * modules/roundl: Ditto.
61936         * tests/test-round2.c (main): Use ROUND instead of round.
61937         Bug report from Bruno Haible.
61938
61939 2007-10-21  Bruno Haible  <bruno@clisp.org>
61940
61941         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
61942         context.
61943
61944 2007-10-21  Bruno Haible  <bruno@clisp.org>
61945
61946         * tests/test-wcwidth.c (main): Allow negative result for some control
61947         characters.
61948
61949         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
61950         Needed on OSF/1 5.1.
61951
61952 2007-10-21  Bruno Haible  <bruno@clisp.org>
61953
61954         * tests/test-floorf1.c: Include isnanf.h.
61955         (main): Use isnanf() instead of isnan().
61956         * tests/test-ceilf1.c: Include isnanf.h.
61957         (main): Use isnanf() instead of isnan().
61958         * tests/test-truncf1.c: Include isnanf.h.
61959         (main): Use isnanf() instead of isnan().
61960         * tests/test-roundf1.c: Include isnanf.h.
61961         (main): Use isnanf() instead of isnan().
61962
61963 2007-10-21  Eric Blake  <ebb9@byu.net>
61964
61965         * users.txt: Update URL for m4.
61966
61967 2007-10-21  Bruno Haible  <bruno@clisp.org>
61968
61969         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
61970
61971 2007-10-21  Bruno Haible  <bruno@clisp.org>
61972
61973         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
61974         Git's management files if the CVS files are not present.
61975
61976 2007-10-20  Bruno Haible  <bruno@clisp.org>
61977
61978         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
61979         gcc-3.4.x.
61980
61981 2007-10-20  Ben Pfaff  <blp@gnu.org>
61982
61983         * lib/math.in.h: Declare round, roundf, roundl if we are providing
61984         implementations.
61985         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
61986         * lib/round.c: New file.
61987         * lib/roundf.c: New file.
61988         * lib/roundl.c: New file.
61989         * m4/round.m4: New file.
61990         * m4/roundf.m4: New file.
61991         * m4/roundl.m4: New file.
61992         * m4/check-libm-func-m4: New file.
61993         * modules/math: Replace round, roundf, roundl related @VARS@ in
61994         math.in.h.
61995         * modules/round: New file.
61996         * modules/round-tests: New file.
61997         * modules/roundf: New file.
61998         * modules/roundf-tests: New file.
61999         * modules/roundl: New file.
62000         * modules/roundl-tests: New file.
62001         * tests/test-round1.c: New file.
62002         * tests/test-round2.c: New file.
62003         * tests/test-roundf1.c: New file.
62004         * tests/test-roundf2.c: New file.
62005         * tests/test-roundl.c: New file.
62006         * doc/functions/round.texi: Mention round module.
62007         * doc/functions/roundf.texi: Mention roundf module.
62008         * doc/functions/roundl.texi: Mention roundl module.
62009         * MODULES.html.sh: Mention new modules.
62010         Thanks to Bruno Haible for suggestions.
62011
62012 2007-10-20  Jim Meyering  <meyering@redhat.com>
62013
62014         * lib/xprintf.c: Include <config.h> unconditionally.
62015
62016         Change xprintf's license to GPL.
62017         * modules/xprintf (License): s/LGPL/GPL/, since this module
62018         depends on modules (exit and exitfail) which are GPL.
62019         Suggestion from Bruno Haible.
62020
62021         xprintf fixes.
62022         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
62023         Use a clearer diagnostic.
62024         Patch from Bruno Haible.
62025
62026 2007-10-20  Bruno Haible  <bruno@clisp.org>
62027
62028         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
62029         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
62030         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62031
62032 2007-10-20  Bruno Haible  <bruno@clisp.org>
62033
62034         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
62035         precision in the comparison result > x - 1 or similar.
62036         * tests/test-ceilf2.c (correct_result_p): Likewise.
62037         * tests/test-truncf2.c (correct_result_p): Likewise.
62038         * tests/test-trunc2.c (correct_result_p): Likewise.
62039         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62040
62041 2007-10-20  Bruno Haible  <bruno@clisp.org>
62042
62043         * modules/ceil: New file.
62044         * m4/ceil.m4: New file.
62045         * doc/functions/ceil.texi: Mention the 'ceil' module.
62046
62047 2007-10-20  Bruno Haible  <bruno@clisp.org>
62048
62049         * modules/floor: New file.
62050         * m4/floor.m4: New file.
62051         * doc/functions/floor.texi: Mention the 'floor' module.
62052
62053 2007-10-20  Bruno Haible  <bruno@clisp.org>
62054
62055         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
62056         of %a.
62057         * modules/floorf-tests (Depends-on): Likewise.
62058         * modules/truncf-tests (Depends-on): Likewise.
62059         * modules/trunc-tests (Depends-on): Likewise.
62060         Reported by Ben Pfaff.
62061
62062 2007-10-19  Jim Meyering  <meyering@redhat.com>
62063
62064         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
62065         Don't bother testing specific errno values.  Just test ferror.
62066
62067         New module: xprintf
62068         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
62069
62070 2007-10-19  Bruno Haible  <bruno@clisp.org>
62071
62072         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
62073         syntax.
62074         * modules/javaexec (Makefile.am): Likewise.
62075         * modules/relocatable-prog (Makefile.am): Likewise.
62076         Suggested by Jim Meyering.
62077
62078 2007-10-18  Bruno Haible  <bruno@clisp.org>
62079
62080         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
62081         Reported by Jim Meyering.
62082
62083 2007-10-18  Eric Blake  <ebb9@byu.net>
62084
62085         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
62086
62087 2007-10-18  Bruno Haible  <bruno@clisp.org>
62088
62089         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
62090         the format string into writable memory. Needed in Fortify conditions.
62091
62092 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
62093             Bruno Haible  <bruno@clisp.org>
62094
62095         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
62096         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
62097         * modules/trim (Depends-on): Add mbchar.
62098         (configure.ac): Add gl_FUNC_MBRTOWC.
62099         (Makefile.am): Augment lib_SOURCES.
62100
62101 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
62102
62103         Modify glob.c to use fstatat and dirfd, to simplify it.
62104         Suggested by Eric Blake.
62105         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
62106         Don't include <stdbool.h>; not used.
62107         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
62108         (link_exists_p): Simplify implementation, since we can now assume
62109         dirfd and fstatat.
62110         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
62111
62112 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62113
62114         * gnulib-tool (func_get_dependencies): Fix sed script to
62115         match only tests.
62116
62117 2007-10-17  Bruno Haible  <bruno@clisp.org>
62118
62119         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
62120         allow locale names without encoding suffix.
62121         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
62122         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
62123
62124 2007-10-16  Bruno Haible  <bruno@clisp.org>
62125
62126         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
62127         * lib/getgroups.c (getgroups): Likewise.
62128         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
62129
62130 2007-10-16  Bruno Haible  <bruno@clisp.org>
62131
62132         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
62133         * modules/malloc-posix (License): Likewise.
62134         * modules/realloc-posix (License): Likewise.
62135         * modules/calloc-posix (License): Likewise.
62136         * modules/intprops (License): Change from GPL to LGPL, with
62137         Paul Eggert's approval.
62138
62139 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
62140
62141         Merge glibc changes into lib/glob.c.
62142
62143         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
62144         2007-10-15 04:59:03 UTC.  Here are the changes:
62145
62146         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
62147
62148         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
62149
62150         * lib/glob.c: Add some branch prediction throughout.
62151
62152         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
62153
62154         [BZ #5103]
62155         * lib/glob.c (glob): Recognize patterns starting \/.
62156
62157         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
62158
62159         [BZ #3996]
62160         * lib/glob.c (attribute_hidden): Define if not defined.
62161         (glob): Unescape dirname, filename or username when needed and not
62162         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
62163         is NULL.  Handle unescaped [ in pattern without closing ].
62164         Don't pass GLOB_CHECK down to recursive glob for directories.
62165         (__glob_pattern_type): New function.
62166         (__glob_pattern_p): Implement using __glob_pattern_type.
62167         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
62168         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
62169         Remove unreachable code.
62170
62171         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
62172
62173         * lib/glob.c (glob_in_dir): Add some comments and asserts to
62174         explain why there are no leaks.
62175
62176         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
62177
62178         [BZ #3253]
62179         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
62180         time, rather allocate increasingly bigger arrays of pointers, if
62181         possible with alloca, if too large with malloc.
62182
62183 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
62184
62185         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
62186         Problem reported by H.Merijn Brand in
62187         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
62188         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
62189         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
62190
62191 2007-10-15  Bruno Haible  <bruno@clisp.org>
62192
62193         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
62194         with explicit rpl_ prefix.
62195         * lib/fopen.c (fopen): Likewise.
62196         * lib/freopen.c (freopen): Likewise.
62197         * lib/iconv.c (iconv): Likewise.
62198         * lib/iconv_close.c (iconv_close): Likewise.
62199
62200 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62201
62202         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
62203
62204 2007-10-15  Bruno Haible  <bruno@clisp.org>
62205
62206         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
62207         <stddef.h> instead of <stdlib.h> since we only need NULL.
62208         Reported by Ben Pfaff <blp@cs.stanford.edu>.
62209
62210 2007-10-15  Bruno Haible  <bruno@clisp.org>
62211
62212         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
62213         Replace paragraph talking about LIBOBJS.
62214         Reported by Colin Watson <cjwatson@debian.org>.
62215
62216 2007-10-15  Bruno Haible  <bruno@clisp.org>
62217
62218         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
62219         <stdlib.h> before using NULL.
62220
62221 2007-10-15  Simon Josefsson  <simon@josefsson.org>
62222
62223         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
62224         Reported by Albert Chin <china@thewrittenword.com>.
62225
62226 2007-10-14  Bruno Haible  <bruno@clisp.org>
62227
62228         * modules/iconv_open-utf-tests: New file.
62229         * tests/test-iconv-utf.c: New file.
62230
62231         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
62232         * modules/iconv_open-utf: New file.
62233         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
62234         (iconv, iconv_close): New declarations.
62235         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
62236         be defined.
62237         (iconv_open): Add special handling of conversion between UTF-8 and
62238         UTF-{16,32}{BE,LE}.
62239         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
62240         * lib/iconv_close.c: New file.
62241         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
62242         gl_FUNC_ICONV_OPEN.
62243         (gl_FUNC_ICONV_OPEN): Use it.
62244         (gl_FUNC_ICONV_OPEN_UTF): New macro.
62245         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
62246         and REPLACE_ICONV_UTF.
62247         * modules/iconv_open (Depends-on): Add c-strcase.
62248         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
62249         ICONV_CONST.
62250         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
62251
62252 2007-10-13  Albert Chin  <china@thewrittenword.com>
62253             Bruno Haible  <bruno@clisp.org>
62254
62255         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
62256         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
62257
62258 2007-10-13  Bruno Haible  <bruno@clisp.org>
62259
62260         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
62261         defined, use the ISO C99 inline semantics.
62262         * lib/argp.h (ARGP_EI): Likewise.
62263
62264 2007-10-13  Bruno Haible  <bruno@clisp.org>
62265
62266         Handle 'inline' change in gcc 4.3.0.
62267         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
62268         argp_fmtstream_write, argp_fmtstream_set_lmargin,
62269         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
62270         argp_fmtstream_point): Disable 'extern' declaration if the function
62271         definition is going to be provided inline.
62272         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
62273         semantics, not the ISO C99 inline semantics.
62274         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
62275         'extern' declaration if the function definition is going to be provided
62276         inline.
62277         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
62278         the GNU C inline semantics, not the ISO C99 inline semantics. With
62279         GCC 4.2, avoid a warning.
62280
62281 2007-10-13  Bruno Haible  <bruno@clisp.org>
62282
62283         * lib/freading.h (freading): Enable the use of __freading for
62284         glibc >= 2.7.
62285         * lib/freading.c (freading): Likewise.
62286
62287 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
62288
62289         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
62290         "warning: C99 inline functions are not supported; using GNU89".
62291
62292 2007-10-12  Bruno Haible  <bruno@clisp.org>
62293
62294         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
62295         of 2.
62296         * tests/test-ceilf2.c: New file.
62297         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
62298
62299         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
62300         * modules/ceilf-tests: Update.
62301
62302 2007-10-12  Bruno Haible  <bruno@clisp.org>
62303
62304         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
62305         of 2.
62306         * tests/test-floorf2.c: New file.
62307         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
62308
62309         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
62310         * modules/floorf-tests: Update.
62311
62312 2007-10-12  Bruno Haible  <bruno@clisp.org>
62313
62314         * tests/test-trunc2.c: New file.
62315         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
62316
62317         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
62318         * modules/trunc-tests: Update.
62319
62320 2007-10-12  Bruno Haible  <bruno@clisp.org>
62321
62322         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
62323         of 2.
62324         * tests/test-truncf2.c: New file.
62325         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
62326
62327         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
62328         * modules/truncf-tests: Update.
62329
62330 2007-10-11  Eric Blake  <ebb9@byu.net>
62331
62332         Don't claim strerror is broken on Interix.
62333         * doc/functions/strerror.texi (strerror): Known broken systems are
62334         now Solaris 8, and not Interix.
62335         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
62336         Interix on cross-compile.
62337         Reported by Martin Koeppe in
62338         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
62339
62340 2007-10-11  Bruno Haible  <bruno@clisp.org>
62341
62342         * modules/i-ring-tests: New file.
62343         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
62344         instead of assert.
62345
62346 2007-10-11  Bruno Haible  <bruno@clisp.org>
62347
62348         * modules/filenamecat-tests: New file.
62349         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
62350         * lib/filenamecat.c: Remove test code.
62351
62352 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
62353
62354         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
62355
62356         * lib/strerror.c: Include <string.h> always, to test interface,
62357         and to remove the need for the dummy.
62358         Include intprops.h to compute width instead of doing it ourselves
62359         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
62360         (strerror): Define it to return NULL if there's no system strerror.
62361         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
62362         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
62363         ancient pre-strerror Unix systems well any more.  Saying "unknown
62364         system error" is enough.
62365         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
62366         simpler strerror.c implementation.
62367         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
62368         Simplify the tests to reflect the simpler strerror implementation.
62369         * modules/strerror (Depends-on): Add intprops.
62370
62371 2007-10-09  Eric Blake  <ebb9@byu.net>
62372
62373         Silence test-fpending.
62374         * modules/fpending-tests (Files): Add wrapper script.
62375         * tests/test-fpending.sh: New file.
62376
62377 2007-10-09  Bruno Haible  <bruno@clisp.org>
62378
62379         * MODULES.html.sh (func_module): Don't create a hyperlink for
62380         function names like 'printf_frexp'.
62381         (Misc): Add crc, memxor.
62382         (Characteristics of floating types): New section.
62383         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
62384         isnanf-nolibm, signbit, trunc, truncf, truncl.
62385         (Enhancements for ISO C 99 functions): New subsection Input/output.
62386         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
62387         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
62388         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
62389         (Compatibility checks for POSIX:2001 functions): Add clock-time.
62390         (Enhancements for POSIX:2001 functions): Add chdir-long.
62391         (File system functions): Add areadlink, chdir-safer, read-file.
62392         Remove cycle-check.
62393         (File system as inode set): New section.
62394         (Date and time): Add gethrxtime.
62395         (Multithreading): Add openmp.
62396         (Internationalization functions): Add localename.
62397         (Unicode string functions): Add unistr/u*-mbsnlen.
62398         (Support for maintaining and releasing projects): Add git-version-gen.
62399         (Lone files): Remove directories.
62400
62401 2007-10-08  Ben Pfaff  <blp@gnu.org>
62402
62403         * lib/xmalloca.h: Fix typo in comment.
62404
62405 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
62406
62407         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
62408         when avoiding problems with integer overflow.  Use a portable test
62409         instead.
62410
62411 2007-10-08  Simon Josefsson  <simon@josefsson.org>
62412
62413         * modules/dummy (License): Change to LGPLv2+.
62414         * modules/float (License): Likewise
62415         * modules/realloc (License): Likewise
62416         * modules/stdlib (License): Likewise
62417
62418 2007-10-07  Bruno Haible  <bruno@clisp.org>
62419
62420         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
62421         * floor.c (TWO_MANT_DIG): Likewise.
62422         * ceil.c (TWO_MANT_DIG): Likewise.
62423         Reported by Ben Pfaff.
62424
62425 2007-10-07  Bruno Haible  <bruno@clisp.org>
62426
62427         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
62428         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
62429         * lib/frexp.c (FUNC): Likewise.
62430         * lib/printf-frexp.h (printf_frexp): Likewise.
62431         * lib/printf-frexpl.h (printf_frexpl): Likewise.
62432         * lib/printf-frexp.c (FUNC): Likewise.
62433         Suggested by Jim Meyering.
62434
62435 2007-10-07  Jim Meyering  <meyering@redhat.com>
62436
62437         Make xnanosleep's integer overflow test more robust.
62438         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
62439         so that gcc-4.3.0 doesn't optimize away this test for overflow.
62440
62441 2007-10-07  Bruno Haible  <bruno@clisp.org>
62442
62443         * NEWS: Mention the license change.
62444
62445         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
62446         abbreviations in the modules files.
62447
62448         Change copyright notice from GPLv2+ to GPLv3+.
62449         * README: Change copyright notice.
62450         * MODULES.html.sh: Likewise.
62451         * build-aux/bootstrap.conf: Likewise.
62452         * build-aux/config.libpath: Likewise.
62453         * build-aux/csharpcomp.sh.in: Likewise.
62454         * build-aux/csharpexec.sh.in: Likewise.
62455         * build-aux/install-reloc: Likewise.
62456         * build-aux/javacomp.sh.in: Likewise.
62457         * build-aux/javaexec.sh.in: Likewise.
62458         * build-aux/ldd.sh.in: Likewise.
62459         * build-aux/reloc-ldflags: Likewise.
62460         * build-aux/relocatable.sh.in: Likewise.
62461         * build-aux/x-to-1.in: Likewise.
62462         * check-module: Likewise.
62463         * config/srclistvars.sh: Likewise.
62464         * gnulib-tool: Likewise.
62465         * lib/acl-internal.h: Likewise.
62466         * lib/acl.c: Likewise.
62467         * lib/acl.h: Likewise.
62468         * lib/acl_entries.c: Likewise.
62469         * lib/areadlink-with-size.c: Likewise.
62470         * lib/areadlink.c: Likewise.
62471         * lib/areadlink.h: Likewise.
62472         * lib/argmatch.c: Likewise.
62473         * lib/argmatch.h: Likewise.
62474         * lib/argp-ba.c: Likewise.
62475         * lib/argp-eexst.c: Likewise.
62476         * lib/argp-fmtstream.c: Likewise.
62477         * lib/argp-fmtstream.h: Likewise.
62478         * lib/argp-fs-xinl.c: Likewise.
62479         * lib/argp-help.c: Likewise.
62480         * lib/argp-namefrob.h: Likewise.
62481         * lib/argp-parse.c: Likewise.
62482         * lib/argp-pin.c: Likewise.
62483         * lib/argp-pv.c: Likewise.
62484         * lib/argp-pvh.c: Likewise.
62485         * lib/argp-xinl.c: Likewise.
62486         * lib/argp.h: Likewise.
62487         * lib/at-func.c: Likewise.
62488         * lib/atanl.c: Likewise.
62489         * lib/backupfile.c: Likewise.
62490         * lib/backupfile.h: Likewise.
62491         * lib/basename.c: Likewise.
62492         * lib/binary-io.h: Likewise.
62493         * lib/byteswap.in.h: Likewise.
62494         * lib/c-stack.c: Likewise.
62495         * lib/c-stack.h: Likewise.
62496         * lib/c-strcasestr.c: Likewise.
62497         * lib/c-strcasestr.h: Likewise.
62498         * lib/c-strstr.c: Likewise.
62499         * lib/c-strstr.h: Likewise.
62500         * lib/c-strtod.c: Likewise.
62501         * lib/calloc.c: Likewise.
62502         * lib/canon-host.c: Likewise.
62503         * lib/canon-host.h: Likewise.
62504         * lib/canonicalize-lgpl.c: Likewise.
62505         * lib/canonicalize.c: Likewise.
62506         * lib/canonicalize.h: Likewise.
62507         * lib/ceil.c: Likewise.
62508         * lib/ceilf.c: Likewise.
62509         * lib/ceill.c: Likewise.
62510         * lib/chdir-long.c: Likewise.
62511         * lib/chdir-long.h: Likewise.
62512         * lib/chdir-safer.c: Likewise.
62513         * lib/chdir-safer.h: Likewise.
62514         * lib/chown.c: Likewise.
62515         * lib/classpath.c: Likewise.
62516         * lib/classpath.h: Likewise.
62517         * lib/clean-temp.c: Likewise.
62518         * lib/clean-temp.h: Likewise.
62519         * lib/cloexec.c: Likewise.
62520         * lib/close-stream.c: Likewise.
62521         * lib/closein.c: Likewise.
62522         * lib/closein.h: Likewise.
62523         * lib/closeout.c: Likewise.
62524         * lib/closeout.h: Likewise.
62525         * lib/concat-filename.c: Likewise.
62526         * lib/copy-file.c: Likewise.
62527         * lib/copy-file.h: Likewise.
62528         * lib/count-one-bits.h: Likewise.
62529         * lib/crc.c: Likewise.
62530         * lib/crc.h: Likewise.
62531         * lib/creat-safer.c: Likewise.
62532         * lib/csharpcomp.c: Likewise.
62533         * lib/csharpcomp.h: Likewise.
62534         * lib/csharpexec.c: Likewise.
62535         * lib/csharpexec.h: Likewise.
62536         * lib/cycle-check.c: Likewise.
62537         * lib/cycle-check.h: Likewise.
62538         * lib/diacrit.c: Likewise.
62539         * lib/diacrit.h: Likewise.
62540         * lib/diffseq.h: Likewise.
62541         * lib/dirchownmod.c: Likewise.
62542         * lib/dirent.in.h: Likewise.
62543         * lib/dirfd.c: Likewise.
62544         * lib/dirfd.h: Likewise.
62545         * lib/dirname.c: Likewise.
62546         * lib/dirname.h: Likewise.
62547         * lib/dummy.c: Likewise.
62548         * lib/dup-safer.c: Likewise.
62549         * lib/dup2.c: Likewise.
62550         * lib/eealloc.h: Likewise.
62551         * lib/error.c: Likewise.
62552         * lib/error.h: Likewise.
62553         * lib/euidaccess.c: Likewise.
62554         * lib/exclude.c: Likewise.
62555         * lib/exclude.h: Likewise.
62556         * lib/execute.c: Likewise.
62557         * lib/execute.h: Likewise.
62558         * lib/exitfail.c: Likewise.
62559         * lib/exitfail.h: Likewise.
62560         * lib/expl.c: Likewise.
62561         * lib/fatal-signal.c: Likewise.
62562         * lib/fatal-signal.h: Likewise.
62563         * lib/fbufmode.c: Likewise.
62564         * lib/fbufmode.h: Likewise.
62565         * lib/fchdir.c: Likewise.
62566         * lib/fchmodat.c: Likewise.
62567         * lib/fchownat.c: Likewise.
62568         * lib/fcntl--.h: Likewise.
62569         * lib/fcntl-safer.h: Likewise.
62570         * lib/fcntl.in.h: Likewise.
62571         * lib/fd-safer.c: Likewise.
62572         * lib/fflush.c: Likewise.
62573         * lib/file-has-acl.c: Likewise.
62574         * lib/file-set.c: Likewise.
62575         * lib/file-type.c: Likewise.
62576         * lib/file-type.h: Likewise.
62577         * lib/fileblocks.c: Likewise.
62578         * lib/filemode.c: Likewise.
62579         * lib/filemode.h: Likewise.
62580         * lib/filename.h: Likewise.
62581         * lib/filenamecat.c: Likewise.
62582         * lib/filenamecat.h: Likewise.
62583         * lib/findprog.c: Likewise.
62584         * lib/findprog.h: Likewise.
62585         * lib/float.in.h: Likewise.
62586         * lib/floor.c: Likewise.
62587         * lib/floorf.c: Likewise.
62588         * lib/floorl.c: Likewise.
62589         * lib/fopen-safer.c: Likewise.
62590         * lib/fopen.c: Likewise.
62591         * lib/fpending.c: Likewise.
62592         * lib/fpending.h: Likewise.
62593         * lib/fprintf.c: Likewise.
62594         * lib/fprintftime.h: Likewise.
62595         * lib/fpucw.h: Likewise.
62596         * lib/fpurge.c: Likewise.
62597         * lib/fpurge.h: Likewise.
62598         * lib/freadable.c: Likewise.
62599         * lib/freadable.h: Likewise.
62600         * lib/freadahead.c: Likewise.
62601         * lib/freadahead.h: Likewise.
62602         * lib/freading.c: Likewise.
62603         * lib/freading.h: Likewise.
62604         * lib/free.c: Likewise.
62605         * lib/freopen.c: Likewise.
62606         * lib/frexp.c: Likewise.
62607         * lib/frexpl.c: Likewise.
62608         * lib/fseek.c: Likewise.
62609         * lib/fseterr.c: Likewise.
62610         * lib/fseterr.h: Likewise.
62611         * lib/fstatat.c: Likewise.
62612         * lib/fstrcmp.c: Likewise.
62613         * lib/fstrcmp.h: Likewise.
62614         * lib/fsusage.c: Likewise.
62615         * lib/fsusage.h: Likewise.
62616         * lib/ftell.c: Likewise.
62617         * lib/ftello.c: Likewise.
62618         * lib/fts-cycle.c: Likewise.
62619         * lib/fts.c: Likewise.
62620         * lib/fts_.h: Likewise.
62621         * lib/full-read.c: Likewise.
62622         * lib/full-read.h: Likewise.
62623         * lib/full-write.c: Likewise.
62624         * lib/full-write.h: Likewise.
62625         * lib/fwritable.c: Likewise.
62626         * lib/fwritable.h: Likewise.
62627         * lib/fwriteerror.c: Likewise.
62628         * lib/fwriteerror.h: Likewise.
62629         * lib/fwriting.c: Likewise.
62630         * lib/fwriting.h: Likewise.
62631         * lib/gcd.c: Likewise.
62632         * lib/gcd.h: Likewise.
62633         * lib/getcwd.c: Likewise.
62634         * lib/getdate.h: Likewise.
62635         * lib/getdate.y: Likewise.
62636         * lib/getdomainname.c: Likewise.
62637         * lib/getdomainname.h: Likewise.
62638         * lib/getgroups.c: Likewise.
62639         * lib/gethostname.c: Likewise.
62640         * lib/gethrxtime.c: Likewise.
62641         * lib/gethrxtime.h: Likewise.
62642         * lib/getloadavg.c: Likewise.
62643         * lib/getndelim2.c: Likewise.
62644         * lib/getndelim2.h: Likewise.
62645         * lib/getnline.c: Likewise.
62646         * lib/getnline.h: Likewise.
62647         * lib/getopt.c: Likewise.
62648         * lib/getopt.in.h: Likewise.
62649         * lib/getopt1.c: Likewise.
62650         * lib/getopt_int.h: Likewise.
62651         * lib/getpagesize.h: Likewise.
62652         * lib/getsubopt.c: Likewise.
62653         * lib/gettime.c: Likewise.
62654         * lib/getugroups.c: Likewise.
62655         * lib/getugroups.h: Likewise.
62656         * lib/getusershell.c: Likewise.
62657         * lib/gl_anyavltree_list1.h: Likewise.
62658         * lib/gl_anyavltree_list2.h: Likewise.
62659         * lib/gl_anyhash_list1.h: Likewise.
62660         * lib/gl_anyhash_list2.h: Likewise.
62661         * lib/gl_anylinked_list1.h: Likewise.
62662         * lib/gl_anylinked_list2.h: Likewise.
62663         * lib/gl_anyrbtree_list1.h: Likewise.
62664         * lib/gl_anyrbtree_list2.h: Likewise.
62665         * lib/gl_anytree_list1.h: Likewise.
62666         * lib/gl_anytree_list2.h: Likewise.
62667         * lib/gl_anytree_oset.h: Likewise.
62668         * lib/gl_anytreehash_list1.h: Likewise.
62669         * lib/gl_anytreehash_list2.h: Likewise.
62670         * lib/gl_array_list.c: Likewise.
62671         * lib/gl_array_list.h: Likewise.
62672         * lib/gl_array_oset.c: Likewise.
62673         * lib/gl_array_oset.h: Likewise.
62674         * lib/gl_avltree_list.c: Likewise.
62675         * lib/gl_avltree_list.h: Likewise.
62676         * lib/gl_avltree_oset.c: Likewise.
62677         * lib/gl_avltree_oset.h: Likewise.
62678         * lib/gl_avltreehash_list.c: Likewise.
62679         * lib/gl_avltreehash_list.h: Likewise.
62680         * lib/gl_carray_list.c: Likewise.
62681         * lib/gl_carray_list.h: Likewise.
62682         * lib/gl_linked_list.c: Likewise.
62683         * lib/gl_linked_list.h: Likewise.
62684         * lib/gl_linkedhash_list.c: Likewise.
62685         * lib/gl_linkedhash_list.h: Likewise.
62686         * lib/gl_list.c: Likewise.
62687         * lib/gl_list.h: Likewise.
62688         * lib/gl_oset.c: Likewise.
62689         * lib/gl_oset.h: Likewise.
62690         * lib/gl_rbtree_list.c: Likewise.
62691         * lib/gl_rbtree_list.h: Likewise.
62692         * lib/gl_rbtree_oset.c: Likewise.
62693         * lib/gl_rbtree_oset.h: Likewise.
62694         * lib/gl_rbtreehash_list.c: Likewise.
62695         * lib/gl_rbtreehash_list.h: Likewise.
62696         * lib/gl_sublist.c: Likewise.
62697         * lib/gl_sublist.h: Likewise.
62698         * lib/group-member.c: Likewise.
62699         * lib/group-member.h: Likewise.
62700         * lib/hard-locale.c: Likewise.
62701         * lib/hard-locale.h: Likewise.
62702         * lib/hash-pjw.c: Likewise.
62703         * lib/hash-pjw.h: Likewise.
62704         * lib/hash-triple.c: Likewise.
62705         * lib/hash.c: Likewise.
62706         * lib/hash.h: Likewise.
62707         * lib/human.c: Likewise.
62708         * lib/human.h: Likewise.
62709         * lib/i-ring.c: Likewise.
62710         * lib/i-ring.h: Likewise.
62711         * lib/idcache.c: Likewise.
62712         * lib/imaxabs.c: Likewise.
62713         * lib/imaxdiv.c: Likewise.
62714         * lib/inet_pton.c: Likewise.
62715         * lib/inet_pton.h: Likewise.
62716         * lib/intprops.h: Likewise.
62717         * lib/inttostr.c: Likewise.
62718         * lib/inttostr.h: Likewise.
62719         * lib/inttypes.in.h: Likewise.
62720         * lib/isapipe.c: Likewise.
62721         * lib/isdir.c: Likewise.
62722         * lib/isnan.c: Likewise.
62723         * lib/isnan.h: Likewise.
62724         * lib/isnanf.c: Likewise.
62725         * lib/isnanf.h: Likewise.
62726         * lib/isnanl-nolibm.h: Likewise.
62727         * lib/isnanl.c: Likewise.
62728         * lib/isnanl.h: Likewise.
62729         * lib/javacomp.c: Likewise.
62730         * lib/javacomp.h: Likewise.
62731         * lib/javaexec.c: Likewise.
62732         * lib/javaexec.h: Likewise.
62733         * lib/javaversion.c: Likewise.
62734         * lib/javaversion.h: Likewise.
62735         * lib/javaversion.java: Likewise.
62736         * lib/lbrkprop.h: Likewise.
62737         * lib/lchmod.h: Likewise.
62738         * lib/lchown.c: Likewise.
62739         * lib/ldexpl.c: Likewise.
62740         * lib/linebreak.c: Likewise.
62741         * lib/linebreak.h: Likewise.
62742         * lib/linebuffer.c: Likewise.
62743         * lib/linebuffer.h: Likewise.
62744         * lib/locale.in.h: Likewise.
62745         * lib/logl.c: Likewise.
62746         * lib/long-options.c: Likewise.
62747         * lib/long-options.h: Likewise.
62748         * lib/lstat.c: Likewise.
62749         * lib/lstat.h: Likewise.
62750         * lib/math.in.h: Likewise.
62751         * lib/mbchar.c: Likewise.
62752         * lib/mbchar.h: Likewise.
62753         * lib/mbfile.h: Likewise.
62754         * lib/mbiter.h: Likewise.
62755         * lib/mbscasecmp.c: Likewise.
62756         * lib/mbscasestr.c: Likewise.
62757         * lib/mbschr.c: Likewise.
62758         * lib/mbscspn.c: Likewise.
62759         * lib/mbslen.c: Likewise.
62760         * lib/mbsncasecmp.c: Likewise.
62761         * lib/mbsnlen.c: Likewise.
62762         * lib/mbspbrk.c: Likewise.
62763         * lib/mbspcasecmp.c: Likewise.
62764         * lib/mbsrchr.c: Likewise.
62765         * lib/mbssep.c: Likewise.
62766         * lib/mbsspn.c: Likewise.
62767         * lib/mbsstr.c: Likewise.
62768         * lib/mbstok_r.c: Likewise.
62769         * lib/mbswidth.c: Likewise.
62770         * lib/mbswidth.h: Likewise.
62771         * lib/mbuiter.h: Likewise.
62772         * lib/memcasecmp.c: Likewise.
62773         * lib/memcasecmp.h: Likewise.
62774         * lib/memchr.c: Likewise.
62775         * lib/memcmp.c: Likewise.
62776         * lib/memcoll.c: Likewise.
62777         * lib/memcoll.h: Likewise.
62778         * lib/memcpy.c: Likewise.
62779         * lib/memrchr.c: Likewise.
62780         * lib/mkancesdirs.c: Likewise.
62781         * lib/mkdir-p.c: Likewise.
62782         * lib/mkdir-p.h: Likewise.
62783         * lib/mkdir.c: Likewise.
62784         * lib/mkdirat.c: Likewise.
62785         * lib/mkdtemp.c: Likewise.
62786         * lib/mkstemp-safer.c: Likewise.
62787         * lib/mkstemp.c: Likewise.
62788         * lib/modechange.c: Likewise.
62789         * lib/modechange.h: Likewise.
62790         * lib/mountlist.c: Likewise.
62791         * lib/mountlist.h: Likewise.
62792         * lib/mpsort.c: Likewise.
62793         * lib/nanosleep.c: Likewise.
62794         * lib/obstack.c: Likewise.
62795         * lib/obstack.h: Likewise.
62796         * lib/open-safer.c: Likewise.
62797         * lib/open.c: Likewise.
62798         * lib/openat-die.c: Likewise.
62799         * lib/openat-priv.h: Likewise.
62800         * lib/openat-proc.c: Likewise.
62801         * lib/openat.c: Likewise.
62802         * lib/openat.h: Likewise.
62803         * lib/pagealign_alloc.c: Likewise.
62804         * lib/pagealign_alloc.h: Likewise.
62805         * lib/physmem.c: Likewise.
62806         * lib/physmem.h: Likewise.
62807         * lib/pipe-safer.c: Likewise.
62808         * lib/pipe.c: Likewise.
62809         * lib/pipe.h: Likewise.
62810         * lib/posixtm.c: Likewise.
62811         * lib/posixtm.h: Likewise.
62812         * lib/posixver.c: Likewise.
62813         * lib/printf-frexp.c: Likewise.
62814         * lib/printf-frexp.h: Likewise.
62815         * lib/printf-frexpl.c: Likewise.
62816         * lib/printf-frexpl.h: Likewise.
62817         * lib/printf.c: Likewise.
62818         * lib/progname.c: Likewise.
62819         * lib/progname.h: Likewise.
62820         * lib/progreloc.c: Likewise.
62821         * lib/putenv.c: Likewise.
62822         * lib/quote.c: Likewise.
62823         * lib/quote.h: Likewise.
62824         * lib/quotearg.c: Likewise.
62825         * lib/quotearg.h: Likewise.
62826         * lib/raise.c: Likewise.
62827         * lib/readline.c: Likewise.
62828         * lib/readline.h: Likewise.
62829         * lib/readlink.c: Likewise.
62830         * lib/readtokens.c: Likewise.
62831         * lib/readtokens.h: Likewise.
62832         * lib/readtokens0.c: Likewise.
62833         * lib/readtokens0.h: Likewise.
62834         * lib/readutmp.c: Likewise.
62835         * lib/readutmp.h: Likewise.
62836         * lib/realloc.c: Likewise.
62837         * lib/relocwrapper.c: Likewise.
62838         * lib/rename-dest-slash.c: Likewise.
62839         * lib/rename.c: Likewise.
62840         * lib/rmdir.c: Likewise.
62841         * lib/rpmatch.c: Likewise.
62842         * lib/safe-read.c: Likewise.
62843         * lib/safe-read.h: Likewise.
62844         * lib/safe-write.c: Likewise.
62845         * lib/safe-write.h: Likewise.
62846         * lib/same-inode.h: Likewise.
62847         * lib/same.c: Likewise.
62848         * lib/same.h: Likewise.
62849         * lib/save-cwd.c: Likewise.
62850         * lib/save-cwd.h: Likewise.
62851         * lib/savedir.c: Likewise.
62852         * lib/savedir.h: Likewise.
62853         * lib/savewd.c: Likewise.
62854         * lib/savewd.h: Likewise.
62855         * lib/search.in.h: Likewise.
62856         * lib/setenv.c: Likewise.
62857         * lib/setenv.h: Likewise.
62858         * lib/settime.c: Likewise.
62859         * lib/sh-quote.c: Likewise.
62860         * lib/sh-quote.h: Likewise.
62861         * lib/sig2str.c: Likewise.
62862         * lib/sig2str.h: Likewise.
62863         * lib/signal.in.h: Likewise.
62864         * lib/signbitd.c: Likewise.
62865         * lib/signbitf.c: Likewise.
62866         * lib/signbitl.c: Likewise.
62867         * lib/sigprocmask.c: Likewise.
62868         * lib/sincosl.c: Likewise.
62869         * lib/sleep.c: Likewise.
62870         * lib/sprintf.c: Likewise.
62871         * lib/sqrtl.c: Likewise.
62872         * lib/stat-time.h: Likewise.
62873         * lib/stdio--.h: Likewise.
62874         * lib/stdio-safer.h: Likewise.
62875         * lib/stdlib--.h: Likewise.
62876         * lib/stdlib-safer.h: Likewise.
62877         * lib/stdlib.in.h: Likewise.
62878         * lib/stpcpy.c: Likewise.
62879         * lib/stpncpy.c: Likewise.
62880         * lib/strchrnul.c: Likewise.
62881         * lib/strcspn.c: Likewise.
62882         * lib/strerror.c: Likewise.
62883         * lib/strftime.c: Likewise.
62884         * lib/strftime.h: Likewise.
62885         * lib/striconveh.c: Likewise.
62886         * lib/striconveh.h: Likewise.
62887         * lib/striconveha.c: Likewise.
62888         * lib/striconveha.h: Likewise.
62889         * lib/stripslash.c: Likewise.
62890         * lib/strnlen1.c: Likewise.
62891         * lib/strnlen1.h: Likewise.
62892         * lib/strtod.c: Likewise.
62893         * lib/strtoimax.c: Likewise.
62894         * lib/strtok_r.c: Likewise.
62895         * lib/strtol.c: Likewise.
62896         * lib/strtoll.c: Likewise.
62897         * lib/strtoul.c: Likewise.
62898         * lib/strtoull.c: Likewise.
62899         * lib/sysexits.in.h: Likewise.
62900         * lib/tempname.c: Likewise.
62901         * lib/tempname.h: Likewise.
62902         * lib/timespec.h: Likewise.
62903         * lib/tls.c: Likewise.
62904         * lib/tls.h: Likewise.
62905         * lib/tmpdir.c: Likewise.
62906         * lib/tmpdir.h: Likewise.
62907         * lib/tmpfile-safer.c: Likewise.
62908         * lib/tmpfile.c: Likewise.
62909         * lib/trigl.c: Likewise.
62910         * lib/trigl.h: Likewise.
62911         * lib/trim.c: Likewise.
62912         * lib/trim.h: Likewise.
62913         * lib/trunc.c: Likewise.
62914         * lib/truncf.c: Likewise.
62915         * lib/truncl.c: Likewise.
62916         * lib/tsearch.c: Likewise.
62917         * lib/unicodeio.c: Likewise.
62918         * lib/unicodeio.h: Likewise.
62919         * lib/unistd--.h: Likewise.
62920         * lib/unistd-safer.h: Likewise.
62921         * lib/unistdio/ulc-fprintf.c: Likewise.
62922         * lib/unistdio/ulc-vfprintf.c: Likewise.
62923         * lib/unlinkdir.c: Likewise.
62924         * lib/unlinkdir.h: Likewise.
62925         * lib/unlocked-io.h: Likewise.
62926         * lib/unsetenv.c: Likewise.
62927         * lib/userspec.c: Likewise.
62928         * lib/utime.c: Likewise.
62929         * lib/utimecmp.c: Likewise.
62930         * lib/utimecmp.h: Likewise.
62931         * lib/utimens.c: Likewise.
62932         * lib/verify.h: Likewise.
62933         * lib/verror.c: Likewise.
62934         * lib/verror.h: Likewise.
62935         * lib/version-etc-fsf.c: Likewise.
62936         * lib/version-etc.c: Likewise.
62937         * lib/version-etc.h: Likewise.
62938         * lib/vfprintf.c: Likewise.
62939         * lib/vprintf.c: Likewise.
62940         * lib/vsprintf.c: Likewise.
62941         * lib/w32spawn.h: Likewise.
62942         * lib/wait-process.c: Likewise.
62943         * lib/wait-process.h: Likewise.
62944         * lib/wcwidth.c: Likewise.
62945         * lib/write-any-file.c: Likewise.
62946         * lib/xalloc-die.c: Likewise.
62947         * lib/xalloc.h: Likewise.
62948         * lib/xasprintf.c: Likewise.
62949         * lib/xgetcwd.c: Likewise.
62950         * lib/xgetcwd.h: Likewise.
62951         * lib/xgetdomainname.c: Likewise.
62952         * lib/xgetdomainname.h: Likewise.
62953         * lib/xgethostname.c: Likewise.
62954         * lib/xmalloc.c: Likewise.
62955         * lib/xmalloca.c: Likewise.
62956         * lib/xmalloca.h: Likewise.
62957         * lib/xmemcoll.c: Likewise.
62958         * lib/xnanosleep.c: Likewise.
62959         * lib/xreadlink.c: Likewise.
62960         * lib/xreadlink.h: Likewise.
62961         * lib/xsetenv.c: Likewise.
62962         * lib/xsetenv.h: Likewise.
62963         * lib/xstriconv.c: Likewise.
62964         * lib/xstriconv.h: Likewise.
62965         * lib/xstrndup.c: Likewise.
62966         * lib/xstrndup.h: Likewise.
62967         * lib/xstrtod.c: Likewise.
62968         * lib/xstrtod.h: Likewise.
62969         * lib/xstrtol-error.c: Likewise.
62970         * lib/xstrtol.c: Likewise.
62971         * lib/xstrtol.h: Likewise.
62972         * lib/xtime.h: Likewise.
62973         * lib/xvasprintf.c: Likewise.
62974         * lib/xvasprintf.h: Likewise.
62975         * lib/yesno.c: Likewise.
62976         * lib/yesno.h: Likewise.
62977         * posix-modules: Likewise.
62978         * tests/test-alloca-opt.c: Likewise.
62979         * tests/test-arcfour.c: Likewise.
62980         * tests/test-arctwo.c: Likewise.
62981         * tests/test-argmatch.c: Likewise.
62982         * tests/test-argp-2.sh: Likewise.
62983         * tests/test-argp.c: Likewise.
62984         * tests/test-arpa_inet.c: Likewise.
62985         * tests/test-array_list.c: Likewise.
62986         * tests/test-array_oset.c: Likewise.
62987         * tests/test-atexit.c: Likewise.
62988         * tests/test-avltree_list.c: Likewise.
62989         * tests/test-avltree_oset.c: Likewise.
62990         * tests/test-avltreehash_list.c: Likewise.
62991         * tests/test-base64.c: Likewise.
62992         * tests/test-binary-io.c: Likewise.
62993         * tests/test-byteswap.c: Likewise.
62994         * tests/test-c-ctype.c: Likewise.
62995         * tests/test-c-strcasecmp.c: Likewise.
62996         * tests/test-c-strcasestr.c: Likewise.
62997         * tests/test-c-strncasecmp.c: Likewise.
62998         * tests/test-c-strstr.c: Likewise.
62999         * tests/test-canonicalize-lgpl.c: Likewise.
63000         * tests/test-canonicalize.c: Likewise.
63001         * tests/test-carray_list.c: Likewise.
63002         * tests/test-ceilf.c: Likewise.
63003         * tests/test-ceill.c: Likewise.
63004         * tests/test-count-one-bits.c: Likewise.
63005         * tests/test-crc.c: Likewise.
63006         * tests/test-dirname.c: Likewise.
63007         * tests/test-fbufmode.c: Likewise.
63008         * tests/test-fcntl.c: Likewise.
63009         * tests/test-fflush.c: Likewise.
63010         * tests/test-floorf.c: Likewise.
63011         * tests/test-floorl.c: Likewise.
63012         * tests/test-fopen.c: Likewise.
63013         * tests/test-fprintf-posix.c: Likewise.
63014         * tests/test-fprintf-posix.h: Likewise.
63015         * tests/test-fpurge.c: Likewise.
63016         * tests/test-freadable.c: Likewise.
63017         * tests/test-freadahead.c: Likewise.
63018         * tests/test-freading.c: Likewise.
63019         * tests/test-freopen.c: Likewise.
63020         * tests/test-frexp.c: Likewise.
63021         * tests/test-frexpl.c: Likewise.
63022         * tests/test-fseek.c: Likewise.
63023         * tests/test-fseeko.c: Likewise.
63024         * tests/test-fseterr.c: Likewise.
63025         * tests/test-fstrcmp.c: Likewise.
63026         * tests/test-ftell.c: Likewise.
63027         * tests/test-ftello.c: Likewise.
63028         * tests/test-fwritable.c: Likewise.
63029         * tests/test-fwriting.c: Likewise.
63030         * tests/test-getaddrinfo.c: Likewise.
63031         * tests/test-getpass.c: Likewise.
63032         * tests/test-gettimeofday.c: Likewise.
63033         * tests/test-hmac-md5.c: Likewise.
63034         * tests/test-hmac-sha1.c: Likewise.
63035         * tests/test-iconv.c: Likewise.
63036         * tests/test-iconvme.c: Likewise.
63037         * tests/test-inttypes.c: Likewise.
63038         * tests/test-isnan.c: Likewise.
63039         * tests/test-isnanf.c: Likewise.
63040         * tests/test-isnanl-nolibm.c: Likewise.
63041         * tests/test-isnanl.c: Likewise.
63042         * tests/test-isnanl.h: Likewise.
63043         * tests/test-ldexpl.c: Likewise.
63044         * tests/test-linked_list.c: Likewise.
63045         * tests/test-linkedhash_list.c: Likewise.
63046         * tests/test-locale.c: Likewise.
63047         * tests/test-localename.c: Likewise.
63048         * tests/test-lock.c: Likewise.
63049         * tests/test-lseek.c: Likewise.
63050         * tests/test-malloca.c: Likewise.
63051         * tests/test-math.c: Likewise.
63052         * tests/test-mbscasecmp.c: Likewise.
63053         * tests/test-mbscasestr1.c: Likewise.
63054         * tests/test-mbscasestr2.c: Likewise.
63055         * tests/test-mbscasestr3.c: Likewise.
63056         * tests/test-mbscasestr4.c: Likewise.
63057         * tests/test-mbschr.c: Likewise.
63058         * tests/test-mbscspn.c: Likewise.
63059         * tests/test-mbsncasecmp.c: Likewise.
63060         * tests/test-mbspbrk.c: Likewise.
63061         * tests/test-mbspcasecmp.c: Likewise.
63062         * tests/test-mbsrchr.c: Likewise.
63063         * tests/test-mbsspn.c: Likewise.
63064         * tests/test-mbsstr1.c: Likewise.
63065         * tests/test-mbsstr2.c: Likewise.
63066         * tests/test-mbsstr3.c: Likewise.
63067         * tests/test-md5.c: Likewise.
63068         * tests/test-memmem.c: Likewise.
63069         * tests/test-netinet_in.c: Likewise.
63070         * tests/test-open.c: Likewise.
63071         * tests/test-printf-frexp.c: Likewise.
63072         * tests/test-printf-frexpl.c: Likewise.
63073         * tests/test-printf-posix.c: Likewise.
63074         * tests/test-printf-posix.h: Likewise.
63075         * tests/test-rbtree_list.c: Likewise.
63076         * tests/test-rbtree_oset.c: Likewise.
63077         * tests/test-rbtreehash_list.c: Likewise.
63078         * tests/test-read-file.c: Likewise.
63079         * tests/test-rijndael.c: Likewise.
63080         * tests/test-search.c: Likewise.
63081         * tests/test-signbit.c: Likewise.
63082         * tests/test-sleep.c: Likewise.
63083         * tests/test-snprintf-posix.c: Likewise.
63084         * tests/test-snprintf-posix.h: Likewise.
63085         * tests/test-snprintf.c: Likewise.
63086         * tests/test-sprintf-posix.c: Likewise.
63087         * tests/test-sprintf-posix.h: Likewise.
63088         * tests/test-stat-time.c: Likewise.
63089         * tests/test-stdbool.c: Likewise.
63090         * tests/test-stdint.c: Likewise.
63091         * tests/test-stdio.c: Likewise.
63092         * tests/test-stdlib.c: Likewise.
63093         * tests/test-stpncpy.c: Likewise.
63094         * tests/test-strcasestr.c: Likewise.
63095         * tests/test-striconv.c: Likewise.
63096         * tests/test-striconveh.c: Likewise.
63097         * tests/test-striconveha.c: Likewise.
63098         * tests/test-string.c: Likewise.
63099         * tests/test-sys_select.c: Likewise.
63100         * tests/test-sys_socket.c: Likewise.
63101         * tests/test-sys_stat.c: Likewise.
63102         * tests/test-sys_time.c: Likewise.
63103         * tests/test-sysexits.c: Likewise.
63104         * tests/test-time.c: Likewise.
63105         * tests/test-tls.c: Likewise.
63106         * tests/test-trunc.c: Likewise.
63107         * tests/test-truncf.c: Likewise.
63108         * tests/test-truncl.c: Likewise.
63109         * tests/test-unistd.c: Likewise.
63110         * tests/test-vasnprintf-posix.c: Likewise.
63111         * tests/test-vasnprintf-posix2.c: Likewise.
63112         * tests/test-vasnprintf.c: Likewise.
63113         * tests/test-vasprintf-posix.c: Likewise.
63114         * tests/test-vasprintf.c: Likewise.
63115         * tests/test-verify.c: Likewise.
63116         * tests/test-vfprintf-posix.c: Likewise.
63117         * tests/test-vprintf-posix.c: Likewise.
63118         * tests/test-vsnprintf-posix.c: Likewise.
63119         * tests/test-vsnprintf.c: Likewise.
63120         * tests/test-vsprintf-posix.c: Likewise.
63121         * tests/test-wchar.c: Likewise.
63122         * tests/test-wctype.c: Likewise.
63123         * tests/test-wcwidth.c: Likewise.
63124         * tests/test-xstrtol.c: Likewise.
63125         * tests/test-xvasprintf.c: Likewise.
63126         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
63127         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
63128         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
63129         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
63130         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
63131         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
63132         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
63133         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
63134         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
63135         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
63136         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
63137         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
63138         * tests/uniname/test-uninames.c: Likewise.
63139         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
63140         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
63141         * tests/unistdio/test-u16-printf1.h: Likewise.
63142         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
63143         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
63144         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
63145         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
63146         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
63147         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
63148         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
63149         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
63150         * tests/unistdio/test-u32-printf1.h: Likewise.
63151         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
63152         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
63153         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
63154         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
63155         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
63156         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
63157         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
63158         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
63159         * tests/unistdio/test-u8-printf1.h: Likewise.
63160         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
63161         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
63162         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
63163         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
63164         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
63165         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
63166         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
63167         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
63168         * tests/unistdio/test-ulc-printf1.h: Likewise.
63169         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
63170         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
63171         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
63172         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
63173         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
63174         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
63175         * tests/uniwidth/test-u16-strwidth.c: Likewise.
63176         * tests/uniwidth/test-u16-width.c: Likewise.
63177         * tests/uniwidth/test-u32-strwidth.c: Likewise.
63178         * tests/uniwidth/test-u32-width.c: Likewise.
63179         * tests/uniwidth/test-u8-strwidth.c: Likewise.
63180         * tests/uniwidth/test-u8-width.c: Likewise.
63181         * tests/uniwidth/test-uc_width.c: Likewise.
63182         * config/srclist-update: Likewise.
63183         (fixlicense): Update to GPLv3+.
63184
63185         Change copyright notice from LGPLv2.1+ to LGPLv3+.
63186         * tests/test-tsearch.c: Change copyright notice.
63187
63188         Change copyright notice from LGPLv2.0+ to LGPLv3+.
63189         * lib/c-strcaseeq.h: Change copyright notice.
63190         * lib/streq.h: Likewise.
63191         * lib/uniconv.h: Likewise.
63192         * lib/uniconv/u-conv-from-enc.h: Likewise.
63193         * lib/uniconv/u-conv-to-enc.h: Likewise.
63194         * lib/uniconv/u-strconv-from-enc.h: Likewise.
63195         * lib/uniconv/u-strconv-to-enc.h: Likewise.
63196         * lib/uniconv/u16-conv-from-enc.c: Likewise.
63197         * lib/uniconv/u16-conv-to-enc.c: Likewise.
63198         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
63199         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
63200         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
63201         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
63202         * lib/uniconv/u32-conv-from-enc.c: Likewise.
63203         * lib/uniconv/u32-conv-to-enc.c: Likewise.
63204         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
63205         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
63206         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
63207         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
63208         * lib/uniconv/u8-conv-from-enc.c: Likewise.
63209         * lib/uniconv/u8-conv-to-enc.c: Likewise.
63210         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
63211         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
63212         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
63213         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
63214         * lib/uniname.h: Likewise.
63215         * lib/uniname/uniname.c: Likewise.
63216         * lib/unistdio.h: Likewise.
63217         * lib/unistdio/u-asnprintf.h: Likewise.
63218         * lib/unistdio/u-asprintf.h: Likewise.
63219         * lib/unistdio/u-printf-args.c: Likewise.
63220         * lib/unistdio/u-printf-args.h: Likewise.
63221         * lib/unistdio/u-printf-parse.h: Likewise.
63222         * lib/unistdio/u-snprintf.h: Likewise.
63223         * lib/unistdio/u-sprintf.h: Likewise.
63224         * lib/unistdio/u-vasprintf.h: Likewise.
63225         * lib/unistdio/u-vsnprintf.h: Likewise.
63226         * lib/unistdio/u-vsprintf.h: Likewise.
63227         * lib/unistdio/u16-asnprintf.c: Likewise.
63228         * lib/unistdio/u16-asprintf.c: Likewise.
63229         * lib/unistdio/u16-printf-parse.c: Likewise.
63230         * lib/unistdio/u16-snprintf.c: Likewise.
63231         * lib/unistdio/u16-sprintf.c: Likewise.
63232         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
63233         * lib/unistdio/u16-u16-asprintf.c: Likewise.
63234         * lib/unistdio/u16-u16-snprintf.c: Likewise.
63235         * lib/unistdio/u16-u16-sprintf.c: Likewise.
63236         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
63237         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
63238         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
63239         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
63240         * lib/unistdio/u16-vasnprintf.c: Likewise.
63241         * lib/unistdio/u16-vasprintf.c: Likewise.
63242         * lib/unistdio/u16-vsnprintf.c: Likewise.
63243         * lib/unistdio/u16-vsprintf.c: Likewise.
63244         * lib/unistdio/u32-asnprintf.c: Likewise.
63245         * lib/unistdio/u32-asprintf.c: Likewise.
63246         * lib/unistdio/u32-printf-parse.c: Likewise.
63247         * lib/unistdio/u32-snprintf.c: Likewise.
63248         * lib/unistdio/u32-sprintf.c: Likewise.
63249         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
63250         * lib/unistdio/u32-u32-asprintf.c: Likewise.
63251         * lib/unistdio/u32-u32-snprintf.c: Likewise.
63252         * lib/unistdio/u32-u32-sprintf.c: Likewise.
63253         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
63254         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
63255         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
63256         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
63257         * lib/unistdio/u32-vasnprintf.c: Likewise.
63258         * lib/unistdio/u32-vasprintf.c: Likewise.
63259         * lib/unistdio/u32-vsnprintf.c: Likewise.
63260         * lib/unistdio/u32-vsprintf.c: Likewise.
63261         * lib/unistdio/u8-asnprintf.c: Likewise.
63262         * lib/unistdio/u8-asprintf.c: Likewise.
63263         * lib/unistdio/u8-printf-parse.c: Likewise.
63264         * lib/unistdio/u8-snprintf.c: Likewise.
63265         * lib/unistdio/u8-sprintf.c: Likewise.
63266         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
63267         * lib/unistdio/u8-u8-asprintf.c: Likewise.
63268         * lib/unistdio/u8-u8-snprintf.c: Likewise.
63269         * lib/unistdio/u8-u8-sprintf.c: Likewise.
63270         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
63271         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
63272         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
63273         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
63274         * lib/unistdio/u8-vasnprintf.c: Likewise.
63275         * lib/unistdio/u8-vasprintf.c: Likewise.
63276         * lib/unistdio/u8-vsnprintf.c: Likewise.
63277         * lib/unistdio/u8-vsprintf.c: Likewise.
63278         * lib/unistdio/ulc-asnprintf.c: Likewise.
63279         * lib/unistdio/ulc-asprintf.c: Likewise.
63280         * lib/unistdio/ulc-printf-parse.c: Likewise.
63281         * lib/unistdio/ulc-snprintf.c: Likewise.
63282         * lib/unistdio/ulc-sprintf.c: Likewise.
63283         * lib/unistdio/ulc-vasnprintf.c: Likewise.
63284         * lib/unistdio/ulc-vasprintf.c: Likewise.
63285         * lib/unistdio/ulc-vsnprintf.c: Likewise.
63286         * lib/unistdio/ulc-vsprintf.c: Likewise.
63287         * lib/unistr.h: Likewise.
63288         * lib/unistr/u-cpy-alloc.h: Likewise.
63289         * lib/unistr/u-cpy.h: Likewise.
63290         * lib/unistr/u-endswith.h: Likewise.
63291         * lib/unistr/u-move.h: Likewise.
63292         * lib/unistr/u-set.h: Likewise.
63293         * lib/unistr/u-startswith.h: Likewise.
63294         * lib/unistr/u-stpcpy.h: Likewise.
63295         * lib/unistr/u-stpncpy.h: Likewise.
63296         * lib/unistr/u-strcat.h: Likewise.
63297         * lib/unistr/u-strcpy.h: Likewise.
63298         * lib/unistr/u-strcspn.h: Likewise.
63299         * lib/unistr/u-strdup.h: Likewise.
63300         * lib/unistr/u-strlen.h: Likewise.
63301         * lib/unistr/u-strncat.h: Likewise.
63302         * lib/unistr/u-strncpy.h: Likewise.
63303         * lib/unistr/u-strnlen.h: Likewise.
63304         * lib/unistr/u-strpbrk.h: Likewise.
63305         * lib/unistr/u-strspn.h: Likewise.
63306         * lib/unistr/u-strstr.h: Likewise.
63307         * lib/unistr/u-strtok.h: Likewise.
63308         * lib/unistr/u16-check.c: Likewise.
63309         * lib/unistr/u16-chr.c: Likewise.
63310         * lib/unistr/u16-cmp.c: Likewise.
63311         * lib/unistr/u16-cpy-alloc.c: Likewise.
63312         * lib/unistr/u16-cpy.c: Likewise.
63313         * lib/unistr/u16-endswith.c: Likewise.
63314         * lib/unistr/u16-mblen.c: Likewise.
63315         * lib/unistr/u16-mbsnlen.c: Likewise.
63316         * lib/unistr/u16-mbtouc-aux.c: Likewise.
63317         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
63318         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
63319         * lib/unistr/u16-mbtouc.c: Likewise.
63320         * lib/unistr/u16-mbtoucr.c: Likewise.
63321         * lib/unistr/u16-move.c: Likewise.
63322         * lib/unistr/u16-next.c: Likewise.
63323         * lib/unistr/u16-prev.c: Likewise.
63324         * lib/unistr/u16-set.c: Likewise.
63325         * lib/unistr/u16-startswith.c: Likewise.
63326         * lib/unistr/u16-stpcpy.c: Likewise.
63327         * lib/unistr/u16-stpncpy.c: Likewise.
63328         * lib/unistr/u16-strcat.c: Likewise.
63329         * lib/unistr/u16-strchr.c: Likewise.
63330         * lib/unistr/u16-strcmp.c: Likewise.
63331         * lib/unistr/u16-strcpy.c: Likewise.
63332         * lib/unistr/u16-strcspn.c: Likewise.
63333         * lib/unistr/u16-strdup.c: Likewise.
63334         * lib/unistr/u16-strlen.c: Likewise.
63335         * lib/unistr/u16-strmblen.c: Likewise.
63336         * lib/unistr/u16-strmbtouc.c: Likewise.
63337         * lib/unistr/u16-strncat.c: Likewise.
63338         * lib/unistr/u16-strncmp.c: Likewise.
63339         * lib/unistr/u16-strncpy.c: Likewise.
63340         * lib/unistr/u16-strnlen.c: Likewise.
63341         * lib/unistr/u16-strpbrk.c: Likewise.
63342         * lib/unistr/u16-strrchr.c: Likewise.
63343         * lib/unistr/u16-strspn.c: Likewise.
63344         * lib/unistr/u16-strstr.c: Likewise.
63345         * lib/unistr/u16-strtok.c: Likewise.
63346         * lib/unistr/u16-to-u32.c: Likewise.
63347         * lib/unistr/u16-to-u8.c: Likewise.
63348         * lib/unistr/u16-uctomb-aux.c: Likewise.
63349         * lib/unistr/u16-uctomb.c: Likewise.
63350         * lib/unistr/u32-check.c: Likewise.
63351         * lib/unistr/u32-chr.c: Likewise.
63352         * lib/unistr/u32-cmp.c: Likewise.
63353         * lib/unistr/u32-cpy-alloc.c: Likewise.
63354         * lib/unistr/u32-cpy.c: Likewise.
63355         * lib/unistr/u32-endswith.c: Likewise.
63356         * lib/unistr/u32-mblen.c: Likewise.
63357         * lib/unistr/u32-mbsnlen.c: Likewise.
63358         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
63359         * lib/unistr/u32-mbtouc.c: Likewise.
63360         * lib/unistr/u32-mbtoucr.c: Likewise.
63361         * lib/unistr/u32-move.c: Likewise.
63362         * lib/unistr/u32-next.c: Likewise.
63363         * lib/unistr/u32-prev.c: Likewise.
63364         * lib/unistr/u32-set.c: Likewise.
63365         * lib/unistr/u32-startswith.c: Likewise.
63366         * lib/unistr/u32-stpcpy.c: Likewise.
63367         * lib/unistr/u32-stpncpy.c: Likewise.
63368         * lib/unistr/u32-strcat.c: Likewise.
63369         * lib/unistr/u32-strchr.c: Likewise.
63370         * lib/unistr/u32-strcmp.c: Likewise.
63371         * lib/unistr/u32-strcpy.c: Likewise.
63372         * lib/unistr/u32-strcspn.c: Likewise.
63373         * lib/unistr/u32-strdup.c: Likewise.
63374         * lib/unistr/u32-strlen.c: Likewise.
63375         * lib/unistr/u32-strmblen.c: Likewise.
63376         * lib/unistr/u32-strmbtouc.c: Likewise.
63377         * lib/unistr/u32-strncat.c: Likewise.
63378         * lib/unistr/u32-strncmp.c: Likewise.
63379         * lib/unistr/u32-strncpy.c: Likewise.
63380         * lib/unistr/u32-strnlen.c: Likewise.
63381         * lib/unistr/u32-strpbrk.c: Likewise.
63382         * lib/unistr/u32-strrchr.c: Likewise.
63383         * lib/unistr/u32-strspn.c: Likewise.
63384         * lib/unistr/u32-strstr.c: Likewise.
63385         * lib/unistr/u32-strtok.c: Likewise.
63386         * lib/unistr/u32-to-u16.c: Likewise.
63387         * lib/unistr/u32-to-u8.c: Likewise.
63388         * lib/unistr/u32-uctomb.c: Likewise.
63389         * lib/unistr/u8-check.c: Likewise.
63390         * lib/unistr/u8-chr.c: Likewise.
63391         * lib/unistr/u8-cmp.c: Likewise.
63392         * lib/unistr/u8-cpy-alloc.c: Likewise.
63393         * lib/unistr/u8-cpy.c: Likewise.
63394         * lib/unistr/u8-endswith.c: Likewise.
63395         * lib/unistr/u8-mblen.c: Likewise.
63396         * lib/unistr/u8-mbsnlen.c: Likewise.
63397         * lib/unistr/u8-mbtouc-aux.c: Likewise.
63398         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
63399         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
63400         * lib/unistr/u8-mbtouc.c: Likewise.
63401         * lib/unistr/u8-mbtoucr.c: Likewise.
63402         * lib/unistr/u8-move.c: Likewise.
63403         * lib/unistr/u8-next.c: Likewise.
63404         * lib/unistr/u8-prev.c: Likewise.
63405         * lib/unistr/u8-set.c: Likewise.
63406         * lib/unistr/u8-startswith.c: Likewise.
63407         * lib/unistr/u8-stpcpy.c: Likewise.
63408         * lib/unistr/u8-stpncpy.c: Likewise.
63409         * lib/unistr/u8-strcat.c: Likewise.
63410         * lib/unistr/u8-strchr.c: Likewise.
63411         * lib/unistr/u8-strcmp.c: Likewise.
63412         * lib/unistr/u8-strcpy.c: Likewise.
63413         * lib/unistr/u8-strcspn.c: Likewise.
63414         * lib/unistr/u8-strdup.c: Likewise.
63415         * lib/unistr/u8-strlen.c: Likewise.
63416         * lib/unistr/u8-strmblen.c: Likewise.
63417         * lib/unistr/u8-strmbtouc.c: Likewise.
63418         * lib/unistr/u8-strncat.c: Likewise.
63419         * lib/unistr/u8-strncmp.c: Likewise.
63420         * lib/unistr/u8-strncpy.c: Likewise.
63421         * lib/unistr/u8-strnlen.c: Likewise.
63422         * lib/unistr/u8-strpbrk.c: Likewise.
63423         * lib/unistr/u8-strrchr.c: Likewise.
63424         * lib/unistr/u8-strspn.c: Likewise.
63425         * lib/unistr/u8-strstr.c: Likewise.
63426         * lib/unistr/u8-strtok.c: Likewise.
63427         * lib/unistr/u8-to-u16.c: Likewise.
63428         * lib/unistr/u8-to-u32.c: Likewise.
63429         * lib/unistr/u8-uctomb-aux.c: Likewise.
63430         * lib/unistr/u8-uctomb.c: Likewise.
63431         * lib/unitypes.h: Likewise.
63432         * lib/uniwidth.h: Likewise.
63433         * lib/uniwidth/cjk.h: Likewise.
63434         * lib/uniwidth/u16-strwidth.c: Likewise.
63435         * lib/uniwidth/u16-width.c: Likewise.
63436         * lib/uniwidth/u32-strwidth.c: Likewise.
63437         * lib/uniwidth/u32-width.c: Likewise.
63438         * lib/uniwidth/u8-strwidth.c: Likewise.
63439         * lib/uniwidth/u8-width.c: Likewise.
63440         * lib/uniwidth/width.c: Likewise.
63441
63442 2007-10-07  Bruno Haible  <bruno@clisp.org>
63443
63444         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
63445         The file is still under LGPL (see modules/inttypes).
63446
63447 2007-10-06  Bruno Haible  <bruno@clisp.org>
63448
63449         * modules/trunc (Dependencies): Add 'extensions'.
63450         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
63451         Reported by Ben Pfaff <blp@gnu.org>.
63452
63453 2007-10-06  Bruno Haible  <bruno@clisp.org>
63454
63455         * modules/freopen-tests: New file.
63456         * tests/test-freopen.c: New file.
63457
63458         * modules/fopen-tests: New file.
63459         * tests/test-fopen.c: New file.
63460
63461         * modules/fopen: New file.
63462         * lib/fopen.c: New file.
63463         * m4/fopen.m4: New file.
63464         * modules/freopen: New file.
63465         * lib/freopen.c: New file.
63466         * m4/freopen.m4: New file.
63467         * lib/stdio.in.h (fopen, freopen): New declarations.
63468         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
63469         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
63470         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
63471         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
63472         * doc/functions/fopen.texi: Mention the 'fopen' module.
63473         * doc/functions/freopen.texi: Mention the 'freopen' module.
63474
63475 2007-10-06  Bruno Haible  <bruno@clisp.org>
63476
63477         * modules/open-tests: New file.
63478         * tests/test-open.c: New file.
63479
63480         * modules/open: New file.
63481         * lib/open.c: New file.
63482         * m4/open.m4: New file.
63483         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
63484         lib/open.c does.
63485         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
63486         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
63487         macros.
63488         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
63489         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
63490         REPLACE_OPEN.
63491         * doc/functions/open.texi: Mention the 'open' module.
63492
63493 2007-10-04  Bruno Haible  <bruno@clisp.org>
63494
63495         * modules/ceill-tests: New file.
63496         * tests/test-ceill.c: New file.
63497
63498         * modules/ceill: New file.
63499         * lib/ceill.c: Replace entire file.
63500         * m4/ceill.m4: New file.
63501         * lib/math.in.h (ceill): Replace declaration.
63502         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
63503         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
63504         * doc/functions/ceill.texi: Mention the 'ceill' module.
63505         * modules/mathl (Files): Remove lib/ceill.c.
63506         (Depends-on): Add ceill.
63507
63508 2007-10-04  Bruno Haible  <bruno@clisp.org>
63509
63510         * modules/ceilf-tests: New file.
63511         * tests/test-ceilf.c: New file.
63512
63513         * modules/ceilf: New file.
63514         * lib/ceil.c: New file.
63515         * lib/ceilf.c: New file.
63516         * m4/ceilf.m4: New file.
63517         * lib/math.in.h (ceilf): New declaration.
63518         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
63519         HAVE_DECL_CEILF.
63520         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
63521         HAVE_DECL_CEILF.
63522         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
63523
63524 2007-10-04  Bruno Haible  <bruno@clisp.org>
63525
63526         * modules/floorl-tests: New file.
63527         * tests/test-floorl.c: New file.
63528
63529         * modules/floorl: New file.
63530         * lib/floorl.c: Replace entire file.
63531         * m4/floorl.m4: New file.
63532         * lib/math.in.h (floorl): Replace declaration.
63533         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
63534         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
63535         * doc/functions/floorl.texi: Mention the 'floorl' module.
63536         * modules/mathl (Files): Remove lib/floorl.c.
63537         (Depends-on): Add floorl.
63538
63539 2007-10-04  Bruno Haible  <bruno@clisp.org>
63540
63541         * modules/floorf-tests: New file.
63542         * tests/test-floorf.c: New file.
63543
63544         * modules/floorf: New file.
63545         * lib/floor.c: New file.
63546         * lib/floorf.c: New file.
63547         * m4/floorf.m4: New file.
63548         * lib/math.in.h (floorf): New declaration.
63549         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
63550         HAVE_DECL_FLOORF.
63551         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
63552         HAVE_DECL_FLOORF.
63553         * doc/functions/floorf.texi: Mention the 'floorf' module.
63554
63555 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
63556             Bruno Haible  <bruno@clisp.org>
63557
63558         Advertise for the Git server instead of the CVS server.
63559         * doc/gnulib-intro.texi (Steady Development): Mention the Git
63560         repository instead of the CVS one.
63561         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
63562         about all VCS systems generically.
63563         * doc/gnulib.texi (Introduction): Capitalize `Git'.
63564
63565 2007-10-04  Bruno Haible  <bruno@clisp.org>
63566
63567         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
63568         means.
63569         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
63570
63571 2007-10-04  Bruno Haible  <bruno@clisp.org>
63572
63573         * modules/truncl-tests: New file.
63574         * tests/test-truncl.c: New file.
63575
63576         * modules/truncl: New file.
63577         * lib/truncl.c: New file.
63578         * m4/truncl.m4: New file.
63579         * lib/math.in.h (truncl): New declaration.
63580         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
63581         HAVE_DECL_TRUNCL.
63582         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
63583         HAVE_DECL_TRUNCL.
63584         * doc/functions/truncl.texi: Mention the 'truncl' module.
63585
63586 2007-10-04  Bruno Haible  <bruno@clisp.org>
63587
63588         * modules/truncf-tests: New file.
63589         * tests/test-truncf.c: New file.
63590
63591         * modules/truncf: New file.
63592         * lib/trunc.c: Make paramerizable through USE_* macros.
63593         * lib/truncf.c: New file.
63594         * m4/truncf.m4: New file.
63595         * lib/math.in.h (truncf): New declaration.
63596         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
63597         HAVE_DECL_TRUNCF.
63598         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
63599         HAVE_DECL_TRUNCF.
63600         * doc/functions/truncf.texi: Mention the 'truncf' module.
63601
63602 2007-10-03  Bruno Haible  <bruno@clisp.org>
63603
63604         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
63605         augmentation also for tests modules.
63606         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
63607         * modules/atexit-tests (Makefile.am): Likewise.
63608         * modules/binary-io-tests (Makefile.am): Likewise.
63609         * modules/c-strcase-tests (Makefile.am): Likewise.
63610         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
63611         * modules/canonicalize-tests (Makefile.am): Likewise.
63612         * modules/closein-tests (Makefile.am): Likewise.
63613         * modules/fprintf-posix-tests (Makefile.am): Likewise.
63614         * modules/freadahead-tests (Makefile.am): Likewise.
63615         * modules/fseek-tests (Makefile.am): Likewise.
63616         * modules/fseeko-tests (Makefile.am): Likewise.
63617         * modules/ftell-tests (Makefile.am): Likewise.
63618         * modules/ftello-tests (Makefile.am): Likewise.
63619         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
63620         * modules/isnanl-tests (Makefile.am): Likewise.
63621         * modules/lseek-tests (Makefile.am): Likewise.
63622         * modules/mbscasecmp-tests (Makefile.am): Likewise.
63623         * modules/mbscasestr-tests (Makefile.am): Likewise.
63624         * modules/mbschr-tests (Makefile.am): Likewise.
63625         * modules/mbscspn-tests (Makefile.am): Likewise.
63626         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
63627         * modules/mbspbrk-tests (Makefile.am): Likewise.
63628         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
63629         * modules/mbsrchr-tests (Makefile.am): Likewise.
63630         * modules/mbsspn-tests (Makefile.am): Likewise.
63631         * modules/mbsstr-tests (Makefile.am): Likewise.
63632         * modules/printf-posix-tests (Makefile.am): Likewise.
63633         * modules/snprintf-posix-tests (Makefile.am): Likewise.
63634         * modules/sprintf-posix-tests (Makefile.am): Likewise.
63635         * modules/tsearch-tests (Makefile.am): Likewise.
63636         * modules/uniname/uniname-tests (Makefile.am): Likewise.
63637         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
63638         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
63639         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
63640         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
63641         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
63642         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
63643         * modules/vprintf-posix-tests (Makefile.am): Likewise.
63644         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
63645         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
63646         * modules/xstrtoimax-tests (Makefile.am): Likewise.
63647         * modules/xstrtol-tests (Makefile.am): Likewise.
63648         * modules/xstrtoumax-tests (Makefile.am): Likewise.
63649         * modules/yesno-tests (Makefile.am): Likewise.
63650
63651 2007-10-03  Bruno Haible  <bruno@clisp.org>
63652
63653         * modules/trunc-tests: New file.
63654         * tests/test-trunc.c: New file.
63655
63656         * modules/trunc: New file.
63657         * lib/trunc.c: New file.
63658         * m4/trunc.m4: New file.
63659         * lib/math.in.h (trunc): New declaration.
63660         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
63661         HAVE_DECL_TRUNC.
63662         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
63663         HAVE_DECL_TRUNC.
63664         * doc/functions/trunc.texi: Mention the 'trunc' module.
63665
63666 2007-10-03  Bruno Haible  <bruno@clisp.org>
63667
63668         * tests/test-fpending.c: New file, mostly copied
63669         from coreutils/lib/t-fpending.c.
63670         * modules/fpending-tests: New file.
63671
63672 2007-10-03  Bruno Haible  <bruno@clisp.org>
63673
63674         Port the stdio extensions to QNX (untested).
63675         * lib/fseterr.c (fseterr): Add support for QNX.
63676         * lib/fbufmode.c (fbufmode): Likewise.
63677         * lib/freadable.c (freadable): Likewise.
63678         * lib/fwritable.c (fwritable): Likewise.
63679         * lib/freading.c (freading): Likewise.
63680         * lib/fwriting.c (fwriting): Likewise.
63681         * lib/freadahead.c (freadahed): Likewise.
63682         * lib/fpurge.c (fpurge): Likewise.
63683         * lib/fseeko.c (rpl_fseeko): Likewise.
63684
63685 2007-10-03  Bruno Haible  <bruno@clisp.org>
63686             Jim Meyering  <jim@meyering.net>
63687             Eric Blake  <ebb9@byu.net>
63688
63689         * doc/relocatable.texi: Use @command instead of @program.
63690
63691 2007-10-02  Jim Meyering  <jim@meyering.net>
63692
63693         Perform one more "_.h" -> ".in.h" substitution.
63694         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
63695         instead of unistd_.h here, too.
63696
63697 2007-10-01  Bruno Haible  <bruno@clisp.org>
63698
63699         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
63700         Needed for the alloca-opt module.
63701
63702 2007-09-30  Bruno Haible  <bruno@clisp.org>
63703
63704         * lib/alloca.in.h: Renamed from lib/alloca_.h.
63705         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
63706         alloca_.h.
63707         * lib/argz.in.h: Renamed from lib/argz_.h.
63708         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
63709         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
63710         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
63711         byteswap_.h.
63712         * lib/dirent.in.h: Renamed from lib/dirent_.h.
63713         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
63714         dirent_.h.
63715         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
63716         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
63717         fcntl_.h.
63718         * lib/float.in.h: Renamed from lib/float_.h.
63719         * modules/float (Files, Makefile.am): Use float.in.h instead of
63720         float_.h.
63721         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
63722         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
63723         fnmatch_.h.
63724         * lib/getopt.in.h: Renamed from lib/getopt_.h.
63725         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
63726         getopt_.h.
63727         * lib/glob.in.h: Renamed from lib/glob_.h.
63728         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
63729         * lib/iconv.in.h: Renamed from lib/iconv_.h.
63730         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
63731         iconv_.h.
63732         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
63733         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
63734         inttypes_.h.
63735         * lib/locale.in.h: Renamed from lib/locale_.h.
63736         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
63737         locale_.h.
63738         * lib/math.in.h: Renamed from lib/math_.h.
63739         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
63740         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
63741         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
63742         of netinet_in_.h. Add dependency.
63743         * lib/poll.in.h: Renamed from lib/poll_.h.
63744         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
63745         * lib/search.in.h: Renamed from lib/search_.h.
63746         * modules/search (Files, Makefile.am): Use search.in.h instead of
63747         search_.h.
63748         * lib/signal.in.h: Renamed from lib/signal_.h.
63749         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
63750         _signal.h.
63751         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
63752         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
63753         stdbool_.h.
63754         * lib/stdint.in.h: Renamed from lib/stdint_.h.
63755         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
63756         stdint_.h.
63757         * lib/stdio.in.h: Renamed from lib/stdio_.h.
63758         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
63759         stdio_.h.
63760         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
63761         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
63762         stdlib_.h.
63763         * lib/string.in.h: Renamed from lib/string_.h.
63764         * modules/string (Files, Makefile.am): Use string.in.h instead of
63765         string_.h.
63766         * doc/gnulib-tool.texi (Initial import): Update.
63767         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
63768         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
63769         of sys_select_.h. Add dependency.
63770         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
63771         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
63772         of sys_socket_.h.
63773         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
63774         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
63775         sys_stat_.h.
63776         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
63777         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
63778         sys_time_.h.
63779         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
63780         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
63781         sysexits_.h.
63782         * lib/time.in.h: Renamed from lib/time_.h.
63783         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
63784         * lib/unistd.in.h: Renamed from lib/unistd_.h.
63785         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
63786         unistd_.h.
63787         * lib/wchar.in.h: Renamed from lib/wchar_.h.
63788         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
63789         wchar_.h.
63790         * lib/wctype.in.h: Renamed from lib/wctype_.h.
63791         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
63792         wctype_.h.
63793         * build-aux/bootstrap (slurp): Update.
63794         * lib/.cppi-disable: Update.
63795
63796 2007-09-30  Bruno Haible  <bruno@clisp.org>
63797
63798         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
63799         Needed on BeOS.
63800
63801 2007-09-30  Bruno Haible  <bruno@clisp.org>
63802
63803         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
63804
63805 2007-09-29  Bruno Haible  <bruno@clisp.org>
63806
63807         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
63808
63809 2007-09-29  Bruno Haible  <bruno@clisp.org>
63810
63811         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
63812         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
63813         * build-aux/install-reloc: Compile also areadlink.c.
63814         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
63815
63816 2007-09-29  Bruno Haible  <bruno@clisp.org>
63817
63818         * gnulib-tool (func_emit_initmacro_done): Indentation.
63819
63820 2007-09-29  Bruno Haible  <bruno@clisp.org>
63821
63822         * README: Add CVS checkout update instructions.
63823         Info from Bob Proulx <bob@proulx.com>.
63824
63825 2007-09-28  Eric Blake  <ebb9@byu.net>
63826
63827         Provide move-if-change.
63828         * build-aux/move-if-change: New file, based on best practice
63829         rather than any canonical upstream location.
63830
63831 2007-09-28  Jim Meyering  <jim@meyering.net>
63832
63833         Fix canonicalize loop-detection corner case.
63834         Do not attempt to stat the symlink values stored via seen_triple.
63835         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
63836         on linux-2.6.18, (but not 2.6.22).
63837         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
63838         triple_compare.  The former compares dev,ino,filename, while the latter
63839         would actually stat dirname(filename) when dev and ino were equal.
63840         * lib/hash-triple.c: Install <string.h>.
63841         (STREQ): Define.
63842         (triple_compare_ino_str): New function.
63843         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
63844
63845 2007-09-28  Eric Blake  <ebb9@byu.net>
63846
63847         Enforce that AC_REPLACE_FUNCS files exist.
63848         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
63849         override check for typos.
63850
63851         Fix test-closein on Solaris 10.
63852         * tests/test-closein.c (main): Don't assume stdin can be inherited
63853         closed on all systems.
63854         * tests/test-closein.sh: Likewise.
63855         Reported by Piotr Tarnowski.
63856
63857 2007-09-28  Jim Meyering  <jim@meyering.net>
63858
63859         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
63860
63861 2007-09-27  Jim Meyering  <jim@meyering.net>
63862
63863         canonicalize: Avoid a false-positive cycle failure.
63864         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
63865         Sort.  Remove cycle-check.
63866         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
63867         not cycle-check.h.
63868         (seen_triple): New function.
63869         (canonicalize_filename_mode): Use it instead of cycle-check.
63870         * tests/test-canonicalize.c: Add a test for this bug.
63871         * tests/test-canonicalize.sh: Set up and run the test.
63872
63873         New module, file-set, from coreutils.
63874         * modules/file-set: Define it.
63875         * lib/file-set.c, lib/file-set.h: Implement.
63876
63877         New module, hash-triple, from coreutils.
63878         * modules/hash-triple: Define it.
63879         * lib/hash-triple.c, lib/hash-triple.h: Implement.
63880
63881 2007-09-25  Eric Blake  <ebb9@byu.net>
63882
63883         Fix strerror on Interix.
63884         * lib/string_.h (strerror): Declare replacement.
63885         * doc/functions/strerror.texi (strerror): Document the Interix
63886         shortcoming.
63887         * modules/string (Makefile.am): Support new hooks.
63888         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
63889         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
63890         gl_FUNC_STRERROR_SEPARATE.
63891         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
63892         * lib/strerror.c (rpl_strerror): Provide replacement.
63893         * modules/strerror (Depends-on): Add string.
63894         (configure.ac): Detect use of module.
63895         * tests/test-strerror.c: New file.
63896         * modules/strerror-tests: New test module.
63897         * modules/argp (Depends-on): Add strerror.
63898         * modules/error (Depends-on): Likewise.
63899         Reported by Martin Koeppe.
63900
63901 2007-09-24  Bruno Haible  <bruno@clisp.org>
63902
63903         * README: Update git instructions.
63904
63905 2007-09-24  Eric Blake  <ebb9@byu.net>
63906
63907         Revert fpending breakage from 2007-09-08.
63908         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
63909         __fpending.c.
63910
63911 2007-09-24  Jim Meyering  <jim@meyering.net>
63912
63913         filenamecat.c: Add a test.
63914         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
63915         showing how the function works when DIR is the empty string.
63916
63917 2007-09-21  Simon Josefsson  <simon@josefsson.org>
63918
63919         * tests/test-canonicalize.sh: Turn on executable bit.
63920
63921 2007-09-19  Eric Blake  <ebb9@byu.net>
63922
63923         * README: Update CVS instructions.
63924
63925 2007-09-18  Bruno Haible  <bruno@clisp.org>
63926
63927         * modules/areadlink: New file.
63928         * lib/areadlink.h (areadlink): New declaration.
63929         * lib/areadlink.c: New file, based on lib/xreadlink.c.
63930
63931 2007-09-17  Jim Meyering  <jim@meyering.net>
63932
63933         * lib/savewd.c (ESTALE) [!defined]: Define.
63934         Reported to be required on Interix by Martin Koeppe.
63935
63936 2007-09-17  Bruno Haible  <bruno@clisp.org>
63937
63938         * gnulib-tool (func_version): Use $version.
63939
63940 2007-09-16  Bruno Haible  <bruno@clisp.org>
63941
63942         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
63943         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
63944         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
63945         Reported by Greg Schafer <gschafer@zip.com.au>.
63946
63947 2007-09-15  Bruno Haible  <bruno@clisp.org>
63948
63949         * gnulib-tool (sed): Try a little harder to make bash understand the
63950         alias.
63951         Reported by Bruce Korb <bruce.korb@gmail.com>.
63952
63953 2007-09-13  Eric Blake  <ebb9@byu.net>
63954
63955         * ChangeLog: Remove conflict markers.
63956
63957 2007-09-13  Simon Josefsson  <simon@josefsson.org>
63958
63959         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
63960         Reported by Bruno Haible <bruno@clisp.org>.
63961
63962 2007-09-12  Bruno Haible  <bruno@clisp.org>
63963
63964         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
63965         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
63966         is not defined.
63967
63968 2007-09-12  Eric Blake  <ebb9@byu.net>
63969
63970         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
63971         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
63972         Autoconf definition.
63973         * modules/euidaccess (Depends-on): Add extensions, for
63974         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
63975         * modules/fnmatch (Depends-on): Likewise.
63976         * modules/getaddrinfo (Depends-on): Likewise.
63977         * modules/getdelim (Depends-on): Likewise.
63978         * modules/getline (Depends-on): Likewise.
63979         * modules/getsubopt (Depends-on): Likewise.
63980         * modules/gettext (Depends-on): Likewise.
63981         * modules/group-member (Depends-on): Likewise.
63982         * modules/mbchar (Depends-on): Likewise.
63983         * modules/memmem (Depends-on): Likewise.
63984         * modules/mempcpy (Depends-on): Likewise.
63985         * modules/memrchr (Depends-on): Likewise.
63986         * modules/pagealign_alloc (Depends-on): Likewise.
63987         * modules/readutmp (Depends-on): Likewise.
63988         * modules/stpcpy (Depends-on): Likewise.
63989         * modules/stpncpy (Depends-on): Likewise.
63990         * modules/strchrnul (Depends-on): Likewise.
63991         * modules/strndup (Depends-on): Likewise.
63992         * modules/strsep (Depends-on): Likewise.
63993         * modules/strverscmp (Depends-on): Likewise.
63994         * modules/vasprintf (Depends-on): Likewise.
63995         * modules/wcwidth (Depends-on): Likewise.
63996         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
63997         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
63998         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
63999         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
64000         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
64001         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
64002         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
64003         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
64004         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
64005         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
64006         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
64007         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
64008         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
64009         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
64010         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
64011         * m4/readutmp.m4 (gl_READUTMP): Likewise.
64012         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
64013         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
64014         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
64015         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
64016         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
64017         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
64018         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
64019         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
64020         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
64021         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
64022         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
64023         so that lock.m4 can be used in gettext without extensions module.
64024
64025 2007-09-11  Bruno Haible  <bruno@clisp.org>
64026
64027         * m4/isc-posix.m4: Remove file.
64028         Suggested by Eric Blake.
64029
64030 2007-09-11  Eric Blake  <ebb9@byu.net>
64031
64032         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
64033
64034 2007-09-10  Bruno Haible  <bruno@clisp.org>
64035
64036         * posix-modules: Fix typo in error message.
64037         Reported by Matt <mkraai@beckman.com>.
64038
64039 2007-09-09  Bruno Haible  <bruno@clisp.org>
64040
64041         * doc/functions/getdelim.texi: Update list of platforms lacking the
64042         function.
64043         * doc/functions/getline.texi: Likewise.
64044
64045 2007-09-09  Jim Meyering  <jim@meyering.net>
64046
64047         * lib/hash.c (hash_initialize): Detect calloc failure.
64048         Reported by Bruno Haible.
64049
64050 2007-09-09  Bruno Haible  <bruno@clisp.org>
64051
64052         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
64053         malloc or realloc fails.
64054
64055 2007-09-09  Bruno Haible  <bruno@clisp.org>
64056
64057         * modules/getcwd (Depends-on): Add malloc-posix.
64058         * modules/glob (Depends-on): Likewise.
64059         * modules/putenv (Depends-on): Likewise.
64060         * modules/strdup (Depends-on): Likewise.
64061         * modules/getdelim (Depends-on): Add realloc-posix.
64062         * modules/read-file (Depends-on): Likewise.
64063
64064 2007-09-09  Bruno Haible  <bruno@clisp.org>
64065
64066         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
64067         (gl_FUNC_MALLOC_POSIX): Require it.
64068         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
64069         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
64070         * modules/realloc (Files): Add m4/malloc.m4.
64071         * modules/calloc (Files): Likewise.
64072
64073 2007-09-09  Bruno Haible  <bruno@clisp.org>
64074
64075         * modules/malloc-posix: New file.
64076         * modules/malloc (Depends-on): Add malloc-posix.
64077         * lib/malloc.c: Include errno.h.
64078         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
64079         and a POSIX-compatible malloc into a single function. Set ENOMEM
64080         when returning NULL.
64081         * m4/malloc.m4: New file.
64082         * doc/functions/malloc.texi: Mention the malloc-posix module.
64083         * lib/stdlib_.h (malloc): New declaration.
64084         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
64085         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
64086         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
64087         and HAVE_MALLOC_POSIX.
64088
64089 2007-09-09  Bruno Haible  <bruno@clisp.org>
64090
64091         * modules/realloc-posix: New file.
64092         * modules/realloc (Depends-on): Add realloc-posix.
64093         * lib/realloc.c: Include errno.h.
64094         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
64095         and a POSIX-compatible realloc into a single function. Set ENOMEM
64096         when returning NULL.
64097         * m4/realloc.m4: New file.
64098         * doc/functions/realloc.texi: Mention the realloc-posix module.
64099         * lib/stdlib_.h (realloc): New declaration.
64100         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
64101         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
64102         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
64103         and HAVE_REALLOC_POSIX.
64104
64105 2007-09-09  Bruno Haible  <bruno@clisp.org>
64106
64107         * modules/calloc-posix: New file.
64108         * modules/calloc (Depends-on): Add calloc-posix.
64109         * lib/calloc.c: Include errno.h.
64110         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
64111         and a POSIX-compatible calloc into a single function. Set ENOMEM
64112         when returning NULL.
64113         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
64114         * doc/functions/calloc.texi: Mention the calloc-posix module.
64115         * lib/stdlib_.h (calloc): New declaration.
64116         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
64117         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
64118         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
64119         and HAVE_CALLOC_POSIX.
64120
64121 2007-09-09  Bruno Haible  <bruno@clisp.org>
64122
64123         Allow for modules to show an arbitrary notice.
64124         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
64125         * gnulib-tool: New option --extract-notice.
64126         (func_usage): Document it.
64127         (sed_extract_prog): Update.
64128         (func_get_notice): New function.
64129         (func_modules_notice): New function.
64130         (func_import, func_create_testdir): Invoke it.
64131         Suggested by Jim Meyering.
64132
64133 2007-09-09  Bruno Haible  <bruno@clisp.org>
64134
64135         * gnulib-tool: New options --verbose, --quiet.
64136         (func_usage): Document them.
64137         (verbose): New variable.
64138         (func_execute_command): New function.
64139         (func_import): Don't show the module list and the file list if
64140         $verbose < 0.
64141         (func_create_testdir): Likewise. Use func_execute_command.
64142         (func_create_megatestdir): Use func_execute_command.
64143
64144 2007-09-08  Bruno Haible  <bruno@clisp.org>
64145
64146         * gnulib-tool (func_import): Prefer rsync over wget when available,
64147         for fetching the PO files.
64148
64149 2007-09-08  Bruno Haible  <bruno@clisp.org>
64150
64151         * posix-modules: New file. Portions copied from gnulib-tool.
64152         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
64153
64154 2007-09-08  Jim Meyering  <jim@meyering.net>
64155
64156         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
64157         * lib/fpending.h: Rename from __fpending.h.
64158         * lib/fpending.c: Rename from __fpending.c.
64159         Include "fpending.h", not "__fpending.h".
64160         * lib/__fpending.h, lib/__fpending.c: Remove files.
64161         * modules/fpending (Files): Reflect new file names.
64162         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
64163
64164 2007-09-08  Bruno Haible  <bruno@clisp.org>
64165
64166         * m4/inttypes-h.m4: Remove stub file.
64167
64168 2007-09-07  Simon Josefsson  <simon@josefsson.org>
64169
64170         * doc/headers/stdint.texi: Discuss #include_next issue.
64171
64172 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
64173
64174         * build-aux/bootstrap: Remove obsolete comment about wget --help.
64175
64176 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64177
64178         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
64179         in variable name.
64180
64181 2007-09-03  Jim Meyering  <jim@meyering.net>
64182
64183         New module: git-version-gen.
64184         * modules/git-version-gen: New file.
64185
64186         Import changes from coreutils for bootstrap script.
64187
64188         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
64189
64190         bootstrap: uses rsync to download the .po files
64191         * build-aux/bootstrap (po_download_command_format): New global.
64192         (download_po_files): Use rsync.
64193         (update_po_files): Don't remove .po files after download,
64194         so future rsync runs can take advantage of the copies.
64195
64196         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
64197
64198         Solve the unnecessary-.po-file-regeneration problem once and for all.
64199         * build-aux/bootstrap (download_po_files): New function, renamed from
64200         get_translations.  Now, downloads, but doesn't update LINGUAS.
64201         (update_po_files): New function.
64202
64203         bootstrap: Ignore more.
64204         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
64205         uniwidth to e.g., lib/.gitignore.
64206         (slurp): Handle the sys_stat_.h -> sys mapping, too.
64207
64208         * build-aux/bootstrap: New setting: vc_ignore.
64209         (insert_sorted_if_absent): Create $file if absent.
64210         Adapt to new, possibly empty, list: $vc_ignore.
64211
64212         bootstrap: generate more ignorable names
64213         * build-aux/bootstrap (slurp): When generating ignorable names,
64214         also map .sin to .sed, .gperf to .c, and .y to .c.
64215
64216 2007-09-03  Jim Meyering  <jim@meyering.net>
64217
64218         * build-aux/git-version-gen: New file, from coreutils.  For details, see
64219         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
64220
64221 2007-09-02  Bruno Haible  <bruno@clisp.org>
64222
64223         Fix mis-recognition of 'mcs' on QNX 6.
64224         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
64225         output contains the string "Mono".
64226         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
64227         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
64228
64229 2007-09-01  Bruno Haible  <bruno@clisp.org>
64230
64231         Fix collision between uniwidth/* and linebreak modules.
64232         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
64233         u32_width): Remove declarations.
64234         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
64235         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
64236         streq3, streq2, streq1, streq0): Remove functions.
64237         (STREQ): Remove macro.
64238         (is_cjk_encoding): Remove function.
64239         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
64240         (uc_width, u8_width, u16_width, u32_width): Remove functions.
64241         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
64242         * NEWS: Document the change.
64243
64244 2007-09-01  Bruno Haible  <bruno@clisp.org>
64245
64246         * lib/streq.h: Add double-inclusion guard.
64247
64248 2007-09-01  Karl Berry  <karl@gnu.org>
64249
64250         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
64251
64252 2007-08-28  Jim Meyering  <jim@meyering.net>
64253
64254         Rename mreadlink_with_size to areadlink_with_size.
64255         * NEWS: Document the change.
64256         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
64257         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
64258         * lib/mreadlink.h: Rename this to...
64259         * lib/areadlink.h: ...this.
64260         * modules/mreadlink-with-size: Rename this to...
64261         * modules/areadlink-with-size: ...this.
64262         * lib/canonicalize.c: Reflect the renaming.
64263         * modules/canonicalize: Likewise.
64264
64265 2007-08-26  Bruno Haible  <bruno@clisp.org>
64266
64267         * gnulib-tool (func_import): When deciding which files to remove,
64268         consider also dangling symbolic links.
64269         Reported by Eric Blake.
64270
64271 2007-08-26  Bruno Haible  <bruno@clisp.org>
64272
64273         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
64274
64275 2007-08-23  Simon Josefsson  <simon@josefsson.org>
64276
64277         * lib/readline.c: Don't include getline.h, the prototype is now
64278         found in stdio.h.
64279
64280 2007-08-23  Jim Meyering  <jim@meyering.net>
64281
64282         Getdelim touchup.
64283         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
64284         around the funlockfile call, since funlockfile never sets errno.
64285         Don't set errno upon failed realloc.
64286
64287 2007-08-22  Eric Blake  <ebb9@byu.net>
64288
64289         Getline touchups.
64290         * lib/getdelim.c (getdelim): Revert regression that required *n to
64291         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
64292         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
64293         getdelim, rather than whether implementation is missing.
64294         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
64295         * lib/stdio_.h (getline): Also declare if replacement is
64296         required.
64297         * doc/functions/getdelim.texi: New file.
64298         * doc/functions/getline.texi: Likewise.
64299         * doc/gnulib.texi (Function Substitutes): Add new files.
64300         Reported by Bruno Haible.
64301
64302 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
64303
64304         * users.txt: Add Guile.
64305
64306 2007-08-22  Eric Blake  <ebb9@byu.net>
64307
64308         * tests/test-getdelim.c (main): Use remove, not unlink.
64309         * tests/test-getline.c (main): Likewise.
64310
64311         Move getline and getdelim into stdio.h, per POSIX 200x.
64312         * modules/getline (Files): Remove getline.h.
64313         (Depends-on): Add stdio.
64314         (configure.ac): Add module indicator.
64315         * modules/getdelim (Files): Remove getdelim.h.
64316         (Depends-on): Add stdio.
64317         (configure.ac): Add module indicator.
64318         * modules/stdio (Makefile.am): Work with new indicators.
64319         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
64320         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
64321         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
64322         * lib/getdelim.h: Delete.
64323         * lib/getline.h: Delete.
64324         * lib/stdio_.h (getdelim, getline): Declare.
64325         * modules/getdelim-tests: New module.
64326         * modules/getline-tests: Likewise.
64327         * tests/test-getdelim.c: New file.
64328         * tests/test-getline.c: Likewise.
64329         * NEWS: Document the change.
64330         * lib/getline.c: Update choice of header.
64331         * lib/csharpcomp.c: Likewise.
64332         * lib/getpass.c: Likewise.
64333         * lib/javacomp.c: Likewise.
64334         * lib/javaversion.c: Likewise.
64335         * lib/yesno.c: Likewise.
64336         * lib/getdelim.c: Likewise.
64337         (getdelim): Set errno on failure, and avoid memory leak.
64338
64339 2007-08-19  Bruno Haible  <bruno@clisp.org>
64340
64341         * modules/closein (Depends-on): Add freadahead.
64342         * lib/closein.c: Include freadahead.h.
64343         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
64344         is zero.
64345
64346 2007-08-19  Bruno Haible  <bruno@clisp.org>
64347
64348         * modules/freadahead-tests: New file.
64349         * tests/test-freadahead.sh: New file.
64350         * tests/test-freadahead.c: New file.
64351
64352         * modules/freadahead: New file.
64353         * lib/freadahead.h: New file.
64354         * lib/freadahead.c: New file.
64355         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
64356         fbufmode, fpurge, freadable, fwritable.
64357
64358 2007-08-19  Eric Blake  <ebb9@byu.net>
64359
64360         Test yesno in combination with closein.
64361         * lib/yesno.c (yesno): Document use of stdin.
64362         * modules/yesno-tests (Files): New module.
64363         * tests/test-yesno.c (main): New file.
64364         * tests/test-yesno.sh: Likewise.
64365
64366 2007-08-19  Bruno Haible  <bruno@clisp.org>
64367
64368         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
64369         * lib/fseeko.c (rpl_fseeko): Likewise.
64370         * lib/fseterr.c (fseterr): Likewise.
64371
64372 2007-08-19  Bruno Haible  <bruno@clisp.org>
64373
64374         * tests/test-lseek.c (main): Disable a test for BeOS.
64375         * doc/functions/lseek.texi: Document the BeOS bug.
64376
64377 2007-08-19  Bruno Haible  <bruno@clisp.org>
64378             Eric Blake  <ebb9@byu.net>
64379
64380         * lib/lseek.c: Include <sys/stat.h>.
64381         (rpl_lseek): Add workaround code also for Unix platforms.
64382         Needed for BeOS.
64383         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
64384         * doc/functions/lseek.texi: Document BeOS definiency.
64385
64386 2007-08-18  Bruno Haible  <bruno@clisp.org>
64387
64388         * modules/fstrcmp-tests: New file.
64389         * tests/test-fstrcmp.c: New file.
64390
64391 2007-08-18  Bruno Haible  <bruno@clisp.org>
64392
64393         * modules/fstrcmp: New file, from GNU gettext with modifications.
64394         * lib/fstrcmp.h: New file, from GNU gettext.
64395         * lib/fstrcmp.c: New file, from GNU gettext.
64396         * MODULES.html.sh (String handling): Add fstrcmp.
64397
64398 2007-08-18  Bruno Haible  <bruno@clisp.org>
64399
64400         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
64401         'bool'.
64402         (diag, compareseq): Remove const from the ctxt argument.
64403         (USE_HEURISTIC): Undefine at the end.
64404
64405 2007-08-18  Jim Meyering  <jim@meyering.net>
64406
64407         New file: lib/idcache.h
64408         * NEWS: Mention the addition.
64409         * modules/idcache (Files): Add lib/idcache.h
64410         * lib/idcache.c: Include "idcache.h".
64411         Don't include <sys/types.h>.
64412         Add a FIXME comment.
64413         Move file-scoped "static" declarations to the top.
64414         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
64415
64416 2007-08-17  Bruno Haible  <bruno@clisp.org>
64417         and Paul Eggert  <eggert@cs.ucla.edu>
64418
64419         * MODULES.html.sh: Add diffseq.
64420         * modules/diffseq: New file.
64421         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
64422         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
64423
64424 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
64425
64426         Import changes from coreutils for bootstrap script.
64427
64428         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
64429
64430         * build-aux/bootstrap (slurp): Work even in environments where
64431         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
64432         current code does not slurp files whose names start with ".", and
64433         this looks like it might be a troublesome area.
64434
64435         2007-07-11  Jim Meyering  <jim@meyering.net>
64436
64437         If there's a GPL vN copyright comment, require that N == 3.
64438
64439         2007-07-08  Jim Meyering  <jim@meyering.net>
64440
64441         Run the coreutils-specific code only if tests/Makefile.am.in exists.
64442         * build-aux/bootstrap (mam_template): Move definition out of loop.
64443
64444         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
64445
64446         * build-aux/bootstrap (symlink_to_dir): Rename function from
64447         symlink_to_gnulib.  Add a directory parameter.  Update all
64448         callers.
64449         (cp_mark_as_generated): Also check for -- and link to -- files in
64450         gl/.
64451
64452         2007-07-08  Jim Meyering  <jim@meyering.net>
64453
64454         Adapt to deeper hierarchy in gnulib.
64455         * build-aux/bootstrap (symlink_to_dir): If the destination
64456         directory doesn't exist, create it. This is required at least for
64457         "lib/uniwidth/cjk.h".
64458
64459         2007-05-15  Jim Meyering  <jim@meyering.net>
64460
64461         * build-aux/bootstrap: Now that generated Makefile.am files
64462         are no longer under version control, they must be created at
64463         bootstrap time.
64464
64465 2007-08-14  Ben Pfaff  <blp@gnu.org>
64466
64467         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
64468
64469 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
64470
64471         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
64472         given the changes below.
64473         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
64474         even on hosts that have padding bits beyond the supported 64.
64475
64476 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
64477
64478         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
64479         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
64480         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
64481         depends on it.
64482         (xstrtol_error): Remove.
64483         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
64484         but with a different signature.
64485         (ATTRIBUTE_NORETURN, __attribute__): New macros.
64486         * lib/xstrtol-error.c: Include exitfail.h.
64487         (xstrtol_fatal): New function, with a different signature from the
64488         old xstrtol_error, so that the caller need not worry about passing
64489         in an exit status, or about storage management of the option argument.
64490         (xstrtol_error): Now a static function.  Redo signature to
64491         implement xstrtol_fatal.  Output the correct number of hyphens in
64492         front of the option so that the caller need not worry about
64493         storage management.
64494         (N_): New macro.
64495         (_): Remove; not used now.
64496         * modules/xstrtol: Depend on getopt.
64497         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
64498         of old STRTOL_FATAL_ERROR macro.
64499         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
64500         of test program.
64501         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
64502         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
64503
64504 2007-08-08  Eric Blake  <ebb9@byu.net>
64505
64506         * lib/xstrtol-error.c: Add missing include.
64507
64508         Move xstrtol messages into gnulib domain, when --pobase is used.
64509         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
64510         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
64511         * modules/xstrtol (Files): Distribute new file.
64512         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
64513         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
64514         * tests/test-xstrtol.c: ...into new file.
64515         * tests/test-xstrtoul.c: Also test xstrtoul.
64516         * tests/test-xstrtoimax.c: Also test xstrtoimax.
64517         * tests/test-xstrtoumax.c: Also test xstrtoumax.
64518         * tests/test-xstrtol.sh: Drive the tests.
64519         * tests/test-xstrtoimax.sh: Likewise.
64520         * tests/test-xstrtoumax.sh: Likewise.
64521         * modules/xstrtol-tests: New module.
64522         * modules/xstrtoimax-tests: Likewise.
64523         * modules/xstrtoumax-tests: Likewise.
64524
64525 2007-08-08  Jim Meyering  <jim@meyering.net>
64526
64527         New function: mfile_name_concat.
64528         * lib/filenamecat.c (mfile_name_concat): New function, just like
64529         file_name_concat, but return NULL upon failure rather than exiting
64530         with a diagnostic.
64531         * lib/filenamecat.h: Declare it.
64532
64533 2007-08-07  Bruno Haible  <bruno@clisp.org>
64534
64535         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
64536         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
64537         warning from gcc.
64538         Reported by Eric Blake.
64539
64540 2007-08-07  Simon Josefsson  <simon@josefsson.org>
64541
64542         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
64543         * modules/crypto/arcfour (License): Likewise.
64544         * modules/crypto/des-tests (License): Likewise.
64545         * modules/crypto/gc-arctwo-tests (License): Likewise.
64546         * modules/crypto/gc-des-tests (License): Likewise.
64547         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
64548         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
64549         * modules/crypto/gc-md2-tests (License): Likewise.
64550         * modules/crypto/gc-md4-tests (License): Likewise.
64551         * modules/crypto/gc-md5-tests (License): Likewise.
64552         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
64553         * modules/crypto/gc-rijndael-tests (License): Likewise.
64554         * modules/crypto/gc-sha1-tests (License): Likewise.
64555         * modules/crypto/gc-tests (License): Likewise.
64556         * modules/crypto/hmac-md5 (License): Likewise.
64557         * modules/crypto/hmac-sha1 (License): Likewise.
64558         * modules/crypto/md2-tests (License): Likewise.
64559         * modules/crypto/md4-tests (License): Likewise.
64560         * modules/crypto/md5 (License): Likewise.
64561         * modules/crypto/rijndael (License): Likewise.
64562         * modules/crypto/sha1 (License): Likewise.
64563         * modules/memxor (License): Likewise.
64564
64565 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
64566         and Bruno Haible  <bruno@clisp.org>
64567
64568         * NEWS: Describe interface changes to human, xstrtol.
64569         * lib/human.h: Include <xstrtol.h>.
64570         (human_options): Return enum strtol_error, not int.  Remove
64571         bool arg; take int * instead.
64572         * lib/human.c: Don't include "gettext.h".
64573         (_): Remove; no longer used.
64574         Don't include <xstrtol.h>, since human.h does it.
64575         (human_options): Adjust to abovementioned interface changes.
64576         Do not report error to stderr; that's now the caller's
64577         responsibility.
64578         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
64579         interface change.
64580         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
64581         Str, Argument_type_string.  All uses changed.  Put " argument"
64582         in diagnostics to make them clearer.  Change wording of suffix
64583         message for clarity.
64584         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
64585         Argument_type_string.
64586         (STRTOL_FATAL_WARN): Remove; no longer used.
64587         * modules/human (Depends-on): Remove gettext-h.
64588
64589 2007-08-06  Simon Josefsson  <simon@josefsson.org>
64590
64591         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
64592
64593 2007-07-31  Bruno Haible  <bruno@clisp.org>
64594
64595         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
64596         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
64597         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
64598
64599 2007-07-31  Bruno Haible  <bruno@clisp.org>
64600
64601         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
64602         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
64603
64604 2007-07-30  Bruno Haible  <bruno@clisp.org>
64605
64606         * modules/base64 (License): Use the synonymous term "LGPLv2+".
64607         * modules/c-ctype (License): Likewise.
64608         * modules/c-strcase (License): Likewise.
64609         * modules/check-version (License): Likewise.
64610         * modules/iconv (License): Likewise.
64611         * modules/iconv_open (License): Likewise.
64612         * modules/read-file (License): Likewise.
64613         * modules/striconv (License): Likewise.
64614         * modules/strverscmp (License): Likewise.
64615         * modules/vasprintf (License): Likewise.
64616         * modules/crypto/des (License): Likewise.
64617         * modules/crypto/gc (License): Likewise.
64618         * modules/crypto/gc-arcfour (License): Likewise.
64619         * modules/crypto/gc-arctwo (License): Likewise.
64620         * modules/crypto/gc-des (License): Likewise.
64621         * modules/crypto/gc-hmac-md5 (License): Likewise.
64622         * modules/crypto/gc-hmac-sha1 (License): Likewise.
64623         * modules/crypto/gc-md2 (License): Likewise.
64624         * modules/crypto/gc-md4 (License): Likewise.
64625         * modules/crypto/gc-md5 (License): Likewise.
64626         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
64627         * modules/crypto/gc-random (License): Likewise.
64628         * modules/crypto/gc-rijndael (License): Likewise.
64629         * modules/crypto/gc-sha1 (License): Likewise.
64630         * modules/crypto/md2 (License): Likewise.
64631         * modules/crypto/md4 (License): Likewise.
64632
64633 2007-07-30  Jim Meyering  <jim@meyering.net>
64634
64635         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
64636         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
64637         it has valid stat data.  This bug would cause du not to count the
64638         sizes of inaccessible directories.
64639         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
64640         in <http://bugzilla.redhat.com/250077>.
64641
64642 2007-07-25  Peter O'Gorman  <peter@pogma.com>
64643             Bruno Haible  <bruno@clisp.org>
64644
64645         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
64646         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
64647         #include_next, gives a diagnostic about it, but reports no error in
64648         the exit code.
64649         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
64650
64651 2007-07-24  Ben Pfaff  <blp@gnu.org>
64652
64653         Improve name: "count-one-bits" is better than "popcount".
64654         * MODULES.html.sh: Update name.
64655         * lib/popcount.h: Renamed lib/count-one-bits.h.
64656         (popcount): Renamed count_one_bits.
64657         (popcountl): Renamed count_one_bits_l.
64658         (popcountll): Renamed count_one_bits_ll.
64659         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
64660         * modules/popcount: Renamed module/count-one-bits.
64661         * modules/popcount-tests: Renamed module/count-one-bits-tests.
64662         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
64663
64664 2007-07-23  Ben Pfaff  <blp@gnu.org>
64665
64666         * lib/popcount.h (popcount32): Reduce size of constants, to allow
64667         better code generation, and add U to large constants to avoid
64668         warnings, in non-GCC case.
64669         Suggested by Bruno Haible.
64670
64671 2007-07-23  Ben Pfaff  <blp@gnu.org>
64672
64673         * lib/popcount.h: Use verify_true instead of if...abort.
64674         * modules/popcount: Depend on verify module.
64675         Suggested by Jim Meyering.
64676
64677 2007-07-23  Bruno Haible  <bruno@clisp.org>
64678
64679         * gnulib-tool (func_import): Create a .cvsignore file also when the
64680         directory is not yet in CVS but the toplevel directory is. When
64681         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
64682         Reported by Karl Berry.
64683
64684 2007-07-22  Ben Pfaff  <blp@gnu.org>
64685
64686         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
64687         case.
64688         Suggested by Eric Blake.
64689
64690 2007-07-22  Ben Pfaff  <blp@gnu.org>
64691
64692         New module: popcount.
64693         * MODULES.html.sh: Add popcount.
64694         * modules/popcount: New file.
64695         * modules/popcount-tests: New file.
64696         * tests/test-popcount.c: New file.
64697         * lib/popcount.h: New file.
64698         * m4/popcount.m4: New file.
64699
64700 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
64701
64702         * build-aux/announce-gen: Update to GPLv3.
64703
64704         * build-aux/config.guess: Update from config.
64705
64706 2007-07-21  Bruno Haible  <bruno@clisp.org>
64707
64708         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
64709         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
64710
64711 2007-07-20  Jim Meyering  <jim@meyering.net>
64712
64713         * check-module: Diagnose a self-dependency.
64714
64715 2007-07-19  Bruno Haible  <bruno@clisp.org>
64716
64717         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
64718         empty.
64719         Reported by Eric Blake.
64720
64721 2007-07-18  Bruno Haible  <bruno@clisp.org>
64722
64723         * gnulib-tool: New options --po-base, --po-domain.
64724         (func_usage): Document them.
64725         (pobase, po_domain): New variables.
64726         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
64727         DEFAULT_TEXT_DOMAIN.
64728         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
64729         (func_import): Consider pobase and po_domain. Create a po/ directory.
64730         (func_create_testdir): Set pobase and po_domain to empty.
64731         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
64732         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
64733
64734 2007-07-18  Bruno Haible  <bruno@clisp.org>
64735
64736         * gnulib-tool (func_get_automake_snippet): Synthesize also an
64737         EXTRA_DIST augmentation for files in build-aux/.
64738
64739 2007-07-16  Bruno Haible  <bruno@clisp.org>
64740
64741         * modules/lseek (License): Use the synonymous term "LGPLv2+".
64742         * modules/getdelim (License): Likewise.
64743
64744 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64745
64746         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
64747         * modules/d-type (License): Likewise.
64748         * modules/extensions (License): Likewise.
64749         * modules/fnmatch (License): Likewise.
64750         * modules/fseeko (License): Likewise.
64751         * modules/getaddrinfo (License): Likewise.
64752         * modules/getline (License): Likewise.
64753         * modules/getlogin_r (License): Likewise.
64754         * modules/getpass (License): Likewise.
64755         * modules/gettimeofday (License): Likewise.
64756         * modules/glob (License): Likewise.
64757         * modules/inet_ntop (License): Likewise.
64758         * modules/malloc (License): Likewise.
64759         * modules/malloca (License): Likewise.
64760         * modules/memmem (License): Likewise.
64761         * modules/mempcpy (License): Likewise.
64762         * modules/memset (License): Likewise.
64763         * modules/minmax (License): Likewise.
64764         * modules/mktime (License): Likewise.
64765         * modules/netinet_in (License): Likewise.
64766         * modules/pathmax (License): Likewise.
64767         * modules/poll (License): Likewise.
64768         * modules/regex (License): Likewise.
64769         * modules/snprintf (License): Likewise.
64770         * modules/stdbool (License): Likewise.
64771         * modules/stdint (License): Likewise.
64772         * modules/stdio (License): Likewise.
64773         * modules/strcase (License): Likewise.
64774         * modules/strcasestr (License): Likewise.
64775         * modules/strdup (License): Likewise.
64776         * modules/string (License): Likewise.
64777         * modules/strndup (License): Likewise.
64778         * modules/strnlen (License): Likewise.
64779         * modules/strpbrk (License): Likewise.
64780         * modules/strptime (License): Likewise.
64781         * modules/strsep (License): Likewise.
64782         * modules/sys_select (License): Likewise.
64783         * modules/sys_socket (License): Likewise.
64784         * modules/sys_stat (License): Likewise.
64785         * modules/sys_time (License): Likewise.
64786         * modules/time (License): Likewise.
64787         * modules/time_r (License): Likewise.
64788         * modules/timegm (License): Likewise.
64789         * modules/unistd (License): Likewise.
64790         * modules/vsnprintf (License): Likewise.
64791         * modules/wctype (License): Likewise.
64792
64793 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64794
64795         * modules/argz (License): LGPLv2+.
64796
64797 2007-07-15  Karl Berry  <karl@gnu.org>
64798
64799         * doc/gnulib.texi: revise node structure per new fdl.texi.
64800
64801 2007-07-14  Bruno Haible  <bruno@clisp.org>
64802
64803         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
64804         the output file.
64805         * lib/uniname/uninames.h: Regenerated.
64806
64807 2007-07-14  Karl Berry  <karl@gnu.org>
64808
64809         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
64810         omitting sectioning and index commands.
64811
64812 2007-07-13  Bruno Haible  <bruno@clisp.org>
64813
64814         New gnulib-tool option --more-symlinks.
64815         * gnulib-tool (func_usage): Document --more-symlinks.
64816         (do_copyrights): New variable.
64817         Recognize option --more-symlinks.
64818         (func_import): Don't add a copyright notice transform to
64819         sed_transform_lib_file if do_copyrights is empty.
64820
64821 2007-07-13  Bruno Haible  <bruno@clisp.org>
64822
64823         * lib/vasnprintf.c (decimal_point_char): Define also if
64824         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
64825         && !NEED_PRINTF_DIRECTIVE_A.
64826         Reported by Clemens Koller <clemens.koller@anagramm.de> via
64827         Gary V. Vaughan <gary@gnu.org>.
64828
64829 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
64830
64831         * lib/inttypes_.h: Undo previous change, since it was fixed
64832         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
64833
64834 2007-07-13  Bruno Haible  <bruno@clisp.org>
64835
64836         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
64837         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
64838
64839 2007-07-13  Jim Meyering  <jim@meyering.net>
64840
64841         df: Don't fail for Tru64's "file-on-file mount".
64842         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
64843         so we fall through and use statfs instead.  Details here:
64844         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
64845         Reported by Albert Chin.
64846
64847 2007-07-13  Bruno Haible  <bruno@clisp.org>
64848
64849         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
64850         * modules/configmake (License): Likewise.
64851         * modules/gettext (License): Likewise.
64852         * modules/gettext-h (License): Likewise.
64853         * modules/include_next (License): Likewise.
64854         * modules/link-warning (License): Likewise.
64855         * modules/localcharset (License): Likewise.
64856         * modules/localename (License): Likewise.
64857         * modules/lock (License): Likewise.
64858         * modules/relocatable-lib-lgpl (License): Likewise.
64859         * modules/size_max (License): Likewise.
64860         * modules/vasnprintf (License): Likewise.
64861         * modules/wchar (License): Likewise.
64862         * modules/xsize (License): Likewise.
64863
64864 2007-07-13  Bruno Haible  <bruno@clisp.org>
64865
64866         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
64867         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
64868
64869 2007-07-12  Bruno Haible  <bruno@clisp.org>
64870
64871         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
64872         in the modules files.
64873
64874 2007-07-11  Karl Berry  <karl@gnu.org>
64875
64876         * MODULES.html.sh (func_module): use
64877          sed -e '\|^'"${includefile}"'$|d'
64878          instead of /.../d, to avoid errors on $includefile's containing /.
64879
64880 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
64881
64882         * gnulib-tool (func_import): Avoid duplication of --avoid
64883         statements
64884         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
64885         names to `_' in variable names.
64886
64887 2007-07-10  Eric Blake  <ebb9@byu.net>
64888
64889         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
64890         * NEWS: Document this change.
64891
64892 2007-07-08  Bruno Haible  <bruno@clisp.org>
64893
64894         Update to Unicode 5.0.
64895         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
64896         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
64897         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
64898         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
64899         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
64900         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
64901         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
64902         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
64903         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
64904         U+10A3F, U+1D242..U+1D244.
64905         (nonspacing_table_ind): Update.
64906         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
64907         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
64908
64909 2007-07-08  Bruno Haible  <bruno@clisp.org>
64910
64911         Update to Unicode 5.0.
64912         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
64913         code transform. Extend the name index field of unicode_name_to_code and
64914         unicode_code_to_name from 16 to 24 bits.
64915         * lib/uniname/uniname.c (unicode_character_name,
64916         unicode_name_character): Add the range 0x12xxx to the code transform.
64917         * lib/uniname/uninames.h: Regenerated.
64918         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
64919
64920 2007-07-07  Bruno Haible  <bruno@clisp.org>
64921
64922         * modules/wcwidth-tests: New file.
64923         * tests/test-wcwidth.c: New file.
64924
64925         Work around MacOS X wcwidth() bug.
64926         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
64927         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
64928         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
64929         original wcwidth in non-UTF-8 locales.
64930         * modules/wcwidth (Depends-on): Add localcharset, streq,
64931         uniwidth/width.
64932         * doc/functions/wcwidth.texi: Update.
64933
64934 2007-07-07  Bruno Haible  <bruno@clisp.org>
64935
64936         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
64937         (wcwidth): New declaration.
64938         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
64939         macros.
64940         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
64941         here. Prepare for creating <wchar.h> unconditionally.
64942         * modules/wchar (Depends-on): Add link-warning.
64943         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
64944         REPLACE_WCWIDTH, and GL_LINK_WARNING.
64945         * lib/wcwidth.h: Remove file.
64946         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
64947         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
64948         * modules/wcwidth (Files): Remove lib/wcwidth.h.
64949         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
64950         (Include): Replace wcwidth.h with <wchar.h>.
64951         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
64952         * lib/mbchar.h: Don't include wcwidth.h.
64953         * lib/mbswidth.c: Likewise.
64954         * NEWS: Mention the change.
64955
64956 2007-07-07  Bruno Haible  <bruno@clisp.org>
64957
64958         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
64959         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
64960         definition with an external declaration.
64961         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
64962         defined as a function. Remove AC_C_INLINE requirement.
64963         * modules/wcwidth (Files): Add lib/wcwidth.c.
64964         (Makefile.am): Remove redundant statement.
64965
64966 2007-07-07  Bruno Haible  <bruno@clisp.org>
64967
64968         * MODULES.html.sh (Unicode string functions): Add the new modules.
64969
64970         * tests/uniwidth/test-u32-strwidth.c: New file.
64971         * modules/uniwidth/u32-strwidth-tests: New file.
64972
64973         * lib/uniwidth/u32-strwidth.c: New file.
64974         * modules/uniwidth/u32-strwidth: New file.
64975
64976         * tests/uniwidth/test-u16-strwidth.c: New file.
64977         * modules/uniwidth/u16-strwidth-tests: New file.
64978
64979         * lib/uniwidth/u16-strwidth.c: New file.
64980         * modules/uniwidth/u16-strwidth: New file.
64981
64982         * tests/uniwidth/test-u8-strwidth.c: New file.
64983         * modules/uniwidth/u8-strwidth-tests: New file.
64984
64985         * lib/uniwidth/u8-strwidth.c: New file.
64986         * modules/uniwidth/u8-strwidth: New file.
64987
64988         * tests/uniwidth/test-u32-width.c: New file.
64989         * modules/uniwidth/u32-width-tests: New file.
64990
64991         * lib/uniwidth/u32-width.c: New file.
64992         * modules/uniwidth/u32-width: New file.
64993
64994         * tests/uniwidth/test-u16-width.c: New file.
64995         * modules/uniwidth/u16-width-tests: New file.
64996
64997         * lib/uniwidth/u16-width.c: New file.
64998         * modules/uniwidth/u16-width: New file.
64999
65000         * tests/uniwidth/test-u8-width.c: New file.
65001         * modules/uniwidth/u8-width-tests: New file.
65002
65003         * lib/uniwidth/u8-width.c: New file.
65004         * modules/uniwidth/u8-width: New file.
65005
65006         * tests/uniwidth/test-uc_width.c: New file.
65007         * modules/uniwidth/width-tests: New file.
65008
65009         * lib/uniwidth/width.c: New file, from GNU libiconv.
65010         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
65011         * modules/uniwidth/width: New file.
65012
65013         * lib/uniwidth.h: New file, from GNU libiconv.
65014         * modules/uniwidth/base: New file.
65015
65016 2007-07-07  Bruno Haible  <bruno@clisp.org>
65017
65018         * lib/uniname.h: New file, from GNU gettext.
65019         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
65020         * lib/uniname/uninames.h: New file, from GNU gettext.
65021         * lib/uniname/uniname.c: New file, from GNU gettext.
65022         * tests/uniname/test-uninames.sh: New file.
65023         * tests/uniname/test-uninames.c: New file, from GNU gettext.
65024         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
65025         * modules/uniname/base: New file.
65026         * modules/uniname/uniname: New file.
65027         * modules/uniname/uniname-tests: New file.
65028         * MODULES.html.sh (Unicode string functions): Add the new modules.
65029
65030 2007-07-06  Bruno Haible  <bruno@clisp.org>
65031
65032         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
65033
65034 2007-07-06  Bruno Haible  <bruno@clisp.org>
65035
65036         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
65037         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
65038         includes <cygwin/sys_time.h> which includes <sys/select.h> which
65039         include <sys/time.h>.
65040         Reported by Eric Blake.
65041
65042 2007-07-06  Eric Blake  <ebb9@byu.net>
65043
65044         Fix testing canonicalize on cygwin.
65045         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
65046         Revert patch from 2007-06-19.
65047         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
65048         canonicalize module is also in use.
65049         * tests/test-canonicalize.c: New file.
65050         * tests/test-canonicalize.sh: Likewise.
65051         * modules/canonicalize-tests: Likewise.
65052
65053 2007-07-06  Jim Meyering  <jim@meyering.net>
65054
65055         * lib/getugroups.c (getugroups): Detect getgrent failure.
65056         Adjust comment to reflect reality: this function may return -1.
65057
65058 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
65059
65060         * build-aux/bootstrap (TP_URL,get_translations): Update to use
65061         the new TP address.
65062         (usage): Fix typo
65063         (gnulib_mk): New variable.
65064
65065 2007-07-05  Jim Meyering  <jim@meyering.net>
65066
65067         Don't let endgrent clobber errno, no matter how improbable.
65068         * lib/getugroups.c (getugroups): Save and restore errno around
65069         endgrent call.
65070
65071         Close the group DB even when failing with 2^31 or more members.
65072         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
65073
65074 2007-07-04  Jim Meyering  <jim@meyering.net>
65075
65076         * lib/getugroups.h: New file.
65077         * lib/getugroups.c: Include "getugroups.h".
65078         Remove uses of "register" keyword.
65079         Move local variable, "cp", down into scope where used.
65080         Give "username" parameter the "const" attribute.
65081         * modules/getugroups (Files): Add lib/getugroups.h
65082
65083 2007-07-04  Karl Berry  <karl@gnu.org>
65084
65085         * MODULES.html.sh (func_all_modules): Complete rename of
65086         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
65087
65088 2007-07-02  Bruno Haible  <bruno@clisp.org>
65089
65090         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
65091         mode, when inttypes.h comes from gnulib.
65092         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
65093
65094 2007-07-02  Simon Josefsson  <simon@josefsson.org>
65095
65096         * NEWS: Mention lgpl module name change.
65097
65098         * modules/lgpl-2.1: Renamed from lgpl.
65099
65100         * NEWS: Mention gpl module name change.
65101
65102         * modules/gpl-3.0: New file, based on gpl-2.0.
65103
65104         * modules/gpl-2.0: Renamed from gpl.
65105
65106         * modules/gpl: Fix filename, doc/gpl.texi is now found at
65107         doc/gpl-2.0.texi.
65108
65109 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
65110
65111         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
65112         #define __STDC_LIMIT_MACROS temporarily while including
65113         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
65114         Problem reported by Joel E. Denny in
65115         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
65116
65117 2007-07-01  Bruno Haible  <bruno@clisp.org>
65118
65119         * lib/unistdio.h: New file.
65120         * lib/unistdio/u-asnprintf.h: New file.
65121         * lib/unistdio/u-asprintf.h: New file.
65122         * lib/unistdio/u-printf-args.c: New file.
65123         * lib/unistdio/u-printf-args.h: New file.
65124         * lib/unistdio/u-printf-parse.h: New file.
65125         * lib/unistdio/u-snprintf.h: New file.
65126         * lib/unistdio/u-sprintf.h: New file.
65127         * lib/unistdio/u-vasprintf.h: New file.
65128         * lib/unistdio/u-vsnprintf.h: New file.
65129         * lib/unistdio/u-vsprintf.h: New file.
65130         * lib/unistdio/ulc-asnprintf.c: New file.
65131         * lib/unistdio/ulc-asprintf.c: New file.
65132         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
65133         * lib/unistdio/ulc-printf-parse.c: New file.
65134         * lib/unistdio/ulc-snprintf.c: New file.
65135         * lib/unistdio/ulc-sprintf.c: New file.
65136         * lib/unistdio/ulc-vasnprintf.c: New file.
65137         * lib/unistdio/ulc-vasprintf.c: New file.
65138         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
65139         * lib/unistdio/ulc-vsnprintf.c: New file.
65140         * lib/unistdio/ulc-vsprintf.c: New file.
65141         * lib/unistdio/u8-asnprintf.c: New file.
65142         * lib/unistdio/u8-asprintf.c: New file.
65143         * lib/unistdio/u8-printf-parse.c: New file.
65144         * lib/unistdio/u8-snprintf.c: New file.
65145         * lib/unistdio/u8-sprintf.c: New file.
65146         * lib/unistdio/u8-vasnprintf.c: New file.
65147         * lib/unistdio/u8-vasprintf.c: New file.
65148         * lib/unistdio/u8-vsnprintf.c: New file.
65149         * lib/unistdio/u8-vsprintf.c: New file.
65150         * lib/unistdio/u8-u8-asnprintf.c: New file.
65151         * lib/unistdio/u8-u8-asprintf.c: New file.
65152         * lib/unistdio/u8-u8-snprintf.c: New file.
65153         * lib/unistdio/u8-u8-sprintf.c: New file.
65154         * lib/unistdio/u8-u8-vasnprintf.c: New file.
65155         * lib/unistdio/u8-u8-vasprintf.c: New file.
65156         * lib/unistdio/u8-u8-vsnprintf.c: New file.
65157         * lib/unistdio/u8-u8-vsprintf.c: New file.
65158         * lib/unistdio/u16-asnprintf.c: New file.
65159         * lib/unistdio/u16-asprintf.c: New file.
65160         * lib/unistdio/u16-printf-parse.c: New file.
65161         * lib/unistdio/u16-snprintf.c: New file.
65162         * lib/unistdio/u16-sprintf.c: New file.
65163         * lib/unistdio/u16-vasnprintf.c: New file.
65164         * lib/unistdio/u16-vasprintf.c: New file.
65165         * lib/unistdio/u16-vsnprintf.c: New file.
65166         * lib/unistdio/u16-vsprintf.c: New file.
65167         * lib/unistdio/u16-u16-asnprintf.c: New file.
65168         * lib/unistdio/u16-u16-asprintf.c: New file.
65169         * lib/unistdio/u16-u16-snprintf.c: New file.
65170         * lib/unistdio/u16-u16-sprintf.c: New file.
65171         * lib/unistdio/u16-u16-vasnprintf.c: New file.
65172         * lib/unistdio/u16-u16-vasprintf.c: New file.
65173         * lib/unistdio/u16-u16-vsnprintf.c: New file.
65174         * lib/unistdio/u16-u16-vsprintf.c: New file.
65175         * lib/unistdio/u32-asnprintf.c: New file.
65176         * lib/unistdio/u32-asprintf.c: New file.
65177         * lib/unistdio/u32-printf-parse.c: New file.
65178         * lib/unistdio/u32-snprintf.c: New file.
65179         * lib/unistdio/u32-sprintf.c: New file.
65180         * lib/unistdio/u32-vasnprintf.c: New file.
65181         * lib/unistdio/u32-vasprintf.c: New file.
65182         * lib/unistdio/u32-vsnprintf.c: New file.
65183         * lib/unistdio/u32-vsprintf.c: New file.
65184         * lib/unistdio/u32-u32-asnprintf.c: New file.
65185         * lib/unistdio/u32-u32-asprintf.c: New file.
65186         * lib/unistdio/u32-u32-snprintf.c: New file.
65187         * lib/unistdio/u32-u32-sprintf.c: New file.
65188         * lib/unistdio/u32-u32-vasnprintf.c: New file.
65189         * lib/unistdio/u32-u32-vasprintf.c: New file.
65190         * lib/unistdio/u32-u32-vsnprintf.c: New file.
65191         * lib/unistdio/u32-u32-vsprintf.c: New file.
65192         * tests/unistdio/test-ulc-asnprintf1.c: New file.
65193         * tests/unistdio/test-ulc-asnprintf1.h: New file.
65194         * tests/unistdio/test-ulc-printf1.h: New file.
65195         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
65196         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
65197         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
65198         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
65199         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
65200         * tests/unistdio/test-ulc-vasprintf1.c: New file.
65201         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
65202         * tests/unistdio/test-ulc-vsprintf1.c: New file.
65203         * tests/unistdio/test-u8-asnprintf1.c: New file.
65204         * tests/unistdio/test-u8-asnprintf1.h: New file.
65205         * tests/unistdio/test-u8-printf1.h: New file.
65206         * tests/unistdio/test-u8-vasnprintf1.c: New file.
65207         * tests/unistdio/test-u8-vasnprintf2.c: New file.
65208         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
65209         * tests/unistdio/test-u8-vasnprintf3.c: New file.
65210         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
65211         * tests/unistdio/test-u8-vasprintf1.c: New file.
65212         * tests/unistdio/test-u8-vsnprintf1.c: New file.
65213         * tests/unistdio/test-u8-vsprintf1.c: New file.
65214         * tests/unistdio/test-u16-asnprintf1.c: New file.
65215         * tests/unistdio/test-u16-asnprintf1.h: New file.
65216         * tests/unistdio/test-u16-printf1.h: New file.
65217         * tests/unistdio/test-u16-vasnprintf1.c: New file.
65218         * tests/unistdio/test-u16-vasnprintf2.c: New file.
65219         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
65220         * tests/unistdio/test-u16-vasnprintf3.c: New file.
65221         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
65222         * tests/unistdio/test-u16-vasprintf1.c: New file.
65223         * tests/unistdio/test-u16-vsnprintf1.c: New file.
65224         * tests/unistdio/test-u16-vsprintf1.c: New file.
65225         * tests/unistdio/test-u32-asnprintf1.c: New file.
65226         * tests/unistdio/test-u32-asnprintf1.h: New file.
65227         * tests/unistdio/test-u32-printf1.h: New file.
65228         * tests/unistdio/test-u32-vasnprintf1.c: New file.
65229         * tests/unistdio/test-u32-vasnprintf2.c: New file.
65230         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
65231         * tests/unistdio/test-u32-vasnprintf3.c: New file.
65232         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
65233         * tests/unistdio/test-u32-vasprintf1.c: New file.
65234         * tests/unistdio/test-u32-vsnprintf1.c: New file.
65235         * tests/unistdio/test-u32-vsprintf1.c: New file.
65236         * modules/unistdio/base: New file.
65237         * modules/unistdio/u-printf-args: New file.
65238         * modules/unistdio/ulc-asnprintf: New file.
65239         * modules/unistdio/ulc-asprintf: New file.
65240         * modules/unistdio/ulc-fprintf: New file.
65241         * modules/unistdio/ulc-printf-parse: New file.
65242         * modules/unistdio/ulc-snprintf: New file.
65243         * modules/unistdio/ulc-sprintf: New file.
65244         * modules/unistdio/ulc-vasnprintf: New file.
65245         * modules/unistdio/ulc-vasprintf: New file.
65246         * modules/unistdio/ulc-vfprintf: New file.
65247         * modules/unistdio/ulc-vsnprintf: New file.
65248         * modules/unistdio/ulc-vsprintf: New file.
65249         * modules/unistdio/u8-asnprintf: New file.
65250         * modules/unistdio/u8-asprintf: New file.
65251         * modules/unistdio/u8-printf-parse: New file.
65252         * modules/unistdio/u8-snprintf: New file.
65253         * modules/unistdio/u8-sprintf: New file.
65254         * modules/unistdio/u8-vasnprintf: New file.
65255         * modules/unistdio/u8-vasprintf: New file.
65256         * modules/unistdio/u8-vsnprintf: New file.
65257         * modules/unistdio/u8-vsprintf: New file.
65258         * modules/unistdio/u8-u8-asnprintf: New file.
65259         * modules/unistdio/u8-u8-asprintf: New file.
65260         * modules/unistdio/u8-u8-snprintf: New file.
65261         * modules/unistdio/u8-u8-sprintf: New file.
65262         * modules/unistdio/u8-u8-vasnprintf: New file.
65263         * modules/unistdio/u8-u8-vasprintf: New file.
65264         * modules/unistdio/u8-u8-vsnprintf: New file.
65265         * modules/unistdio/u8-u8-vsprintf: New file.
65266         * modules/unistdio/u16-asnprintf: New file.
65267         * modules/unistdio/u16-asprintf: New file.
65268         * modules/unistdio/u16-printf-parse: New file.
65269         * modules/unistdio/u16-snprintf: New file.
65270         * modules/unistdio/u16-sprintf: New file.
65271         * modules/unistdio/u16-vasnprintf: New file.
65272         * modules/unistdio/u16-vasprintf: New file.
65273         * modules/unistdio/u16-vsnprintf: New file.
65274         * modules/unistdio/u16-vsprintf: New file.
65275         * modules/unistdio/u16-u16-asnprintf: New file.
65276         * modules/unistdio/u16-u16-asprintf: New file.
65277         * modules/unistdio/u16-u16-snprintf: New file.
65278         * modules/unistdio/u16-u16-sprintf: New file.
65279         * modules/unistdio/u16-u16-vasnprintf: New file.
65280         * modules/unistdio/u16-u16-vasprintf: New file.
65281         * modules/unistdio/u16-u16-vsnprintf: New file.
65282         * modules/unistdio/u16-u16-vsprintf: New file.
65283         * modules/unistdio/u32-asnprintf: New file.
65284         * modules/unistdio/u32-asprintf: New file.
65285         * modules/unistdio/u32-printf-parse: New file.
65286         * modules/unistdio/u32-snprintf: New file.
65287         * modules/unistdio/u32-sprintf: New file.
65288         * modules/unistdio/u32-vasnprintf: New file.
65289         * modules/unistdio/u32-vasprintf: New file.
65290         * modules/unistdio/u32-vsnprintf: New file.
65291         * modules/unistdio/u32-vsprintf: New file.
65292         * modules/unistdio/u32-u32-asnprintf: New file.
65293         * modules/unistdio/u32-u32-asprintf: New file.
65294         * modules/unistdio/u32-u32-snprintf: New file.
65295         * modules/unistdio/u32-u32-sprintf: New file.
65296         * modules/unistdio/u32-u32-vasnprintf: New file.
65297         * modules/unistdio/u32-u32-vasprintf: New file.
65298         * modules/unistdio/u32-u32-vsnprintf: New file.
65299         * modules/unistdio/u32-u32-vsprintf: New file.
65300         * modules/unistdio/ulc-asnprintf-tests: New file.
65301         * modules/unistdio/ulc-vasnprintf-tests: New file.
65302         * modules/unistdio/ulc-vasprintf-tests: New file.
65303         * modules/unistdio/ulc-vsnprintf-tests: New file.
65304         * modules/unistdio/ulc-vsprintf-tests: New file.
65305         * modules/unistdio/u8-asnprintf-tests: New file.
65306         * modules/unistdio/u8-vasnprintf-tests: New file.
65307         * modules/unistdio/u8-vasprintf-tests: New file.
65308         * modules/unistdio/u8-vsnprintf-tests: New file.
65309         * modules/unistdio/u8-vsprintf-tests: New file.
65310         * modules/unistdio/u16-asnprintf-tests: New file.
65311         * modules/unistdio/u16-vasnprintf-tests: New file.
65312         * modules/unistdio/u16-vasprintf-tests: New file.
65313         * modules/unistdio/u16-vsnprintf-tests: New file.
65314         * modules/unistdio/u16-vsprintf-tests: New file.
65315         * modules/unistdio/u32-asnprintf-tests: New file.
65316         * modules/unistdio/u32-vasnprintf-tests: New file.
65317         * modules/unistdio/u32-vasprintf-tests: New file.
65318         * modules/unistdio/u32-vsnprintf-tests: New file.
65319         * modules/unistdio/u32-vsprintf-tests: New file.
65320         * MODULES.html.sh (Unicode string functions): Add the new modules.
65321
65322 2007-07-01  Bruno Haible  <bruno@clisp.org>
65323
65324         * lib/sprintf.c (sprintf): Limit the available length estimation,
65325         to avoid address wraparound.
65326         * lib/vsprintf.c (vsprintf): Likewise.
65327         * modules/sprintf-posix (Dependencies): Add stdint.
65328         * modules/vsprintf-posix (Dependencies): Likewise.
65329
65330 2007-07-01  Bruno Haible  <bruno@clisp.org>
65331
65332         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
65333         Windows PATH as well. Conservative double-quoting. Comments.
65334
65335 2007-07-01  Bruno Haible  <bruno@clisp.org>
65336             Eric Blake  <ebb9@byu.net>
65337             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65338
65339         * gnulib-tool (self_abspathname): Fix algorithm to cope with
65340         empty components in $PATH, denoting '.'.
65341
65342 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65343
65344         * gnulib-tool: Fix indentation.
65345         (func_create_megatestdir): Likewise.
65346         Report by Bruno Haible.
65347
65348 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65349
65350         Sync from Automake.
65351         * build-aux/gnupload: Fix shell portability issues with for loops.
65352         Report by Karl Berry.
65353
65354 2007-06-29  Simon Josefsson  <simon@josefsson.org>
65355
65356         * build-aux/maint.mk (POURL): Use translationproject.org.
65357
65358 2007-06-27  Simon Josefsson  <simon@josefsson.org>
65359             Bruno Haible  <bruno@clisp.org>
65360
65361         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
65362         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
65363         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
65364         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
65365         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
65366
65367 2007-06-27  Bruno Haible  <bruno@clisp.org>
65368
65369         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
65370         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
65371
65372 2007-06-26  Karl Berry  <karl@gnu.org>
65373
65374         * MODULES.html.sh: remove xreadlink-with-size.
65375
65376 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
65377
65378         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
65379         method that I hope also handles the double-include problem noted
65380         by Bruno Haible in
65381         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
65382
65383 2007-06-23  Bruno Haible  <bruno@clisp.org>
65384
65385         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65386         Don't let the 'mostlyclean' target fail if the last subdirectory could
65387         not be removed.
65388         Reported by Karl Berry.
65389
65390 2007-06-23  Bruno Haible  <bruno@clisp.org>
65391
65392         * gnulib-tool (echo): Add a speedier workaround for ksh.
65393         * tests/test-echo.sh: Likewise.
65394
65395 2007-06-23  Bruno Haible  <bruno@clisp.org>
65396
65397         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
65398         * tests/test-echo.sh: Likewise.
65399
65400 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65401
65402         * gnulib-tool (IFS): Initialize early, so we don't set it to
65403         empty later.
65404         (self_abspathname): Rewrite algorithm to set it, reindent.
65405         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
65406         (func_create_megatestdir): Merge some sed scripts.
65407
65408 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
65409
65410         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
65411         exposed by Sun Studio 11 cc on Solaris 8.
65412
65413 2007-06-22  Bruno Haible  <bruno@clisp.org>
65414
65415         * gnulib-tool (echo): Ensure the echo primitive does not interpret
65416         backslashes.
65417         * tests/test-echo.sh: New file.
65418
65419 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65420
65421         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
65422         simplify `sed_replace_build_aux' scripts, they are portable but
65423         echoing them with `echo' is not.
65424         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
65425
65426 2007-06-21  Karl Berry  <karl@gnu.org>
65427
65428         * config/srclist.txt: guess we can't handle the licenses via
65429         srclist at the moment.
65430
65431 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
65432
65433         * MODULES.html.sh: Add include_next.
65434         * modules/include_next: New file.
65435
65436 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
65437
65438         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
65439         INCLUDE_NEXT.
65440         (gl_CHECK_NEXT_HEADERS): New macro.
65441         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
65442         the obsolescent gl_ABSOLUTE_HEADER.
65443         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
65444         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
65445         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
65446         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
65447         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
65448         * m4/math_h.m4 (gl_MATH_H): Likewise.
65449         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
65450         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
65451         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
65452         * m4/stdint.m4 (gl_STDINT_H): Likewise.
65453         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
65454         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
65455         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
65456         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
65457         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
65458         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
65459         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
65460         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
65461         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
65462         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
65463         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
65464         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
65465         * m4/inttypes.m4 (gl_INTTYPES_H): Define
65466         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
65467         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
65468         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
65469         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
65470         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
65471         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
65472         * lib/float_.h: Likewise.
65473         * lib/inttypes_.h: Likewise.
65474         * lib/math_.h: Likewise.
65475         * lib/search_.h: Likewise.
65476         * lib/signal_.h: Likewise.
65477         * lib/stdint_.h: Likewise.
65478         * lib/stdio_.h: Likewise.
65479         * lib/stdlib_.h: Likewise.
65480         * lib/string_.h: Likewise.
65481         * lib/sys_stat_.h: Likewise.
65482         * lib/sys_time_.h: Likewise.
65483         * lib/time_.h: Likewise.
65484         * lib/unistd_.h: Likewise.
65485         * lib/wchar_.h: Likewise.
65486         * lib/wctype_.h: Likewise.
65487         * lib/dirent_.h: Likewise.
65488         * lib/iconv_.h: Likewise.
65489         * lib/locale_.h: Likewise.
65490         * lib/netinet_in_.h: Likewise.
65491         * lib/sys_select_.h: Likewise.
65492         * lib/sys_socket_.h: Likewise.
65493         * lib/sysexits_.h: Likewise.
65494         * modules/fcntl (Depends-on): Depend on include_next, not
65495         absolute_header.
65496         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
65497         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
65498         * modules/fchdir: Likewise.
65499         * modules/float: Likewise.
65500         * modules/iconv_open: Likewise.
65501         * modules/inttypes: Likewise.
65502         * modules/locale: Likewise.
65503         * modules/math: Likewise.
65504         * modules/netinet_in: Likewise.
65505         * modules/search: Likewise.
65506         * modules/signal: Likewise.
65507         * modules/stdint: Likewise.
65508         * modules/stdio: Likewise.
65509         * modules/stdlib: Likewise.
65510         * modules/string: Likewise.
65511         * modules/sys_select: Likewise.
65512         * modules/sys_socket: Likewise.
65513         * modules/sys_stat: Likewise.
65514         * modules/sys_time: Likewise.
65515         * modules/sysexits: Likewise.
65516         * modules/time: Likewise.
65517         * modules/unistd: Likewise.
65518         * modules/wchar: Likewise.
65519         * modules/wctype: Likewise.
65520         * modules/sys_stat: Change maintainer to "all".
65521         * modules/unistd: Likewise.
65522
65523 2007-06-20  Karl Berry  <karl@gnu.org>
65524
65525         * config/srclist.txt: track www changes in license files.
65526
65527 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
65528
65529         * build-aux/bootstrap: Remove stray dot.
65530         Make sure build_aux settings are honored when linking
65531         gnulib_extra_files.
65532
65533 2007-06-19  Eric Blake  <ebb9@byu.net>
65534
65535         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
65536         Allow compilation on cygwin.
65537
65538 2007-06-19  Jim Meyering  <jim@meyering.net>
65539
65540         xreadlink-with-size: Remove module.  No longer used.
65541         Ex-callers now use xreadlink or mreadlink-with-size.
65542         * modules/xreadlink-with-size: Remove module.
65543         * lib/xreadlink-with-size.c: Remove file.
65544         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
65545         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
65546         just before the function definition *is* accurate.
65547
65548         Eliminate one way canonicalize_filename_mode could exit.
65549         * lib/canonicalize.c (canonicalize_filename_mode):
65550         Use mreadlink_with_size, not xreadlink_with_size.
65551
65552 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
65553
65554         Detect porting problems to FreeBSD/arm, which has time_t wider than
65555         long int.  Original problem reported for GNU diff by Xin Li in
65556         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
65557         * modules/getdate (Depends-on): Add intprops, verify.
65558         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
65559         is an integer type no wider than long int.
65560
65561 2007-06-18  Jim Meyering  <jim@meyering.net>
65562
65563         New module: mreadlink-with-size.
65564         * MODULES.html.sh: Add mreadlink-with-size.
65565         * modules/mreadlink-with-size: New module
65566         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
65567         not xreadlink-with-size.
65568         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
65569
65570 2007-06-16  Bruno Haible  <bruno@clisp.org>
65571
65572         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
65573         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
65574         Reported by Gary V. Vaughan <gary@gnu.org>.
65575
65576 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
65577
65578         Revamp lchown so that it lives in unistd.h where it belongs.
65579         * lib/lchown.h: Remove.
65580         * lib/dirchownmod.c: Don't include lib/lchown.h.
65581         * lib/fchownat.c: Likewise.
65582         * lib/openat.c: Likewise.
65583         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
65584         does not follow symlinks.
65585         (EOPNOTSUPP): Define if not defined.
65586         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
65587         is defined to 0.
65588         (lchown): New decl.
65589         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
65590         Do not check for lchown decl.
65591         Set REPLACE_LCHOWN.
65592         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
65593         REPLACE_LCHOWN.
65594         * modules/chown: Make it clear it follows symlinks.
65595         * modules/lchown: Make it clear it doesn't follow symlinks.
65596         (Files): Remove lib/lchown.h
65597         (Depends-on): Add unistd.
65598         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
65599         (Include): Include <unistd.h>, not "lchown.h".
65600         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
65601         REPLACE_LCHOWN.
65602
65603 2007-06-15  Jim Meyering  <jim@meyering.net>
65604
65605         Change license (GPL to LGPL) of fsusage and dependents.
65606         * modules/fsusage (License): Change to LGPL.
65607         * modules/full-read (License): Likewise.
65608         * modules/full-write (License): Likewise.
65609         * modules/safe-read (License): Likewise.
65610         * modules/safe-write (License): Likewise.
65611
65612 2007-06-14  Ben Pfaff  <blp@gnu.org>
65613
65614         Missing part of allocsa -> malloca transition.
65615         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
65616         gl_MALLOCA.
65617
65618 2007-06-12  Bruno Haible  <bruno@clisp.org>
65619
65620         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
65621         to ia64, x86_64, i386.
65622         Reported by Eric Blake.
65623
65624 2007-06-12  Bruno Haible  <bruno@clisp.org>
65625
65626         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
65627         cross-compiling to x86_64.
65628
65629 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
65630
65631         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
65632         glitch reported by Ralf Wildenhues in
65633         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
65634
65635         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
65636         Vin Shelton.
65637
65638 2007-06-11  Bruno Haible  <bruno@clisp.org>
65639
65640         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
65641         replacement string.
65642         Reported by Eric Blake.
65643
65644 2007-06-10  Bruno Haible  <bruno@clisp.org>
65645
65646         Prepare vasnprintf code for use with Unicode strings.
65647         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
65648         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
65649         TYPE_U32_STRING.
65650         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
65651         a_u32_string variants.
65652         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
65653         * lib/printf-args.c: Don't include config.h and the specification
65654         header if PRINTF_FETCHARGS is already defined.
65655         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
65656         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
65657         TYPE_U16_STRING, TYPE_U32_STRING.
65658         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
65659         u16_directive, u16_directives, u32_directive, u32_directives): New
65660         types.
65661         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
65662         New declarations.
65663         * lib/printf-parse.c: Don't include config.h and the specification
65664         header if PRINTF_PARSE is already defined. Eliminate the set of
65665         parameters for WIDE_CHAR_VERSION; the user of this file must provide
65666         them now. Include c-ctype.h.
65667         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
65668         directive and CHAR_T_ONLY_ASCII.
65669         * lib/vasnprintf.c: Don't include config.h and the specification header
65670         if VASNPRINTF is already defined.
65671         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
65672         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
65673         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
65674         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
65675         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
65676         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
65677         code accordingly.
65678         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
65679         pad_ourselves also in this case, with the 'c' and 's' directives, and
65680         with a different notion of "width".
65681         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
65682
65683 2007-06-10  Bruno Haible  <bruno@clisp.org>
65684
65685         * modules/unistr/u32-mbsnlen: New file.
65686         * lib/unistr/u32-mbsnlen.c: New file.
65687
65688         * modules/unistr/u16-mbsnlen: New file.
65689         * lib/unistr/u16-mbsnlen.c: New file.
65690
65691         * modules/unistr/u8-mbsnlen: New file.
65692         * lib/unistr/u8-mbsnlen.c: New file.
65693
65694         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
65695         declarations.
65696
65697 2007-06-10  Bruno Haible  <bruno@clisp.org>
65698
65699         * lib/string_.h (mbsnlen): New declaration.
65700         * lib/mbsnlen.c: New file.
65701         * m4/mbsnlen.m4: New file.
65702         * modules/mbsnlen: New file.
65703         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
65704         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
65705         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
65706
65707 2007-06-10  Bruno Haible  <bruno@clisp.org>
65708
65709         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
65710
65711 2007-06-10  Bruno Haible  <bruno@clisp.org>
65712
65713         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
65714         * lib/mbuiter.h: Likewise.
65715
65716 2007-06-10  Bruno Haible  <bruno@clisp.org>
65717
65718         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
65719         declaration.
65720
65721 2007-06-10  Karl Berry  <karl@gnu.org>
65722
65723         * config/srclist.txt: remove gettext entries, Bruno prefers
65724         to update individually.
65725
65726 2007-06-10  Bruno Haible  <bruno@clisp.org>
65727
65728         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
65729         'maxlen'. Ensure only length + width bytes are allocated, not
65730         length + 1 + width.
65731
65732 2007-06-09  Bruno Haible  <bruno@clisp.org>
65733
65734         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
65735         (CHAR_T): Remove macro.
65736         (VASNPRINTF): Update.
65737
65738 2007-06-09  Bruno Haible  <bruno@clisp.org>
65739
65740         * MODULES.html.sh (Unicode string functions): Add the new modules.
65741
65742         * modules/uniconv/u32-conv-to-enc: New file.
65743         * lib/uniconv/u32-conv-to-enc.c: New file.
65744         * modules/uniconv/u32-conv-to-enc-tests: New file.
65745         * tests/uniconv/test-u32-conv-to-enc.c: New file.
65746
65747         * modules/uniconv/u16-conv-to-enc: New file.
65748         * lib/uniconv/u16-conv-to-enc.c: New file.
65749         * lib/uniconv/u-conv-to-enc.h: New file.
65750         * modules/uniconv/u16-conv-to-enc-tests: New file.
65751         * tests/uniconv/test-u16-conv-to-enc.c: New file.
65752
65753         * modules/uniconv/u8-conv-to-enc: New file.
65754         * lib/uniconv/u8-conv-to-enc.c: New file.
65755         * modules/uniconv/u8-conv-to-enc-tests: New file.
65756         * tests/uniconv/test-u8-conv-to-enc.c: New file.
65757
65758         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
65759         u32_conv_to_encoding): New declarations.
65760
65761 2007-06-09  Bruno Haible  <bruno@clisp.org>
65762
65763         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
65764
65765 2007-06-09  Bruno Haible  <bruno@clisp.org>
65766
65767         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
65768         * modules/malloca: Renamed from modules/allocsa, updated.
65769         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
65770         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
65771         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
65772         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
65773         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
65774         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
65775         * modules/xmalloca: Renamed from modules/xallocsa, updated.
65776         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
65777         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
65778         * modules/c-strcasestr (Depends-on): Update.
65779         * lib/c-strcasestr.c: Update.
65780         * modules/c-strstr (Depends-on): Update.
65781         * lib/c-strstr.c: Update.
65782         * modules/canonicalize-lgpl (Depends-on): Update.
65783         * lib/canonicalize-lgpl.c: Update.
65784         * modules/clean-temp (Depends-on): Update.
65785         * lib/clean-temp.c: Update.
65786         * modules/csharpcomp (Depends-on): Update.
65787         * lib/csharpcomp.c: Update.
65788         * modules/csharpexec (Depends-on): Update.
65789         * lib/csharpexec.c: Update.
65790         * modules/javacomp (Depends-on): Update.
65791         * lib/javacomp.c: Update.
65792         * modules/javaexec (Depends-on): Update.
65793         * lib/javaexec.c: Update.
65794         * modules/mbscasestr (Depends-on): Update.
65795         * lib/mbscasestr.c: Update.
65796         * modules/mbsstr (Depends-on): Update.
65797         * lib/mbsstr.c: Update.
65798         * modules/setenv (Depends-on): Update.
65799         * lib/setenv.c: Update.
65800         * modules/strcasestr (Depends-on): Update.
65801         * lib/strcasestr.c: Update.
65802         * modules/striconveha (Depends-on): Update.
65803         * lib/striconveha.c: Update.
65804         * modules/relocatable-prog-wrapper (Files): Update.
65805         * lib/relocwrapper.c: Update.
65806         * build-aux/install-reloc: Update.
65807         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
65808
65809 2007-06-08  Bruno Haible  <bruno@clisp.org>
65810
65811         Port to uClibc.
65812         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
65813         * lib/fpurge.c (fpurge): Likewise.
65814         * lib/freading.c (freading): Likewise.
65815         * lib/fseeko.c (rpl_fseeko): Likewise.
65816         * lib/fseterr.c (fseterr): Likewise.
65817         * lib/fwriting.c (fwriting): Likewise.
65818         * tests/test-fflush.c (main): Avoid a failure on uClibc.
65819
65820 2007-06-08  Bruno Haible  <bruno@clisp.org>
65821
65822         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
65823         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
65824         * modules/gettext (Files): Add m4/intlmacosx.m4.
65825
65826 2007-06-07  Bruno Haible  <bruno@clisp.org>
65827
65828         * modules/localename-tests: New file.
65829         * tests/test-localename.c: New file.
65830
65831         New module 'localename'.
65832         * lib/localename.h: New file.
65833         * lib/localename.c: New file, from GNU gettext.
65834         * m4/localename.m4: New file.
65835         * modules/localename: New file.
65836
65837 2007-06-07  Bruno Haible  <bruno@clisp.org>
65838
65839         Work around the lack of <wchar.h> on some builds of uClibc.
65840         * doc/headers/wchar.texi: Update.
65841         * lib/wchar_.h: Include <wchar.h> only if it exists.
65842         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
65843         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
65844         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
65845         doesn't exist.
65846         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
65847         * modules/mbfile (Depends-on): Add wchar.
65848         * modules/mbiter (Depends-on): Likewise.
65849         * modules/mbuiter (Depends-on): Likewise.
65850         Reported by Simon Josefsson.
65851
65852 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
65853
65854         Work around problem reported by Steven M. Schweda in
65855         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
65856         Tru64 5.1B with the Compaq compiler environment installed declares
65857         an 'isblank' function but does not define it in the C library.
65858         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
65859         * lib/regex_internal.h (isblank): Likewise.
65860         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
65861         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
65862
65863 2007-06-05  Bruno Haible  <bruno@clisp.org>
65864
65865         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
65866         ia64.
65867         * modules/printf-safe: New file.
65868         * modules/fprintf-posix (Depends-on): Add printf-safe.
65869         * modules/printf-posix (Depends-on): Likewise.
65870         * modules/snprintf-posix (Depends-on): Likewise.
65871         * modules/sprintf-posix (Depends-on): Likewise.
65872         * modules/vasnprintf-posix (Depends-on): Likewise.
65873         * modules/vasprintf-posix (Depends-on): Likewise.
65874         * modules/vfprintf-posix (Depends-on): Likewise.
65875         * modules/vprintf-posix (Depends-on): Likewise.
65876         * modules/vsnprintf-posix (Depends-on): Likewise.
65877         * modules/vsprintf-posix (Depends-on): Likewise.
65878         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
65879         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
65880         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
65881         "no" on i386, x86_64, ia64.
65882         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
65883         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
65884         on i386, x86_64, ia64.
65885         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
65886         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
65887         on i386, x86_64, ia64.
65888         * tests/test-vasnprintf-posix.c: Include float.h.
65889         (LDBL80_WORDS): New macro.
65890         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
65891         on i386, x86_64, ia64.
65892         * tests/test-vasprintf-posix.c: Include float.h.
65893         (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-snprintf-posix.c: Include float.h.
65897         * tests/test-sprintf-posix.c: Likewise.
65898         * tests/test-vsnprintf-posix.c: Likewise.
65899         * tests/test-vsprintf-posix.c: Likewise.
65900
65901 2007-06-05  Bruno Haible  <bruno@clisp.org>
65902
65903         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
65904         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
65905         non-IEEE numbers on i386, x86_64, ia64.
65906         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
65907         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
65908         * tests/test-isnanl.h: Include float.h.
65909         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
65910
65911 2007-06-05  Bruno Haible  <bruno@clisp.org>
65912
65913         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
65914         also the %a / %A. Handle the %a / %A code before this extra handling.
65915
65916 2007-06-05  Bruno Haible  <bruno@clisp.org>
65917
65918         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
65919         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
65920
65921 2007-06-05  Bruno Haible  <bruno@clisp.org>
65922
65923         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
65924         typo in variable name.
65925
65926 2007-06-05  Eric Blake  <ebb9@byu.net>
65927
65928         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
65929         Reported by Simon Josefsson.
65930
65931 2007-06-04  Bruno Haible  <bruno@clisp.org>
65932
65933         Avoid test failures on some PowerPC platforms.
65934         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
65935         Define differently for PowerPC.
65936         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
65937         Reported by Gary V. Vaughan <gary@gnu.org>.
65938
65939 2007-06-02  Bruno Haible  <bruno@clisp.org>
65940
65941         Fix test-stdint failure on FreeBSD/ia64.
65942         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
65943         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
65944         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
65945         * doc/headers/stdint.texi: Update.
65946
65947 2007-06-01  Bruno Haible  <bruno@clisp.org>
65948
65949         * tests/test-binary-io.c (main): Pass a third argument to open().
65950         Reported by Gary V. Vaughan <gary@gnu.org>.
65951
65952 2007-06-01  Bruno Haible  <bruno@clisp.org>
65953
65954         * doc/functions/frexpl.texi: Update for mingw.
65955
65956 2007-06-01  Bruno Haible  <bruno@clisp.org>
65957
65958         * tests/test-lseek.c (main): Disable test of errno for invalid third
65959         argument.
65960         * doc/functions/lseek.texi: Update.
65961         Reported by Gary V. Vaughan <gary@gnu.org>.
65962
65963 2007-05-28  Bruno Haible  <bruno@clisp.org>
65964
65965         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
65966
65967 2007-05-31  Eric Blake  <ebb9@byu.net>
65968
65969         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
65970         cross compiling.
65971
65972 2007-05-30  Eric Blake  <ebb9@byu.net>
65973         and Bruno Haible  <bruno@clisp.org>
65974
65975         Work around mingw test failures exposed by m4-1.4.9b.
65976         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
65977         * tests/test-unistd.c: Disable uid_t and git_t tests for the
65978         moment.
65979
65980 2007-05-30  Bruno Haible  <bruno@clisp.org>
65981
65982         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
65983         assuming that they are closed. Needed on HP-UX 11.
65984
65985 2007-05-29  Bruno Haible  <bruno@clisp.org>
65986
65987         Fix a problem with #include_next.
65988         * lib/dirent_.h: Split the double-inclusion guard.
65989         * lib/fcntl_.h: Likewise.
65990         * lib/float_.h: Likewise.
65991         * lib/iconv_.h: Likewise.
65992         * lib/inttypes_.h: Likewise.
65993         * lib/locale_.h: Likewise.
65994         * lib/math_.h: Likewise.
65995         * lib/netinet_in_.h: Likewise.
65996         * lib/search_.h: Likewise.
65997         * lib/signal_.h: Likewise.
65998         * lib/stdint_.h: Likewise.
65999         * lib/stdio_.h: Likewise.
66000         * lib/stdlib_.h: Likewise.
66001         * lib/string_.h: Likewise.
66002         * lib/sys_select_.h: Likewise.
66003         * lib/sys_socket_.h: Likewise.
66004         * lib/sys_stat_.h: Likewise.
66005         * lib/sys_time_.h: Likewise.
66006         * lib/sysexits_.h: Likewise.
66007         * lib/time_.h: Likewise.
66008         * lib/unistd_.h: Likewise.
66009         * lib/wchar_.h: Likewise.
66010         * lib/wctype_.h: Likewise.
66011
66012 2007-05-29  Bruno Haible  <bruno@clisp.org>
66013
66014         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
66015         for the moment.
66016
66017 2007-05-29  Bruno Haible  <bruno@clisp.org>
66018
66019         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
66020         invocation.
66021         Reported by Eric Blake.
66022
66023 2007-05-29  Bruno Haible  <bruno@clisp.org>
66024
66025         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
66026         compiling case.
66027
66028 2007-05-29  Eric Blake  <ebb9@byu.net>
66029             Bruno Haible  <bruno@clisp.org>
66030
66031         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
66032         cross compiles.
66033
66034 2007-05-28  Eric Blake  <ebb9@byu.net>
66035
66036         * modules/closein-tests (test_closein_LDADD): Support test on
66037         cygwin with libtool.
66038
66039 2007-05-28  Bruno Haible  <bruno@clisp.org>
66040
66041         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
66042         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
66043         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
66044         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
66045         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
66046         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
66047         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
66048         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
66049         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
66050
66051 2007-05-28  Eric Blake  <ebb9@byu.net>
66052
66053         Unconditionally include <config.h> in unit tests.
66054         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
66055         * tests/test-allocsa.c, tests/test-arcfour.c,
66056         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
66057         tests/test-array_list.c, tests/test-array_oset.c,
66058         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
66059         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
66060         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
66061         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
66062         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
66063         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
66064         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
66065         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
66066         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
66067         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
66068         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
66069         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
66070         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
66071         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
66072         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
66073         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
66074         test-md5.c, test-memmem.c, test-printf-posix.c,
66075         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
66076         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
66077         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
66078         test-strcasestr.c, test-striconv.c, test-striconveh.c,
66079         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
66080         test-vasnprintf-posix2.c, test-vasnprintf.c,
66081         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
66082         test-vfprintf-posix.c, test-vprintf-posix.c,
66083         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
66084         test-xvasprintf.c: Likewise.
66085
66086 2007-05-28  Bruno Haible  <bruno@clisp.org>
66087
66088         * gnulib-tool (func_import): Remember the --with-tests command-line
66089         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
66090         Reported by Eric Blake.
66091
66092 2007-05-28  Bruno Haible  <bruno@clisp.org>
66093
66094         * modules/ftell-tests: New file.
66095         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
66096         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
66097
66098         * lib/ftell.c: New file.
66099         * modules/ftell: New file.
66100         * m4/ftell.m4: New file.
66101         * doc/functions/ftell.texi: Update.
66102         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
66103         REPLACE_FTELL.
66104         * lib/stdio_.h (rpl_ftell): New declaration.
66105         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
66106         REPLACE_FTELL.
66107
66108 2007-05-28  Eric Blake  <ebb9@byu.net>
66109
66110         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
66111
66112 2007-05-28  Bruno Haible  <bruno@clisp.org>
66113
66114         * modules/fseek-tests: New file.
66115         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
66116         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
66117
66118         * lib/fseek.c: New file.
66119         * modules/fseek: New file.
66120         * m4/fseek.m4: New file.
66121         * doc/functions/fseek.texi: Update.
66122         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
66123         REPLACE_FSEEK.
66124         * lib/stdio_.h (rpl_fseek): New declaration.
66125         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
66126         REPLACE_FSEEK.
66127
66128 2007-05-28  Bruno Haible  <bruno@clisp.org>
66129
66130         * lib/stdio_.h (fflush): More comments.
66131
66132 2007-05-28  Bruno Haible  <bruno@clisp.org>
66133
66134         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
66135         runtime test.
66136
66137 2007-05-28  Eric Blake  <ebb9@byu.net>
66138
66139         Improve lseek module.
66140         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
66141         * lib/unistd_.h (lseek): Scale back link warning message.
66142         * tests/test-lseek.c: Beef up test.
66143         * tests/test-lseek.sh: Exercise more facets of lseek.
66144         Reported by Bruno Haible.
66145
66146 2007-05-28  Bruno Haible  <bruno@clisp.org>
66147
66148         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
66149         to define.
66150
66151 2007-05-27  Bruno Haible  <bruno@clisp.org>
66152
66153         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
66154
66155 2007-05-27  Bruno Haible  <bruno@clisp.org>
66156
66157         * modules/openmp: New file.
66158         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
66159         Noah Misch.
66160
66161 2007-05-26  Bruno Haible  <bruno@clisp.org>
66162
66163         * modules/chdir-long (Depends-on): Add fchdir.
66164         * modules/chdir-safer (Depends-on): Likewise.
66165         * modules/fts (Depends-on): Likewise.
66166         * modules/fts-lgpl (Depends-on): Likewise.
66167         * modules/openat (Depends-on): Likewise.
66168         * modules/savewd (Depends-on): Likewise.
66169
66170 2007-05-24  Eric Blake  <ebb9@byu.net>
66171
66172         Fix lseek on mingw.
66173         * modules/lseek: New module.
66174         * m4/lseek.m4: New file.
66175         * lib/lseek.c: New file.
66176         * modules/lseek-tests: New file.
66177         * tests/test-lseek.c: New file.
66178         * tests/test-lseek.sh: New file.
66179         * MODULES.html.sh: Document lseek module.
66180         * modules/fflush (Depends-on): Add lseek, fseeko.
66181         * modules/fseeko (Depends-on): Likewise.
66182         * modules/ftello (Depends-on): Likewise.
66183         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
66184         broken.
66185         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
66186         broken.
66187         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
66188         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
66189         * lib/ftello.c (rpl_ftello): Likewise.
66190         * tests/test-fseeko.c (main): Test this.
66191         * tests/test-fseeko.sh: Likewise.
66192         * tests/test-ftello.c (main): Likewise.
66193         * tests/test-ftello.sh: Likewise.
66194         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
66195         implies replacing fseek.
66196         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
66197         HAVE_FTELLO.
66198         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
66199         * modules/unistd (Makefile.am): Likewise.
66200         * lib/unistd_.h (lseek): Declare a replacement.
66201         * doc/functions/lseek.texi (lseek): Document this fix.
66202         * doc/functions/fseek.texi (fseek): Likewise.
66203         * doc/functions/ftell.texi (ftell): Likewise.
66204
66205 2007-05-24  Bruno Haible  <bruno@clisp.org>
66206
66207         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
66208         in the printed representation of a NaN.
66209         * tests/test-vasprintf-posix.c (test_function): Likewise.
66210         * tests/test-snprintf-posix.h (test_function): Likewise.
66211         * tests/test-sprintf-posix.h (test_function): Likewise.
66212         Reported by Eric Blake.
66213
66214 2007-05-23  Eric Blake  <ebb9@byu.net>
66215
66216         Fix fseeko/ftello on cygwin 1.5.24.
66217         * doc/functions/fseeko.texi (fseeko): Document the fix.
66218         * doc/functions/ftello.texi (ftello): Document the fix.
66219         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
66220         * doc/functions/stdout.text (stdout): New file.
66221         * doc/functions/stderr.text (stderr): New file.
66222         * doc/gnulib.texi (Function Substitutes): Use new files.
66223         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
66224         prior to 1.7.0.
66225         * tests/test-ftello.c (main): Likewise for ftello.
66226         * tests/test-fseeko.sh: New file.
66227         * tests/test-ftello.sh: New file.
66228         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
66229         with seekable stdin.
66230         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
66231         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
66232         (gl_REPLACE_FSEEKO): New macro.
66233         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
66234         * modules/fseeko (Files): Distribute fseeko.c.
66235         * modules/ftello (Files): Distribute ftello.c.
66236         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
66237         mode.
66238         * lib/ftello.c (rpl_ftello): New file.
66239         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
66240         fseeko, ftello.
66241         (gl_STDIN_LARGE_OFFSET): New macro.
66242         * modules/stdio (Makefile.am): Perform the replacement.
66243         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
66244
66245 2007-05-23  Bruno Haible  <bruno@clisp.org>
66246
66247         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
66248         GNULIB_POSIXCHECK is defined.
66249
66250 2007-05-21  Bruno Haible  <bruno@clisp.org>
66251
66252         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
66253         Check also the output for NaN arguments. When cross-compiling, guess
66254         no on IRIX.
66255         * lib/vasnprintf.c: Update comments.
66256         * tests/test-vasnprintf-posix.c (strisnan): New function.
66257         (test_function): Use it.
66258         * tests/test-vasprintf-posix.c (strisnan): New function.
66259         (test_function): Use it.
66260         * tests/test-snprintf-posix.h (strisnan): New function.
66261         (test_function): Use it.
66262         * tests/test-sprintf-posix.h (strisnan): New function.
66263         (test_function): Use it.
66264         Reported by Eric Blake.
66265
66266 2007-05-20  Bruno Haible  <bruno@clisp.org>
66267
66268         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
66269         numbers that fails on BeOS.
66270         * doc/functions/frexpl.texi: Update.
66271
66272 2007-05-20  Jim Meyering  <jim@meyering.net>
66273
66274         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
66275         forced upon us by glibc-2.6.
66276
66277 2007-05-20  Bruno Haible  <bruno@clisp.org>
66278
66279         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
66280         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
66281         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
66282         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
66283         NEED_PRINTF_INFINITE.
66284         (is_infinitel): New function.
66285         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
66286         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
66287         gl_PREREQ_VASNPRINTF_INFINITE.
66288         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
66289         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
66290         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
66291         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
66292         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
66293         gl_PREREQ_VASNPRINTF_INFINITE.
66294         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
66295         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66296         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66297         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66298         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66299         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66300         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66301         * doc/functions/fprintf.texi: Update.
66302         * doc/functions/printf.texi: Update.
66303         * doc/functions/snprintf.texi: Update.
66304         * doc/functions/sprintf.texi: Update.
66305         * doc/functions/vfprintf.texi: Update.
66306         * doc/functions/vprintf.texi: Update.
66307         * doc/functions/vsnprintf.texi: Update.
66308         * doc/functions/vsprintf.texi: Update.
66309
66310 2007-05-20  Bruno Haible  <bruno@clisp.org>
66311
66312         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
66313         was not found in libc.
66314         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
66315
66316 2007-05-20  Bruno Haible  <bruno@clisp.org>
66317
66318         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
66319         printed as "-nan" instead of "nan".
66320         * tests/test-vasprintf-posix.c (test_function): Likewise.
66321         * tests/test-snprintf-posix.h (test_function): Likewise.
66322         * tests/test-sprintf-posix.h (test_function): Likewise.
66323         Needed for HP-UX 11.
66324
66325 2007-05-20  Jim Meyering  <jim@meyering.net>
66326
66327         Fix buggy test for the fchownat-deref bug.
66328         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
66329         symlink required for the run-test.  Without it, this test would
66330         always declare that fchownat doesn't work, and client code would
66331         unnecessarily use the replacement function with fixed libc.
66332         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
66333         Reported by Greg Schafer.
66334
66335 2007-05-19  Bruno Haible  <bruno@clisp.org>
66336
66337         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
66338         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
66339         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
66340         Needed for IRIX 6.5 and Solaris 2.5.1.
66341
66342 2007-05-19  Bruno Haible  <bruno@clisp.org>
66343
66344         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
66345         (test_function): Skip tests involving -0.0 on platforms where
66346         -0.0 = 0.0.
66347         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
66348         (test_function): Skip tests involving -0.0 on platforms where
66349         -0.0 = 0.0.
66350         * tests/test-snprintf-posix.h (have_minus_zero): New function.
66351         (test_function): Skip tests involving -0.0 on platforms where
66352         -0.0 = 0.0.
66353         * tests/test-sprintf-posix.h (have_minus_zero): New function.
66354         (test_function): Skip tests involving -0.0 on platforms where
66355         -0.0 = 0.0.
66356         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
66357         tests.
66358         * tests/test-printf-posix.h (test_function): Likewise.
66359         * tests/test-printf-posix.output: Remove all -0.0 related results.
66360         Needed for IRIX 6.5.
66361
66362 2007-05-19  Bruno Haible  <bruno@clisp.org>
66363
66364         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
66365         printed as "nan0x7fffffff" instead of "nan".
66366         * tests/test-vasprintf-posix.c (test_function): Likewise.
66367         * tests/test-snprintf-posix.h (test_function): Likewise.
66368         * tests/test-sprintf-posix.h (test_function): Likewise.
66369         * tests/test-fprintf-posix.h (NaN): Remove macro.
66370         (test_function): Remove all NaN related tests.
66371         * tests/test-printf-posix.h (NaN): Remove macro.
66372         (test_function): Remove all NaN related tests.
66373         * tests/test-printf-posix.output: Remove all NaN related results.
66374         Needed for IRIX 6.5.
66375
66376 2007-05-19  Bruno Haible  <bruno@clisp.org>
66377
66378         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
66379         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
66380
66381 2007-05-19  Bruno Haible  <bruno@clisp.org>
66382
66383         * lib/float_.h: New file.
66384         * m4/float_h.m4: New file.
66385         * modules/float: New file.
66386         * modules/isnanl (Dependencies): Add float.
66387         * modules/isnanl-nolibm (Dependencies): Likewise.
66388         * modules/mathl (Dependencies): Likewise.
66389         * modules/printf-frexpl (Dependencies): Likewise.
66390         * modules/signbit (Dependencies): Likewise.
66391         * modules/vasnprintf (Dependencies): Likewise.
66392         * doc/headers/float.texi: Update.
66393
66394 2007-05-19  Jim Meyering  <jim@meyering.net>
66395
66396         * lib/utimens.c (gl_futimens): Rename from futimens,
66397         now that glibc-2.6 declares futimens.
66398         * lib/utimens.h: Likewise.
66399
66400 2007-05-19  Bruno Haible  <bruno@clisp.org>
66401
66402         Avoid test failures on mingw.
66403         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
66404         * tests/test-printf-posix.sh: Likewise.
66405         * tests/test-vfprintf-posix.sh: Likewise.
66406         * tests/test-vprintf-posix.sh: Likewise.
66407
66408 2007-05-19  Bruno Haible  <bruno@clisp.org>
66409
66410         Fix *printf result for NaN, Inf, -0.0 on mingw.
66411         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
66412         * lib/vasnprintf.c: Include math.h and isnan.h.
66413         (is_infinite_or_zero): New function.
66414         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
66415         values in the %f, %F, %e, %E, %g, %G directives.
66416         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
66417         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
66418         gl_PRINTF_INFINITE and test its result. Invoke
66419         gl_PREREQ_VASNPRINTF_INFINITE.
66420         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
66421         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66422         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66423         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66424         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66425         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66426         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66427         * doc/functions/fprintf.texi: Update.
66428         * doc/functions/printf.texi: Update.
66429         * doc/functions/snprintf.texi: Update.
66430         * doc/functions/sprintf.texi: Update.
66431         * doc/functions/vfprintf.texi: Update.
66432         * doc/functions/vprintf.texi: Update.
66433         * doc/functions/vsnprintf.texi: Update.
66434         * doc/functions/vsprintf.texi: Update.
66435
66436 2007-05-19  Bruno Haible  <bruno@clisp.org>
66437
66438         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
66439         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
66440         Instead of multiplying with 10^k, set extra_zeroes to k.
66441         (scale10_round_long_double): Remove function.
66442
66443 2007-05-18  Bruno Haible  <bruno@clisp.org>
66444
66445         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
66446         introduced on 2007-05-06.
66447
66448 2007-05-18  Bruno Haible  <bruno@clisp.org>
66449
66450         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
66451         %g directives.
66452         * tests/test-vasprintf-posix.c (test_function): Likewise.
66453         * tests/test-snprintf-posix.h (test_function): Likewise.
66454         * tests/test-sprintf-posix.h (test_function): Likewise.
66455
66456 2007-05-18  Bruno Haible  <bruno@clisp.org>
66457
66458         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
66459         (strmatch): New function.
66460         (test_function): Test the %f directive on numbers of various exponents.
66461         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
66462         (strmatch): New function.
66463         (test_function): Test the %f directive on numbers of various exponents.
66464         * tests/test-snprintf-posix.h (strmatch): New function.
66465         (test_function): Test the %f directive on numbers of various exponents.
66466         * tests/test-sprintf-posix.h (strmatch): New function.
66467         (test_function): Test the %f directive on numbers of various exponents.
66468         * tests/test-snprintf-posix.c (SIZEOF): New macro.
66469         * tests/test-sprintf-posix.c (SIZEOF): New macro.
66470         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
66471         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
66472
66473 2007-05-18  Bruno Haible  <bruno@clisp.org>
66474
66475         Add support for 'long double' number output.
66476         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
66477         * lib/vasnprintf.c: Include math.h and float+.h.
66478         (mp_limb_t): New type.
66479         (GMP_LIMB_BITS): New macro.
66480         (mp_twolimb_t): New type.
66481         (GMP_TWOLIMB_BITS): New macro.
66482         (mpn_t): New type.
66483         (multiply, divide, convert_to_decimal, decode_long_double,
66484         scale10_round_long_double, scale10_round_decimal_long_double,
66485         floorlog10l): New functions.
66486         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
66487         for the %f, %F, %e, %E, %g, %G directives.
66488         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
66489         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
66490         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
66491         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
66492         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
66493         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66494         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66495         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66496         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66497         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66498         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66499         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
66500         * modules/snprintf-posix (Depends-on): Likewise.
66501         * modules/sprintf-posix (Depends-on): Likewise.
66502         * modules/vasnprintf-posix (Depends-on): Likewise.
66503         * modules/vasprintf-posix (Depends-on): Likewise.
66504         * modules/vfprintf-posix (Depends-on): Likewise.
66505         * modules/vsnprintf-posix (Depends-on): Likewise.
66506         * modules/vsprintf-posix (Depends-on): Likewise.
66507         * modules/vasnprintf (Files): Add lib/float+.h.
66508         * doc/functions/fprintf.texi: Update.
66509         * doc/functions/printf.texi: Update.
66510         * doc/functions/snprintf.texi: Update.
66511         * doc/functions/sprintf.texi: Update.
66512         * doc/functions/vfprintf.texi: Update.
66513         * doc/functions/vprintf.texi: Update.
66514         * doc/functions/vsnprintf.texi: Update.
66515         * doc/functions/vsprintf.texi: Update.
66516
66517 2007-05-18  Bruno Haible  <bruno@clisp.org>
66518
66519         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
66520
66521 2007-05-18  Bruno Haible  <bruno@clisp.org>
66522
66523         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
66524         for printing 64-bit integers. Needed for mingw.
66525
66526 2007-05-18  Bruno Haible  <bruno@clisp.org>
66527
66528         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
66529         gl_FUNC_FREXPL_WORKS.
66530         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
66531
66532 2007-05-18  Bruno Haible  <bruno@clisp.org>
66533
66534         * modules/frexpl-nolibm-tests: New file.
66535
66536         * modules/frexpl-nolibm: New file.
66537         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
66538
66539 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
66540
66541         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
66542         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
66543         GCC 4.2, which otherwise issues a lot of warnings.
66544         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
66545         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
66546         Likewise.
66547         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
66548         * modules/iconv_open (iconv.h): Likewise.
66549         * modules/locale (locale.h): Likewise.
66550         * modules/netinet_in (netinet/in.h): Likewise.
66551         * modules/sys_select (sys_select.h): Likewise.
66552         * modules/sys_socket (sys/socket.h): Likewise.
66553         * modules/sys_stat (sys/stat.h): Likewise.
66554         * modules/sysexits (sysexits.h): Likewise.
66555         * modules/unistd (unistd.h): Likewise.
66556
66557 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66558
66559         * modules/closein-tests (Makefile.am): Distribute
66560         `test-closein.sh'.
66561
66562 2007-05-17  Bruno Haible  <bruno@clisp.org>
66563
66564         * tests/test-printf-posix.output: Renamed from
66565         tests/test-fprintf-posix.out.
66566         * modules/fprintf-posix-tests: Update.
66567         * modules/printf-posix-tests: Update.
66568         * modules/vfprintf-posix-tests: Update.
66569         * modules/vprintf-posix-tests: Update.
66570         * tests/test-fprintf-posix.sh: Update.
66571         * tests/test-printf-posix.sh: Update.
66572         * tests/test-vfprintf-posix.sh: Update.
66573         * tests/test-vprintf-posix.sh: Update.
66574         Reported by Ralf Wildenhues.
66575
66576 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
66577
66578         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
66579         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
66580         GCC 4.2, which otherwise issues a lot of warnings.
66581         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
66582         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
66583         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
66584         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
66585         it should no longer be needed.
66586         * lib/string_.h: Likewise.
66587         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
66588         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
66589         * modules/inttypes (inttypes.h): Likewise.
66590         * modules/math (math.h): Likewise.
66591         * modules/search (search.h): Likewise.
66592         * modules/signal (signal.h): Likewise.
66593         * modules/stdint (stdint.h): Likewise.
66594         * modules/stdio (stdio.h): Likewise.
66595         * modules/stdlib (stdlib.h): Likewise.
66596         * modules/string (string.h): Likewise.
66597         * modules/sys_time (sys/time.h): Likewise.
66598         * modules/time (time.h): Likewise.
66599         * modules/wchar (wchar.h): Likewise.
66600         * modules/wctype (wtype.h): Likewise.
66601
66602 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
66603
66604         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
66605
66606 2007-05-13  Bruno Haible  <bruno@clisp.org>
66607
66608         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
66609         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
66610         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
66611         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
66612         (gl_PREREQ_STRTOK_R): Don't require it here.
66613
66614 2007-05-13  Bruno Haible  <bruno@clisp.org>
66615
66616         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
66617         when used in C++ mode.
66618
66619 2007-05-12  Bruno Haible  <bruno@clisp.org>
66620
66621         * lib/linebuffer.h: Tweak doc.
66622         * lib/linebuffer.c: Likewise.
66623
66624 2007-05-12  James Youngman  <jay@gnu.org>
66625
66626         * lib/linebuffer.c (readlinebuffer_delim): New function,
66627         like readlinebuffer, but use a caller-specified delimiter.
66628         (readlinebuffer): Just call readlinebuffer_delim with '\n'
66629         as the delimiter.
66630         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
66631
66632 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
66633
66634         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
66635         * modules/openat (Files): Remove openat-die.c.
66636         (Depends-on): Add openat-die.
66637         * modules/openat-die: New module.
66638
66639 2007-05-06  Bruno Haible  <bruno@clisp.org>
66640
66641         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
66642         Update with info about Cygwin.
66643         * doc/functions/fprintf.texi: Update.
66644         * doc/functions/printf.texi: Update.
66645         * doc/functions/snprintf.texi: Update.
66646         * doc/functions/sprintf.texi: Update.
66647         * doc/functions/vfprintf.texi: Update.
66648         * doc/functions/vprintf.texi: Update.
66649         * doc/functions/vsnprintf.texi: Update.
66650         * doc/functions/vsprintf.texi: Update.
66651         Reported by Eric Blake.
66652
66653 2007-05-06  Bruno Haible  <bruno@clisp.org>
66654
66655         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
66656         padding ourselves for the floating-point directives.
66657         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
66658         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
66659         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
66660         gl_PRINTF_FLAG_ZERO and test its result. Invoke
66661         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
66662         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66663         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
66664         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66665         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66666         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66667         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66668         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66669         * tests/test-snprintf-posix.h (test_function): Also check the width
66670         and some flags in the %f directive.
66671         * tests/test-sprintf-posix.h (test_function): Likewise.
66672         * tests/test-vasnprintf-posix.c (test_function): Likewise.
66673         * tests/test-vasprintf-posix.c (test_function): Likewise.
66674         * doc/functions/fprintf.texi: Update.
66675         * doc/functions/printf.texi: Update.
66676         * doc/functions/snprintf.texi: Update.
66677         * doc/functions/sprintf.texi: Update.
66678         * doc/functions/vfprintf.texi: Update.
66679         * doc/functions/vprintf.texi: Update.
66680         * doc/functions/vsnprintf.texi: Update.
66681         * doc/functions/vsprintf.texi: Update.
66682
66683 2007-05-06  Bruno Haible  <bruno@clisp.org>
66684
66685         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
66686         pass the ' flag character to sprintf or snprintf.
66687         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
66688         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
66689         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
66690         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
66691         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
66692         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66693         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
66694         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66695         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66696         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66697         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66698         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66699         * tests/test-snprintf-posix.h (test_function): Also check the grouping
66700         flag.
66701         * tests/test-sprintf-posix.h (test_function): Likewise.
66702         * tests/test-vasnprintf-posix.c (test_function): Likewise.
66703         * tests/test-vasprintf-posix.c (test_function): Likewise.
66704         * doc/functions/fprintf.texi: Update.
66705         * doc/functions/printf.texi: Update.
66706         * doc/functions/snprintf.texi: Update.
66707         * doc/functions/sprintf.texi: Update.
66708         * doc/functions/vfprintf.texi: Update.
66709         * doc/functions/vprintf.texi: Update.
66710         * doc/functions/vsnprintf.texi: Update.
66711         * doc/functions/vsprintf.texi: Update.
66712
66713 2007-05-01  Bruno Haible  <bruno@clisp.org>
66714
66715         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
66716
66717 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
66718
66719         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
66720         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
66721
66722 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
66723
66724         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
66725         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
66726         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
66727
66728 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
66729
66730         * lib/argp-help.c (struct hol_entry): New member `ord'.
66731         (HOL_ENTRY_PTRCMP): Use ord for comparison
66732         (hol_sort): Initialize ord.
66733
66734 2007-05-01  Bruno Haible  <bruno@clisp.org>
66735
66736         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
66737         Reported by Eric Blake.
66738         * doc/gnulib.texi (Function Substitutes): Update.
66739
66740 2007-05-01  Bruno Haible  <bruno@clisp.org>
66741
66742         * doc/functions.texi: Remove file, now redundant through
66743         doc/functions/*.texi.
66744
66745 2007-05-01  Bruno Haible  <bruno@clisp.org>
66746
66747         * modules/argp (Depends-on): Add sleep.
66748
66749 2007-05-01  Bruno Haible  <bruno@clisp.org>
66750
66751         * modules/sleep-tests: New file.
66752         * tests/test-sleep.c: New file.
66753
66754         * modules/sleep: New file.
66755         * lib/sleep.c: New file.
66756         * m4/sleep.m4: New file.
66757         * lib/unistd_.h (sleep): New declaration.
66758         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
66759         HAVE_SLEEP.
66760         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
66761         * doc/functions/sleep.texi: Document the sleep module.
66762
66763 2007-05-01  Bruno Haible  <bruno@clisp.org>
66764
66765         * lib/sigprocmask.h: Remove file.
66766         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
66767         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
66768         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
66769         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
66770         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
66771         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
66772         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
66773         HAVE_SIGSET_T as a shell variable.
66774         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
66775         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
66776         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
66777         (Depends-on): Add signal. Remove verify.
66778         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
66779         (Include): Mention <signal.h> instead of sigprocmask.h.
66780         * NEWS: Mention the change.
66781         * lib/fatal-signal.c: Don't include sigprocmask.h.
66782
66783 2007-05-01  Bruno Haible  <bruno@clisp.org>
66784
66785         * modules/signal: New file.
66786         * lib/signal_.h: New file.
66787         * m4/signal_h.m4: New file.
66788
66789 2007-05-01  Bruno Haible  <bruno@clisp.org>
66790
66791         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
66792         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
66793         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
66794         HAVE_WCTYPE_CTMP_BUG into wctype.h.
66795
66796 2007-05-01  Bruno Haible  <bruno@clisp.org>
66797
66798         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
66799         configure time.
66800         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
66801         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
66802         * modules/sys_stat (Makefile.am): Substitute their values into
66803         sys/stat.h.
66804
66805 2007-05-01  Bruno Haible  <bruno@clisp.org>
66806
66807         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
66808         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
66809         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
66810
66811 2007-05-01  Bruno Haible  <bruno@clisp.org>
66812
66813         * doc/header/assert.texi: Undo last change: don't mention the gnulib
66814         'assert' module here.
66815
66816 2007-05-01  Bruno Haible  <bruno@clisp.org>
66817
66818         * doc/functions/*.texi: New files.
66819         * doc/functions/google-ranking.txt: New file.
66820         * doc/gnulib.texi (Function Substitutes): New chapter.
66821         (ctime, inet_ntoa): Remove sections.
66822         * doc/ctime.texi: Remove file.
66823         * doc/inet_ntoa.texi: Remove file.
66824         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
66825         dependencies.
66826         (%.info): New rule, specifying a --reference-limit.
66827
66828 2007-05-01  Bruno Haible  <bruno@clisp.org>
66829
66830         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
66831
66832 2007-05-01  Bruno Haible  <bruno@clisp.org>
66833
66834         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
66835         the portability of 'mkdir' to mingw systems.
66836
66837 2007-05-01  Bruno Haible  <bruno@clisp.org>
66838
66839         * doc/headers/google-ranking.txt: New file.
66840
66841 2007-04-30  Eric Blake  <ebb9@byu.net>
66842
66843         Prefer fseeko to fseek.
66844         * modules/getpass (Depends-on): Add fseeko.
66845         * lib/getpass.c (getpass): Use fseeko, not fseek.
66846
66847 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
66848
66849         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
66850         assumes the sorting is stable, while most qsort implementations
66851         are not.  Use argument addresses to ensure they never compare as
66852         equal.
66853
66854         * tests/test-argp-2.sh (usage-indent test): Fix output
66855         (func_compare): Restore diff options
66856         * tests/test-argp.c: Restore #include "progname.h"
66857
66858 2007-04-29  Bruno Haible  <bruno@clisp.org>
66859
66860         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
66861         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
66862         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
66863         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66864         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
66865         (configure.ac): Define CHECK_SNPRINTF_POSIX.
66866         (TESTS, check_PROGRAMS): Add test-snprintf.
66867         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
66868         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
66869         (TESTS, check_PROGRAMS): Add test-vsnprintf.
66870         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
66871         assertions that fail on HP-UX, OSF/1, or IRIX.
66872         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
66873
66874 2007-04-29  Bruno Haible  <bruno@clisp.org>
66875
66876         * MODULES.html.sh (posix_functions): Remove 'contents'.
66877
66878 2007-04-29  Karl Berry  <karl@gnu.org>
66879
66880         * config/srclist.txt (gendocs_template_min): new entry.
66881
66882 2007-04-29  Bruno Haible  <bruno@clisp.org>
66883
66884         Work around fpurge bug on BSD systems.
66885         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
66886         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
66887         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
66888         fpurge to rpl_fpurge if the system already has this function.
66889         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
66890         the case where the system already has this function. Correct invariants
66891         on BSD systems.
66892         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
66893         BSD systems.
66894
66895 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
66896
66897         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
66898         proposed by Sven Verdoolaege.
66899
66900         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
66901         options.
66902         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
66903         (usage and help tests): Update
66904
66905 2007-04-29  Bruno Haible  <bruno@clisp.org>
66906
66907         * tests/test-fflush.c (main): Use a file of size 17, not 10.
66908         Print more information in case of failure. Disable a test on BeOS.
66909
66910 2007-04-29  Bruno Haible  <bruno@clisp.org>
66911
66912         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
66913         This helps debugging on systems on which no gdb is available.
66914
66915 2007-04-29  Bruno Haible  <bruno@clisp.org>
66916
66917         * lib/freading.h: Improve comments.
66918         * lib/fwriting.h: Likewise.
66919         * tests/test-freading.c (main): Don't check freading immediately after
66920         repositioning. Needed for glibc.
66921
66922 2007-04-29  Bruno Haible  <bruno@clisp.org>
66923
66924         * lib/freading.c (freading): Trivial simplification.
66925
66926 2007-04-28  Bruno Haible  <bruno@clisp.org>
66927
66928         * tests/test-fwriting.c (main): Also test the interaction between
66929         fflush and fwriting.
66930         * modules/fwriting-tests (Depends-on): Add fflush.
66931
66932         * tests/test-freading.c (main): Also test the interaction between
66933         fflush and freading.
66934         * modules/freading-tests (Depends-on): Add fflush.
66935
66936 2007-04-28  Bruno Haible  <bruno@clisp.org>
66937
66938         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
66939         fseeko and ftello.
66940         Suggested by Eric Blake.
66941
66942 2007-04-28  Jim Meyering  <jim@meyering.net>
66943
66944         Avoid false-negative in gl_STDINT_H's C99 conformance test.
66945         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
66946         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
66947
66948 2007-04-27  Eric Blake  <ebb9@byu.net>
66949
66950         * doc/headers/assert.texi (assert.h): Document assert module use.
66951
66952 2007-04-27  Bruno Haible  <bruno@clisp.org>
66953
66954         * doc/headers/*.texi: New files.
66955         * doc/gnulib.texi (Header File Substitutes): New chapter.
66956         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
66957         dependencies.
66958         (standards.info ,standards.html, standards.dvi): Update dependencies.
66959         (mostlyclean, clean): New targets.
66960
66961 2007-04-27  Bruno Haible  <bruno@clisp.org>
66962
66963         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
66964         * modules/sysexits (Files, Makefile.am): Update.
66965
66966         * lib/sys_socket_.h: Renamed from lib/socket_.h.
66967         * modules/sys_socket (Files, Makefile.am): Update.
66968
66969         * lib/sys_stat_.h: Renamed from lib/stat_.h.
66970         * modules/sys_stat (Files, Makefile.am): Update.
66971
66972 2007-04-27  Eric Blake  <ebb9@byu.net>
66973
66974         * lib/freading.h: Improve comments.
66975         * lib/fwriting.h: Likewise.
66976         * lib/fflush.c: Likewise.
66977
66978         Fix closein for mingw.
66979         * modules/closein-tests: Add tests for closein.
66980         * tests/test-closein.c: New file.
66981         * tests/test-closein.sh: Likewise.
66982         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
66983         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
66984
66985 2007-04-27  Bruno Haible  <bruno@clisp.org>
66986
66987         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
66988         version is < 6.
66989         * lib/math_.h [__DECC]: Likewise.
66990         * lib/stdio_.h [__DECC]: Likewise.
66991         * lib/stdlib_.h [__DECC]: Likewise.
66992         * lib/string_.h [__DECC]: Likewise.
66993         * lib/time_.h [__DECC]: Likewise.
66994         * lib/wchar_.h [__DECC]: Likewise.
66995         * lib/wctype_.h [__DECC]: Likewise.
66996
66997 2007-04-27  Bruno Haible  <bruno@clisp.org>
66998
66999         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
67000
67001 2007-04-27  Bruno Haible  <bruno@clisp.org>
67002
67003         * lib/fflush.c: Add comments.
67004         * modules/fpurge-tests (Depends-on): Add fflush.
67005         * modules/freadable-tests (Depends-on): Likewise.
67006         * modules/fwritable-tests (Depends-on): Likewise.
67007
67008 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
67009
67010         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
67011         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
67012         Report by Bruno Haible <bruno@clisp.org>.
67013
67014 2007-04-26  Eric Blake  <ebb9@byu.net>
67015
67016         Fix fflush on mingw.
67017         * modules/fflush (Depends-on): Add freading.
67018         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
67019         but unread data.
67020
67021 2007-04-26  Eric Blake  <ebb9@byu.net>
67022         and Bruno Haible  <bruno@clisp.org>
67023
67024         Implement freading and fwriting.
67025         * lib/freading.c: New file.
67026         * lib/freading.h: Likewise.
67027         * m4/freading.m4: Likewise.
67028         * modules/freading: Likewise.
67029         * modules/freading-tests: Likewise.
67030         * tests/test-freading.c: Likewise.
67031         * lib/fwriting.c: New file.
67032         * lib/fwriting.h: Likewise.
67033         * m4/fwriting.m4: Likewise.
67034         * modules/fwriting: Likewise.
67035         * modules/fwriting-tests: Likewise.
67036         * tests/test-fwriting.c: Likewise.
67037         * MODULES.html.sh (File stream based Input/Output): Mention them.
67038
67039 2007-04-26  Bruno Haible  <bruno@clisp.org>
67040
67041         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
67042         'long' when we assume it.
67043         Suggested by Eric Blake.
67044
67045 2007-04-26  Bruno Haible  <bruno@clisp.org>
67046
67047         Ensure fseeko, ftello are declared on glibc systems.
67048         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
67049         * modules/fseeko (configure.ac-early): Likewise.
67050         * modules/ftello (configure.ac-early): Likewise.
67051         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
67052         AC_FUNC_FSEEKO for this.
67053         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
67054         (gl_CHECK_FSEEKO): Remove macro.
67055
67056 2007-04-26  Bruno Haible  <bruno@clisp.org>
67057
67058         * tests/test-fflush.c (main): Also check the ftell result after
67059         fflush and fseek/fseeko.
67060         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
67061         file descriptor position cache in the stream.
67062         * lib/fseeko.c (rpl_fseeko): Likewise.
67063
67064 2007-04-26  Bruno Haible  <bruno@clisp.org>
67065
67066         * modules/fflush-tests (Depends-on): Add fseeko.
67067
67068 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
67069             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67070
67071         * lib/argz_.h: ensure error_t definition is obtained in same
67072         mechanism system argz.h would have.
67073         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
67074         argz facilities are known bad.  Err on the side of caution if
67075         cross-compiling.
67076
67077 2007-04-25  Eric Blake  <ebb9@byu.net>
67078
67079         * lib/fpurge.c (includes): Use stdlib.h for free.
67080         * tests/test-fflush.c (main): Also test fflush-fseeko.
67081
67082 2007-04-25  Bruno Haible  <bruno@clisp.org>
67083
67084         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
67085         * lib/fseeko.c: New file.
67086         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
67087         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
67088         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
67089         gl_FUNC_FSEEKO.
67090         (gl_FUNC_FSEEKO): Invoke it.
67091         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
67092         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
67093         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
67094
67095 2007-04-25  Bruno Haible  <bruno@clisp.org>
67096
67097         * modules/fflush (Depends-on): Add ftello.
67098
67099 2007-04-25  Bruno Haible  <bruno@clisp.org>
67100
67101         * modules/ftello-tests: New file.
67102         * tests/test-ftello.c: New file.
67103
67104         * modules/ftello: New file.
67105         * m4/ftello.m4: New file.
67106         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
67107         HAVE_FTELLO.
67108         * lib/stdio_.h (ftello): New declaration.
67109         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
67110         HAVE_FTELLO.
67111
67112 2007-04-25  Bruno Haible  <bruno@clisp.org>
67113
67114         * modules/fseeko-tests: New file.
67115         * tests/test-fseeko.c: New file.
67116
67117         * modules/fseeko: New file.
67118         * m4/fseeko.m4: New file.
67119         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
67120         HAVE_FSEEKO.
67121         * lib/stdio_.h (fseeko): New declaration.
67122         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
67123         HAVE_FSEEKO.
67124
67125 2007-04-25  Bruno Haible  <bruno@clisp.org>
67126
67127         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
67128
67129 2007-04-25  Bruno Haible  <bruno@clisp.org>
67130
67131         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
67132         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
67133         * tests/test-unistd.c: Likewise.
67134         * tests/test-fcntl.c: Likewise.
67135
67136 2007-04-23  Eric Blake  <ebb9@byu.net>
67137
67138         * lib/fflush.c: Fix missing include.
67139         Reported by Bruno Haible.
67140
67141 2007-04-23  Bruno Haible  <bruno@clisp.org>
67142
67143         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
67144         Reported by Eric Blake.
67145
67146 2007-04-23  Bruno Haible  <bruno@clisp.org>
67147
67148         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
67149
67150 2007-04-23  Bruno Haible  <bruno@clisp.org>
67151
67152         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
67153
67154 2007-04-23  Bruno Haible  <bruno@clisp.org>
67155
67156         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
67157         Needed on HP-UX 11.
67158
67159 2007-04-16  Eric Blake  <ebb9@byu.net>
67160
67161         Make fflush rely on fpurge.
67162         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
67163         open coding all variants.
67164         * modules/fflush (Depends-on): Add fpurge and unistd.
67165         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
67166         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
67167
67168         Fix --with-tests compilation on cygwin.
67169         * modules/argmatch-tests (Makefile.am): List gnulib library first
67170         in LDADD.
67171         * modules/argp-tests (Makefile.am): Likewise.
67172         * modules/array-list-tests (Makefile.am): Likewise.
67173         * modules/array-oset-tests (Makefile.am): Likewise.
67174         * modules/avltree-list-tests (Makefile.am): Likewise.
67175         * modules/avltree-oset-tests (Makefile.am): Likewise.
67176         * modules/avltreehash-list-tests (Makefile.am): Likewise.
67177         * modules/carray-list-tests (Makefile.am): Likewise.
67178         * modules/dirname-tests (Makefile.am): Likewise.
67179         * modules/frexp-tests (Makefile.am): Likewise.
67180         * modules/isnanl-tests (Makefile.am): Likewise.
67181         * modules/linked-list-tests (Makefile.am): Likewise.
67182         * modules/linkedhash-list-tests (Makefile.am): Likewise.
67183         * modules/lock-tests (Makefile.am): Likewise.
67184         * modules/rbtree-list-tests (Makefile.am): Likewise.
67185         * modules/rbtree-oset-tests (Makefile.am): Likewise.
67186         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
67187         * modules/tls-tests (Makefile.am): Likewise.
67188         * modules/tsearch-tests (Makefile.am): Likewise.
67189         * modules/xvasprintf-tests (Makefile.am): Likewise.
67190
67191         Fix fpurge for cygwin.
67192         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
67193         value.
67194         * modules/fpurge-tests (Depends-on): Clean up trash.
67195
67196 2007-04-16  Simon Josefsson  <simon@josefsson.org>
67197
67198         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
67199
67200         * m4/autobuild.m4: Re-indent.
67201
67202 2007-04-13  Bruno Haible  <bruno@clisp.org>
67203
67204         * modules/fpurge-tests: New file.
67205         * tests/test-fpurge.c: New file.
67206
67207         * modules/fpurge: New file.
67208         * lib/fpurge.h: New file.
67209         * lib/fpurge.c: New file.
67210         * m4/fpurge.m4: New file.
67211
67212 2007-04-13  Bruno Haible  <bruno@clisp.org>
67213
67214         * modules/fbufmode-tests: New file.
67215         * tests/test-fbufmode.c: New file.
67216
67217         * modules/fbufmode: New file.
67218         * lib/fbufmode.h: New file.
67219         * lib/fbufmode.c: New file.
67220         * m4/fbufmode.m4: New file.
67221
67222 2007-04-13  Bruno Haible  <bruno@clisp.org>
67223
67224         * modules/fwritable-tests: New file.
67225         * tests/test-fwritable.c: New file.
67226
67227         * modules/fwritable: New file.
67228         * lib/fwritable.h: New file.
67229         * lib/fwritable.c: New file.
67230         * m4/fwritable.m4: New file.
67231
67232 2007-04-13  Bruno Haible  <bruno@clisp.org>
67233
67234         * modules/freadable-tests: New file.
67235         * tests/test-freadable.c: New file.
67236
67237         * modules/freadable: New file.
67238         * lib/freadable.h: New file.
67239         * lib/freadable.c: New file.
67240         * m4/freadable.m4: New file.
67241
67242 2007-04-13  Bruno Haible  <bruno@clisp.org>
67243
67244         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
67245         MOSTLYCLEANFILES.
67246
67247 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
67248
67249         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
67250         gzip bootstrap.conf to avoid dragging in i18n machinery.
67251         (gnulib_tool_option): Use it.
67252
67253 2007-04-13  Bruno Haible  <bruno@clisp.org>
67254
67255         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
67256         %F directives.
67257         * tests/test-vasprintf-posix.c (test_function): Likewise.
67258         * tests/test-snprintf-posix.h (test_function): Likewise.
67259         * tests/test-sprintf-posix.h (test_function): Likewise.
67260         * tests/test-fprintf-posix.h (test_function): Likewise.
67261         * tests/test-printf-posix.h (test_function): Likewise.
67262         * tests/test-fprintf-posix.out: Likewise.
67263
67264 2007-04-13  Bruno Haible  <bruno@clisp.org>
67265
67266         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
67267         * modules/tls-tests (configure.ac): Likewise.
67268         Reported by Arto C. Nirkko <anirkko@insel.ch>.
67269
67270 2007-04-13  Bruno Haible  <bruno@clisp.org>
67271
67272         * lib/tls.c (glthread_tls_get): Fix return type.
67273         Patch by Arto C. Nirkko <anirkko@insel.ch>.
67274
67275 2007-04-12  Eric Blake  <ebb9@byu.net>
67276
67277         * modules/gettime (Depends-on): Remove gettime.
67278         Reported by Dmitry V. Levin.
67279
67280 2007-04-12  Bruno Haible  <bruno@clisp.org>
67281
67282         * modules/fflush (Include): Mention <stdio.h>.
67283         * modules/strtoimax (Include): Mention <inttypes.h>.
67284         * modules/strtoumax (Include): Likewise.
67285
67286 2007-04-12  Eric Blake  <ebb9@byu.net>
67287
67288         * .cvsignore: New file.
67289         * .gitignore: Likewise.
67290
67291 2007-04-12  Bruno Haible  <bruno@clisp.org>
67292
67293         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
67294         not before, since $(LDADD) often contains libgnu.a.
67295         * modules/striconv-tests (test_striconv_LDADD): Likewise.
67296         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
67297         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
67298         Needed on Cygwin.
67299
67300 2007-04-12  Eric Blake  <ebb9@byu.net>
67301
67302         Work around glibc's failure to flush stdin on fclose.
67303         * lib/closein.c (close_stdin): Flush stdin before closing.
67304
67305         Work around glibc's failure to reset seekable stdin on exit.
67306         * modules/closein: New module.
67307         * lib/closein.c: New file.
67308         * lib/closein.h: Likewise.
67309         * m4/closein.m4: Likewise.
67310         * MODULES.html.sh (File stream based Input/Output): Document it.
67311
67312 2007-04-12  Simon Josefsson  <simon@josefsson.org>
67313
67314         * gnulib-tool: Rename generated 'autobuild' script to
67315         'do-autobuild' in --create-megatestdir output.
67316
67317         * doc/gnulib.texi (Build robot for gnulib): Fix.
67318
67319 2007-04-12  Simon Josefsson  <simon@josefsson.org>
67320
67321         * modules/sysexits (Depends-on): Add absolute-header.
67322
67323 2007-04-12  Eric Blake  <ebb9@byu.net>
67324
67325         No need to preserve errno on success.
67326         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
67327         Reported by Bruno Haible.
67328
67329 2007-04-12  Simon Josefsson  <simon@josefsson.org>
67330
67331         * MODULES.html.sh (Support for maintaining and releasing
67332         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
67333
67334 2007-04-12  Simon Josefsson  <simon@josefsson.org>
67335
67336         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
67337
67338 2007-04-12  Simon Josefsson  <simon@josefsson.org>
67339
67340         * modules/autobuild: New module.
67341
67342         * m4/autobuild.m4: New file.
67343
67344 2007-04-11  Bruno Haible  <bruno@clisp.org>
67345
67346         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
67347         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
67348         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
67349         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
67350         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
67351         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67352         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67353         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
67354         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67355         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67356         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
67357         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67358         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67359         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
67360         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67361         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67362         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
67363         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67364         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67365         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
67366         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67367         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67368         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
67369         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67370         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67371         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
67372         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67373         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67374         Reported by Eric Blake.
67375
67376 2007-04-11  Bruno Haible  <bruno@clisp.org>
67377
67378         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
67379
67380 2007-04-10  Bruno Haible  <bruno@clisp.org>
67381
67382         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
67383         for NaN and Infinity. Needed on FreeBSD 6.1.
67384         * tests/test-vasnprintf-posix.c (test_function): Undo last change
67385         regarding results for "%010a" of Infinity and NaN.
67386         * tests/test-vasprintf-posix.c (test_function): Likewise.
67387         * tests/test-snprintf-posix.h (test_function): Likewise.
67388         * tests/test-sprintf-posix.h (test_function): Likewise.
67389         * tests/test-fprintf-posix.h (test_function): Likewise.
67390         * tests/test-printf-posix.h (test_function): Likewise.
67391         * tests/test-fprintf-posix.out: Likewise.
67392
67393 2007-04-10  Bruno Haible  <bruno@clisp.org>
67394
67395         * modules/locale-tests: New file.
67396         * tests/test-locale.c: New file.
67397
67398         * modules/locale: New file.
67399         * lib/locale_.h: New file.
67400         * m4/locale_h.m4: New file.
67401
67402 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
67403             Bruno Haible  <bruno@clisp.org>
67404
67405         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
67406         be determined, test for availability of the copysignf, copysign,
67407         copysignl functions.
67408         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
67409         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
67410         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
67411
67412 2007-04-09  Eric Blake  <ebb9@byu.net>
67413
67414         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
67415         * modules/stdio (Makefile.am): Support fflush.
67416         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
67417         * modules/fflush: New file.
67418         * lib/fflush.c: Likewise.
67419         * m4/fflush.m4: Likewise.
67420         * modules/fflush-tests: New test.
67421         * tests/test-fflush.c: Likewise.
67422         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
67423
67424 2007-04-06  Bruno Haible  <bruno@clisp.org>
67425
67426         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
67427         (VASNPRINTF): Use signbit for faster determination whether to print a
67428         minus sign.
67429         * modules/vasnprintf (Files): Remove lib/float+.h.
67430         * modules/fprintf-posix (Depends-on): Add signbit.
67431         * modules/snprintf-posix (Depends-on): Likewise.
67432         * modules/sprintf-posix (Depends-on): Likewise.
67433         * modules/vasnprintf-posix (Depends-on): Likewise.
67434         * modules/vasprintf-posix (Depends-on): Likewise.
67435         * modules/vfprintf-posix (Depends-on): Likewise.
67436         * modules/vsnprintf-posix (Depends-on): Likewise.
67437         * modules/vsprintf-posix (Depends-on): Likewise.
67438
67439 2007-04-06  Bruno Haible  <bruno@clisp.org>
67440
67441         * tests/test-frexp.c (main): Test also the sign bit of zero results.
67442         * tests/test-frexpl.c (main): Likewise.
67443         * tests/test-ldexpl.c (main): Likewise.
67444         * modules/frexp-tests (Depends-on): Add signbit.
67445         * modules/frexpl-tests (Depdends-on): Likewise.
67446         * modules/ldexpl-tests (Depdends-on): Likewise.
67447
67448 2007-04-06  Bruno Haible  <bruno@clisp.org>
67449
67450         * modules/signbit-tests: New file.
67451         * tests/test-signbit.c: New file.
67452
67453         * modules/signbit: New file.
67454         * lib/signbitf.c: New file.
67455         * lib/signbitd.c: New file.
67456         * lib/signbitl.c: New file.
67457         * m4/signbit.m4: New file.
67458         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
67459         (signbit): New macro.
67460         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
67461         REPLACE_SIGNBIT.
67462         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
67463         REPLACE_FREXPL into math.h.
67464
67465 2007-04-06  Bruno Haible  <bruno@clisp.org>
67466
67467         * modules/isnanf-nolibm-tests: New file.
67468         * tests/test-isnanf.c: New file.
67469
67470         * modules/isnanf-nolibm: New file.
67471         * lib/isnanf.h: New file.
67472         * lib/isnanf.c: New file.
67473         * lib/isnan.c: Consider the USE_FLOAT macro.
67474         * m4/isnanf.m4: New file.
67475
67476 2007-04-06  Bruno Haible  <bruno@clisp.org>
67477
67478         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
67479         (Link): New section.
67480
67481         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
67482
67483 2007-04-06  Bruno Haible  <bruno@clisp.org>
67484
67485         Assume the 'long double' type.
67486         * m4/longdouble.m4: Remove file.
67487         * config/srclist.txt: Don't mention longdouble.m4.
67488         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
67489         * lib/float+.h: Likewise.
67490         * lib/frexp.c: Likewise.
67491         * lib/printf-args.h: Likewise.
67492         * lib/printf-args.c: Likewise.
67493         * lib/printf-frexp.c: Likewise.
67494         * lib/printf-parse.c: Likewise.
67495         * lib/vasnprintf.c: Likewise.
67496         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
67497         * m4/intl.m4: Likewise.
67498         * m4/isnanl.m4: Likewise.
67499         * m4/printf.m4: Likewise.
67500         * m4/printf-frexpl.m4: Likewise.
67501         * m4/vasnprintf.m4: Likewise.
67502         * modules/allocsa (Files): Remove m4/longdouble.m4.
67503         * modules/gettext (Files): Likewise.
67504         * modules/relocatable-prog-wrapper (Files): Likewise.
67505         * modules/vasnprintf (Files): Likewise.
67506         * modules/isnanl (Files): Likewise.
67507         (Include): Simplify.
67508         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
67509         (Include): Simplify.
67510         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
67511         (Include): Simplify.
67512         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
67513         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
67514         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
67515         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
67516         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
67517         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
67518         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
67519         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
67520         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
67521         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
67522         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
67523         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
67524         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
67525         * tests/test-isnanl.c: Likewise.
67526         * tests/test-snprintf-posix.h: Likewise.
67527         * tests/test-sprintf-posix.h: Likewise.
67528         * tests/test-vasnprintf-posix.c: Likewise.
67529         * tests/test-vasnprintf-posix2.c: Likewise.
67530         * tests/test-vasprintf-posix.c: Likewise.
67531
67532 2007-04-06  Bruno Haible  <bruno@clisp.org>
67533
67534         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
67535         * lib/math_.h [__DECC]: Include the overridden include file through
67536         #include_next, outside the double-inclusion guard.
67537         * lib/stdio_.h [__DECC]: Likewise.
67538         * lib/stdlib_.h [__DECC]: Likewise.
67539         * lib/string_.h [__DECC]: Likewise.
67540         * lib/time_.h [__DECC]: Likewise.
67541         * lib/wchar_.h [__DECC]: Likewise.
67542         * lib/wctype_.h [__DECC]: Likewise.
67543         * lib/inttypes_.h [__DECC]: Likewise.
67544         Reported by Albert Chin <china@thewrittenword.com> in
67545         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
67546
67547 2007-04-04  Eric Blake  <ebb9@byu.net>
67548
67549         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
67550         1.5.x.
67551
67552 2007-04-04  Bruno Haible  <bruno@clisp.org>
67553
67554         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
67555         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
67556
67557 2007-04-04  Bruno Haible  <bruno@clisp.org>
67558
67559         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
67560         results for "%010a" of Infinity and NaN.
67561         * tests/test-vasprintf-posix.c (test_function): Likewise.
67562         * tests/test-snprintf-posix.h (test_function): Likewise.
67563         * tests/test-sprintf-posix.h (test_function): Likewise.
67564         * tests/test-fprintf-posix.h (test_function): Remove these tests.
67565         * tests/test-printf-posix.h (test_function): Likewise.
67566         * tests/test-fprintf-posix.out: Update.
67567         Needed for FreeBSD 6.1.
67568
67569 2007-04-04  Bruno Haible  <bruno@clisp.org>
67570
67571         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
67572         directly used by the gnulib modules nor by gnulib-tool.
67573
67574 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
67575
67576         * DEPENDENCIES: Give overall description of version dependency
67577         desirability.  Use more-typical names for apps.
67578         Add shell, coreutils, diffutils, grep, tar, gzip.
67579
67580 2007-04-04  Simon Josefsson  <simon@josefsson.org>
67581
67582         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
67583
67584 2007-04-04  Karl Berry  <karl@gnu.org>
67585
67586         * MODULES.html.sh (func_module): missing '.
67587
67588 2007-04-03  Bruno Haible  <bruno@clisp.org>
67589
67590         * modules/argmatch-tests (Makefile.am): New variable
67591         test_argmatch_LDADD.
67592         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
67593         * modules/array-list-tests (Makefile.am): New variable
67594         test_array_list_LDADD.
67595         * modules/array-oset-tests (Makefile.am): New variable
67596         test_array_oset_LDADD.
67597         * modules/avltree-list-tests (Makefile.am): New variable
67598         test_avltree_list_LDADD.
67599         * modules/avltree-oset-tests (Makefile.am): New variable
67600         test_avltree_oset_LDADD.
67601         * modules/avltreehash-list-tests (Makefile.am): New variable
67602         test_avltreehash_list_LDADD.
67603         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
67604         test_canonicalize_lgpl_LDADD.
67605         * modules/carray-list-tests (Makefile.am): New variable
67606         test_carray_list_LDADD.
67607         * modules/dirname-tests (Makefile.am): New variable
67608         test_dirname_LDADD.
67609         * modules/linked-list-tests (Makefile.am): New variable
67610         test_linked_list_LDADD.
67611         * modules/linkedhash-list-tests (Makefile.am): New variable
67612         test_linkedhash_list_LDADD.
67613         * modules/rbtree-list-tests (Makefile.am): New variable
67614         test_rbtree_list_LDADD.
67615         * modules/rbtree-oset-tests (Makefile.am): New variable
67616         test_rbtree_oset_LDADD.
67617         * modules/rbtreehash-list-tests (Makefile.am): New variable
67618         test_rbtreehash_list_LDADD.
67619         * modules/xvasprintf-tests (Makefile.am): New variable
67620         test_xvasprintf_LDADD.
67621         Reported by Eric Blake.
67622
67623 2007-04-03  Eric Blake  <ebb9@byu.net>
67624
67625         * DEPENDENCIES: Weaken m4 requirements.
67626
67627 2007-04-03  Bruno Haible  <bruno@clisp.org>
67628
67629         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
67630         * modules/isnanl-tests (configure.ac): Likewise.
67631
67632 2007-04-03  Ben Pfaff  <blp@gnu.org>
67633
67634         * modules/iconv_open: Add $(srcdir)/ to source directory
67635         references in Makefile fragments that call gperf, to fix VPATH
67636         builds.
67637
67638 2007-04-03  Bruno Haible  <bruno@clisp.org>
67639
67640         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
67641         * lib/ldexpl.c: Undo last change.
67642
67643 2007-04-03  Bruno Haible  <bruno@clisp.org>
67644
67645         * modules/printf-frexpl (Depends-on): Undo last change.
67646         (Files): Add m4/ldexpl.m4.
67647
67648 2007-04-03  Bruno Haible  <bruno@clisp.org>
67649
67650         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
67651         * modules/isnanl (Link): New section.
67652
67653         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
67654         * modules/frexp (Link): New section.
67655
67656         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
67657         * modules/frexpl (Link): New section.
67658
67659         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
67660         * modules/ldexpl (Link): New section.
67661
67662 2007-04-03  Bruno Haible  <bruno@clisp.org>
67663
67664         * modules/TEMPLATE-EXTENDED: New file.
67665         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
67666
67667 2007-04-03  Bruno Haible  <bruno@clisp.org>
67668
67669         * DEPENDENCIES: New file.
67670         Suggested by Simon Josefsson.
67671
67672 2007-04-03  Bruno Haible  <bruno@clisp.org>
67673
67674         * doc/gnulib.texi: Escape @.
67675
67676 2007-04-03  James Youngman  <jay@gnu.org>
67677         and Paul Eggert  <eggert@cs.ucla.edu>
67678
67679         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
67680         birthtime on all systems that have birthtime, not just those which
67681         use st_birthtimensec rather than st_birthtim.  Putting zero in
67682         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
67683         that the birth time is not available for files on an NFS mount.
67684
67685 2007-04-03  Simon Josefsson  <simon@josefsson.org>
67686
67687         * modules/memxor: Move back from crypto/, suggested by Bruno.
67688         * modules/crypto/hmac-sha1: Fix memxor dependency.
67689
67690         * modules/crypto/gc: Moved from ../.
67691
67692 2007-04-02  Eric Blake  <ebb9@byu.net>
67693
67694         * lib/ldexpl.c (includes): Avoid libm.
67695
67696         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
67697
67698 2007-04-02  Bruno Haible  <bruno@clisp.org>
67699
67700         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
67701         on IRIX.
67702
67703 2007-04-02  Bruno Haible  <bruno@clisp.org>
67704
67705         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
67706         x86 or x86_64 platforms running MacOS X.
67707         Reported by Ryan Schmidt <@ryandesign.com>.
67708
67709 2007-04-02  Bruno Haible  <bruno@clisp.org>
67710
67711         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
67712         i386.
67713
67714 2007-04-01  Simon Josefsson  <simon@josefsson.org>
67715
67716         * modules/crypto/arcfour: Moved from ../.
67717         * modules/crypto/arcfour-tests: Moved from ../.
67718         * modules/crypto/arctwo: Moved from ../.
67719         * modules/crypto/arctwo-tests: Moved from ../.
67720         * modules/crypto/des: Moved from ../.
67721         * modules/crypto/des-tests: Moved from ../.
67722         * modules/crypto/gc-arcfour: Moved from ../.
67723         * modules/crypto/gc-arcfour-tests: Moved from ../.
67724         * modules/crypto/gc-arctwo: Moved from ../.
67725         * modules/crypto/gc-arctwo-tests: Moved from ../.
67726         * modules/crypto/gc-des: Moved from ../.
67727         * modules/crypto/gc-des-tests: Moved from ../.
67728         * modules/crypto/gc-hmac-md5: Moved from ../.
67729         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
67730         * modules/crypto/gc-hmac-sha1: Moved from ../.
67731         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
67732         * modules/crypto/gc-md2: Moved from ../.
67733         * modules/crypto/gc-md2-tests: Moved from ../.
67734         * modules/crypto/gc-md4: Moved from ../.
67735         * modules/crypto/gc-md4-tests: Moved from ../.
67736         * modules/crypto/gc-md5: Moved from ../.
67737         * modules/crypto/gc-md5-tests: Moved from ../.
67738         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
67739         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
67740         * modules/crypto/gc-random: Moved from ../.
67741         * modules/crypto/gc-rijndael: Moved from ../.
67742         * modules/crypto/gc-rijndael-tests: Moved from ../.
67743         * modules/crypto/gc-sha1: Moved from ../.
67744         * modules/crypto/gc-sha1-tests: Moved from ../.
67745         * modules/crypto/gc-tests: Moved from ../.
67746         * modules/crypto/hmac-md5: Moved from ../.
67747         * modules/crypto/hmac-md5-tests: Moved from ../.
67748         * modules/crypto/hmac-sha1: Moved from ../.
67749         * modules/crypto/hmac-sha1-tests: Moved from ../.
67750         * modules/crypto/md2: Moved from ../.
67751         * modules/crypto/md2-tests: Moved from ../.
67752         * modules/crypto/md4: Moved from ../.
67753         * modules/crypto/md4-tests: Moved from ../.
67754         * modules/crypto/md5: Moved from ../.
67755         * modules/crypto/md5-tests: Moved from ../.
67756         * modules/crypto/memxor: Moved from ../.
67757         * modules/crypto/rijndael: Moved from ../.
67758         * modules/crypto/rijndael-tests: Moved from ../.
67759         * modules/crypto/sha1: Moved from ../.
67760
67761 2007-03-30  James Youngman  <jay@gnu.org>
67762
67763         * tests/test-stat-time.c (prepare_test): use chmod() rather than
67764         rename() to change the ctime of a file (because ctime is unaffected
67765         by rename on jfs2 on AIX 5.1).
67766         (main): Start by doing cleanup, in case a previous run failed leaving
67767         test files behind.
67768
67769 2007-03-31  Bruno Haible  <bruno@clisp.org>
67770
67771         Support old proprietary implementations of iconv.
67772         * modules/iconv_open: New file.
67773         * lib/iconv_.h: New file.
67774         * m4/iconv_h.m4: New file.
67775         * lib/iconv_open.c: New file.
67776         * lib/iconv_open-aix.gperf: New file.
67777         * lib/iconv_open-hpux.gperf: New file.
67778         * lib/iconv_open-irix.gperf: New file.
67779         * lib/iconv_open-osf.gperf: New file.
67780         * m4/iconv_open.m4: New file.
67781         * modules/linebreak (Depends-on): Add iconv_open.
67782         * modules/striconv (Depends-on): Likewise.
67783         * modules/striconveh (Depends-on): Likewise.
67784         * modules/unicodeio (Depends-on): Likewise.
67785         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
67786         (iconv_t)(-1).
67787         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
67788         conversion if cd is (iconv_t)(-1).
67789         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
67790         is not possible.
67791
67792 2007-03-31  Bruno Haible  <bruno@clisp.org>
67793
67794         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
67795         work on Solaris either. Protect also second use of "autodetect_jp".
67796
67797 2007-03-31  Bruno Haible  <bruno@clisp.org>
67798
67799         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
67800         the function is not present.
67801
67802 2007-03-31  Bruno Haible  <bruno@clisp.org>
67803
67804         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
67805         the function is not present.
67806
67807 2007-03-31  Bruno Haible  <bruno@clisp.org>
67808
67809         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
67810         a bug in HP-UX iconv_open().
67811
67812 2007-03-31  Bruno Haible  <bruno@clisp.org>
67813
67814         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
67815         (Mathematics <math.h>): New section, add fpieee.
67816         (Input/output <stdio.h>): Add fseterr.
67817         (Mathematics <math.h>): New section, add printf-frexp.
67818         (Container data structures): Add sublist.
67819         (Core language properties): Add fpucw, inline.
67820         (Functions for greatest-width integer types <inttypes.h>): Add
67821         imaxabs, imaxdiv, inttypes.
67822         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
67823         isnanl-nolibm, ldexp.
67824         (Mathematics <math.h>): New section, add printf-frexpl.
67825         (Support for systems lacking POSIX:2001): Add fprintf-posix,
67826         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
67827         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
67828         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
67829         (Unicode string functions): Add unistr/u*-mbtoucr.
67830         (Java): Add javacomp-script, javaexec-script.
67831         (C#): Add csharpcomp-script, csharpexec-script.
67832         (Support for building libraries and executables): Add havelib,
67833         relocatable-*.
67834         (Support for maintaining and releasing projects): Renamed from
67835         'Support for maintaining and release projects'. Add announce-gen.
67836
67837 2007-03-31  Bruno Haible  <bruno@clisp.org>
67838
67839         * README: Talk primarily about git.
67840         (git and CVS): Renamed from CVS.
67841         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
67842         gnulib is available through git.
67843         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
67844
67845 2007-03-30  Bruno Haible  <bruno@clisp.org>
67846
67847         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
67848         * lib/poll_.h: Likewise.
67849         * lib/stat_.h: Likewise.
67850         * lib/sys_time_.h: Likewise.
67851         * lib/sysexit_.h: Likewise.
67852         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
67853         * lib/stdbool_.h: Likewise.
67854         * lib/byteswap_.h: Add double-inclusion guard.
67855
67856 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
67857
67858         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
67859
67860 2007-03-30  Karl Berry  <karl@gnu.org>
67861
67862         * config/srclist-update: double space after USA in the license
67863         substitution, since that's how it's usually (?) written.
67864
67865 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
67866
67867         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
67868         reported by Bruno Haible.
67869
67870 2007-03-29  Bruno Haible  <bruno@clisp.org>
67871
67872         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
67873         a bug in AIX iconv().
67874
67875 2007-03-29  Bruno Haible  <bruno@clisp.org>
67876
67877         * modules/ldexpl-tests: New file.
67878         * tests/test-ldexpl.c: New file.
67879
67880 2007-03-29  Bruno Haible  <bruno@clisp.org>
67881
67882         * lib/ldexpl.c: Include fpucw.h.
67883         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
67884         multiplication.
67885         * modules/ldexpl (Depends-on): Add fpucw.
67886
67887 2007-03-29  Bruno Haible  <bruno@clisp.org>
67888
67889         * modules/ldexpl: New file.
67890         * m4/ldexpl.m4: New file.
67891         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
67892         set.
67893         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
67894         REPLACE_LDEXPL.
67895         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
67896         REPLACE_LDEXPL.
67897         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
67898         gl_FUNC_LDEXPL_WORKS.
67899         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
67900         * modules/mathl (Files): Remove lib/ldexpl.c.
67901         (Depends-on): Add ldexpl.
67902
67903 2007-03-29  Bruno Haible  <bruno@clisp.org>
67904
67905         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
67906
67907 2007-03-29  Bruno Haible  <bruno@clisp.org>
67908
67909         * tests/test-striconveh.c (main): Don't assume that a direct conversion
67910         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
67911         and possibly also HP-UX.
67912         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
67913         work on AIX, IRIX, HP-UX, OSF/1.
67914         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
67915         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
67916         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
67917         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
67918         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
67919         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
67920
67921 2007-03-29  Bruno Haible  <bruno@clisp.org>
67922
67923         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
67924
67925 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
67926
67927         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
67928         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
67929
67930 2007-03-29  Eric Blake  <ebb9@byu.net>
67931
67932         * lib/acl-internal.h: Remove redundant include.
67933         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
67934         Cygwin when a file is locked.
67935
67936 2007-03-29  Bruno Haible  <bruno@clisp.org>
67937
67938         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
67939         file.
67940         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
67941
67942 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
67943
67944         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
67945         try to remove a parent directory if the child couldn't be removed
67946         (except for the first rmdir, which could fail because the child
67947         doesn't exist).  Problem reported by Jeff Blaine in
67948         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
67949
67950 2007-03-28  Bruno Haible  <bruno@clisp.org>
67951
67952         * lib/striconveh.c (utf8conv_carefully): New function.
67953         (mem_cd_iconveh_internal): Invoke it.
67954
67955 2007-03-28  Bruno Haible  <bruno@clisp.org>
67956
67957         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
67958         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
67959         input.
67960         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
67961         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
67962         unistr/u8-uctomb.
67963
67964 2007-03-28  Bruno Haible  <bruno@clisp.org>
67965
67966         * modules/unistr/u8-mbtoucr: New file.
67967         * lib/unistr/u8-mbtoucr.c: New file.
67968         * modules/unistr/u16-mbtoucr: New file.
67969         * lib/unistr/u16-mbtoucr.c: New file.
67970         * modules/unistr/u16-mbtoucr: New file.
67971         * lib/unistr/u16-mbtoucr.c: New file.
67972         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
67973
67974 2007-03-27  Simon Josefsson  <simon@josefsson.org>
67975             Bruno Haible  <bruno@clisp.org>
67976
67977         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
67978         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
67979         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
67980
67981         * m4/stdio_h.m4: Add stubs for vasprintf too.
67982
67983         * modules/stdio: Support vasprintf in sed command.
67984
67985         * modules/vasprintf: Depend on stdio for prototypes.  Remove
67986         vasprintf.h.  Add stdio module indicator.
67987
67988         * lib/stdio_.h: Declare asprintf and vasprintf, based on
67989         vasprintf.h.
67990
67991         * lib/vasprintf.h: File removed.
67992
67993         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
67994         * lib/vasprintf.c: Ditto.
67995         * lib/xvasprintf.c: Ditto.
67996         * tests/test-vasprintf-posix.c: Ditto.
67997         * tests/test-vasprintf.c: Ditto.
67998
67999 2007-03-27  Bruno Haible  <bruno@clisp.org>
68000
68001         Make vasnprintf multithread-safe.
68002         * lib/vasnprintf.c (decimal_point_char): New function.
68003         (VASNPRINTF): Use it.
68004         Suggested by Simon Josefsson.
68005
68006 2007-03-27  Eric Blake  <ebb9@byu.net>
68007
68008         Support sub-second birthtime on cygwin.
68009         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
68010         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
68011         (get_stat_birthtime): Also work with st_birthtim.
68012
68013 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
68014
68015         * lib/stat-time.h (USE_BIRTHTIME): Remove.
68016         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
68017         (get_stat_birthtime_ns): Do not try to use "spare" fields.
68018         (get_stat_birthtime_ns): Simplify compile-time tests.
68019         (get_stat_birthtime): Change the API to look like
68020         get_stat_mtime etc., except return a negative tv_nsec on error.
68021         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
68022         Don't check for "spare" fields.
68023         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
68024         or for struct stat.st_birthtime, as these tests aren't used.
68025         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
68026
68027 2007-03-27  Bruno Haible  <bruno@clisp.org>
68028
68029         * lib/stat-time.h: Include <sys/stat.h>.
68030
68031 2007-03-27  James Youngman  <jay@gnu.org>
68032
68033         * lib/stat-time.h (get_stat_birthtime): New function for
68034           retrieving st_birthtime as provided by UFS2 (hence *BSD).
68035         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
68036           and its variants.
68037         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
68038         * modules/stat-time-test: New file.
68039         * tests/test-stat-time.c: New test, devised by Bruno Haible.
68040
68041 2007-03-26  Bruno Haible  <bruno@clisp.org>
68042
68043         Better support of signalling NaNs.
68044         * lib/atanl.c: Include isnanl.h.
68045         (atanl): Perform test for NaN at the beginning of the function and
68046         through a call to isnanl.
68047         * lib/cosl.c: Include isnanl.h.
68048         (cosl): Perform test for NaN at the beginning of the function and
68049         through a call to isnanl.
68050         * lib/ldexpl.c: Include isnanl.h.
68051         (ldexpl): Perform test for NaN through a call to isnanl.
68052         * lib/logl.c: Include isnanl.h.
68053         (logl): Perform test for NaN at the beginning of the function and
68054         through a call to isnanl.
68055         * lib/sinl.c: Include isnanl.h.
68056         (sinl): Perform test for NaN at the beginning of the function and
68057         through a call to isnanl.
68058         * lib/sqrtl.c: Include isnanl.h.
68059         (sqrtl): Perform test for NaN at the beginning of the function and
68060         through a call to isnanl.
68061         * lib/tanl.c: Include isnanl.h.
68062         (tanl): Perform test for NaN at the beginning of the function and
68063         through a call to isnanl.
68064         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
68065         * modules/mathl (Depends-on): Add isnanl.
68066
68067 2007-03-26  Eric Blake  <ebb9@byu.net>
68068
68069         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
68070         regression in logic sense of previous patch.
68071
68072 2007-03-26  Bruno Haible  <bruno@clisp.org>
68073
68074         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
68075         unportable shell command "if ! ...".
68076         Reported by Ralf Wildenhues.
68077
68078 2007-03-25  Bruno Haible  <bruno@clisp.org>
68079
68080         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
68081         <sysexits.h> file, and only add EX_CONFIG.
68082         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
68083         absolute file name and whether it is sufficient. Substitute also
68084         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
68085         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
68086         ABSOLUTE_SYSEXITS_H into sysexits.h.
68087
68088 2007-03-25  Bruno Haible  <bruno@clisp.org>
68089
68090         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
68091         hints is NULL.
68092
68093 2007-03-25  Bruno Haible  <bruno@clisp.org>
68094
68095         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
68096         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
68097
68098 2007-03-25  Bruno Haible  <bruno@clisp.org>
68099
68100         * lib/vasnprintf.c: Include langinfo.h.
68101         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
68102         multithread-safe.
68103         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
68104         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
68105         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
68106         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68107         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68108         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68109         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
68110         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
68111         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68112         Reported by Simon Josefsson.
68113
68114 2007-03-25  Bruno Haible  <bruno@clisp.org>
68115
68116         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
68117         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
68118         * modules/vasnprintf (Depends-on): Add stdint.
68119
68120 2007-03-25  Bruno Haible  <bruno@clisp.org>
68121
68122         * modules/fpieee: New file.
68123         * m4/fpieee.m4: New file.
68124         * modules/isnan-nolibm (Depends-on): Add fpieee.
68125         * modules/isnanl-nolibm (Depends-on): Add fpieee.
68126         * modules/isnanl (Depends-on): Add fpieee.
68127
68128 2007-03-25  Bruno Haible  <bruno@clisp.org>
68129
68130         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
68131
68132 2007-03-25  Bruno Haible  <bruno@clisp.org>
68133
68134         Avoid test failures on IRIX 6.5.
68135         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
68136         (main): Use it.
68137         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
68138         macros.
68139         (main): Use them.
68140
68141 2007-03-25  Bruno Haible  <bruno@clisp.org>
68142
68143         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
68144         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
68145         exists but doesn't work.
68146         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
68147         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
68148         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
68149         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
68150         math.h.
68151
68152 2007-03-25  Bruno Haible  <bruno@clisp.org>
68153
68154         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
68155         returns inf. Needed on IRIX 6.5.
68156
68157 2007-03-25  Bruno Haible  <bruno@clisp.org>
68158
68159         * tests/test-frexpl.c: Include isnanl-nolibm.h.
68160         (main): Use isnanl instead of x != x idiom.
68161         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
68162
68163         * tests/test-frexp.c: Include isnan.h.
68164         (main): Use isnan instead of x != x idiom.
68165         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
68166
68167 2007-03-25  Bruno Haible  <bruno@clisp.org>
68168
68169         * tests/test-frexp.c (NaN): New function/macro.
68170         (main): Use it instead of 0.0 / 0.0.
68171         * tests/test-isnan.c (NaN): New function/macro.
68172         (main): Use it instead of 0.0 / 0.0.
68173         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
68174         (test_function): Use it instead of 0.0 / 0.0.
68175         * tests/test-vasprintf-posix.c (NaN): New function/macro.
68176         (test_function): Use it instead of 0.0 / 0.0.
68177         * tests/test-snprintf-posix.h (NaN): New function/macro.
68178         (test_function): Use it instead of 0.0 / 0.0.
68179         * tests/test-sprintf-posix.h (NaN): New function/macro.
68180         (test_function): Use it instead of 0.0 / 0.0.
68181         * tests/test-fprintf-posix.h (NaN): New function/macro.
68182         (test_function): Use it instead of 0.0 / 0.0.
68183         * tests/test-printf-posix.h (NaN): New function/macro.
68184         (test_function): Use it instead of 0.0 / 0.0.
68185
68186         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
68187
68188 2007-03-25  Bruno Haible  <bruno@clisp.org>
68189
68190         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
68191
68192 2007-03-25  Bruno Haible  <bruno@clisp.org>
68193
68194         * lib/regexec.c (merge_state_with_log): Make static.
68195
68196 2007-03-25  Bruno Haible  <bruno@clisp.org>
68197
68198         * lib/trigl.c (kernel_rem_pio2): Make static.
68199
68200 2007-03-25  Bruno Haible  <bruno@clisp.org>
68201
68202         * lib/sincosl.c (sincosl_table): Make static.
68203
68204 2007-03-25  Bruno Haible  <bruno@clisp.org>
68205
68206         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
68207         if the compiler does not support C99.
68208
68209 2007-03-25  Bruno Haible  <bruno@clisp.org>
68210
68211         * modules/time (Makefile.am): Ensure all rule action lines start with a
68212         tab.
68213
68214 2007-03-24  Bruno Haible  <bruno@clisp.org>
68215
68216         * modules/tsearch-tests: New file.
68217         * tests/test-tsearch.sh: New file.
68218         * tests/test-tsearch.c: New file, mostly copied from glibc.
68219
68220         * modules/search-tests: New file.
68221         * tests/test-search.c: New file.
68222
68223         * modules/search: New file.
68224         * lib/search_.h: New file, incorporating lib/tsearch.h.
68225         * m4/search_h.m4: New file.
68226         * lib/tsearch.h: Remove file.
68227         * lib/tsearch.c: Include search.h instead of tsearch.h.
68228         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
68229         HAVE_TSEARCH.
68230         * modules/tsearch (Files): Remove lib/tsearch.h.
68231         (Depends-on): Add search.
68232         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
68233         (Include): Change tsearch.h into search.h.
68234
68235 2007-03-24  Bruno Haible  <bruno@clisp.org>
68236
68237         * modules/fpucw: New file.
68238         * lib/fpucw.h: New file.
68239         * lib/frexp.c: Include fpucw.h.
68240         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
68241         (FUNC): Use them.
68242         * lib/printf-frexp.c: Include fpucw.h.
68243         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
68244         (FUNC): Use them.
68245         * lib/vasnprintf.c: Include fpucw.h.
68246         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
68247         'long double' calculations.
68248         * tests/test-frexpl.c: Include fpucw.h.
68249         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
68250         * tests/test-printf-frexpl.c: Include fpucw.h.
68251         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
68252         * modules/frexpl (Depends-on): Add fpucw.
68253         * modules/printf-frexpl (Depends-on): Likewise.
68254         * modules/fprintf-posix (Depends-on): Likewise.
68255         * modules/snprintf-posix (Depends-on): Likewise.
68256         * modules/sprintf-posix (Depends-on): Likewise.
68257         * modules/vasnprintf-posix (Depends-on): Likewise.
68258         * modules/vasprintf-posix (Depends-on): Likewise.
68259         * modules/vfprintf-posix (Depends-on): Likewise.
68260         * modules/vsnprintf-posix (Depends-on): Likewise.
68261         * modules/vsprintf-posix (Depends-on): Likewise.
68262         * modules/frexpl-tests (Depends-on): Likewise.
68263         * modules/printf-frexpl-tests (Depends-on): Likewise.
68264
68265 2007-03-24  Bruno Haible  <bruno@clisp.org>
68266
68267         * lib/float+.h: New file.
68268         * lib/isnan.c: Include float+.h.
68269         (SIZE): New macro.
68270         (FUNC): Compare only SIZE bytes of the value.
68271         * lib/vasnprintf.c: Include float+.h.
68272         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
68273         SIZEOF_LDBL or SIZEOF_DBL bytes.
68274         * modules/isnan-nolibm (Files): Add lib/float+.h.
68275         * modules/isnanl-nolibm (Files): Add lib/float+.h.
68276         * modules/isnanl (Files): Add lib/float+.h.
68277         * modules/vasnprintf (Files): Add lib/float+.h.
68278
68279 2007-03-24  Bruno Haible  <bruno@clisp.org>
68280
68281         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
68282         include isnanl-nolibm.h.
68283
68284 2007-03-24  Bruno Haible  <bruno@clisp.org>
68285
68286         * tests/test-read-file.c (main): Don't produce spurious output for
68287         expected situations. Make the test fail if it encountered unexpected
68288         results.
68289
68290 2007-03-24  Bruno Haible  <bruno@clisp.org>
68291
68292         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
68293         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
68294
68295 2007-03-24  Bruno Haible  <bruno@clisp.org>
68296
68297         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
68298
68299 2007-03-24  Bruno Haible  <bruno@clisp.org>
68300
68301         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
68302         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
68303
68304         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
68305         * modules/utf8-ucs4: Turn into a symbolic link to module
68306         unistr/u8-mbtouc.
68307
68308         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
68309         utf8-ucs4-unsafe.
68310         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
68311         unistr/u8-mbtouc-unsafe.
68312
68313         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
68314         * modules/utf16-ucs4: Turn into a symbolic link to module
68315         unistr/u16-mbtouc.
68316
68317         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
68318         utf16-ucs4-unsafe.
68319         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
68320         unistr/u16-mbtouc-unsafe.
68321
68322         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
68323         * modules/ucs4-utf8: Turn into a symbolic link to module
68324         unistr/u8-ubtomb.
68325
68326         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
68327         * modules/ucs4-utf16: Turn into a symbolic link to module
68328         unistr/u16-ubtomb.
68329
68330 2007-03-24  Bruno Haible  <bruno@clisp.org>
68331
68332         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
68333         Enable the function only if HAVE_INLINE.
68334         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
68335         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
68336         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
68337         Enable the function only if HAVE_INLINE.
68338         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
68339         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
68340         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
68341         Enable the function only if HAVE_INLINE.
68342         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
68343         Enable the function only if HAVE_INLINE.
68344         * modules/utf8-ucs4: Update.
68345         * modules/utf8-ucs4-unsafe: Update.
68346         * modules/utf16-ucs4: Update.
68347         * modules/utf16-ucs4-unsafe: Update.
68348         * modules/ucs4-utf8: Update.
68349         * modules/ucs4-utf16: Update.
68350
68351 2007-03-24  Bruno Haible  <bruno@clisp.org>
68352
68353         * lib/utf8-ucs4.h: Remove file.
68354         * lib/utf8-ucs4-unsafe.h: Remove file.
68355         * lib/utf16-ucs4.h: Remove file.
68356         * lib/utf16-ucs4-unsafe.h: Remove file.
68357         * lib/ucs4-utf8.h: Remove file.
68358         * lib/ucs4-utf16.h: Remove file.
68359         * lib/unistr.h: Include their previous contents.
68360         * m4/utf-ucs4.m4: Remove file.
68361         * m4/ucs4-utf.m4: Remove file.
68362         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
68363         (Depends-on): Add unistr/base.
68364         (configure.ac): Remove gl_UTF_UCS4.
68365         (Makefile.am): Update.
68366         (Include): Change to unistr.h.
68367         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
68368         (Depends-on): Add unistr/base.
68369         (configure.ac): Remove gl_UTF_UCS4.
68370         (Makefile.am): Update.
68371         (Include): Change to unistr.h.
68372         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
68373         (Depends-on): Add unistr/base.
68374         (configure.ac): Remove gl_UTF_UCS4.
68375         (Makefile.am): Update.
68376         (Include): Change to unistr.h.
68377         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
68378         (Depends-on): Add unistr/base.
68379         (configure.ac): Remove gl_UTF_UCS4.
68380         (Makefile.am): Update.
68381         (Include): Change to unistr.h.
68382         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
68383         (Depends-on): Add unistr/base.
68384         (configure.ac): Remove gl_UCS4_UTF.
68385         (Makefile.am): Update.
68386         (Include): Change to unistr.h.
68387         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
68388         (Depends-on): Add unistr/base.
68389         (configure.ac): Remove gl_UCS4_UTF.
68390         (Makefile.am): Update.
68391         (Include): Change to unistr.h.
68392         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
68393         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
68394         utf8-ucs4-unsafe.h.
68395         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
68396         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
68397         utf16-ucs4-unsafe.h.
68398         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
68399         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
68400         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
68401         * lib/unistr/u8-strchr.c: Likewise.
68402         * lib/unistr/u8-strrchr.c: Likewise.
68403         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
68404         * lib/unistr/u16-strchr.c: Likewise.
68405         * lib/unistr/u16-strrchr.c: Likewise.
68406         * lib/striconveh.c: Update.
68407         * lib/linebreak.c: Update.
68408
68409 2007-03-24  Bruno Haible  <bruno@clisp.org>
68410
68411         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
68412         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
68413
68414 2007-03-22  Bruno Haible  <bruno@clisp.org>
68415
68416         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
68417
68418 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
68419
68420         * MODULES.html.sh (File system functions): New module write-any-file.
68421         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
68422         * m4/write-any-file.m4: New files.
68423
68424 2007-03-23  Eric Blake  <ebb9@byu.net>
68425
68426         * gnulib-tool: Rearrange space-tab sequences, since some editors
68427         like to eat them.
68428
68429 2007-03-23  Eric Blake  <ebb9@byu.net>
68430
68431         * lib/version-etc.c (version_etc_va): Update license wording to
68432         be more concise.  Recommended by Richard Stallman.
68433
68434 2007-03-22  Bruno Haible  <bruno@clisp.org>
68435
68436         * lib/poll.c (MSG_PEEK): New fallback definition.
68437
68438 2007-03-22  Bruno Haible  <bruno@clisp.org>
68439
68440         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
68441         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
68442         (main): Update.
68443         Fixes a compilation error on BeOS.
68444
68445 2007-03-22  Bruno Haible  <bruno@clisp.org>
68446
68447         * modules/frexpl-tests: New file.
68448         * tests/test-frexpl.c: New file.
68449
68450         * modules/frexpl: New file.
68451         * m4/frexpl.m4: New file.
68452         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
68453         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
68454         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
68455         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
68456         (Depends-on): Add frexpl. Remove isnanl-nolibm.
68457         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
68458
68459 2007-03-22  Bruno Haible  <bruno@clisp.org>
68460
68461         * lib/frexpl.c: Share code with lib/frexp.c.
68462         * modules/mathl (Files): Add lib/frexp.c.
68463         (Depends-on): Add isnanl-nolibm.
68464
68465 2007-03-22  Bruno Haible  <bruno@clisp.org>
68466
68467         * modules/printf-frexp (Files): Add m4/frexp.m4.
68468         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
68469         only if the found frexp function actually works.
68470
68471 2007-03-22  Bruno Haible  <bruno@clisp.org>
68472
68473         * lib/frexp.c: Remove older implementation that uses divisions.
68474
68475 2007-03-21  Bruno Haible  <bruno@clisp.org>
68476
68477         * modules/frexp-tests: New file.
68478         * tests/test-frexp.c: New file.
68479
68480         * modules/frexp: New file.
68481         * lib/frexp.c: New file.
68482         * m4/frexp.m4: New file.
68483         * lib/math_.h (frexp): New declaration.
68484         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
68485         REPLACE_FREXP.
68486         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
68487
68488 2007-03-21  Bruno Haible  <bruno@clisp.org>
68489
68490         * modules/isnanl-tests: New file.
68491         * tests/test-isnanl.c: New file.
68492
68493         * modules/isnanl: New file.
68494         * lib/isnanl.h: New file.
68495         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
68496         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
68497         gl_FUNC_ISNANL_WORKS.
68498         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
68499         New macros.
68500
68501 2007-03-21  Bruno Haible  <bruno@clisp.org>
68502
68503         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
68504         lib/isnanl.h.
68505         (Include): Update.
68506         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
68507         * lib/vasnprintf.c: Update.
68508         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
68509         tests/test-isnanl.h, remove tests/test-isnanl.c.
68510         (Makefile.am): Update.
68511         * tests/test-isnanl-nolibm.c: New file.
68512         * tests/test-isnanl.h: New file.
68513         * tests/test-isnanl.c: Remove file.
68514
68515 2007-03-21  Jim Meyering  <jim@meyering.net>
68516
68517         When trying to open ".", treat ESTALE like EACCES.
68518         * lib/savewd.c (savewd_save): Resort to forking not just upon
68519         failure with EACCES, but also when errno is ESTALE.
68520
68521 2007-03-20  Bruno Haible  <bruno@clisp.org>
68522
68523         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
68524         Needed on AIX 5.1. Reported by Matthew Woehlke.
68525
68526 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
68527
68528         Suggestions by Bruno Haible:
68529         * lib/acl-internal.h: Include "gettext.h" rather than rolling
68530         our own.
68531         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
68532         * modules/acl (Depends-on): Add gettext.
68533
68534 2007-03-19  Bruno Haible  <bruno@clisp.org>
68535
68536         * modules/iconvme: Remove file.
68537         * lib/iconvme.h: Remove file.
68538         * lib/iconvme.c: Remove file.
68539         * m4/iconvme.m4: Remove file.
68540
68541 2007-03-19  Bruno Haible  <bruno@clisp.org>
68542
68543         * doc/relocatable-maint.texi: Break long shell script line.
68544         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
68545
68546 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
68547
68548         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
68549         handle file_has_acl.
68550         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
68551         * lib/acl.c: Move header inclusions and related macro defns into
68552         lib/acl-internal.h.
68553         (S_ISLNK): Remove defn, since that's now done for us.
68554         (file_has_acl): Move to lib/file-has-acl.c.
68555         Call acl_trivial if available.  This is the crucial part of the fix.
68556         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
68557         shared within the library.  Rewrite a bit, partly to make it compatible
68558         with the GNU coding style.
68559         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
68560         Remove unnecessary double-quotes.
68561         Don't test for acl_to_text; the build will catch that.
68562         Replace acl_entries if it doesn't exist and it is needed.
68563         Check for -lsec and acl_trivial (as used on Solaris 10).
68564         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
68565         lib/file-has-acl.c.
68566         (Depends-on): Add sys_stat, for S_ISLNK.
68567
68568 2007-03-19  Ben Pfaff  <blp@gnu.org>
68569
68570         * doc/gnulib.texi: Fix typos.
68571         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
68572
68573 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
68574
68575         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
68576         If size is zero here, buf must be zero.
68577
68578 2007-03-19  Simon Josefsson  <simon@josefsson.org>
68579
68580         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
68581         <bruno@clisp.org>.
68582
68583 2007-03-18  Bruno Haible  <bruno@clisp.org>
68584
68585         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
68586         Suggested by Eric Blake.
68587
68588 2007-03-18  Ben Pfaff  <blp@gnu.org>
68589
68590         * doc/relocatable.texi: Recommend using as prefix a directory
68591         that does not exist and will never be created.  Based on
68592         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
68593         and others.
68594
68595 2007-03-17  Bruno Haible  <bruno@clisp.org>
68596
68597         * lib/fchownat.c: Include lchown.h.
68598
68599 2007-03-17  Bruno Haible  <bruno@clisp.org>
68600
68601         Fix endless loop when the given allocated size was > INT_MAX.
68602         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
68603         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
68604         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
68605         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
68606         * lib/sprintf.c (sprintf): Likewise.
68607
68608 2007-03-17  Bruno Haible  <bruno@clisp.org>
68609
68610         * tests/test-argp-2.sh (func_compare): Output a context diff.
68611
68612 2007-03-17  Bruno Haible  <bruno@clisp.org>
68613
68614         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
68615         locale's decimal-point character.
68616
68617 2007-03-17  Bruno Haible  <bruno@clisp.org>
68618
68619         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
68620         before comparing it. Needed because on some platforms (e.g. x86) a
68621         'long double' occupies less bytes than sizeof (long double).
68622
68623 2007-03-17  Bruno Haible  <bruno@clisp.org>
68624
68625         * tests/test-crc.c (main): Make printf statements 64-bit clean.
68626         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
68627         * tests/test-getaddrinfo.c (simple): Likewise.
68628         * tests/test-read-file.c (main): Likewise.
68629
68630 2007-03-17  Bruno Haible  <bruno@clisp.org>
68631
68632         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
68633
68634 2007-03-17  Bruno Haible  <bruno@clisp.org>
68635
68636         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
68637         unused variable.
68638
68639 2007-03-17  Bruno Haible  <bruno@clisp.org>
68640
68641         * tests/test-c-strcasecmp.c: Include c-strcase.h.
68642         * tests/test-c-strncasecmp.c: Likewise.
68643
68644 2007-03-17  Bruno Haible  <bruno@clisp.org>
68645
68646         * modules/stdlib (Depends-on): Add unistd.
68647         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
68648         Needed for MacOS X 10.3.
68649
68650 2007-03-17  Bruno Haible  <bruno@clisp.org>
68651
68652         * lib/unistr/u-strdup.h: Include <stdlib.h>.
68653
68654 2007-03-17  Bruno Haible  <bruno@clisp.org>
68655
68656         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
68657
68658 2007-03-17  Bruno Haible  <bruno@clisp.org>
68659
68660         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
68661         to reflect files copied from gnulib (with or without modifications).
68662         Suggested by Jim Meyering.
68663
68664 2007-03-17  Eric Blake  <ebb9@byu.net>
68665
68666         * NEWS: Document stdlib change from 2007-02-18.
68667
68668 2007-03-17  Jim Meyering  <jim@meyering.net>
68669
68670         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
68671         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
68672         someone uses a name containing shell meta-characters.
68673         Reported by Alfred M. Szmidt.
68674
68675         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
68676
68677 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
68678
68679         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
68680         and copy gettext configuration files only if configure.ac contains
68681         a use of AM_GNU_GETTEXT_VERSION.
68682
68683 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
68684
68685         * build-aux/bootstrap (gnulib_name): New variable.
68686         (gnulib_tool_options): Use it.
68687
68688 2007-03-13  Simon Josefsson  <simon@josefsson.org>
68689
68690         * tests/test-des.c: Use new namespace.
68691
68692 2007-03-15  Bruno Haible  <bruno@clisp.org>
68693
68694         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
68695         Reported by James Youngman <jay@gnu.org>.
68696
68697 2007-03-15  Bruno Haible  <bruno@clisp.org>
68698
68699         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
68700         declared prototype. Needed with cc on OSF/1 5.1.
68701
68702 2007-03-15  Bruno Haible  <bruno@clisp.org>
68703
68704         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
68705         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
68706         (struct gl_list_implementation): Add dispose_fn argument to the
68707         'create_empty', 'create' methods.
68708         (struct gl_list_impl_base): Add field 'dispose_fn'.
68709         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
68710         argument.
68711         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
68712         dispose_fn argument.
68713         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
68714         dispose_fn on the dropped values.
68715         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
68716         dispose_fn argument.
68717         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
68718         dropped values.
68719         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
68720         (gl_tree_remove_node): Call dispose_fn on the dropped value.
68721         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
68722         (gl_tree_remove_node): Call dispose_fn on the dropped value.
68723         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
68724         argument.
68725         (gl_tree_list_free): Call dispose_fn on the dropped values.
68726         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
68727         the dropped values.
68728         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
68729         Add dispose_fn argument.
68730         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
68731         Call dispose_fn on the dropped values.
68732         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
68733         Add dispose_fn argument.
68734         (gl_sublist_create): Initialize the 'dispose_fn' field.
68735         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
68736         * tests/test-array_list.c (main): Update.
68737         * tests/test-carray_list.c (main): Update.
68738         * tests/test-avltree_list.c (main): Update.
68739         * tests/test-rbtree_list.c (main): Update.
68740         * tests/test-avltreehash_list.c (main): Update.
68741         * tests/test-rbtreehash_list.c (main): Update.
68742         * tests/test-linked_list.c (main): Update.
68743         * tests/test-linkedhash_list.c (main): Update.
68744         * tests/test-array_oset.c (main): Update.
68745
68746 2007-03-15  Bruno Haible  <bruno@clisp.org>
68747
68748         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
68749         (gl_oset_create_empty): Add dispose_fn argument.
68750         (struct gl_oset_implementation): Add dispose_fn argument to
68751         'create_empty' method.
68752         (struct gl_oset_impl_base): Add dispose_fn field.
68753         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
68754         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
68755         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
68756         values.
68757         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
68758         (gl_tree_oset_free): Call dispose_fn on the dropped values.
68759         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
68760         dropped value.
68761         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
68762         dropped value.
68763         * tests/test-array_oset.c (main): Update.
68764         * tests/test-avltree_oset.c (main): Update.
68765         * tests/test-rbtree_oset.c (main): Update.
68766         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
68767
68768 2007-03-13  Bruno Haible  <bruno@clisp.org>
68769
68770         * tests/test-stdbool.c (i): Update after last patch.
68771
68772 2007-03-12  Bruno Haible  <bruno@clisp.org>
68773
68774         * lib/quotearg.c: Include <wctype.h> early, before the definition of
68775         the iswprint macro. Needed on Solaris 2.5.1.
68776
68777 2007-03-12  Bruno Haible  <bruno@clisp.org>
68778
68779         * tests/test-printf-frexp.c (main): Declare x as volatile.
68780
68781 2007-03-12  Simon Josefsson  <simon@josefsson.org>
68782
68783         * doc/gnulib.texi (Build robot for gnulib): New section.
68784
68785 2007-03-12  Jim Meyering  <jim@meyering.net>
68786
68787         * build-aux/bootstrap: New file.
68788         * build-aux/bootstrap.conf: New file, from coreutils.
68789
68790 2007-03-11  Bruno Haible  <bruno@clisp.org>
68791
68792         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
68793
68794 2007-03-12  Simon Josefsson  <simon@josefsson.org>
68795
68796         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
68797         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
68798         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
68799
68800 2007-03-11  Bruno Haible  <bruno@clisp.org>
68801
68802         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
68803         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
68804
68805 2007-03-11  Bruno Haible  <bruno@clisp.org>
68806
68807         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
68808         formula. Needed for SunPRO C 5.0.
68809
68810 2007-03-11  Bruno Haible  <bruno@clisp.org>
68811
68812         * modules/long-options (Depends-on): Add getopt.
68813
68814 2007-03-11  Bruno Haible  <bruno@clisp.org>
68815
68816         * modules/modechange (Depends-on): Add stdbool.
68817
68818 2007-03-11  Bruno Haible  <bruno@clisp.org>
68819
68820         * modules/i-ring (Depends-on): Add stdbool.
68821
68822 2007-03-11  Bruno Haible  <bruno@clisp.org>
68823
68824         * modules/gc-des (Depends-on): Add stdbool.
68825
68826 2007-03-11  Bruno Haible  <bruno@clisp.org>
68827
68828         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
68829
68830 2007-03-11  Bruno Haible  <bruno@clisp.org>
68831
68832         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
68833
68834 2007-03-11  Bruno Haible  <bruno@clisp.org>
68835
68836         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
68837
68838 2007-03-11  Bruno Haible  <bruno@clisp.org>
68839
68840         * lib/vasnprintf.c (sprintf): Undefine.
68841
68842 2007-03-11  Bruno Haible  <bruno@clisp.org>
68843
68844         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
68845         initializers in SunPRO C and Compaq C compilers.
68846
68847 2007-03-11  Bruno Haible  <bruno@clisp.org>
68848
68849         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
68850         decrementing code ANSI C compliant.
68851
68852 2007-03-11  Bruno Haible  <bruno@clisp.org>
68853
68854         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
68855         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
68856
68857 2007-03-11  Bruno Haible  <bruno@clisp.org>
68858
68859         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
68860         <stdbool.h> substitute doesn't pass.
68861
68862 2007-03-11  Bruno Haible  <bruno@clisp.org>
68863
68864         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
68865
68866 2007-03-11  Bruno Haible  <bruno@clisp.org>
68867
68868         * gnulib-tool (func_create_megatestdir): Create also an autobuild
68869         script, for submission to autobuild.josefsson.org.
68870
68871 2007-03-10  Bruno Haible  <bruno@clisp.org>
68872
68873         * modules/canonicalize-lgpl-tests: New file.
68874         * tests/test-canonicalize-lgpl.sh: New file.
68875         * tests/test-canonicalize-lgpl.c: New file.
68876
68877         * modules/c-strcase-tests: New file.
68878         * tests/test-c-strcase.sh: New file.
68879         * tests/test-c-strcasecmp.c: New file.
68880         * tests/test-c-strncasecmp.c: New file.
68881
68882         * modules/atexit-tests: New file.
68883         * tests/test-atexit.sh: New file.
68884         * tests/test-atexit.c: New file.
68885
68886 2007-03-10  Bruno Haible  <bruno@clisp.org>
68887
68888         * tests/test-binary-io.sh: Use temporary filenames that are not so
68889         likely to clash with those of other tests (in a parallel make).
68890         * tests/test-binary-io.c: Likewise.
68891
68892 2007-03-10  Bruno Haible  <bruno@clisp.org>
68893
68894         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
68895         fallback; use #error instead.
68896         Suggested by Simon Josefsson.
68897
68898 2007-03-10  Bruno Haible  <bruno@clisp.org>
68899
68900         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
68901         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
68902         first and the last.
68903
68904 2007-03-10  Bruno Haible  <bruno@clisp.org>
68905
68906         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
68907
68908 2007-03-10  Bruno Haible  <bruno@clisp.org>
68909
68910         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
68911         "make distcheck".
68912         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
68913         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
68914         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
68915
68916 2007-03-10  Bruno Haible  <bruno@clisp.org>
68917
68918         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
68919         variable.
68920         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
68921         variable.
68922
68923 2007-03-09  Eric Blake  <ebb9@byu.net>
68924         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
68925
68926         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
68927         types are not being provided by gnulib.
68928         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
68929         types are supported.
68930
68931 2007-03-10  Bruno Haible  <bruno@clisp.org>
68932
68933         * lib/stdio_.h (__attribute__): New macro.
68934         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
68935         vsprintf): Specify __attribute__ __format__ for GCC.
68936         Suggested by Eric Blake.
68937
68938 2007-03-09  Bruno Haible  <bruno@clisp.org>
68939
68940         * modules/printf-posix-tests: New file.
68941         * tests/test-printf-posix.sh: New file.
68942         * tests/test-printf-posix.c: New file.
68943
68944         * modules/printf-posix: New file.
68945         * lib/printf.c: New file.
68946         * m4/printf-posix-rpl.m4: New file.
68947         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
68948         REPLACE_PRINTF.
68949         * lib/stdio_.h (printf): New declaration.
68950         (format, __format__, ____printf____, ____scanf____, ____strftime____,
68951         ____strfmon____): New macros.
68952         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
68953         REPLACE_PRINTF.
68954
68955 2007-03-09  Bruno Haible  <bruno@clisp.org>
68956
68957         * tests/test-vasnprintf-posix2.sh: New file.
68958         * tests/test-vasnprintf-posix2.c: New file.
68959         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
68960         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
68961         (Makefile.am): Activate test-vasnprintf-posix2.sh.
68962
68963         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
68964         a locale dependent decimal point, rather than always '.'.
68965
68966 2007-03-09  Eric Blake  <ebb9@byu.net>
68967
68968         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
68969         spite of platforms like Tandem/NSK that define it to -1.
68970
68971 2007-03-08  Bruno Haible  <bruno@clisp.org>
68972
68973         * modules/vprintf-posix-tests: New file.
68974         * tests/test-vprintf-posix.sh: New file.
68975         * tests/test-vprintf-posix.c: New file.
68976         * tests/test-printf-posix.h: New file.
68977
68978         * modules/vprintf-posix: New file.
68979         * lib/vprintf.c: New file.
68980         * m4/vprintf-posix.m4: New file.
68981         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
68982         REPLACE_VPRINTF.
68983         * lib/stdio_.h (vprintf): New declaration.
68984         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
68985         REPLACE_VPRINTF.
68986
68987 2007-03-08  Bruno Haible  <bruno@clisp.org>
68988
68989         * modules/fprintf-posix-tests: New file.
68990         * tests/test-fprintf-posix.sh: New file.
68991         * tests/test-fprintf-posix.c: New file.
68992
68993         * modules/fprintf-posix: New file.
68994         * lib/fprintf.c: New file.
68995         * m4/fprintf-posix.m4: New file.
68996         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
68997         REPLACE_FPRINTF.
68998         * lib/stdio_.h (fprintf): New declaration.
68999         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
69000         REPLACE_FPRINTF.
69001
69002 2007-03-08  Bruno Haible  <bruno@clisp.org>
69003
69004         * modules/vfprintf-posix-tests: New file.
69005         * tests/test-vfprintf-posix.sh: New file.
69006         * tests/test-vfprintf-posix.c: New file.
69007         * tests/test-fprintf-posix.h: New file.
69008         * tests/test-fprintf-posix.out: New file.
69009
69010         * modules/vfprintf-posix: New file.
69011         * lib/vfprintf.c: New file.
69012         * m4/vfprintf-posix.m4: New file.
69013         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
69014         REPLACE_VFPRINTF.
69015         * lib/stdio_.h (vfprintf): New declaration.
69016         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
69017         REPLACE_VFPRINTF.
69018
69019 2007-03-08  Bruno Haible  <bruno@clisp.org>
69020
69021         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
69022
69023 2007-03-08  Bruno Haible  <bruno@clisp.org>
69024
69025         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
69026         instead of 'expr' invocations.
69027         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69028         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69029         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69030         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69031         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69032         Suggested by Paul Eggert.
69033
69034 2007-03-08  Bruno Haible  <bruno@clisp.org>
69035
69036         * modules/fseterr-tests: New file.
69037         * tests/test-fseterr.c: New file.
69038
69039         * modules/fseterr: New file.
69040         * lib/fseterr.h: New file.
69041         * lib/fseterr.c: New file.
69042
69043 2007-03-08  Bruno Haible  <bruno@clisp.org>
69044
69045         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
69046         * lib/getopt_.h: Likewise.
69047         * lib/mbswidth.h: Likewise.
69048         * lib/setenv.h: Likewise.
69049         * lib/vasnprintf.h: Likewise.
69050         * lib/vasprintf.h: Likewise.
69051         * lib/verror.h: Likewise.
69052         * lib/xsetenv.h: Likewise.
69053         * lib/xvasprintf.h: Likewise.
69054
69055 2007-03-08  Jim Meyering  <jim@meyering.net>
69056
69057         * users.txt: Add parted.
69058
69059         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
69060
69061 2007-03-07  Bruno Haible  <bruno@clisp.org>
69062
69063         * m4/printf.m4: Make the shell script snippets copy&pastable.
69064
69065 2007-03-02  Bruno Haible  <bruno@clisp.org>
69066
69067         * lib/netinet_in_.h: New file.
69068         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
69069         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
69070         * modules/netinet_in (Files): Add lib/netinet_in_.h.
69071         (Depends-on): Add absolute-header.
69072         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
69073         into netinet/in.h.
69074
69075 2007-03-03  Bruno Haible  <bruno@clisp.org>
69076
69077         * lib/sys_select_.h: New file.
69078         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
69079         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
69080         * modules/sys_select (Files): Add lib/sys_select_.h.
69081         (Depends-on): Add absolute-header.
69082         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
69083         into sys/select.h.
69084
69085 2007-03-02  Bruno Haible  <bruno@clisp.org>
69086
69087         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
69088         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
69089         values.
69090         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
69091         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
69092         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
69093         * modules/sys_socket (Depends-on): Add absolute-header.
69094         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
69095         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
69096         (Include): Remove requirement of inclusion of <sys/types.h>.
69097
69098 2007-03-02  Bruno Haible  <bruno@clisp.org>
69099
69100         * lib/byteswap_.h (bswap_32): Fix formula.
69101
69102 2007-03-06  Bruno Haible  <bruno@clisp.org>
69103
69104         * modules/sprintf-posix-tests: New file.
69105         * tests/test-sprintf-posix.c: New file.
69106
69107         * modules/sprintf-posix: New file.
69108         * lib/sprintf.c: New file.
69109         * m4/sprintf-posix.m4: New file.
69110         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
69111         REPLACE_SPRINTF.
69112         * lib/stdio_.h (sprintf): New declaration.
69113         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
69114         REPLACE_SPRINTF.
69115
69116 2007-03-06  Bruno Haible  <bruno@clisp.org>
69117
69118         * modules/vsprintf-posix-tests: New file.
69119         * tests/test-vsprintf-posix.c: New file.
69120         * tests/test-sprintf-posix.h: New file.
69121
69122         * modules/vsprintf-posix: New file.
69123         * lib/vsprintf.c: New file.
69124         * m4/vsprintf-posix.m4: New file.
69125         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
69126         REPLACE_VSPRINTF.
69127         * lib/stdio_.h (vsprintf): New declaration.
69128         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
69129         REPLACE_VSPRINTF.
69130
69131 2007-03-06  Bruno Haible  <bruno@clisp.org>
69132
69133         * modules/vsnprintf (Depend-on): Remove minmax.
69134
69135 2007-03-06  Bruno Haible  <bruno@clisp.org>
69136
69137         * modules/snprintf-posix-tests: New file.
69138         * tests/test-snprintf-posix.c: New file.
69139
69140         * modules/snprintf-posix: New file.
69141         * m4/snprintf-posix.m4: New file.
69142         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
69143         gl_FUNC_SNPRINTF.
69144         (gl_FUNC_SNPRINTF): Invoke it.
69145         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
69146         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
69147         is set.
69148         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
69149
69150 2007-03-06  Bruno Haible  <bruno@clisp.org>
69151
69152         * modules/vsnprintf-posix-tests: New file.
69153         * tests/test-vsnprintf-posix.c: New file.
69154         * tests/test-snprintf-posix.h: New file.
69155
69156         * modules/vsnprintf-posix: New file.
69157         * m4/vsnprintf-posix.m4: New file.
69158         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
69159         gl_FUNC_VSNPRINTF.
69160         (gl_FUNC_VSNPRINTF): Invoke it.
69161         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
69162         * lib/stdio_.h (vsnprintf): Define as a replacement if
69163         REPLACE_VSNPRINTF is set.
69164         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
69165
69166 2007-03-06  Bruno Haible  <bruno@clisp.org>
69167
69168         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
69169         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
69170
69171 2007-03-06  Bruno Haible  <bruno@clisp.org>
69172
69173         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
69174         (asinl): Declare also if HAVE_DECL_ASINL is set.
69175         (atanl): Declare also if HAVE_DECL_ATANL is set.
69176         (ceill): Declare also if HAVE_DECL_CEILL is set.
69177         (cosl): Declare also if HAVE_DECL_COSL is set.
69178         (expl): Declare also if HAVE_DECL_EXPL is set.
69179         (floorl): Declare also if HAVE_DECL_FLOORL is set.
69180         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
69181         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
69182         (logl): Declare also if HAVE_DECL_LOGL is set.
69183         (sinl): Declare also if HAVE_DECL_SINL is set.
69184         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
69185         (tanl): Declare also if HAVE_DECL_TANL is set.
69186         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
69187         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
69188         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
69189         declaration of frexpl, ldexpl.
69190         * modules/printf-frexpl (Depends-on): Add math.
69191         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
69192
69193 2007-03-05  Bruno Haible  <bruno@clisp.org>
69194
69195         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
69196         frexpl and ldexpl are declared.
69197         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
69198
69199 2007-03-05  Bruno Haible  <bruno@clisp.org>
69200
69201         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
69202         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
69203
69204 2007-03-05  Bruno Haible  <bruno@clisp.org>
69205
69206         * lib/stdio_.h: Include <stddef.h>.
69207
69208 2007-03-05  Bruno Haible  <bruno@clisp.org>
69209
69210         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
69211
69212 2007-03-05  Bruno Haible  <bruno@clisp.org>
69213
69214         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
69215         NetBSD 4, from Ralf Wildenhues.
69216
69217 2007-03-04  Bruno Haible  <bruno@clisp.org>
69218
69219         * lib/vasprintf.h: Update #if logic for the case when the functions
69220         exist but are overridden.
69221
69222 2007-03-04  Bruno Haible  <bruno@clisp.org>
69223
69224         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
69225         implementations: glibc-2.4 and MacOS X 10.3.
69226         * tests/test-vasnprintf-posix.c (test_function): Test also the case
69227         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
69228         * tests/test-vasprintf-posix.c (test_function): Likewise.
69229
69230 2007-03-04  Bruno Haible  <bruno@clisp.org>
69231
69232         * modules/vasprintf-posix-tests: New file.
69233         * tests/test-vasprintf-posix.c: New file.
69234
69235         * modules/vasprintf-posix: New file.
69236         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
69237         defined.
69238         * m4/vasprintf-posix.m4: New file.
69239         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
69240         gl_FUNC_VASPRINTF.
69241         (gl_FUNC_VASPRINTF): Invoke it.
69242         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
69243         here.
69244         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
69245
69246 2007-03-04  Bruno Haible  <bruno@clisp.org>
69247
69248         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
69249         REPLACE_GETTIMEOFDAY.
69250         * modules/sys_time (Makefile.am): Likewise.
69251         * m4/sys_time_h.m4: Likewise.
69252         * m4/gettimeofday.m4: Likewise.
69253
69254 2007-03-04  Bruno Haible  <bruno@clisp.org>
69255
69256         * modules/vasnprintf-posix-tests: New file.
69257         * tests/test-vasnprintf-posix.c: New file.
69258
69259         * modules/vasnprintf-posix: New file.
69260         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
69261         printf-frexpl.h.
69262         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
69263         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
69264         REPLACE_VASNPRINTF is defined.
69265         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
69266         gl_FUNC_VASNPRINTF.
69267         (gl_FUNC_VASNPRINTF): Invoke it.
69268         * m4/vasnprintf-posix.m4: New file.
69269         * m4/printf.m4: New file.
69270
69271 2007-03-04  Bruno Haible  <bruno@clisp.org>
69272
69273         Compile progreloc.c only if --enable-relocatable is specified.
69274         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
69275         if --enable-relocatable was specified.
69276         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
69277         lib_SOURCES.
69278
69279 2007-03-04  Jim Meyering  <jim@meyering.net>
69280
69281         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
69282         Use it consistently, rather than enumerating errno constants.
69283
69284 2007-03-04  Bruno Haible  <bruno@clisp.org>
69285
69286         * modules/xvasprintf-tests: New file.
69287         * tests/test-xvasprintf.c: New file.
69288
69289         * modules/vasprintf-tests: New file.
69290         * tests/test-vasprintf.c: New file.
69291
69292         * modules/vasnprintf-tests: New file.
69293         * tests/test-vasnprintf.c: New file.
69294
69295         * modules/vsnprintf-tests: New file.
69296         * tests/test-vsnprintf.c: New file.
69297
69298         * modules/snprintf-tests: New file.
69299         * tests/test-snprintf.c: New file.
69300
69301 2007-03-04  Bruno Haible  <bruno@clisp.org>
69302
69303         Compile relocatable.c only if --enable-relocatable is specified.
69304         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
69305         gl_RELOCATABLE_LIBRARY.
69306         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
69307         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
69308         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
69309         gl_RELOCATABLE_LIBRARY.
69310         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
69311         (Makefile.am): Remove lib_SOURCES.
69312         * modules/relocatable-lib-lgpl (configure.ac): Invoke
69313         gl_RELOCATABLE_LIBRARY.
69314         (Makefile.am): Remove lib_SOURCES.
69315         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
69316         always.
69317         * modules/relocatable-prog-wrapper (configure.ac): Invoke
69318         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
69319
69320 2007-03-04  Bruno Haible  <bruno@clisp.org>
69321
69322         * modules/argmatch-tests: New file.
69323         * tests/test-argmatch.c: New file.
69324
69325         * tests/test-allocsa.c (main): Halve the number of loop runs.
69326
69327         * modules/alloca-opt-tests: New file.
69328         * tests/test-alloca-opt.c: New file.
69329
69330 2007-03-04  Jim Meyering  <jim@meyering.net>
69331
69332         Work around difference between Linux ACLs and Solaris 10 ZFS.
69333         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
69334         for EINVAL.
69335
69336 2007-03-03  Bruno Haible  <bruno@clisp.org>
69337
69338         * modules/relocatable-prog (Depends-on): Add back progreloc's
69339         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
69340
69341 2007-03-03  Bruno Haible  <bruno@clisp.org>
69342
69343         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
69344         * modules/relocatable-lib: New file.
69345
69346 2007-03-03  Bruno Haible  <bruno@clisp.org>
69347
69348         * modules/relocatable-prog: Renamed from modules/relocatable.
69349         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
69350
69351 2007-03-03  Bruno Haible  <bruno@clisp.org>
69352
69353         * modules/relocatable-script (Files): Add doc/relocatable.texi,
69354         m4/relocatable-lib.m4.
69355         (Depends-on): Remove 'relocatable'.
69356         (configure.ac): Add gl_RELOCATABLE_NOP.
69357
69358 2007-03-03  Bruno Haible  <bruno@clisp.org>
69359
69360         * modules/relocatable-prog-wrapper: New file.
69361         * modules/relocatable (Depends-on): Add it. Remove all other
69362         dependencies except progname.
69363         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
69364
69365         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
69366         (gl_FUNC_STRERROR): Nop.
69367         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
69368
69369         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
69370         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
69371
69372         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
69373         (gl_FUNC_READLINK): Update.
69374
69375         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
69376
69377 2007-03-03  Bruno Haible  <bruno@clisp.org>
69378
69379         * lib/xreadlink.c: Include <unistd.h> unconditionally.
69380         * modules/xreadlink (Depends-on): Add unistd.
69381         * modules/xreadlink-with-size (Depends-on): Likewise.
69382
69383 2007-03-03  Bruno Haible  <bruno@clisp.org>
69384
69385         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
69386         extracted from gt_FUNC_SETENV.
69387         (gt_FUNC_SETENV): Remove macro.
69388         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
69389         remove gt_FUNC_SETENV.
69390
69391 2007-03-03  Bruno Haible  <bruno@clisp.org>
69392
69393         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
69394         ENABLE_RELOCATABLE here.
69395         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
69396
69397 2007-03-03  Bruno Haible  <bruno@clisp.org>
69398
69399         * modules/rbtreehash-list-tests (Depends-on): Add progname.
69400         * tests/test-rbtreehash_list.c: Include progname.h.
69401         (main): Call set_program_name.
69402
69403         * modules/rbtree-oset-tests (Depends-on): Add progname.
69404         * tests/test-rbtree_oset.c: Include progname.h.
69405         (main): Call set_program_name.
69406
69407         * modules/rbtree-list-tests (Depends-on): Add progname.
69408         * tests/test-rbtree_list.c: Include progname.h.
69409         (main): Call set_program_name.
69410
69411         * modules/linked-list-tests (Depends-on): Add progname.
69412         * tests/test-linked_list.c: Include progname.h.
69413         (main): Call set_program_name.
69414
69415 2007-03-03  Bruno Haible  <bruno@clisp.org>
69416
69417         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
69418         All uses of __restrict changed to _Restrict_.
69419         * lib/glob_.h (__restrict): Remove macro.
69420
69421 2007-03-02  Bruno Haible  <bruno@clisp.org>
69422
69423         * modules/gettext (configure.ac): Require gettext infrastructure
69424         from version 0.16.1.
69425
69426 2007-03-02  Bruno Haible  <bruno@clisp.org>
69427
69428         * modules/linkedhash-list-tests (Depends-on): Add progname.
69429         * tests/test-linkedhash_list.c: Include progname.h.
69430         (main): Call set_program_name.
69431
69432         * modules/carray-list-tests (Depends-on): Add progname.
69433         * tests/test-carray_list.c: Include progname.h.
69434         (main): Call set_program_name.
69435
69436         * modules/avltreehash-list-tests (Depends-on): Add progname.
69437         * tests/test-avltreehash_list.c: Include progname.h.
69438         (main): Call set_program_name.
69439
69440         * modules/avltree-oset-tests (Depends-on): Add progname.
69441         * tests/test-avltree_oset.c: Include progname.h.
69442         (main): Call set_program_name.
69443
69444         * modules/avltree-list-tests (Depends-on): Add progname.
69445         * tests/test-avltree_list.c: Include progname.h.
69446         (main): Call set_program_name.
69447
69448         * modules/array-oset-tests (Depends-on): Add progname.
69449         * tests/test-array_oset.c: Include progname.h.
69450         (main): Call set_program_name.
69451
69452         * modules/array-list-tests (Depends-on): Add progname.
69453         * tests/test-array_list.c: Include progname.h.
69454         (main): Call set_program_name.
69455
69456         * modules/argp-tests (Depends-on): Add progname.
69457         * tests/test-argp.c: Include argp.h first. Include progname.h.
69458         (main): Call set_program_name.
69459
69460 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
69461
69462         * doc/gnulib-tool.texi (Initial import): Reword description of
69463         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
69464         limited effect even if defined after the first system include.
69465
69466 2007-03-01  Bruno Haible  <bruno@clisp.org>
69467
69468         * build-aux/config.libpath: Update to libtool-1.5.22.
69469         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
69470
69471 2007-03-01  Bruno Haible  <bruno@clisp.org>
69472
69473         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
69474         foo_CFLAGS.
69475         Reported by Ralf Wildenhues.
69476
69477 2007-03-01  Bruno Haible  <bruno@clisp.org>
69478
69479         * build-aux/install-reloc: Remove object files left over by some
69480         compilers.
69481         Reported by Ralf Wildenhues.
69482
69483 2007-03-01  Bruno Haible  <bruno@clisp.org>
69484
69485         * build-aux/install-reloc: Break long lines.
69486
69487 2007-03-01  Bruno Haible  <bruno@clisp.org>
69488
69489         * doc/relocatable.texi: Document that it may not work on OpenBSD.
69490         Reported by Ralf Wildenhues.
69491
69492 2007-03-01  Bruno Haible  <bruno@clisp.org>
69493
69494         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
69495         include ordering constraints.
69496
69497 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
69498
69499         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
69500         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
69501         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
69502         as another example.
69503         * lib/time_.h: Fix misspelling.
69504         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
69505         Require gl_HEADER_TIME_H_DEFAULTS.
69506         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
69507         * m4/time_r.m4 (gl_TIME_R): Likewise.
69508         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
69509
69510 2007-03-01  Bruno Haible  <bruno@clisp.org>
69511
69512         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
69513         * m4/utimens.m4 (gl_UTIMENS): Likewise.
69514
69515 2007-03-01  Jim Meyering  <jim@meyering.net>
69516
69517         * modules/xreadlink (Maintainer): Add my name.
69518         * modules/xreadlink-with-size (Depends-on): Alphabetize.
69519
69520 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
69521             Bruno Haible  <bruno@clisp.org>
69522
69523         * build-aux/install-reloc: Compile also c-ctype.c.
69524         * build-aux/relocatable.sh.in: New file.
69525         * doc/relocatable.texi: New file.
69526         * doc/relocatable-maint.texi: New file.
69527         * doc/gnulib.texi: Include relocatable-maint.texi.
69528         * lib/progreloc.c: Include unistd.h unconditionally.
69529         * lib/relocwrapper.c: Include unistd.h unconditionally.
69530         Include c-ctype.h.
69531         (add_dotbin): Use c_tolower.
69532         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
69533         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
69534         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
69535         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
69536         to m4/relocatable-lib.m4.
69537         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
69538         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
69539         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
69540         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
69541         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
69542         * modules/relocatable: New file.
69543         * modules/relocatable-lib: New file.
69544         * modules/relocatable-script: New file.
69545
69546 2007-02-28  Bruno Haible  <bruno@clisp.org>
69547
69548         Import --enable-relocatable infrastructure.
69549         * build-aux/config.libpath: New file, from GNU gettext.
69550         * build-aux/install-reloc: New file, from GNU gettext.
69551         * build-aux/reloc-ldflags: New file, from GNU gettext.
69552         * lib/relocatable.h: New file, from GNU gettext.
69553         * lib/relocatable.c: New file, from GNU gettext.
69554         * lib/relocwrapper.c: New file, from GNU gettext.
69555         * m4/relocatable.m4: New file, from GNU gettext.
69556
69557 2007-02-28  Bruno Haible  <bruno@clisp.org>
69558
69559         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
69560
69561         * modules/xreadlink: New file, from GNU gettext with modifications.
69562         * lib/xreadlink.c: New file, from GNU gettext.
69563         * lib/xreadlink.h: Add comments.
69564         (xreadlink): New declaration.
69565
69566         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
69567         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
69568         lib/xreadlink-with-size.c.
69569         (configure.ac): Remove gl_XREADLINK invocation.
69570         (Makefile.am): Augment lib_SOURCES.
69571         * m4/xreadlink.m4: Remove file.
69572         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
69573         (xreadlink_with_size): Renamed from xreadink.
69574         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
69575         * modules/canonicalize (Depends-on): Replace xreadlink with
69576         xreadlink-with-size.
69577         * lib/canonicalize.c (canonicalize_filename_mode): Update.
69578
69579 2007-02-25  Jim Meyering  <jim@meyering.net>
69580
69581         * build-aux/announce-gen: When complaining about excess arguments,
69582         list them.
69583
69584 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
69585
69586         * README: Document signed integer overflow situation more
69587         accurately.
69588
69589 2007-02-25  Bruno Haible  <bruno@clisp.org>
69590
69591         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
69592         'a' or 'A' conversion.
69593
69594 2007-02-25  Bruno Haible  <bruno@clisp.org>
69595
69596         * modules/filename: Renamed from modules/pathname.
69597         (Files): Replace lib/pathname.h with lib/filename.h. Replace
69598         lib/concatpath.c with lib/concat-filename.c.
69599         (Makefile.am): Update.
69600         (Include): Replace pathname.h with filename.h.
69601         * lib/filename.h: Renamed from lib/pathname.h.
69602         (concatenated_filename): Renamed from concatenated_pathname.
69603         * lib/concat-filename.c: Renamed from lib/concatpath.c.
69604         (concatenated_filename): Renamed from concatenated_pathname.
69605         * lib/findprog.c: Include filename.h instead of pathname.h.
69606         (find_in_path): Update.
69607         * lib/javacomp.c: Include filename.h instead of pathname.h.
69608         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
69609         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
69610         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
69611         is_oldgcj_14_13_usable, is_javac_usable): Update.
69612         * lib/javaexec.c: Include filename.h instead of pathname.h.
69613         (execute_java_class): Update.
69614         * modules/findprog: Update.
69615         * modules/javacomp: Update.
69616         * modules/javaexec: Update.
69617         * MODULES.html.sh (File system functions): Add 'filename', remove
69618         'pathname'.
69619
69620 2007-02-25  Bruno Haible  <bruno@clisp.org>
69621
69622         * modules/printf-frexpl-tests: New file.
69623         * tests/test-printf-frexpl.c: New file.
69624
69625         * modules/printf-frexpl: New file.
69626         * lib/printf-frexpl.h: New file.
69627         * lib/printf-frexpl.c: New file.
69628         * m4/printf-frexpl.m4: New file.
69629
69630 2007-02-25  Bruno Haible  <bruno@clisp.org>
69631
69632         * modules/printf-frexp-tests: New file.
69633         * tests/test-printf-frexp.c: New file.
69634
69635         * modules/printf-frexp: New file.
69636         * lib/printf-frexp.h: New file.
69637         * lib/printf-frexp.c: New file.
69638         * m4/printf-frexp.m4: New file.
69639
69640 2007-02-25  Bruno Haible  <bruno@clisp.org>
69641
69642         Assume automake >= 1.10 for the tests.
69643         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
69644         * modules/arctwo-tests: Likewise.
69645         * modules/argp-tests: Likewise.
69646         * modules/avltree-list-tests: Likewise.
69647         * modules/avltree-oset-tests: Likewise.
69648         * modules/avltreehash-list-tests: Likewise.
69649         * modules/carray-list-tests: Likewise.
69650         * modules/crc-tests: Likewise.
69651         * modules/des-tests: Likewise.
69652         * modules/gc-arcfour-tests: Likewise.
69653         * modules/gc-arctwo-tests: Likewise.
69654         * modules/gc-des-tests: Likewise.
69655         * modules/gc-hmac-md5-tests: Likewise.
69656         * modules/gc-hmac-sha1-tests: Likewise.
69657         * modules/gc-md2-tests: Likewise.
69658         * modules/gc-md4-tests: Likewise.
69659         * modules/gc-md5-tests: Likewise.
69660         * modules/gc-pbkdf2-sha1-tests: Likewise.
69661         * modules/gc-rijndael-tests: Likewise.
69662         * modules/gc-sha1-tests: Likewise.
69663         * modules/gc-tests: Likewise.
69664         * modules/getaddrinfo-tests: Likewise.
69665         * modules/hmac-md5-tests: Likewise.
69666         * modules/hmac-sha1-tests: Likewise.
69667         * modules/linked-list-tests: Likewise.
69668         * modules/linkedhash-list-tests: Likewise.
69669         * modules/lock-tests: Likewise.
69670         * modules/md2-tests: Likewise.
69671         * modules/md4-tests: Likewise.
69672         * modules/md5-tests: Likewise.
69673         * modules/rbtree-list-tests: Likewise.
69674         * modules/rbtree-oset-tests: Likewise.
69675         * modules/rbtreehash-list-tests: Likewise.
69676         * modules/read-file-tests: Likewise.
69677         * modules/rijndael-tests: Likewise.
69678         * modules/stdint-tests: Likewise.
69679         * modules/tls-tests: Likewise.
69680
69681 2007-02-24  Bruno Haible  <bruno@clisp.org>
69682
69683         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
69684         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
69685         function; instead check whether isnan with a double argument links.
69686         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
69687         function; instead check whether isnan with a 'long double' argument
69688         links.
69689         Reported by Eric Blake <ebb9@byu.net>.
69690
69691 2007-02-24  Bruno Haible  <bruno@clisp.org>
69692
69693         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
69694         defined.
69695         * lib/isnanl.c: Remove all code. Just include isnan.c.
69696         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
69697
69698 2007-02-25  Jim Meyering  <jim@meyering.net>
69699
69700         Avoid conflicting types for 'unsetenv' on FreeBSD.
69701         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
69702         conflicting with FreeBSD's (5.0 and 6.1) function declaration
69703         in stdlib.h.
69704
69705 2007-02-24  Bruno Haible  <bruno@clisp.org>
69706
69707         * modules/isnanl-nolibm-tests: New file.
69708         * tests/test-isnanl.c: New file.
69709
69710         * modules/isnanl-nolibm: New file.
69711         * lib/isnanl.h: New file.
69712         * lib/isnanl.c: New file.
69713         * m4/isnanl.m4: New file.
69714
69715 2007-02-24  Bruno Haible  <bruno@clisp.org>
69716
69717         * modules/isnan-nolibm-tests: New file.
69718         * tests/test-isnan.c: New file.
69719
69720         * modules/isnan-nolibm: New file.
69721         * lib/isnan.h: New file.
69722         * lib/isnan.c: New file.
69723         * m4/isnan.m4: New file.
69724
69725 2007-02-24  Bruno Haible  <bruno@clisp.org>
69726
69727         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
69728         assume that an exponent fits in 20 bits.
69729
69730 2007-02-24  Jim Meyering  <jim@meyering.net>
69731
69732         * m4/regex.m4: Update the description of the configure-time option,
69733         --without-included-regex, to state accurately what the defaults are,
69734         and perhaps to give people an idea why using this option is risky.
69735
69736 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
69737
69738         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
69739         loops on small arguments.  This attempts to avoid the problem
69740         Bruno Haible reported for AIX 4.3.2 in
69741         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
69742
69743 2007-02-23  Bruno Haible  <bruno@clisp.org>
69744
69745         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
69746         Needed for help2man.
69747
69748 2007-02-23  Karl Berry  <karl@gnu.org>
69749
69750         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
69751         exists, foo.h should be cvs-ignored, not committed.
69752
69753 2007-02-23  Eric Blake  <ebb9@byu.net>
69754
69755         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
69756         * lib/stat-time.h (includes): Likewise.
69757         * lib/utimecmp.c (includes): Likewise.
69758         * lib/utimens.h (includes): Likewise.
69759         * lib/getdate.y (includes): Also include "timespec.h" for use
69760         internal to the module.
69761         * modules/utimens (Depends-on): Revert yesterday's patch.
69762         * modules/nanosleep (Depends-on): Add missing dependency.
69763
69764 2007-02-22  Bruno Haible  <bruno@clisp.org>
69765
69766         * lib/glob.c: Don't include getlogin_r.h.
69767
69768 2007-02-22  Jim Meyering  <jim@meyering.net>
69769
69770         * modules/utimens (Depends-on): Add timespec, required for
69771         utimens.h's inclusion of timespec.h.
69772
69773 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
69774
69775         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
69776         long unreadable paths in GNU/Linux.  Problem reported by Andreas
69777         Schwab in
69778         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
69779         I'll try to think of a better way to fix the Solaris problem.
69780
69781         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
69782         like glibc; on Solaris 10, it fails with errno == EINVAL.
69783         POSIX says the behavior is unspecified if the first argument is NULL,
69784         so play it safe and never pass NULL to the system getcwd.
69785
69786 2007-02-21  Jim Meyering  <jim@meyering.net>
69787
69788         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
69789         of gettimeofday.  It would conflict with the one now always
69790         provided via sys_time_.h.  Reported by Matthew Woehlke, as
69791         an IRIX 6.5 build failure.
69792
69793 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
69794
69795         Minor fixups to port to Solaris 10 with Sun C 5.8.
69796         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
69797         * modules/getcwd (Depends-on): Add dirfd.
69798         * lib/putenv.c (putenv): #undef it.
69799         (rpl_putenv): New decl.
69800         (malloc, free): Include <stdlib.h> rather than prototyping separately.
69801
69802 2007-02-20  Bruno Haible  <bruno@clisp.org>
69803
69804         * modules/stdio-tests: New file.
69805         * tests/test-stdio.c: New file.
69806
69807         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
69808         (Depends-on): Add stdio.
69809         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
69810         (Include): Use <stdio.h> instead of vsnprintf.h.
69811         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
69812         HAVE_DECL_VSNPRINTF.
69813         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
69814
69815         * modules/snprintf (Files): Remove lib/snprintf.h.
69816         (Depends-on): Add stdio.
69817         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
69818         (Include): Use <stdio.h> instead of snprintf.h.
69819         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
69820         HAVE_DECL_SNPRINTF.
69821         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
69822         * lib/getaddrinfo.c: Likewise.
69823
69824         * modules/stdio: New file.
69825         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
69826         * lib/snprintf.h: Remove file.
69827         * lib/vsnprintf.h: Remove file.
69828         * lib/.cppi-disable: Remove snprintf.h.
69829         * m4/stdio_h.m4: New file.
69830         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
69831
69832 2007-02-20  Jim Meyering  <jim@meyering.net>
69833
69834         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
69835         used by e.g., mingw.  From Bruno Haible.
69836
69837 2007-02-19  Bruno Haible  <bruno@clisp.org>
69838
69839         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
69840         warnings.
69841         Reported by Ben Pfaff <blp@cs.stanford.edu>.
69842
69843 2007-02-19  Bruno Haible  <bruno@clisp.org>
69844
69845         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
69846         from mingw users.
69847
69848 2007-02-19  Bruno Haible  <bruno@clisp.org>
69849
69850         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
69851         warnings.
69852         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
69853
69854 2007-02-19  Jim Meyering  <jim@meyering.net>
69855
69856         Don't use FD after a successful "fdopendir (fd)".
69857         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
69858         Reset it by calling dirfd on the just-obtained DIR*.
69859
69860         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
69861         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
69862
69863 2007-02-18  Bruno Haible  <bruno@clisp.org>
69864
69865         * lib/readlink.c: Include <unistd.h>.
69866         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
69867         HAVE_READLINK.
69868         * modules/readlink (Depends-on): Add unistd.
69869         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69870         (Include): Add <unistd.h>.
69871
69872         * lib/getlogin_r.h: Remove file.
69873         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
69874         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
69875         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
69876         HAVE_DECL_GETLOGIN_R.
69877         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
69878         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69879         (Include): Use <unistd.h> instead of getlogin_r.h.
69880
69881         * lib/getcwd.h: Remove file.
69882         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
69883         * lib/xgetcwd.c: Likewise.
69884         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
69885         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
69886         * modules/getcwd (Files): Remove lib/getcwd.h.
69887         (Depends-on): Add unistd.
69888         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69889         (Include): Use <unistd.h> instad of getcwd.h.
69890
69891         * lib/ftruncate.c: Include <unistd.h> first.
69892         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
69893         Set HAVE_FTRUNCATE.
69894         * modules/ftruncate (Depends-on): Add unistd.
69895         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69896
69897         * lib/fchdir.c: Include <unistd.h> first.
69898         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
69899         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
69900         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
69901         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69902         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
69903
69904         * lib/dup2.c: Include <unistd.h> first.
69905         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
69906         HAVE_DUP2.
69907         * modules/dup2 (Depends-on): Add unistd.
69908         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69909
69910         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
69911         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
69912         REPLACE_CHOWN. Don't define chown as a macro here.
69913         * modules/chown (Depends-on): Add unistd.
69914         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69915
69916         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
69917         Add definition for GL_LINK_WARNING.
69918         (chown, dup2): New declarations.
69919         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
69920         link warning.
69921         (ftruncate): New declaration.
69922         (getcwd): New declaration, taken from old getcwd.h.
69923         (getlogin_r): New declaration, taken from old getlogin_r.h.
69924         (readlink): New declaration.
69925         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
69926         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
69927         (gl_PREREQ_UNISTD): Remove macro.
69928         (gl_UNISTD_MODULE_INDICATOR): New macro.
69929         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
69930         many new variables. Don't set UNISTD_H.
69931         * modules/unistd (Description): Change.
69932         (Depends-on): Add link-warning.
69933         (configure.ac): Update.
69934         (Makefile.am): Create unistd.h always. Substitute many new variables
69935         into it.
69936
69937 2007-02-18  Bruno Haible  <bruno@clisp.org>
69938
69939         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
69940         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
69941         HAVE_GETSUBOPT.
69942         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
69943         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
69944         * lib/getsubopt.h: Remove file.
69945         * modules/getsubopt (Files): Remove lib/getsubopt.h.
69946         (Depends-on): Add stdlib.
69947         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
69948         (Includes): Use <stdlib.h> instead of getsubopt.h.
69949         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
69950         Set HAVE_GETSUBOPT.
69951         * lib/getsubopt.c: Don't include getsubopt.h.
69952
69953 2007-02-18  Bruno Haible  <bruno@clisp.org>
69954
69955         * modules/fchdir (Depends-on): Add dup2.
69956
69957 2007-02-18  Bruno Haible  <bruno@clisp.org>
69958
69959         * lib/stdlib_.h: Handle glibc's special invocation convention
69960         specially.
69961
69962 2007-02-18  Bruno Haible  <bruno@clisp.org>
69963
69964         * modules/stdlib-tests: New file.
69965         * tests/test-stdlib.c: New file.
69966
69967         * modules/mkstemp (Files): Remove lib/mkstemp.h.
69968         (Depends-on): Add stdlib.
69969         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
69970         (Includes): Use <stdlib.h> instead of mkstemp.h.
69971         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
69972         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
69973         * lib/mkstemp.c: Don't include mkstemp.h.
69974         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
69975         * lib/stdlib--.h: Don't include mkstemp.h.
69976
69977         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
69978         (Depends-on): Add stdlib.
69979         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
69980         (Includes): Use <stdlib.h> instead of mkdtemp.h.
69981         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
69982         HAVE_MKDTEMP.
69983         * lib/mkdtemp.c: Don't include mkdtemp.h.
69984         * lib/clean-temp.c: Don't include mkdtemp.h.
69985
69986         * modules/exit (Files): Remove lib/exit.h.
69987         (Depends-on): Add stdlib.
69988         (Makefile.am): Remove lib_SOURCES.
69989         (Include): Use <stdlib.h> instead of exit.h.
69990         * lib/argmatch.c: Don't include exit.h.
69991         * lib/execute.c: Likewise.
69992         * lib/pagealign_alloc.c: Likewise.
69993         * lib/pipe.c: Likewise.
69994         * lib/wait-process.c: Likewise.
69995         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
69996         * lib/exitfail.c: Likewise.
69997         * lib/savewd.c: Likewise.
69998         * lib/xsetenv.c: Likewise.
69999
70000         * modules/stdlib: New file.
70001         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
70002         and extra comments about mkstemp().
70003         * lib/exit.h: Remove file.
70004         * lib/mkdtemp.h: Remove file.
70005         * lib/mkstemp.h: Remove file.
70006         * m4/stdlib_h.m4: New file.
70007         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
70008
70009 2007-02-18  Bruno Haible  <bruno@clisp.org>
70010
70011         * modules/math-tests: New file.
70012         * tests/test-math.c: New file.
70013
70014         * modules/math: New file.
70015         * modules/mathl (Files): Remove lib/mathl.h.
70016         (Depends-on): Add math.
70017         (Makefile.am): Don't mention mathl.h.
70018         (Include): Use <math.h> instead of mathl.h.
70019         * lib/math_.h: New file.
70020         * lib/mathl.h: Remove file.
70021         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
70022         mathl.h.
70023         * lib/asinl.c: Likewise.
70024         * lib/atanl.c: Likewise.
70025         * lib/ceill.c: Likewise.
70026         * lib/cosl.c: Likewise.
70027         * lib/expl.c: Likewise.
70028         * lib/floorl.c: Likewise.
70029         * lib/frexpl.c: Likewise.
70030         * lib/ldexpl.c: Likewise.
70031         * lib/logl.c: Likewise.
70032         * lib/sincosl.c: Likewise.
70033         * lib/sinl.c: Likewise.
70034         * lib/sqrtl.c: Likewise.
70035         * lib/tanl.c: Likewise.
70036         * lib/trigl.c: Likewise.
70037         * m4/math_h.m4: New file.
70038         * MODULES.html.sh (Mathematics): Add math.
70039
70040 2007-02-17  Bruno Haible  <bruno@clisp.org>
70041
70042         * modules/wctype-tests: New file.
70043         * tests/test-wctype.c: New file.
70044
70045         * modules/wchar-tests: New file.
70046         * tests/test-wchar.c: New file.
70047
70048         * modules/unistd-tests: New file.
70049         * tests/test-unistd.c: New file.
70050
70051         * modules/time-tests: New file.
70052         * tests/test-time.c: New file.
70053
70054         * modules/sysexits-tests: New file.
70055         * tests/test-sysexits.c: New file.
70056
70057         * modules/sys_time-tests: New file.
70058         * tests/test-sys_time.c: New file.
70059
70060         * modules/sys_stat-tests: New file.
70061         * tests/test-sys_stat.c: New file.
70062
70063         * modules/sys_socket-tests: New file.
70064         * tests/test-sys_socket.c: New file.
70065
70066         * modules/sys_select-tests: New file.
70067         * tests/test-sys_select.c: New file.
70068
70069         * modules/string-tests: New file.
70070         * tests/test-string.c: New file.
70071
70072         * modules/stdbool-tests: New file.
70073         * tests/test-stdbool.c: New file.
70074
70075         * modules/netinet_in-tests: New file.
70076         * tests/test-netinet_in.c: New file.
70077
70078         * modules/inttypes-tests: New file.
70079         * tests/test-inttypes.c: New file.
70080
70081         * modules/fcntl-tests: New file.
70082         * tests/test-fcntl.c: New file.
70083
70084         * modules/byteswap-tests: New file.
70085         * tests/test-byteswap.c: New file.
70086
70087         * modules/arpa_inet-tests: New file.
70088         * tests/test-arpa_inet.c: New file.
70089
70090 2007-02-17  Bruno Haible  <bruno@clisp.org>
70091
70092         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
70093         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
70094         if the corresponding module is not enabled. Emit link warnings if
70095         the function is used nevertheless.
70096         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
70097         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
70098         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
70099         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
70100         * modules/inttypes (Depends-on): Add link-warning.
70101         (Makefile.am): Copy the contents of build-aux/link-warning.h into
70102         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
70103         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
70104         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
70105         * modules/imaxdiv (configure.ac): Likewise.
70106         * modules/strtoimax (configure.ac): Likewise.
70107         * modules/strtoumax (configure.ac): Likewise.
70108
70109 2007-02-17  Bruno Haible  <bruno@clisp.org>
70110
70111         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
70112         gl_STRING_MODULE_INDICATOR_DEFAULTS.
70113         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
70114         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
70115
70116 2007-02-17  Bruno Haible  <bruno@clisp.org>
70117
70118         * modules/link-warning: New file.
70119         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
70120         * lib/string_.h (GL_LINK_WARNING): Remove definition.
70121         * modules/string (Depends-on): Add link-warning.
70122         (Makefile.am): Copy the contents of build-aux/link-warning.h into
70123         string.h.
70124         * MODULES.html.sh (Support for building libraries and executables): Add
70125         link-warning.
70126
70127 2007-02-17  Bruno Haible  <bruno@clisp.org>
70128
70129         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
70130         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
70131         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
70132         long lines.
70133
70134 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
70135             Bruno Haible  <bruno@clisp.org>
70136
70137         * modules/tmpfile: New file.
70138         * lib/tmpfile.c: New file.
70139         * m4/tmpfile.m4: New file.
70140         * MODULES.html.sh (func_all_modules): New section "Input/output".
70141
70142 2007-02-15  Bruno Haible  <bruno@clisp.org>
70143
70144         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
70145         (supports_delete_on_close): New function.
70146         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
70147
70148 2007-02-14  Bruno Haible  <bruno@clisp.org>
70149
70150         * modules/mbspcasecmp-tests: New file.
70151         * tests/test-mbspcasecmp.sh: New file.
70152         * tests/test-mbspcasecmp.c: New file.
70153
70154         New module mbspcasecmp.
70155         * modules/mbspcasecmp: New file.
70156         * lib/mbspcasecmp.c: New file.
70157         * lib/string_.h (strncasecmp): Change warning message.
70158         (mbspcasecmp): New declaration.
70159         * m4/mbspcasecmp.m4: New file.
70160         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70161         GNULIB_MBSPCASECMP.
70162         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
70163         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
70164
70165 2007-02-14  Bruno Haible  <bruno@clisp.org>
70166
70167         * modules/mbsncasecmp-tests: New file.
70168         * tests/test-mbsncasecmp.sh: New file.
70169         * tests/test-mbsncasecmp.c: New file.
70170
70171         New module mbsncasecmp.
70172         * modules/mbsncasecmp: New file.
70173         * lib/mbsncasecmp.c: New file.
70174         * lib/string_.h (mbsncasecmp): New declaration.
70175         * m4/mbsncasecmp.m4: New file.
70176         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70177         GNULIB_MBSNCASECMP.
70178         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
70179         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
70180
70181 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
70182
70183         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
70184         Verify that it doesn't overlap with our flags.
70185         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
70186         do not have the desired effect in multibyte locales; instead, use
70187         mbscasecmp.
70188         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
70189         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
70190         we don't require GNU fnmatch ourselves (if our users require it, they
70191         should do so explicitly).
70192
70193         Fix regex code so it doesn't rely on strcasecmp.
70194         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
70195         Otherwise, include gnulib's langinfo.h.
70196         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
70197         undesirable behavior in non-C locales.  Instead, rely on localecharset.
70198         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
70199         * modules/regex (FILES): Remove m4/codeset.m4.
70200         (Depends-on): Add localcharset.  Remove strcase.
70201
70202 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70203
70204         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
70205         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
70206
70207 2007-02-13  Bruno Haible  <bruno@clisp.org>
70208
70209         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
70210         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70211
70212 2007-02-12  Bruno Haible  <bruno@clisp.org>
70213
70214         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
70215         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
70216         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
70217         time warning rather than a link error.
70218
70219 2007-02-12  Bruno Haible  <bruno@clisp.org>
70220
70221         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
70222         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
70223         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70224
70225 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
70226
70227         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
70228         args, not 2.
70229
70230 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
70231
70232         New module 'time', so that apps can include <time.h> as per
70233         POSIX and GNU instead of separate include files like time_r.h
70234         and timegm.h.  This implementation tries out a simpler approach
70235         for replacing decls in standard include files (as compared to
70236         the string module), somewhat as an experiment.
70237
70238         * config/srclist.txt: Comment out mktime.c for now.
70239         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
70240         since it doesn't apply any more.  Use generic wording instead.
70241         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
70242         'time'.
70243         * lib/time_.h, m4/time_h.m4, modules/time: New files.
70244         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
70245         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
70246         Don't include <sys/types.h>; no longer needed since we assume C89.
70247         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
70248         * lib/strftime.c: Likewise.
70249         * lib/time_r.c: Likewise.
70250         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
70251         * lib/nanosleep.c: Include <time.h> first, to check interface.
70252         * lib/strptime.c: Likewise.
70253         * lib/time_r.c: Likewise.
70254         * lib/timegm.c: Likewise.
70255         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
70256         needed.
70257         * lib/timegm.c: Don't include timegm.h; no longer needed.
70258         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
70259         time.h now handles any problems in that area.
70260         (struct timespec, nanosleep): Remove; time.h now arranges for these.
70261         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
70262         that time.h defines struct timespec.
70263         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
70264         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
70265         handles that.
70266         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
70267         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
70268         needed.  Set REPLACE_LOCALTIME.
70269         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
70270         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
70271         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
70272         nanosleep; time_h.m4 now does that.  Don't require
70273         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
70274         module handles this now.
70275         * modules/getdate (Depends-on): Remove timespec.  Add time.
70276         * modules/nanosleep (Depends-on): Likewise.
70277         * modules/stat-time (Depends-on): Likewise.
70278         * modules/nanosleep (Include): Include time.h, not timespec.h.
70279         * modules/strptime (Files): Remove lib/strptime.h.
70280         (Depends-on): Add extensions, time.
70281         (Include): Include time.h, not strptime.h.
70282         * modules/time_r (Files): Remove lib/time_r.h.
70283         (Depends-on): Add time.
70284         (Include): Include time.h, not time_r.h.
70285         * modules/timegm: Likewise.
70286         * modules/timespec (Description): Now does timespec-related decls
70287         of our own, instead of struct timespec itself.
70288         (Depends-on): Add time; remove extensions.
70289         (Maintainer): Add self.
70290         * modules/utimecmp (Depends-on): Add time; remove timespec.
70291         * modules/utimens (Depends-on): Likewise.
70292         * modules/xnanosleep (Depends-on): Likewise.
70293
70294 2007-02-11  Bruno Haible  <bruno@clisp.org>
70295
70296         * lib/c-strstr.c: Include allocsa.h.
70297         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
70298         * lib/c-strcasestr.c: Include allocsa.h.
70299         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
70300         * lib/strcasestr.c: Include allocsa.h.
70301         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
70302         * lib/mbsstr.c: Include allocsa.h.
70303         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
70304         allocsa/freesa instead of malloc/free.
70305         * lib/mbscasestr.c: Include allocsa.h.
70306         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
70307         allocsa/freesa instead of malloc/free.
70308         * modules/c-strstr (Depends-on): Add allocsa.
70309         * modules/c-strcasestr (Depends-on): Likewise.
70310         * modules/strcasestr (Depends-on): Likewise.
70311         * modules/mbsstr (Depends-on): Likewise.
70312         * modules/mbscasestr (Depends-on): Likewise.
70313
70314 2007-02-11  Bruno Haible  <bruno@clisp.org>
70315
70316         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
70317
70318         * modules/mbsspn-tests: New file.
70319         * tests/test-mbsspn.sh: New file.
70320         * tests/test-mbsspn.c: New file.
70321
70322 2007-02-11  Bruno Haible  <bruno@clisp.org>
70323
70324         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
70325
70326         * modules/mbspbrk-tests: New file.
70327         * tests/test-mbspbrk.sh: New file.
70328         * tests/test-mbspbrk.c: New file.
70329
70330 2007-02-11  Bruno Haible  <bruno@clisp.org>
70331
70332         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
70333         unneeded cast.
70334
70335         * modules/mbscspn-tests: New file.
70336         * tests/test-mbscspn.sh: New file.
70337         * tests/test-mbscspn.c: New file.
70338
70339 2007-02-11  Bruno Haible  <bruno@clisp.org>
70340
70341         * modules/mbscasecmp-tests: New file.
70342         * tests/test-mbscasecmp.sh: New file.
70343         * tests/test-mbscasecmp.c: New file.
70344
70345 2007-02-11  Bruno Haible  <bruno@clisp.org>
70346
70347         Ensure O(n) worst-case complexity of mbscasestr.
70348         * lib/mbscasestr.c: Include stdbool.h.
70349         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
70350         functions.
70351         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
70352         the bookkeeping indicates that it's worth it.
70353         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
70354
70355         * modules/mbscasestr-tests: New file.
70356         * tests/test-mbscasestr1.c: New file.
70357         * tests/test-mbscasestr2.sh: New file.
70358         * tests/test-mbscasestr2.c: New file.
70359         * tests/test-mbscasestr3.sh: New file.
70360         * tests/test-mbscasestr3.c: New file.
70361         * tests/test-mbscasestr4.sh: New file.
70362         * tests/test-mbscasestr4.c: New file.
70363         * m4/locale-tr.m4: New file.
70364
70365 2007-02-11  Bruno Haible  <bruno@clisp.org>
70366
70367         Ensure O(n) worst-case complexity of mbsstr.
70368         * lib/mbsstr.c: Include stdbool.h.
70369         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
70370         functions.
70371         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
70372         bookkeeping indicates that it's worth it.
70373         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
70374
70375         * modules/mbsstr-tests: New file.
70376         * tests/test-mbsstr1.c: New file.
70377         * tests/test-mbsstr2.sh: New file.
70378         * tests/test-mbsstr2.c: New file.
70379         * tests/test-mbsstr3.sh: New file.
70380         * tests/test-mbsstr3.c: New file.
70381         * m4/locale-fr.m4: New file.
70382
70383 2007-02-11  Bruno Haible  <bruno@clisp.org>
70384
70385         * lib/mbsrchr.c (mbsrchr): Fix bug.
70386
70387         * modules/mbsrchr-tests: New file.
70388         * tests/test-mbsrchr.sh: New file.
70389         * tests/test-mbsrchr.c: New file.
70390
70391 2007-02-11  Bruno Haible  <bruno@clisp.org>
70392
70393         * lib/mbschr.c (mbschr): Fix bug.
70394
70395         * modules/mbschr-tests: New file.
70396         * tests/test-mbschr.sh: New file.
70397         * tests/test-mbschr.c: New file.
70398         * m4/locale-zh.m4: New file.
70399
70400 2007-02-11  Bruno Haible  <bruno@clisp.org>
70401
70402         Support for copying multibyte string iterators.
70403         * lib/mbiter.h: Include <string.h>.
70404         (mbiter_multi_copy): New function.
70405         (mbi_copy): New macro.
70406         * lib/mbuiter.h: Include <string.h>.
70407         (mbuiter_multi_copy): New function.
70408         (mbui_copy): New macro.
70409
70410 2007-02-11  Bruno Haible  <bruno@clisp.org>
70411
70412         New module mbslen.
70413         * modules/mbslen: New file.
70414         * lib/mbslen.c: New file.
70415         * lib/string_.h (mbslen): New declaration.
70416         * m4/mbslen.m4: New file.
70417         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70418         GNULIB_MBSLEN.
70419         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
70420         * MODULES.html.sh (Internationalization functions): Add mbslen.
70421
70422 2007-02-11  Bruno Haible  <bruno@clisp.org>
70423
70424         Ensure O(n) worst-case complexity of strcasestr substitute.
70425         * lib/strcasestr.c: Include stdbool.h.
70426         (knuth_morris_pratt): New function.
70427         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
70428         bookkeeping indicates that it's worth it.
70429         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
70430
70431         * modules/strcasestr-tests: New file.
70432         * tests/test-strcasestr.c: New file.
70433
70434 2007-02-11  Bruno Haible  <bruno@clisp.org>
70435
70436         Ensure O(n) worst-case complexity of c_strcasestr.
70437         * lib/c-strcasestr.c: Include stdbool.h, string.h.
70438         (knuth_morris_pratt): New function.
70439         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
70440         the bookkeeping indicates that it's worth it.
70441         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
70442
70443         * modules/c-strcasestr-tests: New file.
70444         * tests/test-c-strcasestr.c: New file.
70445
70446 2007-02-11  Bruno Haible  <bruno@clisp.org>
70447
70448         Ensure O(n) worst-case complexity of c_strstr.
70449         * lib/c-strstr.c: Include stdbool.h, string.h.
70450         (knuth_morris_pratt): New function.
70451         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
70452         bookkeeping indicates that it's worth it.
70453         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
70454
70455         * lib/c-strstr.c: Complete rewrite for maintainability.
70456
70457         * modules/c-strstr-tests: New file.
70458         * tests/test-c-strstr.c: New file.
70459
70460 2007-02-11  Bruno Haible  <bruno@clisp.org>
70461
70462         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
70463         5.2.1 and earlier, whereby \055 was treated just like the range
70464         delimiter '-'.
70465         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
70466
70467 2007-02-08  Bruno Haible  <bruno@clisp.org>
70468
70469         * modules/regex (Depends-on): Add stdbool.
70470         Reported by Dalibor Topic <robilad@kaffe.org>.
70471
70472 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
70473
70474         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
70475         Prefer returning from main to exiting from it.
70476         Remove unnecessary parens after sizeof.
70477
70478 2007-02-05  Bruno Haible  <bruno@clisp.org>
70479
70480         New module mbssep.
70481         * modules/mbssep: New file.
70482         * lib/mbssep.c: New file.
70483         * lib/string_.h (strsep): Add a conditional link warning.
70484         (mbssep): New declaration.
70485         * m4/mbssep.m4: New file.
70486         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70487         GNULIB_MBSSEP.
70488         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
70489         * MODULES.html.sh (Internationalization functions): Add mbssep.
70490
70491 2007-02-05  Bruno Haible  <bruno@clisp.org>
70492
70493         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
70494         Optimize search in case of 1 delimiter.
70495
70496 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
70497
70498         * lib/acl.h: Include sys/types.h before sys/acl.h.
70499
70500 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
70501
70502         Merge upstream fix for glibc bugzilla #3957:
70503
70504         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
70505
70506         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
70507         bit for RE_HAT_LISTS_NOT_NEWLINE.
70508         (build_charclass_op): Remove bogus comment.
70509
70510 2007-02-05  Simon Josefsson  <simon@josefsson.org>
70511
70512         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
70513
70514 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
70515
70516         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
70517         * lib/memmem.c [!defined _LIBC]: Include config.h.
70518
70519 2007-02-04  Bruno Haible  <bruno@clisp.org>
70520
70521         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
70522         warning message.
70523
70524 2007-02-04  Bruno Haible  <bruno@clisp.org>
70525
70526         New module mbstok_r.
70527         * modules/mbstok_r: New file.
70528         * lib/mbstok_r.c: New file.
70529         * lib/string_.h (strtok_r): Change argument names to match the
70530         comments. Add a conditional link warning.
70531         (mbstok_r): New declaration.
70532         * m4/mbstok_r.m4: New file.
70533         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70534         GNULIB_MBSTOK_R.
70535         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
70536         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
70537
70538 2007-02-04  Bruno Haible  <bruno@clisp.org>
70539
70540         New module mbsspn.
70541         * modules/mbsspn: New file.
70542         * lib/mbsspn.c: New file.
70543         * lib/string_.h (strspn): Add a conditional link warning.
70544         (mbsspn): New declaration.
70545         * m4/mbsspn.m4: New file.
70546         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70547         GNULIB_MBSSPN.
70548         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
70549         * MODULES.html.sh (Internationalization functions): Add mbsspn.
70550
70551 2007-02-04  Bruno Haible  <bruno@clisp.org>
70552
70553         New module mbspbrk.
70554         * modules/mbspbrk: New file.
70555         * lib/mbspbrk.c: New file.
70556         * lib/string_.h (strpbrk): Add a conditional link warning.
70557         (mbspbrk): New declaration.
70558         * m4/mbspbrk.m4: New file.
70559         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70560         GNULIB_MBSPBRK.
70561         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
70562         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
70563
70564 2007-02-04  Bruno Haible  <bruno@clisp.org>
70565
70566         New module mbscspn.
70567         * modules/mbscspn: New file.
70568         * lib/mbscspn.c: New file.
70569         * lib/string_.h (strcspn): Add a conditional link warning.
70570         (mbscspn): New declaration.
70571         * m4/mbscspn.m4: New file.
70572         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70573         GNULIB_MBSCSPN.
70574         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
70575         * MODULES.html.sh (Internationalization functions): Add mbscspn.
70576
70577 2007-02-04  Bruno Haible  <bruno@clisp.org>
70578
70579         New module mbscasestr, reduced goal of strcasestr.
70580         * modules/mbscasestr: New file.
70581         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
70582         (mbscasestr): Renamed from strcasestr.
70583         * lib/strcasestr.c: Don't include mbuiter.h.
70584         (strcasestr): Remove support for multibyte locales.
70585         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
70586         Change the conditional link warning.
70587         (mbscasestr): New declaration.
70588         * m4/mbscasestr.m4: New file.
70589         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
70590         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
70591         REPLACE_STRCASESTR.
70592         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
70593         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
70594         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
70595         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
70596         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
70597         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
70598         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
70599         (Depends-on): Remove mbuiter.
70600         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
70601
70602 2007-02-04  Bruno Haible  <bruno@clisp.org>
70603
70604         Simplify handling of strncasecmp.
70605         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
70606         the conditional link warning.
70607         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
70608         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
70609         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
70610         * modules/strcase (configure.ac): Don't invoke
70611         gl_STRING_MODULE_INDICATOR.
70612         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
70613
70614 2007-02-04  Bruno Haible  <bruno@clisp.org>
70615
70616         New module mbscasecmp, reduced goal of strcasecmp.
70617         * modules/mbscasecmp: New file.
70618         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
70619         (mbscasecmp): Renamed from strcasecmp.
70620         * lib/strcasecmp.c: Don't include mbuiter.h.
70621         (strcasecmp): Remove support for multibyte locales.
70622         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
70623         Change the conditional link warning.
70624         (mbscasecmp): New declaration.
70625         * m4/mbscasecmp.m4: New file.
70626         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
70627         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
70628         REPLACE_STRCASECMP.
70629         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
70630         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70631         GNULIB_MBSCASECMP.
70632         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
70633         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
70634         * modules/strcase (Files): Remove m4/mbrtowc.m4.
70635         (Depends-on): Remove mbuiter.
70636         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
70637
70638 2007-02-04  Bruno Haible  <bruno@clisp.org>
70639
70640         New module mbsstr. Remove module strstr.
70641         * modules/mbsstr: New file.
70642         * modules/strstr: Remove file.
70643         * lib/mbsstr.c: Renamed from lib/strstr.c.
70644         (mbsstr): Renamed from strstr.
70645         * lib/string_.h (strstr): Remove declaration. Change the conditional
70646         link warning.
70647         (mbsstr): New declaration.
70648         * m4/mbsstr.m4: New file.
70649         * m4/strstr.m4: Remove file.
70650         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
70651         REPLACE_STRSTR.
70652         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
70653         Don't initialize GNULIB_STRSTR.
70654         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
70655         substitute GNULIB_STRSTR and REPLACE_STRSTR.
70656         * MODULES.html.sh (Internationalization functions): Add mbsstr.
70657         (Support for systems lacking ANSI C 89): Remove strstr.
70658
70659 2007-02-04  Bruno Haible  <bruno@clisp.org>
70660
70661         New module mbsrchr.
70662         * modules/mbsrchr: New file.
70663         * lib/mbsrchr.c: New file.
70664         * lib/string_.h (strrchr): Add a conditional link warning.
70665         (mbsrchr): New declaration.
70666         * m4/mbsrchr.m4: New file.
70667         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70668         GNULIB_MBSRCHR.
70669         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
70670         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
70671
70672 2007-02-04  Bruno Haible  <bruno@clisp.org>
70673
70674         New module mbschr.
70675         * modules/mbschr: New file.
70676         * lib/mbschr.c: New file.
70677         * lib/string_.h (strchr): Add a conditional link warning.
70678         (mbschr): New declaration.
70679         * m4/mbschr.m4: New file.
70680         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70681         GNULIB_MBSCHR.
70682         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
70683         * MODULES.html.sh (Internationalization functions): Add mbschr.
70684
70685 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
70686
70687         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
70688
70689         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
70690
70691 2007-02-04  Bruno Haible  <bruno@clisp.org>
70692
70693         New module description section 'configure.ac-early'.
70694         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
70695         (func_get_autoconf_early_snippet): New function.
70696         (func_import, func_create_testdir): Use it. Remove special cases for
70697         modules 'extensions' and 'lock'.
70698         * modules/extensions (configure.ac-early): Require
70699         gl_USE_SYSTEM_EXTENSIONS.
70700         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
70701
70702 2007-02-04  Bruno Haible  <bruno@clisp.org>
70703
70704         Make use of gcj-4.3's -fsource and -ftarget option.
70705         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
70706         and if so try the options -fsource and -ftarget.
70707         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
70708         source_version, ftarget_option, target_version arguments.
70709         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
70710         (is_envjavac_oldgcj_14_14_usable): Renamed from
70711         is_envjavac_gcj_14_14_usable.
70712         (is_envjavac_oldgcj_14_13_usable): Renamed from
70713         is_envjavac_gcj_14_13_usable.
70714         (is_gcj_present): Update.
70715         (is_gcj_43, is_gcj43_usable): New functions.
70716         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
70717         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
70718         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
70719         try the options -fsource and -ftarget.
70720
70721 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
70722
70723         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
70724         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
70725         larger value.
70726
70727 2007-02-03  Jim Meyering  <jim@meyering.net>
70728
70729         Give tools a better chance to allocate space for very large buffers.
70730         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
70731
70732         Make pwd and readlink work also when run with an unreadable parent dir
70733         on systems with openat support.
70734         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
70735         provided getcwd function, even when we have openat support.
70736         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
70737
70738 2007-02-02  Bruno Haible  <bruno@clisp.org>
70739
70740         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
70741         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
70742         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
70743         portability problems if one of these functions is only used on specific
70744         platforms.
70745         Reported by Paul Eggert.
70746
70747 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
70748
70749         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
70750         is causing more trouble than it's curing.
70751         * lib/regex_internal.h (__mempcpy): Remove.
70752         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
70753         (and make the code a tad smaller to boot).
70754         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
70755
70756 2007-02-02  Jim Meyering  <jim@meyering.net>
70757
70758         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
70759         section, not in the Makefile.am: one.
70760
70761 2007-02-02  Eric Blake  <ebb9@byu.net>
70762
70763         * lib/strchrnul.c: Always include config.h first.
70764
70765         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
70766         gnulib strstr is not necessary here.
70767
70768 2007-02-02  Simon Josefsson  <simon@josefsson.org>
70769
70770         * m4/socklen.m4: Fix typo.
70771
70772 2007-02-02  Eric Blake  <ebb9@byu.net>
70773
70774         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
70775         * modules/netinet_in (Makefile.am): Likewise.
70776
70777 2007-02-01  Bruno Haible  <bruno@clisp.org>
70778
70779         * lib/string_.h (GL_LINK_WARNING): New macro.
70780         (strcasecmp, strstr, strcasestr): If provided by the system,
70781         conditionally define as a macro that leads to a warning instead of to
70782         an error.
70783         (strncasecmp): Conditionally define as a macro that leads to a warning.
70784
70785 2007-02-01  Karl Berry  <karl@gnu.org>
70786
70787         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
70788
70789 2007-02-01  Bruno Haible  <bruno@clisp.org>
70790
70791         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
70792         renamings.
70793
70794 2007-02-01  Eric Blake  <ebb9@byu.net>
70795
70796         * modules/regex (Depends-on): Revert dependence on mempcpy.
70797         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
70798         module's definition of mempcpy.
70799         Reported by Paul Eggert.
70800
70801 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
70802
70803         * lib/string_.h: If the gnulib module XYZ is not present, undefine
70804         the symbol XYZ before redefining it.  This fixes a problem with
70805         programs that don't use XYZ, when compiled on systems that define
70806         XYZ to something else.
70807
70808 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
70809
70810         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
70811         occurs when "mkdir -m foo" creates a setgid directory that is (1)
70812         writeable to group or other and (2) is intended to have a special
70813         mode bit that is set or cleared.  In such a case, the directory
70814         should be neither group- nor other-writeable until the special
70815         mode bits are right.
70816
70817 2007-01-31  Eric Blake  <ebb9@byu.net>
70818
70819         * modules/mountlist (Depends-on): Add strstr.
70820
70821         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
70822         bug.
70823         * modules/string (Makefile.am): Remove redundant replacement.
70824         * modules/regex (Depends-on): Add mempcpy.
70825
70826 2007-01-31  Bruno Haible  <bruno@clisp.org>
70827
70828         New module description field 'Link'.
70829         * gnulib-tool (func_usage): Document --extract-link-directive.
70830         (sed_extract_prog): Recognize 'Link' directive.
70831         (func_get_link_directive): New function.
70832         (func_import): Show summary of link directives.
70833         Handle --extract-link-directive option.
70834         * modules/acl (Link): New section.
70835         * modules/clock-time (Link): New section.
70836         * modules/euidaccess (Link): New section.
70837         * modules/gettext (Link): New section.
70838         * modules/iconv (Link): New section.
70839         * modules/lock (Link): New section.
70840         * modules/nanosleep (Link): New section.
70841         * modules/readline (Link): New section.
70842
70843 2007-01-27  Bruno Haible  <bruno@clisp.org>
70844
70845         Enforce the use of gnulib modules for unportable <string.h> functions.
70846         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
70847         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
70848         (gl_HEADER_STRING_H_BODY): Require it.
70849         * lib/string_.h: If the gnulib module XYZ is not present, redefine
70850         the symbol XYZ to one that gives a link error.
70851         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
70852         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
70853         * modules/mempcpy (configure.ac): Likewise.
70854         * modules/memrchr (configure.ac): Likewise.
70855         * modules/stpcpy (configure.ac): Likewise.
70856         * modules/stpncpy (configure.ac): Likewise.
70857         * modules/strcase (configure.ac): Likewise.
70858         * modules/strcasestr (configure.ac): Likewise.
70859         * modules/strchrnul (configure.ac): Likewise.
70860         * modules/strdup (configure.ac): Likewise.
70861         * modules/strndup (configure.ac): Likewise.
70862         * modules/strnlen (configure.ac): Likewise.
70863         * modules/strpbrk (configure.ac): Likewise.
70864         * modules/strsep (configure.ac): Likewise.
70865         * modules/strstr (configure.ac): Likewise.
70866         * modules/strtok_r (configure.ac): Likewise.
70867
70868 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
70869
70870         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
70871
70872 2007-01-30  Jim Meyering  <jim@meyering.net>
70873
70874         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
70875
70876 2007-01-29  Bruno Haible  <bruno@clisp.org>
70877
70878         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
70879         * lib/execute.c: Likewise.
70880         * lib/pipe.c: Likewise.
70881         * lib/printf-args.h: Likewise.
70882         * lib/printf-args.c: Likewise.
70883         * lib/printf-parse.c: Likewise.
70884         * lib/vasnprintf.c: Likewise.
70885
70886 2007-01-29  Eric Blake  <ebb9@byu.net>
70887
70888         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
70889         declaration.
70890
70891 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
70892
70893         * lib/strptime.h (strptime): Use 'restrict' for args where
70894         POSIX requires this.
70895         * lib/strptime.c (strptime): Likewise.
70896         Change license notice from LGPL to GPL, since gnulib-tool will
70897         change this as needed.
70898         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
70899         defined.
70900         Include "strptime.h" first, to check interface.
70901         Do not #undef _LIBC and _NL_CURRENT.
70902         Do not include <stdlib.h>; no longer needed.
70903         Include "time_r.h" and declare ptime_locale_status
70904         only if _LIBC is not defined.
70905         (__P): Remove unused macro.
70906         (match_string): Bring back glibc version, but use it only if _LIBC
70907         is defined.
70908         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
70909         Remove unnecessary assertion and abort() call.
70910         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
70911         * m4/strptime.m4: Fix serial number comment.
70912         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
70913         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
70914         (Depends-on): Add time_r.
70915
70916 2007-01-29  Bruno Haible  <bruno@clisp.org>
70917
70918         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
70919         strptime.
70920         * modules/strptime (Depends-on): Add stdbool.
70921         * lib/strptime.h: Include <time.h> always. Add comments.
70922
70923 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70924
70925         * modules/strptime: New file.
70926         * lib/strptime.h: New file.
70927         * lib/strptime.c: New file.
70928         * m4/strptime.m4: New file.
70929
70930 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
70931
70932         * MODULES.html.sh: New module mpsort.
70933         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
70934
70935         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
70936         a circularity problem with HP-UX ia64 reported by Bob Proulx in
70937         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
70938         All uses changed.
70939         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
70940         All uses changed.
70941         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
70942         to _Restrict_.
70943         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
70944         the parameter matches the prototype.
70945
70946 2007-01-28  Jim Meyering  <jim@meyering.net>
70947
70948         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
70949         sys/time.h here, reverting that part of the previous patch:
70950         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
70951
70952 2007-01-28  Bruno Haible  <bruno@clisp.org>
70953
70954         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
70955         value of $(SYS_TIME_H).
70956         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
70957         remove it conditionally, too. [added by Jim Meyering]
70958         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
70959         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
70960         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
70961         GETTIMEOFDAY_REPLACEMENT to 1.
70962
70963 2007-01-28  Bruno Haible  <bruno@clisp.org>
70964
70965         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
70966         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
70967         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
70968         Set UNISTD_H instead of UNISTD_H2.
70969         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
70970
70971 2007-01-28  Bruno Haible  <bruno@clisp.org>
70972
70973         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
70974         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
70975
70976 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70977
70978         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
70979         (func_create_testdir): Ensure C locale for `grep' and `tr'
70980         character ranges.
70981         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
70982         ACLOCAL_AMFLAGS parsing state machine.
70983
70984 2007-01-27  Bruno Haible  <bruno@clisp.org>
70985
70986         * modules/unistr/base: Update.
70987
70988 2007-01-27  Bruno Haible  <bruno@clisp.org>
70989
70990         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
70991         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
70992         * modules/unistr/u32-mbtouc-unsafe: Renamed from
70993         modules/unistr/u32-mbtouc.
70994         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
70995         * lib/unistr.h: Update.
70996         * lib/linebreak.c: Update.
70997         * modules/unistr/u32-mbtouc: Renamed from
70998         modules/unistr/u32-mbtouc-safe.
70999         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
71000         * lib/unistr.h: Update.
71001         * lib/unistr/u32-to-u8.c: Update.
71002         * lib/unistr/u32-to-u16.c: Update.
71003
71004 2007-01-27  Bruno Haible  <bruno@clisp.org>
71005
71006         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
71007         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
71008         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
71009         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
71010         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
71011         * modules/unistr/u16-mbtouc-unsafe: Renamed from
71012         modules/unistr/u16-mbtouc.
71013         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
71014         * lib/unistr.h: Update.
71015         * lib/linebreak.c: Update.
71016         * modules/linebreak: Update.
71017         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
71018         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
71019         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
71020         * modules/unistr/u16-mbtouc: Renamed from
71021         modules/unistr/u16-mbtouc-safe.
71022         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
71023         * lib/unistr.h: Update.
71024         * lib/unistr/u16-to-u8.c: Update.
71025         * modules/unistr/u16-to-u8: Update.
71026         * lib/unistr/u16-to-u32.c: Update.
71027         * modules/unistr/u16-to-u32: Update.
71028
71029 2007-01-27  Bruno Haible  <bruno@clisp.org>
71030
71031         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
71032         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
71033         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
71034         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
71035         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
71036         * modules/unistr/u8-mbtouc-unsafe: Renamed from
71037         modules/unistr/u8-mbtouc.
71038         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
71039         * lib/unistr.h: Update.
71040         * lib/striconveh.c: Update.
71041         * modules/striconveh: Update.
71042         * lib/linebreak.c: Update.
71043         * modules/linebreak: Update.
71044         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
71045         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
71046         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
71047         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
71048         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
71049         * lib/unistr.h: Update.
71050         * lib/striconveh.c: Update.
71051         * modules/striconveh: Update.
71052         * lib/unistr/u8-to-u16.c: Update.
71053         * modules/unistr/u8-to-u16: Update.
71054         * lib/unistr/u8-to-u32.c: Update.
71055         * modules/unistr/u8-to-u32: Update.
71056
71057 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71058
71059         Sync from Libtool.
71060         * lib/argz.c: Do not include strings.h nor memory.h, include
71061         string.h unconditionally.  Patch by Simon Josefsson.
71062
71063 2007-01-27  Bruno Haible  <bruno@clisp.org>
71064
71065         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
71066         from gl_HEADER_STRING_H_BODY.
71067         (gl_HEADER_STRING_H_BODY): Require it.
71068         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
71069         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
71070         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
71071         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
71072         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
71073         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
71074         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
71075         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
71076         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
71077         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
71078         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
71079         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
71080         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
71081         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
71082         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
71083
71084 2007-01-27  Bruno Haible  <bruno@clisp.org>
71085
71086         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
71087         check_PROGRAMS into noinst_PROGRAMS.
71088         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
71089         check_PROGRAMS in this case.
71090         (func_import): Set for_test to false.
71091         (func_create_testdir): Set for_test to true.
71092
71093 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
71094             Bruno Haible  <bruno@clisp.org>
71095
71096         * modules/strcasestr (Files): Remove lib/strcasestr.h.
71097         (Depends-on): Add string.
71098         (Includes): Use <string.h> instead of strcasestr.h.
71099         * modules/string (Makefile.am): Also substitute the value of
71100         REPLACE_STRCASESTR.
71101         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
71102         assume strcasestr is declared in <string.h> not <strings.h>. Also
71103         set REPLACE_STRCASESTR.
71104         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
71105         REPLACE_STRCASESTR.
71106         * lib/strcasestr.h: Remove file.
71107         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
71108         * lib/string_.h (strcasestr): New declaration.
71109
71110 2007-01-27  Bruno Haible  <bruno@clisp.org>
71111
71112         * lib/string_.h: Use 'extern'.
71113
71114 2007-01-27  Jim Meyering  <jim@meyering.net>
71115
71116         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
71117         of set-but-not-used local, "q".
71118
71119         * lib/mempcpy.c: Include <config.h> before <string.h>.
71120         This fixes a compilation error on HP-UX, due to the system's
71121         "restrict"-using mempcpy prototype.
71122
71123 2007-01-26  Bruno Haible  <bruno@clisp.org>
71124
71125         Small optimization.
71126         * lib/javacomp.c: Include c-strstr.h.
71127          (is_envjavac_gcj): Use c_strstr instead of strstr.
71128         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
71129
71130 2007-01-26  Bruno Haible  <bruno@clisp.org>
71131
71132         * MODULES.html.sh (Unicode string functions): Add the new modules.
71133
71134         * modules/uniconv/u32-strconv-to-locale: New file.
71135         * lib/uniconv/u32-strconv-to-locale.c: New file.
71136
71137         * modules/uniconv/u16-strconv-to-locale: New file.
71138         * lib/uniconv/u16-strconv-to-locale.c: New file.
71139
71140         * modules/uniconv/u8-strconv-to-locale: New file.
71141         * lib/uniconv/u8-strconv-to-locale.c: New file.
71142
71143         * modules/uniconv/u32-strconv-from-locale: New file.
71144         * lib/uniconv/u32-strconv-from-locale.c: New file.
71145
71146         * modules/uniconv/u16-strconv-from-locale: New file.
71147         * lib/uniconv/u16-strconv-from-locale.c: New file.
71148
71149         * modules/uniconv/u8-strconv-from-locale: New file.
71150         * lib/uniconv/u8-strconv-from-locale.c: New file.
71151
71152         * modules/uniconv/u32-strconv-to-enc: New file.
71153         * lib/uniconv/u32-strconv-to-enc.c: New file.
71154         * modules/uniconv/u32-strconv-to-enc-tests: New file.
71155         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
71156
71157         * modules/uniconv/u16-strconv-to-enc: New file.
71158         * lib/uniconv/u16-strconv-to-enc.c: New file.
71159         * lib/uniconv/u-strconv-to-enc.h: New file.
71160         * modules/uniconv/u16-strconv-to-enc-tests: New file.
71161         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
71162
71163         * modules/uniconv/u8-strconv-to-enc: New file.
71164         * lib/uniconv/u8-strconv-to-enc.c: New file.
71165         * modules/uniconv/u8-strconv-to-enc-tests: New file.
71166         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
71167
71168         * modules/uniconv/u32-strconv-from-enc: New file.
71169         * lib/uniconv/u32-strconv-from-enc.c: New file.
71170         * modules/uniconv/u32-strconv-from-enc-tests: New file.
71171         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
71172
71173         * modules/uniconv/u16-strconv-from-enc: New file.
71174         * lib/uniconv/u16-strconv-from-enc.c: New file.
71175         * modules/uniconv/u16-strconv-from-enc-tests: New file.
71176         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
71177
71178         * modules/uniconv/u8-strconv-from-enc: New file.
71179         * lib/uniconv/u8-strconv-from-enc.c: New file.
71180         * lib/uniconv/u-strconv-from-enc.h: New file.
71181         * modules/uniconv/u8-strconv-from-enc-tests: New file.
71182         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
71183
71184         * modules/uniconv/u32-conv-from-enc: New file.
71185         * lib/uniconv/u32-conv-from-enc.c: New file.
71186         * modules/uniconv/u32-conv-from-enc-tests: New file.
71187         * tests/uniconv/test-u32-conv-from-enc.c: New file.
71188
71189         * modules/uniconv/u16-conv-from-enc: New file.
71190         * lib/uniconv/u16-conv-from-enc.c: New file.
71191         * lib/uniconv/u-conv-from-enc.h: New file.
71192         * modules/uniconv/u16-conv-from-enc-tests: New file.
71193         * tests/uniconv/test-u16-conv-from-enc.c: New file.
71194
71195         * modules/uniconv/u8-conv-from-enc: New file.
71196         * lib/uniconv/u8-conv-from-enc.c: New file.
71197         * modules/uniconv/u8-conv-from-enc-tests: New file.
71198         * tests/uniconv/test-u8-conv-from-enc.c: New file.
71199
71200         * modules/uniconv/base: New file.
71201         * lib/uniconv.h: New file.
71202
71203 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
71204
71205         * doc/gnulib-tool.texi (Initial import): Update to match current
71206         behavior with strdup module.
71207         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
71208         * lib/memmem.h: Remove; all uses removed.  This is now done
71209         by <string.h>.
71210         * lib/mempcpy.h: Likewise.
71211         * lib/memrchr.h: Likewise.
71212         * lib/stpcpy.h: Likewise.
71213         * lib/stpncpy.h: Likewise.
71214         * lib/strcase.h: Likewise.
71215         * lib/strchrnul.h: Likewise.
71216         * lib/strdup.h: Likewise.
71217         * lib/strndup.h: Likewise.
71218         * lib/strnlen.h: Likewise.
71219         * lib/strpbrk.h: Likewise.
71220         * lib/strsep.h: Likewise.
71221         * lib/strstr.h: Likewise.
71222         * lib/strtok_r.h: Likewise.
71223         * lib/string_.h: New file.
71224         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
71225         Rely on <string.h> instead.
71226         * lib/canon-host.c: Likewise.
71227         * lib/chdir-long.c: Likewise.
71228         * lib/concatpath.c: Likewise.
71229         * lib/exclude.c: Likewise.
71230         * lib/fchdir.c: Likewise.
71231         * lib/getaddrinfo.c: Likewise.
71232         * lib/getcwd.c: Likewise.
71233         * lib/getsubopt.c: Likewise.
71234         * lib/glob.c: Likewise.
71235         * lib/hard-locale.c: Likewise.
71236         * lib/iconvme.c: Likewise.
71237         * lib/javacomp.c: Likewise.
71238         * lib/mempcpy.c: Likewise.
71239         * lib/memrchr.c: Likewise.
71240         * lib/regex_internal.h: Likewise.
71241         * lib/stpncpy.c: Likewise.
71242         * lib/strcasecmp.c: Likewise.
71243         * lib/strchrnul.c: Likewise.
71244         * lib/strdup.c: Likewise.
71245         * lib/striconv.c: Likewise.
71246         * lib/striconveh.c: Likewise.
71247         * lib/striconveha.c: Likewise.
71248         * lib/strncasecmp.c: Likewise.
71249         * lib/strndup.c: Likewise.
71250         * lib/strnlen.c: Likewise.
71251         * lib/strsep.c: Likewise.
71252         * lib/strstr.c: Likewise.
71253         * lib/strtok_r.c: Likewise.
71254         * lib/userspec.c: Likewise.
71255         * lib/w32spawn.h: Likewise.
71256         * lib/xstrndup.c: Likewise.
71257         * lib/mountlist.c (strstr): Remove decl.
71258         * m4/string_h.m4: New file.
71259         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
71260         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
71261         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
71262         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
71263         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
71264         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
71265         Set REPLACE_STRCASECMP if necessary.
71266         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
71267         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
71268         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
71269         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
71270         HAVE_DECL_STRDUP if necessary.
71271         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
71272         since gl_FUNC_STRNDUP does that now.
71273         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
71274         Check for decl here...
71275         (gl_PREREQ_STRNLEN): ... not here.
71276         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
71277         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
71278         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
71279         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
71280         necessary.
71281         * modules/string: New file.
71282         * modules/memmem (Files): Remove special-purpose include file.
71283         (Depends-on): Add string.
71284         (Include): Include <string.h>, not the removed file.
71285         * modules/mempcpy: Likewise.
71286         * modules/memrchr: Likewise.
71287         * modules/stpcpy: Likewise.
71288         * modules/stpncpy: Likewise.
71289         * modules/strcase: Likewise.
71290         * modules/strchrnul: Likewise.
71291         * modules/strdup: Likewise.
71292         * modules/strndup: Likewise.
71293         * modules/strnlen: Likewise.
71294         * modules/strpbrk: Likewise.
71295         * modules/strsep: Likewise.
71296         * modules/strstr: Likewise.
71297         * modules/strtok_r: Likewise.
71298         * tests/test-dirname.c: Don't include "strdup.h", since
71299         <string.h> now suffices.
71300         * tests/test-memmem.c: Don't include "memmem.h", since
71301         <string.h> now suffices.
71302
71303 2007-01-25  Bruno Haible  <bruno@clisp.org>
71304
71305         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
71306         *resultp is 0.
71307
71308         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
71309         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
71310         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
71311         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
71312
71313         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
71314         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
71315         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
71316         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
71317         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
71318         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
71319
71320 2007-01-24  Bruno Haible  <bruno@clisp.org>
71321
71322         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
71323         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
71324         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
71325         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
71326         gl_FUNC_FTS_CORE.
71327         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
71328         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
71329         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
71330         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
71331         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
71332         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
71333         gl_FUNC_FCHOWNAT.
71334         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
71335         gl_FUNC_STRFTIME.
71336         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
71337         Reported by Ralf Wildenhues.
71338
71339 2007-01-24  Bruno Haible  <bruno@clisp.org>
71340
71341         Drop AC_REQUIRE calls that are redundant with the module dependencies.
71342         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
71343         gl_GETADDRINFO.
71344         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
71345         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
71346         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
71347
71348 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
71349
71350         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
71351         Don't use 'exit'; just return from 'main'.
71352         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
71353
71354         * lib/fnmatch_.h: Readjust white space and comments to match
71355         glibc, to avoid spurious diffs.
71356
71357 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
71358
71359         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
71360         2004-12-01 change by Jakub Jelinek, since this code won't compile
71361         if !LIBC.  Problem reported by Bob Proulx.
71362
71363 2007-01-23  Bruno Haible  <bruno@clisp.org>
71364
71365         * lib/striconveh.c: Include c-strcaseeq.h.
71366         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
71367         * modules/striconveh (Depends-on): Add c-strcaseeq.
71368
71369 2007-01-23  Bruno Haible  <bruno@clisp.org>
71370
71371         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
71372
71373         * modules/c-strcaseeq: New file.
71374         * lib/c-strcaseeq.h: New file.
71375
71376         * modules/streq: New file.
71377         * lib/streq.h: New file.
71378
71379 2007-01-23  Bruno Haible  <bruno@clisp.org>
71380
71381         * modules/striconveha-tests: New file.
71382         * tests/test-striconveha.c: New file.
71383
71384         * lib/striconveha.h: Include <stdbool.h>.
71385         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
71386         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
71387         (mem_iconveha_notranslit): Renamed from mem_iconveha.
71388         (mem_iconveha): New function.
71389         (str_iconveha_notranslit): Renamed from str_iconveha.
71390         (str_iconveha): New function.
71391         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
71392         c-strcase.
71393
71394 2007-01-23  Bruno Haible  <bruno@clisp.org>
71395
71396         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
71397         encodings without forgiving before trying any encoding with handler.
71398         (str_iconveha): Try all encodings without forgiving before trying any
71399         encoding with handler.
71400
71401 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
71402
71403         Import the following changes from libc.
71404
71405         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
71406
71407         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
71408
71409         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
71410
71411         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
71412         normal_bracket label.
71413
71414         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
71415
71416         [BZ #361]
71417         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
71418         to normal_bracket after fetching the next character.
71419
71420 2007-01-22  Bruno Haible  <bruno@clisp.org>
71421
71422         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
71423         argument.
71424         * lib/striconveh.c (iconv_carefully_1): New function.
71425         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
71426         argument.
71427         (str_cd_iconveh): Update.
71428         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
71429         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
71430         * tests/test-striconveh.c (MAGIC): New macro.
71431         (new_offsets): New function.
71432         (main): Test call with and without offsets.
71433
71434 2007-01-22  Bruno Haible  <bruno@clisp.org>
71435
71436         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
71437         * modules/sys_select (Makefile.am): Likewise.
71438         * modules/sys_socket (Makefile.am): Likewise.
71439         * modules/sys_time (Makefile.am): Likewise.
71440
71441 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
71442
71443         * modules/gettimeofday (License): Change from GPL to LGPL, since
71444         gettimeofday is a library function.
71445
71446 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71447
71448         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
71449
71450 2007-01-21  Bruno Haible  <bruno@clisp.org>
71451
71452         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
71453
71454 2007-01-21  Bruno Haible  <bruno@clisp.org>
71455
71456         * modules/striconveha: New file.
71457         * lib/striconveha.h: New file.
71458         * lib/striconveha.c: New file.
71459         * MODULES.html.sh (Internationalization functions): Add striconveha.
71460         * lib/striconv.c (str_iconv): Optimize the case of an empty input
71461         string.
71462         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
71463
71464 2007-01-21  Bruno Haible  <bruno@clisp.org>
71465
71466         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
71467         * lib/striconveh.c (str_iconveh): Likewise.
71468
71469 2007-01-21  Bruno Haible  <bruno@clisp.org>
71470
71471         * lib/striconveh.h (mem_iconveh): New declaration.
71472         * lib/striconveh.c (mem_iconveh): New function.
71473         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
71474
71475 2007-01-21  Bruno Haible  <bruno@clisp.org>
71476
71477         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
71478
71479         * lib/striconveh.h (mem_cd_iconveh): Change specification.
71480         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
71481         original result buffer.
71482         (str_cd_iconveh): Update.
71483         * tests/test-striconveh.c (main): Update.
71484
71485         * lib/striconv.h (mem_cd_iconv): Change specification.
71486         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
71487         result buffer.
71488         (str_cd_iconv): Update.
71489         * tests/test-striconv.c (main): Update.
71490
71491 2007-01-21  Bruno Haible  <bruno@clisp.org>
71492
71493         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
71494
71495 2007-01-20  Jim Meyering  <jim@meyering.net>
71496
71497         * lib/userspec.c (parse_with_separator): If a user or group string
71498         starts with "+", skip the corresponding name-to-ID look-up, since
71499         such a look-up must fail: user and group names may not include "+".
71500
71501 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
71502
71503         * lib/poll.c: Include sys/time.h and time.h unconditionally,
71504         since we now assume the sys_time module.
71505         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
71506         check for sys/time.h; no longer needed.
71507         * modules/poll (Depends-on): Depend on sys_time.
71508
71509 2007-01-18  Bruno Haible  <bruno@clisp.org>
71510
71511         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
71512         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
71513
71514         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
71515         gettimeofday.
71516
71517         * tests/test-gettimeofday.c: Include <time.h>.
71518         (dummy): Remove variable.
71519
71520         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
71521         gl_HEADER_SYS_TIME_H.
71522         (gl_HEADER_SYS_TIME_H): New macro.
71523
71524         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
71525         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
71526         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
71527         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
71528         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
71529         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
71530         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
71531         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
71532         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
71533         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
71534         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
71535
71536         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
71537         last change; it caused a compilation error when cross-compiling to
71538         Cygwin.
71539
71540 2007-01-18  Jim Meyering  <jim@meyering.net>
71541
71542         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
71543         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
71544         than the race-prone "test -d sys || mkdir sys".
71545         (configure.ac): Use AC_PROG_MKDIR_P.
71546         * modules/sys_select: Likewise.
71547         * modules/sys_socket: Likewise.
71548         * modules/sys_time: Likewise.
71549
71550 2007-01-18  Eric Blake  <ebb9@byu.net>
71551
71552         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
71553         replace gettimeofday.
71554         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
71555         name, to avoid infinite recursion.
71556
71557 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
71558
71559         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
71560         module sys_time.
71561         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
71562         assume timespec.h defines struct timeval.
71563         * lib/settime.c: Likewise.
71564         * lib/utimens.c: Likewise.
71565         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
71566         since we now assume the gettimeofday module.
71567         * lib/tempname.c (__gen_tempname): Likewise.
71568         * lib/gettimeofday.h: Remove.
71569         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
71570         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
71571         Include <time.h>, for 'time()'.
71572         (localtime_buffer_addr): Also use this workaround if
71573         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
71574         to simplify the uses.  All uses changed.
71575         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
71576         that #undef is inside {}, and 'const' follows type name consistently.
71577         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
71578         (gettimeofday): Do not use the maximum possible value for
71579         tv->tv_usec, since that might break usages other than ls.c.
71580         Instead, we'll leave ls.c alone.  This undoes today's patch
71581         by Bruno.  Add a compile-time warning for 1s-clock resolution;
71582         we've never observed the problem but might as well keep the
71583         canary.
71584         * lib/nanosleep.c: Include timespec.h first, for interface check.
71585         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
71586         now assume the sys_time module.
71587         * lib/tempname.c: Likewise.
71588         * lib/timespec.h: Likewise.
71589         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
71590         needed.
71591         * lib/strftime.c: Likewise.
71592         * lib/timespec.h: Likewise.
71593         * lib/posixtm.c: Include posixtm.h first, for interface check.
71594         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
71595         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
71596         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
71597         * lib/sys_time_.h: New file.
71598         * lib/timespec.h (struct timespec): Use long int, not long.
71599         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
71600         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
71601         Remove obsolescent call to AC_HEADER_TIME.
71602         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
71603         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
71604         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
71605         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
71606         Likewise.
71607         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
71608         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
71609         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
71610         into the sys_time module.  Check for gettimeofday just once.
71611         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
71612         for gettimeofday signature to just check the signature.  Merely
71613         compile it, since linking doesn't test signature.  Improve test for
71614         whether gettimeofday.o is actually needed.
71615         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
71616         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
71617         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
71618         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
71619         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
71620         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
71621         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
71622         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
71623         than worrying about sys/time.h.
71624         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
71625         Don't bother worrying about TIME_WITH_SYS_TIME.
71626         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
71627         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
71628         * m4/sys_time_h.m4: New file.
71629         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
71630         Don't include sys/time.h.  Return from main rather than exiting.
71631         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
71632         all uses changed.
71633         * modules/gethrxtime (Depends-on): Add sys_time.
71634         * modules/gettime (Depends-on): Likewise.
71635         * modules/gettimeofday (Depends-on): Likewise.
71636         * modules/nanosleep (Depends-on): Likewise.
71637         * modules/settime (Depends-on): Likewise.
71638         * modules/tempname (Depends-on): Likewise.
71639         * modules/utimens (Depends-on): Likewise.
71640         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
71641         (Include): Change back to <sys/time.h>.
71642         (Maintainer): Add self.
71643         * modules/sys_time: New file.
71644         * modules/tempname (Depends-on): Add gettimeofday.
71645         * tests/test-gettimeofday.c: Include <sys/time.h>
71646         rather than gettimeofday.h.
71647
71648 2007-01-17  Bruno Haible  <bruno@clisp.org>
71649
71650         * gnulib-tool (func_get_license): Revert last patch. Instead, let
71651         the license default to GPL.
71652         (func_create_testdir): Don't complain if a module is LGPL and its
71653         tests module depends on GPLed modules.
71654
71655 2007-01-17  Bruno Haible  <bruno@clisp.org>
71656
71657         * lib/gettimeofday.c (gettimeofday): Add code for the case
71658         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
71659         maximum possible value for tv->tv_usec, rather than the minimum one.
71660
71661 2005-10-08  Martin Lambers  <marlam@marlam.de>
71662 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
71663 2007-01-16  Bruno Haible  <bruno@clisp.org>
71664
71665         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
71666         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
71667         gl_FUNC_GETTIMEOFDAY.
71668         (Include): Add gettimeofday.h.
71669         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
71670         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
71671         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
71672         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
71673         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
71674         * lib/gettimeofday.h: New file.
71675         * lib/gettimeofday.c: Include <sys/timeb.h>.
71676         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
71677         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
71678         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
71679         fall back on time().
71680
71681         * tests/test-gettimeofday.c: New file.
71682         * modules/gettimeofday-tests: New file.
71683
71684 2007-01-16  Eric Blake  <ebb9@byu.net>
71685
71686         * modules/fnmatch (Depends-on): Depend on wchar.
71687         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
71688         * m4/fnmatch.m4: Likewise.
71689         * modules/mbchar (Makefile.am): Assume <wchar.h>.
71690         * m4/mbchar.m4: Likewise.
71691         * modules/mbswidth (Depends-on): Depend on wchar.
71692         * lib/mbswidth.c: Assume <wchar.h>.
71693         * m4/mbswidth.m4: Likewise.
71694         * modules/quotearg (Depends-on): Depend on wchar.
71695         * lib/quotearg.c: Assume <wchar.h>.
71696         * m4/quotearg.m4: Likewise.
71697         * modules/regex (Depends-on): Depend on wchar.
71698         * lib/regex_internal.h: Assume <wchar.h>.
71699         * m4/regex.m4: Likewise.
71700         * modules/stdint (Depends-on): Depend on wchar.
71701         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
71702         * m4/stdint.m4: Likewise.
71703         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
71704         * modules/strftime (Depends-on): Depend on wchar.
71705         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
71706         * modules/strtol (Depends-on): Depend on wchar.
71707         * lib/strtol.c: Assume <wchar.h>.
71708         * modules/wcwidth (Depends-on): Depend on wchar.
71709         * lib/wcwidth.h: Assume <wchar.h>.
71710         * m4/wcwidth.m4: Likewise.
71711
71712 2007-01-16  Bruno Haible  <bruno@clisp.org>
71713
71714         * modules/csharpexec-script: New, created from...
71715         * modules/csharpexec: ... this.
71716
71717 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
71718
71719         * modules/javaexec-script: New, created from...
71720         * modules/javaexec: ... this.
71721
71722 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71723
71724         * modules/poll (Dependencies): Add sys_select.
71725
71726 2007-01-15  Jim Meyering  <jim@meyering.net>
71727
71728         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
71729         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
71730         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
71731         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
71732
71733 2007-01-15  Bruno Haible  <bruno@clisp.org>
71734
71735         * modules/striconveh: New file.
71736         * lib/striconveh.h: New file.
71737         * lib/striconveh.c: New file.
71738         * MODULES.html.sh (Internationalization functions): Add striconveh.
71739
71740         * modules/striconveh-tests: New file.
71741         * tests/test-striconveh.c: New file.
71742
71743 2007-01-15  Bruno Haible  <bruno@clisp.org>
71744
71745         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
71746         not from GNU libiconv or GNU libc.
71747
71748 2007-01-15  Bruno Haible  <bruno@clisp.org>
71749
71750         * doc/gnulib-intro.texi (Copyright): Explain the different license
71751         terms for module descriptions, autoconf macros, tests, documentation.
71752
71753 2007-01-14  Bruno Haible  <bruno@clisp.org>
71754
71755         * modules/striconv-tests: New file.
71756         * tests/test-striconv.c: New file.
71757
71758 2007-01-14  Bruno Haible  <bruno@clisp.org>
71759
71760         * modules/iconv-tests: New file.
71761         * tests/test-iconv.c: New file.
71762
71763 2007-01-14  Bruno Haible  <bruno@clisp.org>
71764
71765         * gnulib-tool (func_get_license): For test modules, use the license of
71766         the main module.
71767
71768 2007-01-14  Bruno Haible  <bruno@clisp.org>
71769
71770         * modules/iconv (Include): Clarify that <iconv.h> can only be included
71771         if iconv is found to exist.
71772
71773 2007-01-14  Bruno Haible  <bruno@clisp.org>
71774
71775         * modules/c-ctype-tests: New file.
71776         * tests/test-c-ctype.c: New file.
71777
71778 2007-01-14  Bruno Haible  <bruno@clisp.org>
71779
71780         * modules/binary-io-tests: New file.
71781         * tests/test-binary-io.sh: New file.
71782         * tests/test-binary-io.c: New file.
71783
71784 2007-01-14  Bruno Haible  <bruno@clisp.org>
71785
71786         * modules/array-oset-tests: New file.
71787         * tests/test-array_oset.c: New file.
71788
71789 2007-01-14  Bruno Haible  <bruno@clisp.org>
71790
71791         * modules/array-list-tests: New file.
71792         * tests/test-array_list.c: New file.
71793
71794 2007-01-14  Bruno Haible  <bruno@clisp.org>
71795
71796         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
71797         and make.
71798         Reported by Simon Josefsson in
71799         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
71800
71801 2007-01-14  Bruno Haible  <bruno@clisp.org>
71802
71803         * modules/allocsa-tests: New file.
71804         * tests/test-allocsa.c: New file.
71805
71806 2007-01-14  Bruno Haible  <bruno@clisp.org>
71807
71808         * modules/fchdir (Depends-on): Add absolute-header.
71809         * modules/unistd (Depends-on): Likewise.
71810
71811 2006-12-30  Bruno Haible  <bruno@clisp.org>
71812
71813         * modules/fchdir: New file.
71814         * modules/unistd (Files): Add lib/unistd_.h.
71815         (Makefile.am): Generate unistd.h from unistd_.h.
71816         * lib/fchdir.c: New file.
71817         * lib/dirent_.h: New file.
71818         * lib/unistd_.h: New file.
71819         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
71820         * m4/fchdir.m4: New file.
71821         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
71822         (gl_HEADER_UNISTD): Invoke it.
71823         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
71824         function.
71825         * lib/backupfile.c (opendir, closedir): Undefine.
71826         * lib/chown.c (open, close): Undefine.
71827         * lib/clean-temp.c (open, close): Undefine.
71828         * lib/copy-file.c (open, close): Undefine.
71829         * lib/execute.c (open, close): Undefine.
71830         * lib/fsusage.c (open, close): Undefine.
71831         * lib/gc-gnulib.c (open, close): Undefine.
71832         * lib/getcwd.c (opendir, closedir): Undefine.
71833         * lib/glob.c (opendir, closedir): Undefine.
71834         * lib/javacomp.c (open, close): Undefine.
71835         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
71836         * lib/openat-proc.c (open, close): Undefine.
71837         * lib/pagealign_alloc.c (open, close): Undefine.
71838         * lib/pipe.c (open, close): Undefine.
71839         * lib/progreloc.c (open, close): Undefine.
71840         * lib/savedir.c (opendir, closedir): Undefine.
71841         * lib/utime.c (open, close): Undefine.
71842         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
71843
71844 2007-01-10  Bruno Haible  <bruno@clisp.org>
71845
71846         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
71847
71848 2007-01-12  Eric Blake  <ebb9@byu.net>
71849
71850         Provide a robust <wchar.h>.  Further simplifications are now
71851         possible in other modules, but not included here.
71852         * modules/wchar: New module.
71853         * m4/wchar.m4: New file.
71854         * lib/wchar_.h: Likewise.
71855         * modules/mbchar (Depends-on): Depend on wchar, as the first use
71856         of the new module.
71857         * MODULES.html.sh (Extended multibyte and wide character utilities):
71858         New section.
71859
71860 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
71861
71862         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
71863         to a reasonable default for memory allocation.
71864         (xreadlink): Don't allocate a huge buffer, to work around a buggy
71865         file system that reports garbage st_size values for symlinks.
71866         Problem reported by Liyang Hu.
71867
71868 2007-01-11  Simon Josefsson  <simon@josefsson.org>
71869
71870         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
71871         Emacs .#* auto-save files).
71872
71873 2007-01-11  Bruno Haible  <bruno@clisp.org>
71874
71875         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
71876         directory.
71877
71878 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
71879
71880         Use @...@ consistently in lib/wctype_.h.
71881         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
71882         on it being set to 1 or 0.
71883         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
71884         go back to AC_SUBSTing it.
71885         * modules/wctype (Makefile.am): Undo previous change.
71886
71887 2007-01-10  Eric Blake  <ebb9@byu.net>
71888
71889         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
71890         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
71891         * modules/wctype (Makefile.am): Likewise.
71892         Reported by Chris McGuire.
71893
71894 2007-01-10  Jim Meyering  <jim@meyering.net>
71895
71896         fts.c: a small readability/maintainability improvement
71897         * lib/fts.c (fts_read): Make this code slightly more readable and
71898         maintainable by hoisting the "sp->fts_cur = p" assignments to
71899         immediately follow the statements that set P.  Derived from
71900         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
71901
71902 2007-01-10  Eric Blake  <ebb9@byu.net>
71903
71904         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
71905         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
71906         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
71907         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
71908         Reported by Chris McGuire.
71909
71910 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71911
71912         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
71913         in sed script.
71914
71915 2007-01-09  Bruno Haible  <bruno@clisp.org>
71916
71917         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
71918         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
71919         variables.
71920         (func_module): Use them.
71921
71922 2007-01-09  Bruno Haible  <bruno@clisp.org>
71923
71924         * modules/unistr/base: New file.
71925         * lib/unistr.h: New file.
71926
71927         * modules/unistr/u8-to-u16: New file.
71928         * lib/unistr/u8-to-u16.c: New file.
71929
71930         * modules/unistr/u8-to-u32: New file.
71931         * lib/unistr/u8-to-u32.c: New file.
71932
71933         * modules/unistr/u16-to-u8: New file.
71934         * lib/unistr/u16-to-u8.c: New file.
71935
71936         * modules/unistr/u16-to-u32: New file.
71937         * lib/unistr/u16-to-u32.c: New file.
71938
71939         * modules/unistr/u32-to-u8: New file.
71940         * lib/unistr/u32-to-u8.c: New file.
71941
71942         * modules/unistr/u32-to-u16: New file.
71943         * lib/unistr/u32-to-u16.c: New file.
71944
71945         * modules/unistr/u8-check: New file.
71946         * modules/unistr/u16-check: New file.
71947         * modules/unistr/u32-check: New file.
71948         * lib/unistr/u8-check.c: New file.
71949         * lib/unistr/u16-check.c: New file.
71950         * lib/unistr/u32-check.c: New file.
71951
71952         * modules/unistr/u8-chr: New file.
71953         * modules/unistr/u16-chr: New file.
71954         * modules/unistr/u32-chr: New file.
71955         * lib/unistr/u8-chr.c: New file.
71956         * lib/unistr/u16-chr.c: New file.
71957         * lib/unistr/u32-chr.c: New file.
71958
71959         * modules/unistr/u8-cmp: New file.
71960         * modules/unistr/u16-cmp: New file.
71961         * modules/unistr/u32-cmp: New file.
71962         * lib/unistr/u8-cmp.c: New file.
71963         * lib/unistr/u16-cmp.c: New file.
71964         * lib/unistr/u32-cmp.c: New file.
71965
71966         * modules/unistr/u8-cpy: New file.
71967         * modules/unistr/u16-cpy: New file.
71968         * modules/unistr/u32-cpy: New file.
71969         * lib/unistr/u8-cpy.c: New file.
71970         * lib/unistr/u16-cpy.c: New file.
71971         * lib/unistr/u32-cpy.c: New file.
71972         * lib/unistr/u-cpy.h: New file.
71973
71974         * modules/unistr/u8-cpy-alloc: New file.
71975         * modules/unistr/u16-cpy-alloc: New file.
71976         * modules/unistr/u32-cpy-alloc: New file.
71977         * lib/unistr/u8-cpy-alloc.c: New file.
71978         * lib/unistr/u16-cpy-alloc.c: New file.
71979         * lib/unistr/u32-cpy-alloc.c: New file.
71980         * lib/unistr/u-cpy-alloc.h: New file.
71981
71982         * modules/unistr/u8-endswith: New file.
71983         * modules/unistr/u16-endswith: New file.
71984         * modules/unistr/u32-endswith: New file.
71985         * lib/unistr/u8-endswith.c: New file.
71986         * lib/unistr/u16-endswith.c: New file.
71987         * lib/unistr/u32-endswith.c: New file.
71988         * lib/unistr/u-endswith.h: New file.
71989
71990         * modules/unistr/u8-mblen: New file.
71991         * modules/unistr/u16-mblen: New file.
71992         * modules/unistr/u32-mblen: New file.
71993         * lib/unistr/u8-mblen.c: New file.
71994         * lib/unistr/u16-mblen.c: New file.
71995         * lib/unistr/u32-mblen.c: New file.
71996
71997         * modules/unistr/u8-mbtouc: New file.
71998         * modules/unistr/u16-mbtouc: New file.
71999         * modules/unistr/u32-mbtouc: New file.
72000         * lib/unistr/u8-mbtouc.c: New file.
72001         * lib/unistr/u16-mbtouc.c: New file.
72002         * lib/unistr/u32-mbtouc.c: New file.
72003
72004         * modules/unistr/u8-mbtouc-safe: New file.
72005         * modules/unistr/u16-mbtouc-safe: New file.
72006         * modules/unistr/u32-mbtouc-safe: New file.
72007         * lib/unistr/u8-mbtouc-safe.c: New file.
72008         * lib/unistr/u16-mbtouc-safe.c: New file.
72009         * lib/unistr/u32-mbtouc-safe.c: New file.
72010
72011         * modules/unistr/u8-move: New file.
72012         * modules/unistr/u16-move: New file.
72013         * modules/unistr/u32-move: New file.
72014         * lib/unistr/u8-move.c: New file.
72015         * lib/unistr/u16-move.c: New file.
72016         * lib/unistr/u32-move.c: New file.
72017         * lib/unistr/u-move.h: New file.
72018
72019         * modules/unistr/u8-next: New file.
72020         * modules/unistr/u16-next: New file.
72021         * modules/unistr/u32-next: New file.
72022         * lib/unistr/u8-next.c: New file.
72023         * lib/unistr/u16-next.c: New file.
72024         * lib/unistr/u32-next.c: New file.
72025
72026         * modules/unistr/u8-prev: New file.
72027         * modules/unistr/u16-prev: New file.
72028         * modules/unistr/u32-prev: New file.
72029         * lib/unistr/u8-prev.c: New file.
72030         * lib/unistr/u16-prev.c: New file.
72031         * lib/unistr/u32-prev.c: New file.
72032
72033         * modules/unistr/u8-set: New file.
72034         * modules/unistr/u16-set: New file.
72035         * modules/unistr/u32-set: New file.
72036         * lib/unistr/u8-set.c: New file.
72037         * lib/unistr/u16-set.c: New file.
72038         * lib/unistr/u32-set.c: New file.
72039         * lib/unistr/u-set.h: New file.
72040
72041         * modules/unistr/u8-startswith: New file.
72042         * modules/unistr/u16-startswith: New file.
72043         * modules/unistr/u32-startswith: New file.
72044         * lib/unistr/u8-startswith.c: New file.
72045         * lib/unistr/u16-startswith.c: New file.
72046         * lib/unistr/u32-startswith.c: New file.
72047         * lib/unistr/u-startswith.h: New file.
72048
72049         * modules/unistr/u8-stpcpy: New file.
72050         * modules/unistr/u16-stpcpy: New file.
72051         * modules/unistr/u32-stpcpy: New file.
72052         * lib/unistr/u8-stpcpy.c: New file.
72053         * lib/unistr/u16-stpcpy.c: New file.
72054         * lib/unistr/u32-stpcpy.c: New file.
72055         * lib/unistr/u-stpcpy.h: New file.
72056
72057         * modules/unistr/u8-stpncpy: New file.
72058         * modules/unistr/u16-stpncpy: New file.
72059         * modules/unistr/u32-stpncpy: New file.
72060         * lib/unistr/u8-stpncpy.c: New file.
72061         * lib/unistr/u16-stpncpy.c: New file.
72062         * lib/unistr/u32-stpncpy.c: New file.
72063         * lib/unistr/u-stpncpy.h: New file.
72064
72065         * modules/unistr/u8-strcat: New file.
72066         * modules/unistr/u16-strcat: New file.
72067         * modules/unistr/u32-strcat: New file.
72068         * lib/unistr/u8-strcat.c: New file.
72069         * lib/unistr/u16-strcat.c: New file.
72070         * lib/unistr/u32-strcat.c: New file.
72071         * lib/unistr/u-strcat.h: New file.
72072
72073         * modules/unistr/u8-strchr: New file.
72074         * modules/unistr/u16-strchr: New file.
72075         * modules/unistr/u32-strchr: New file.
72076         * lib/unistr/u8-strchr.c: New file.
72077         * lib/unistr/u16-strchr.c: New file.
72078         * lib/unistr/u32-strchr.c: New file.
72079
72080         * modules/unistr/u8-strcmp: New file.
72081         * modules/unistr/u16-strcmp: New file.
72082         * modules/unistr/u32-strcmp: New file.
72083         * lib/unistr/u8-strcmp.c: New file.
72084         * lib/unistr/u16-strcmp.c: New file.
72085         * lib/unistr/u32-strcmp.c: New file.
72086
72087         * modules/unistr/u8-strcpy: New file.
72088         * modules/unistr/u16-strcpy: New file.
72089         * modules/unistr/u32-strcpy: New file.
72090         * lib/unistr/u8-strcpy.c: New file.
72091         * lib/unistr/u16-strcpy.c: New file.
72092         * lib/unistr/u32-strcpy.c: New file.
72093         * lib/unistr/u-strcpy.h: New file.
72094
72095         * modules/unistr/u8-strcspn: New file.
72096         * modules/unistr/u16-strcspn: New file.
72097         * modules/unistr/u32-strcspn: New file.
72098         * lib/unistr/u8-strcspn.c: New file.
72099         * lib/unistr/u16-strcspn.c: New file.
72100         * lib/unistr/u32-strcspn.c: New file.
72101         * lib/unistr/u-strcspn.h: New file.
72102
72103         * modules/unistr/u8-strdup: New file.
72104         * modules/unistr/u16-strdup: New file.
72105         * modules/unistr/u32-strdup: New file.
72106         * lib/unistr/u8-strdup.c: New file.
72107         * lib/unistr/u16-strdup.c: New file.
72108         * lib/unistr/u32-strdup.c: New file.
72109         * lib/unistr/u-strdup.h: New file.
72110
72111         * modules/unistr/u8-strlen: New file.
72112         * modules/unistr/u16-strlen: New file.
72113         * modules/unistr/u32-strlen: New file.
72114         * lib/unistr/u8-strlen.c: New file.
72115         * lib/unistr/u16-strlen.c: New file.
72116         * lib/unistr/u32-strlen.c: New file.
72117         * lib/unistr/u-strlen.h: New file.
72118
72119         * modules/unistr/u8-strmblen: New file.
72120         * modules/unistr/u16-strmblen: New file.
72121         * modules/unistr/u32-strmblen: New file.
72122         * lib/unistr/u8-strmblen.c: New file.
72123         * lib/unistr/u16-strmblen.c: New file.
72124         * lib/unistr/u32-strmblen.c: New file.
72125
72126         * modules/unistr/u8-strmbtouc: New file.
72127         * modules/unistr/u16-strmbtouc: New file.
72128         * modules/unistr/u32-strmbtouc: New file.
72129         * lib/unistr/u8-strmbtouc.c: New file.
72130         * lib/unistr/u16-strmbtouc.c: New file.
72131         * lib/unistr/u32-strmbtouc.c: New file.
72132
72133         * modules/unistr/u8-strncat: New file.
72134         * modules/unistr/u16-strncat: New file.
72135         * modules/unistr/u32-strncat: New file.
72136         * lib/unistr/u8-strncat.c: New file.
72137         * lib/unistr/u16-strncat.c: New file.
72138         * lib/unistr/u32-strncat.c: New file.
72139         * lib/unistr/u-strncat.h: New file.
72140
72141         * modules/unistr/u8-strncmp: New file.
72142         * modules/unistr/u16-strncmp: New file.
72143         * modules/unistr/u32-strncmp: New file.
72144         * lib/unistr/u8-strncmp.c: New file.
72145         * lib/unistr/u16-strncmp.c: New file.
72146         * lib/unistr/u32-strncmp.c: New file.
72147
72148         * modules/unistr/u8-strncpy: New file.
72149         * modules/unistr/u16-strncpy: New file.
72150         * modules/unistr/u32-strncpy: New file.
72151         * lib/unistr/u8-strncpy.c: New file.
72152         * lib/unistr/u16-strncpy.c: New file.
72153         * lib/unistr/u32-strncpy.c: New file.
72154         * lib/unistr/u-strncpy.h: New file.
72155
72156         * modules/unistr/u8-strnlen: New file.
72157         * modules/unistr/u16-strnlen: New file.
72158         * modules/unistr/u32-strnlen: New file.
72159         * lib/unistr/u8-strnlen.c: New file.
72160         * lib/unistr/u16-strnlen.c: New file.
72161         * lib/unistr/u32-strnlen.c: New file.
72162         * lib/unistr/u-strnlen.h: New file.
72163
72164         * modules/unistr/u8-strpbrk: New file.
72165         * modules/unistr/u16-strpbrk: New file.
72166         * modules/unistr/u32-strpbrk: New file.
72167         * lib/unistr/u8-strpbrk.c: New file.
72168         * lib/unistr/u16-strpbrk.c: New file.
72169         * lib/unistr/u32-strpbrk.c: New file.
72170         * lib/unistr/u-strpbrk.h: New file.
72171
72172         * modules/unistr/u8-strrchr: New file.
72173         * modules/unistr/u16-strrchr: New file.
72174         * modules/unistr/u32-strrchr: New file.
72175         * lib/unistr/u8-strrchr.c: New file.
72176         * lib/unistr/u16-strrchr.c: New file.
72177         * lib/unistr/u32-strrchr.c: New file.
72178
72179         * modules/unistr/u8-strspn: New file.
72180         * modules/unistr/u16-strspn: New file.
72181         * modules/unistr/u32-strspn: New file.
72182         * lib/unistr/u8-strspn.c: New file.
72183         * lib/unistr/u16-strspn.c: New file.
72184         * lib/unistr/u32-strspn.c: New file.
72185         * lib/unistr/u-strspn.h: New file.
72186
72187         * modules/unistr/u8-strstr: New file.
72188         * modules/unistr/u16-strstr: New file.
72189         * modules/unistr/u32-strstr: New file.
72190         * lib/unistr/u8-strstr.c: New file.
72191         * lib/unistr/u16-strstr.c: New file.
72192         * lib/unistr/u32-strstr.c: New file.
72193         * lib/unistr/u-strstr.h: New file.
72194
72195         * modules/unistr/u8-strtok: New file.
72196         * modules/unistr/u16-strtok: New file.
72197         * modules/unistr/u32-strtok: New file.
72198         * lib/unistr/u8-strtok.c: New file.
72199         * lib/unistr/u16-strtok.c: New file.
72200         * lib/unistr/u32-strtok.c: New file.
72201         * lib/unistr/u-strtok.h: New file.
72202
72203         * modules/unistr/u8-uctomb: New file.
72204         * modules/unistr/u16-uctomb: New file.
72205         * modules/unistr/u32-uctomb: New file.
72206         * lib/unistr/u8-uctomb.c: New file.
72207         * lib/unistr/u16-uctomb.c: New file.
72208         * lib/unistr/u32-uctomb.c: New file.
72209
72210         * MODULES.html.sh (Unicode string functions): Add the new modules.
72211
72212 2007-01-08  Bruno Haible  <bruno@clisp.org>
72213
72214         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
72215         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
72216         subdirectories.
72217
72218 2007-01-08  Karl Berry  <karl@gnu.org>
72219
72220         * doc/error.texi: mention that main() fns must set program_name
72221         when progname is used.
72222
72223 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
72224
72225         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
72226         WCTYPE_H is empty, for the benefit of builds from non-distclean
72227         directories.  Problem reported by Eric Blake in
72228         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
72229
72230 2007-01-08  Bruno Haible  <bruno@clisp.org>
72231
72232         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
72233         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
72234         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
72235         PROVIDE_CANONICALIZE_FILENAME_MODE.
72236         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
72237
72238 2007-01-08  Bruno Haible  <bruno@clisp.org>
72239
72240         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
72241         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
72242         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
72243         * lib/fts.c: Likewise.
72244         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
72245
72246 2006-12-25  Bruno Haible  <bruno@clisp.org>
72247
72248         * modules/utf8-ucs4-safe: New file.
72249         * lib/utf8-ucs4-safe.h: New file.
72250         * lib/unistr/utf8-ucs4-safe.c: New file.
72251
72252         * modules/utf16-ucs4-safe: New file.
72253         * lib/utf16-ucs4-safe.h: New file.
72254         * lib/unistr/utf16-ucs4-safe.c: New file.
72255
72256         * MODULES.html.sh (Unicode string functions): Add the new modules.
72257
72258 2007-01-08  Bruno Haible  <bruno@clisp.org>
72259
72260         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
72261         (Depends-on): Add unitypes.
72262         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
72263         (u8_mbtouc_aux): Move out to separate file.
72264         (u8_mbtouc): Use ucs4_t, uint8_t types.
72265         * lib/unistr/utf8-ucs4.c: New file.
72266
72267         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
72268         (Depends-on): Add unitypes.
72269         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
72270         (u16_mbtouc_aux): Move out to separate file.
72271         (u16_mbtouc): Use ucs4_t, uint16_t types.
72272         * lib/unistr/utf16-ucs4.c: New file.
72273
72274         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
72275         (Depends-on): Add unitypes.
72276         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
72277         (u8_uctomb_aux): Move out to separate file.
72278         (u8_uctomb): Use ucs4_t, uint8_t types.
72279         * lib/unistr/ucs4-utf8.c: New file.
72280
72281         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
72282         (Depends-on): Add unitypes.
72283         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
72284         (u16_uctomb_aux): Move out to separate file.
72285         (u16_uctomb): Use ucs4_t, uint16_t types.
72286         * lib/unistr/ucs4-utf16.c: New file.
72287
72288 2006-12-25  Bruno Haible  <bruno@clisp.org>
72289
72290         * modules/unitypes: New file.
72291         * lib/unitypes.h: New file.
72292         * MODULES.html.sh (func_all_modules): New section "Unicode string
72293         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
72294         this section. Add unitypes.
72295
72296 2007-01-08  Bruno Haible  <bruno@clisp.org>
72297
72298         Avoid variable names that conflict with those from libtool.
72299         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
72300         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
72301         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
72302         library_names_spec to acl_library_names_spec, hardcode_* to
72303         acl_hardcode_*.
72304         Reported by Ralf Wildenhues.
72305
72306 2007-01-08  Bruno Haible  <bruno@clisp.org>
72307
72308         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
72309         definition.
72310         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
72311         definition.
72312         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
72313         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
72314         definition.
72315         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
72316         definition.
72317         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
72318         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
72319         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
72320         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
72321         definition.
72322         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
72323         definition.
72324         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
72325         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
72326         GC_USE_<algorithm>.
72327         * lib/gc-libgcrypt.c: Likewise.
72328         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
72329         * modules/gc-arctwo (configure.ac): Likewise.
72330         * modules/gc-des (configure.ac): Likewise.
72331         * modules/gc-hmac-md5 (configure.ac): Likewise.
72332         * modules/gc-hmac-sha1 (configure.ac): Likewise.
72333         * modules/gc-md2 (configure.ac): Likewise.
72334         * modules/gc-md4 (configure.ac): Likewise.
72335         * modules/gc-md5 (configure.ac): Likewise.
72336         * modules/gc-random (configure.ac): Likewise.
72337         * modules/gc-rijndael (configure.ac): Likewise.
72338         * modules/gc-sha1 (configure.ac): Likewise.
72339
72340 2007-01-08  Bruno Haible  <bruno@clisp.org>
72341
72342         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
72343         macro definition.
72344         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
72345         definition.
72346         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
72347         definition.
72348         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
72349         * modules/fcntl-safer (configure.ac): Likewise.
72350         * modules/fopen-safer (configure.ac): Likewise.
72351         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
72352         GNULIB_FWRITEERROR macro definition.
72353
72354 2007-01-08  Bruno Haible  <bruno@clisp.org>
72355
72356         * m4/gnulib-common.m4: New file.
72357         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
72358         (func_get_filelist): Add m4/gnulib-common.m4.
72359
72360 2007-01-08  Bruno Haible  <bruno@clisp.org>
72361
72362         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
72363         command.
72364
72365 2007-01-08  Jim Meyering  <jim@meyering.net>
72366
72367         Use a more robust test for a "can't happen" condition.
72368         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
72369         narrowed the st_size value.  Presuming the "can't happen" condition
72370         is true, that narrowing could conceivably convert an invalid st_size
72371         value into a valid one.  Instead, use a change based on Matthew
72372         Woehlke's original patch.
72373
72374         Slight readability improvement: use an assert-like macro
72375         in place of literal "abort ()" uses.
72376         * lib/fts.c (fts_assert): Define.
72377         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
72378         Use this macro instead of a bare 'abort'.
72379
72380 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
72381
72382         Don't worry about using IRIX 5.3's wctype.h broken definitions;
72383         simply work around them.
72384         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
72385         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
72386         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
72387         declaring.
72388         Don't bother to define as macros, since the standard doesn't require it.
72389         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
72390         longer worry about IRIX 5.3.
72391         (HAVE_WCTYPE_CTMP_BUG): Remove.
72392
72393 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
72394
72395         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
72396         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
72397         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
72398         Problems reported by Georg Schwarz for IRIX 5.3.
72399
72400         * gnulib-tool (autoconf_minversion): Take the maximum version number
72401         found, not the minimum.  Problem reported by James Youngman.
72402
72403 2007-01-03  Karl Berry  <karl@gnu.org>
72404
72405         * doc/error.texi: new file, explaining interaction with progname.
72406         * doc/gnulib.texi: include it.  Update copyright.
72407
72408 2007-01-03  Simon Josefsson  <simon@josefsson.org>
72409
72410         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
72411         AC_CANONICAL_HOST, to improve autobuild outputs.
72412
72413 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
72414             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
72415
72416         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
72417         sockets, server sockets, and other file descriptors.  Count errors
72418         to compute the return value.  Reorder the code a bit to be easier
72419         to follow.  Don't set event bits that were not requested (except
72420         POLLERR and POLLHUP).
72421
72422 2007-01-01  Bruno Haible  <bruno@clisp.org>
72423
72424         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
72425
72426 2007-01-03  Jim Meyering  <jim@meyering.net>
72427
72428         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
72429
72430 2007-01-02  Bruno Haible  <bruno@clisp.org>
72431
72432         * modules/settime (Include): Require timespec.h.
72433         * modules/nanosleep (Include): Likewise.
72434
72435 2007-01-01  Bruno Haible  <bruno@clisp.org>
72436
72437         * gnulib-tool (func_emit_copyright_notice): Bump year.
72438         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
72439
72440 2007-01-01  Bruno Haible  <bruno@clisp.org>
72441
72442         Improve support for OpenBSD.
72443         * build-aux/config.rpath (libname_spec): Export.
72444         (library_names_spec): New variable. Export.
72445         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
72446         library_names_spec from the config.rpath output. Locate shared library
72447         through the name pattern in library_names_spec.
72448
72449 2007-01-01  Eric Blake  <ebb9@byu.net>
72450
72451         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
72452
72453 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
72454
72455         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
72456         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
72457         assume the C locale, and avoid an "eval" that could cause trouble.
72458         Problem with SORT reported by Bob Proulx.
72459
72460         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
72461         Define.  Trivial patch from Henning Nielsen Lund, originally
72462         sent to bug-grep@gnu.org today.
72463
72464 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
72465
72466         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
72467         struct stat.  Problem reported by Henning Nielsen Lund.
72468         * lib/acl.c: Include acl.h first, to check interface.  Don't
72469         bother to include sys/types.h and sys/stat.h again.
72470
72471 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
72472
72473         Import the following change from libc; problem reported by
72474         Sven Verdoolaege.
72475
72476         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
72477
72478         [BZ #1373]
72479         * lib/argp.h: Remove __NTH for __argp_usage inline function.
72480
72481 2006-12-28  Jim Meyering  <jim@meyering.net>
72482
72483         * build-aux/announce-gen: Do not assume that the package
72484         builds any of tar.gz, tar.bz2, and .xdelta files.
72485         Suggestion from Simon Josefsson.
72486
72487 2006-12-28  Simon Josefsson  <simon@josefsson.org>
72488
72489         * modules/announce-gen: New file.
72490
72491 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
72492
72493         * lib/mbchar.h: Just include <wctype.h>; the wctype module
72494         handles its gotchas now.
72495         * lib/mbswidth.c: Likewise.
72496         * lib/wcwidth.h: Likewise.
72497         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
72498         and iswcntrl; the wctype module does this stuff now.
72499         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
72500         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
72501         * modules/mbchar (Depends-on): Add wctype.
72502         * modules/mbswidth (Depends-on): Likewise.
72503         * modules/wcwidth (Depends-on): Likewise.
72504
72505 2006-12-27  Eric Blake  <ebb9@byu.net>
72506
72507         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
72508         module uses more than what <wctype.h> is required to provide.
72509
72510 2006-12-26  Eric Blake  <ebb9@byu.net>
72511
72512         * gnulib-tool (sed_extract_prog): Avoid space-tab.
72513
72514 2006-12-26  Eric Blake  <ebb9@byu.net>
72515
72516         * modules/absolute-header: New module.
72517         * modules/fcntl (Depends-on): Depend on it.
72518         * modules/inttypes (Depends-on): Likewise.
72519         * modules/stdint (Depends-on): Likewise.
72520         * modules/sys_stat (Depends-on): Likewise.
72521         * modules/wctype (Depends-on): Likewise.
72522         * MODULES.html.sh (Support for building libraries and
72523         executables): Document it.
72524
72525 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
72526
72527         * gnulib-tool (SED): Remove, undoing previous change.
72528         The problem was that it broke coreutils on Solaris, because
72529         "sed --posix" leaked into a makefile.
72530         (sed): New alias, if 'alias' and GNU sed.
72531
72532 2006-12-24  Jim Meyering  <jim@meyering.net>
72533
72534         Work around an fchownat bug in glibc-2.4:
72535         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
72536         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
72537         in spite of the -P option.
72538         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
72539         New macros.
72540         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
72541         * modules/openat (Files): Add lib/fchownat.c.
72542         * lib/openat.c (fchownat): Don't define here.  Move to...
72543         * lib/fchownat.c: ...this new file.
72544
72545 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
72546
72547         Fix bug reported by Bruno Haible in
72548         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
72549         where quotearg.c didn't compile on Mac OS X 10.2 because it
72550         lacks <wchar.h> and wint_t.
72551         * lib/wctype_.h (__wctype_wint_t): New type.
72552         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
72553         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
72554         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
72555         Arg is now of type __wctype_wint_t, not wint_t.
72556         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
72557         substitute HAVE_WINT_T.
72558         * modules/wctype (Files): Add m4/wint_t.m4.
72559         (wctype.h): Substitute HAVE_WINT_T.
72560
72561 2006-12-23  Bruno Haible  <bruno@clisp.org>
72562
72563         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
72564
72565 2006-12-23  Bruno Haible  <bruno@clisp.org>
72566
72567         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
72568         S_ISLNK.
72569         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
72570         mingw.
72571
72572 2006-12-22  Bruno Haible  <bruno@clisp.org>
72573
72574         * lib/copy-file.c: Include acl.h.
72575         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
72576         Close the file descriptors only after being done with copy_acl.
72577         * modules/copy-file (Depends-on): Add acl.
72578
72579 2006-12-22  Bruno Haible  <bruno@clisp.org>
72580
72581         * gnulib-tool (SED): New variable.
72582         Use $SED instead of sed everywhere.
72583
72584 2006-12-22  Bruno Haible  <bruno@clisp.org>
72585
72586         * modules/no-c++: New file.
72587         * m4/no-c++.m4: New file.
72588         * MODULES.html.sh (Support for building libraries and executables):
72589         Add no-c++.
72590
72591 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
72592
72593         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
72594         Include <limits.h>, and use its INT_MAX to rewrite the
72595         j loop so that it does not overflow 'int'.  Problem reported by
72596         Ralf Wildenhues in
72597         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
72598         Play it safe by shifting left by 1 rather than multiplying by 2,
72599         as GCC is less likely to optimize this away when the value
72600         is signed (when it assumes overflow leads to undefined behavior).
72601         Also, don't assume time_t uses two's complement.
72602
72603 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
72604
72605         * MODULES.html.sh: New module wctype.
72606         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
72607         * lib/fnmatch.c: Don't bother to include <wchar.h> before
72608         <wctype.h>, since the new wctype module should fix this.
72609         * lib/quotearg.c: Include <wctype.h> unconditionally, since
72610         the wctype module should arrange for it.
72611         * lib/regex_internal.h: Likewise.
72612         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
72613         since the wctype module should handle this now.
72614         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
72615         * modules/fnmatch (Depends-on): Add wctype.
72616         * modules/quotearg (Depends-on): Likewise.
72617         * modules/regex (Depends-on): Likewise.
72618
72619 2006-12-19  Bruno Haible  <bruno@clisp.org>
72620
72621         * lib/strdup.h [C++]: Wrap definitions in extern "C".
72622         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
72623
72624 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72625
72626         * modules/savewd (Depends-on): Fix dependency on fcntl.
72627
72628 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
72629
72630         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
72631         conforms to C99, rather than relying on the user's environment
72632         setting of STDINT_H.
72633
72634 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
72635         and Eric Blake  <ebb9@byu.net>
72636
72637         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
72638         This is more consistent with the other defines here.
72639         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
72640         Port to z/OS.  Problem reported by Paul Gilmartin.
72641         Change local vars to use gl_ prefix rather than ac_.
72642         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
72643         with other defines.
72644         * modules/double-slash-root: New module.
72645         * modules/dirname (Files): Remove m4/double-slash-root.m4.
72646         (Depends-on): Add double-slash-root.
72647         * MODULES.html.sh (File system functions): Mention new module.
72648
72649 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
72650
72651         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
72652         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
72653         This is for the benefit of gzip, which doesn't do i18n.
72654
72655 2006-12-12  Jim Meyering  <jim@meyering.net>
72656
72657         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
72658         Reported by Andreas Schwab <schwab@suse.de>.
72659
72660 2006-12-12  Bruno Haible  <bruno@clisp.org>
72661
72662         Merge these changes.
72663         2006-09-05  Bruno Haible  <bruno@clisp.org>
72664         * lib/iconvme.c (iconv_string): No need to save and restore errno when
72665         iconv_alloc succeeded.
72666         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
72667         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
72668         test for " && dest " at the end - dest is always != NULL there. Call
72669         iconv with 4xNULL arguments initially, to reset the state. Call iconv
72670         with 2xNULL arguments, also to flush the state storage. Handle the
72671         IRIX iconv behaviour. Realloc the final result, to throw away unused
72672         memory.
72673
72674 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
72675
72676         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
72677         and fchmodat unconditionally, since glibc 2.4 has them.
72678         Problem reported by Arkadiusz Miskiewicz.
72679
72680 2006-12-10  Bruno Haible  <bruno@clisp.org>
72681
72682         * gnulib-tool (func_import): Show the include files only for those
72683         modules that are copied and specified.
72684         Reported by Karl Berry.
72685
72686 2006-12-08  Jim Meyering  <jim@meyering.net>
72687
72688         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
72689         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
72690
72691         * build-aux/announce-gen: Add two new options, both optional:
72692         --bootstrap-tools=TOOL_LIST
72693               a comma-separated list of tools, e.g.,
72694               autoconf,automake,bison,gnulib
72695         --gnulib-snapshot-date=DATE
72696               if gnulib is in the bootstrap tool list,
72697               then report this as the snapshot date.
72698               If not specified, use the current date/time.
72699               If you specify a date here, be sure it's UTC.
72700
72701 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72702
72703         * tests/test-argp-2.sh: Fix test to match actual output.
72704         (func_compare): Fix sed script to be portable.
72705
72706 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
72707
72708         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
72709         workaround for this case.  It is not autoconfigured now; offhand
72710         it's hard to see how to autoconfigure it.
72711
72712 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
72713
72714         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
72715         a directory that is about to be chowned.  Such a directory's
72716         initial file permissions should permit the owner only and this
72717         should not be changed until after the chown, since the group and
72718         other bits would be incorrect if they granted permission before
72719         the chown.
72720
72721         Fix porting problem for iswctype reported by Georg Schwarz in:
72722         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
72723         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
72724         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
72725         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
72726         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
72727
72728 2006-12-03  Jim Meyering  <jim@meyering.net>
72729
72730         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
72731         p->fts_statp may not yet be defined.
72732         (fts_read): Instead, set it in the caller, once p->fts_statp is
72733         sure to be defined, and corresponds to a top-level directory.
72734         This bug made du -x fail.  Here's the coreutils test case:
72735         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
72736         Reported by Mike Frysinger.
72737
72738 2006-12-01  Jim Meyering  <jim@meyering.net>
72739
72740         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
72741         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
72742         Reported by Simon Josefsson.
72743
72744 2006-11-30  Jim Meyering  <jim@meyering.net>
72745
72746         * m4/warning.m4: Use the all-permissive copyright notice
72747         recommended by RMS (rather than LGPL).
72748         * m4/vararrays.m4: Likewise.
72749         * m4/flexmember.m4: Likewise.
72750
72751 2006-11-29  Bruno Haible  <bruno@clisp.org>
72752
72753         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
72754         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
72755         using +=.
72756         Reported by Simon Josefsson <simon@josefsson.org>.
72757
72758 2006-11-28  James Youngman <jay@gnu.org>
72759
72760         * README: Advise users that they might find the bug-gnulib@gnu.org
72761         and autotools-announce@gnu.org mailing lists useful.
72762
72763 2006-11-28  Bruno Haible  <bruno@clisp.org>
72764
72765         * m4/ptrdiff_max.m4: Remove file.
72766
72767 2006-11-21  Bruno Haible  <bruno@clisp.org>
72768
72769         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
72770         _AC_COMPUTE_INT.
72771         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
72772         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
72773         _AC_COMPUTE_INT.
72774         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
72775         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
72776         _AC_COMPUTE_INT.
72777         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
72778
72779 2006-11-28  Jim Meyering  <jim@meyering.net>
72780
72781         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
72782         warning from "gcc -Wshadow" about shadowing the builtin.
72783
72784 2006-11-27  Bruno Haible  <bruno@clisp.org>
72785
72786         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): 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-27  Bruno Haible  <bruno@clisp.org>
72791             Paul Eggert  <eggert@cs.ucla.edu>
72792
72793         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
72794
72795 2006-11-26  Bruno Haible  <bruno@clisp.org>
72796
72797         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
72798         noinst_LTLIBRARIES.
72799
72800 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
72801             Bruno Haible  <bruno@clisp.org>
72802
72803         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
72804         if compiling with "gcc -ansi".
72805
72806 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
72807
72808         Fix some incompatibilities with gcc -ansi -pedantic.
72809         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
72810         if compiling pedantically with GCC, unless it's C99 or later.
72811         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
72812         it mishandles gcc -ansi -pedantic as well.
72813         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
72814         if gcc -pedantic.
72815         * lib/regexec.c (check_node_accept_bytes): Don't use auto
72816         initializers for struct if -pedantic, unless it's C99 or later.
72817
72818 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
72819
72820         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
72821         Don't close an fd more than once. Identical atimes indicate
72822         success, not failure.
72823
72824 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
72825
72826         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
72827
72828 2006-11-23  Jim Meyering  <jim@meyering.net>
72829
72830         * build-aux/announce-gen: New file.  From coreutils.
72831
72832 2006-11-22  Jim Meyering  <jim@meyering.net>
72833
72834         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
72835         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
72836         (fts_read): Use a temporary to narrow the overused st_size member
72837         before using it in a switch statement.  Reported by Matthew Woehlke.
72838
72839         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
72840         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
72841
72842 2006-11-20  Bruno Haible  <bruno@clisp.org>
72843
72844         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
72845         changequote instead of pairs of brackets.
72846         Reported by Andreas Schwab <schwab@suse.de>.
72847
72848 2006-11-21  Jim Meyering  <jim@meyering.net>
72849
72850         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
72851         so as to remain compatible with older compilers.
72852         Patch from Michael Deutschmann.
72853
72854 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
72855
72856         * MODULES.html.sh (File system functions): Add openat.
72857
72858         * lib/openat.h (rpl_fstatat): New macro, if
72859         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
72860         (fstatat): Define to rpl_fstatat under the same conditions,
72861         unless COMPILING_FSTATAT.
72862         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
72863         seems to have the bug.
72864         * lib/fstatat.c: New file.
72865         * modules/openat (Files): Add it.
72866
72867 2006-11-20  Bruno Haible  <bruno@clisp.org>
72868
72869         * Makefile: New file.
72870
72871 2006-11-20  Jim Meyering  <jim@meyering.net>
72872
72873         The beginnings of syntax-related checks for gnulib.
72874         * lib/Makefile: New file.
72875         * lib/t-idcache: New script.  Ensure that the two halves of
72876         idcache.c stay in sync.
72877
72878         * lib/idcache.c: Adjust comments in user- and group- portions to
72879         be more accurate, and to be consistent with one another.
72880
72881 2006-11-20  Jim Meyering  <jim@meyering.net>
72882
72883         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
72884         continue using the flexible array member (thus, this module performs
72885         half as many malloc calls), with the addition that...
72886         (getgroup, getuser): Consistently record a non-match via an empty
72887         "name" string, and map an empty string match to a NULL return value.
72888         * modules/idcache (Depends-on): Re-add flexmember.
72889
72890         * lib/idcache.c (getuser): Remove all uses of the register keyword.
72891         (getuidbyname, getgroup, getgidbyname): Likewise.
72892
72893         Use cleaner syntax: NULL rather than 0.
72894         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
72895
72896 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
72897
72898         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
72899         It mishandled the case where the group was missing.
72900         Problem reported by Greg Schafer.
72901         * modules/idcache: Likewise.
72902
72903 2006-11-18  Jim Meyering  <jim@meyering.net>
72904
72905         * check-module (%exempt_header): Add exception for some
72906         conditionally-included headers.
72907
72908         * modules/i-ring (Depends-on): Add verify.
72909         (License): Change to LGPL.
72910
72911 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
72912
72913         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
72914         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
72915         and inttostr.h.  Use snprintf rather than uinttostr, so that
72916         LGPLed code doesn't depend on GPLed.
72917
72918 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
72919
72920         * modules/inline (License): Change from GPL to LGPL.
72921
72922 2006-11-17  Jim Meyering  <jim@meyering.net>
72923
72924         * modules/d-type (License): Switch to LGPL.
72925
72926 2006-11-15  Bruno Haible  <bruno@clisp.org>
72927
72928         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
72929
72930 2006-11-15  Eric Blake  <ebb9@byu.net>
72931
72932         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
72933         the module dependency.
72934
72935 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72936             Bruno Haible  <bruno@clisp.org>
72937
72938         * gnulib-tool (func_create_testdir): Add license consistency check.
72939
72940 2006-11-15  Eric Blake  <ebb9@byu.net>
72941
72942         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
72943         random "(cached)" in configure output.
72944
72945 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72946
72947         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
72948         test for conforming inttypes.h is both announced and cached.
72949
72950         * MODULES.html.sh (seen_modules, seen_files): New variables.
72951         (func_module): Rewrite to use a few less gnulib-tool and sed
72952         invocations.  Avoid a couple of quadratic algorithms for ...
72953         (missed_modules, missed_files): ... these, with ...
72954         (func_append, func_tmpdir): ... these new functions, from
72955         gnulib-tool.  Analogously, install traps for cleanup.
72956
72957         * tests/test-gc.c (main): Remove unused variables.
72958         * tests/test-read-file.c: Include stdlib.h, for 'free'.
72959
72960 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
72961
72962         * modules/inttostr (License): Change to LGPL.
72963
72964 2006-11-14  Eric Blake  <ebb9@byu.net>
72965
72966         * modules/tempname (License): Change to LGPL.
72967
72968 2006-11-14  Eric Blake  <ebb9@byu.net>
72969
72970         * doc/functions.texi (Function Portability): *printf functions on
72971         Cygwin now understand all POSIX size specifiers.
72972
72973 2006-11-14  Bruno Haible  <bruno@clisp.org>
72974
72975         * modules/c-ctype (License): Change to LGPL.
72976
72977 2006-11-12  Bruno Haible  <bruno@clisp.org>
72978
72979         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
72980         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
72981         for GNOME libraries, for which the include files are installed in
72982         subdirectories of $prefix/include.
72983
72984 2006-11-12  Bruno Haible  <bruno@clisp.org>
72985
72986         * m4/lib-link.m4: Require at least autoconf-2.54.
72987         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
72988         name to underscores for the --with option.
72989
72990 2006-11-13  Bruno Haible  <bruno@clisp.org>
72991
72992         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
72993         the tests directory.
72994         Reported by Ralf Wildenhues.
72995
72996 2006-11-13  Bruno Haible  <bruno@clisp.org>
72997
72998         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
72999         (func_emit_initmacro_end): Undo the override here.
73000         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
73001         Works around the famous automake error in coreutils.
73002
73003 2006-11-13  Eric Blake  <ebb9@byu.net>
73004
73005         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
73006         element, not its node.
73007
73008 2006-11-12  Bruno Haible  <bruno@clisp.org>
73009
73010         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
73011         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
73012
73013 2006-11-12  Bruno Haible  <bruno@clisp.org>
73014
73015         * gnulib-tool: New option --local-symlink.
73016         (func_usage): Document it.
73017         (lsymbolic): New variable.
73018         (func_import, func_create_testdir): If --symlink was not specified,
73019         test whether --local-symlink was specified and the file comes from
73020         the local_gnulib_dir.
73021
73022 2006-11-12  Bruno Haible  <bruno@clisp.org>
73023
73024         * gnulib-tool (func_ln): New function.
73025         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
73026
73027 2006-11-12  Bruno Haible  <bruno@clisp.org>
73028
73029         Finish support for source files in subdirectories.
73030         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
73031         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
73032         AUTOMAKE_OPTIONS.
73033         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
73034
73035 2006-11-12  Bruno Haible  <bruno@clisp.org>
73036
73037         * gnulib-tool (func_get_automake_snippet): Synthesize also an
73038         EXTRA_lib_SOURCES augmentation.
73039         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
73040
73041 2006-11-12  Jim Meyering  <jim@meyering.net>
73042
73043         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
73044         file descriptors.  This also averts a failure on systems with
73045         native openat support when a traversed directory lacks "x" access.
73046         * lib/fts_.h: Include "i-ring.h"
73047         (struct FTS) [fts_fd_ring]: New member.
73048         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
73049         (FCHDIR): Add parentheses.
73050         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
73051         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
73052         When descending, rather than simply closing the previous
73053         fts_cwd_fd value, push that file descriptor onto the ring.
73054         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
73055         (fts_open): Initialize the new fd_ring member.
73056         (fts_close): Clear the ring.
73057         (fts_safe_changedir): When possible, use our new fd_ring to skip
73058         the diropen and fstat and dev/ino comparison that would normally
73059         accompany a virtual `chdir ("..")'.
73060
73061         * modules/fts (Depends-on): Add i-ring.
73062         * modules/i-ring: New module.
73063         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
73064         * m4/i-ring.m4: New file.
73065
73066 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73067
73068         * gnulib-tool (func_create_testdir): Fix replacement of
73069         `build-aux' in configure.ac.  Run autotools in gltests
73070         subdirectory.
73071         (func_create_testdir, func_create_megatestdir, test): There is
73072         no need for '--force' in most autotool invocations in a new
73073         tree.  Actually fail the whole test if any of the tools, or the
73074         configure or make stages fail.
73075
73076         Sync from Automake.
73077         * build-aux/gnupload: Revert last change.  Add pointer to upload
73078         instructions of the GNU Maintenance Instructions.
73079         Suggestion by Karl Berry.
73080
73081 2006-11-10  Jim Meyering  <jim@meyering.net>
73082
73083         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
73084
73085 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
73086
73087         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
73088         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
73089         (bind_textdomain_codeset) [! ENABLE_NLS]:
73090         Evaluate all the arguments.  That way, callers get compatible behavior
73091         if the arguments have side effects.  Also, it avoids some GCC
73092         diagnostics in some cases; Joel E. Denny reported problems when Bison
73093         was configured with --enable-gcc-warnigs.
73094
73095 2006-11-10  Jim Meyering  <jim@meyering.net>
73096
73097         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
73098         relevant options in CFLAGS (like -O, -fno-inline) are taken into
73099         account.
73100
73101 2006-11-10  Jim Meyering  <jim@meyering.net>
73102
73103         * modules/inline: New file/module.
73104         * modules/xalloc (Files): Remove m4/inline.m4.
73105         (Depends-on): Add inline, instead.
73106         * modules/oset: Likewise.
73107         * modules/list: Likewise.
73108
73109 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
73110
73111         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
73112         Problem reported by Matthew Woehlke.
73113
73114 2006-11-09  Bruno Haible  <bruno@clisp.org>
73115
73116         * lib/tempname.c (gen_tempname): Remove variant that invokes
73117         __gen_tempname.
73118         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
73119         __gen_tempname.
73120
73121 2006-11-08  Bruno Haible  <bruno@clisp.org>
73122
73123         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
73124         to 'yes' instead of 'cross-compiling'.
73125
73126 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
73127
73128         * lib/quotearg.h (quotearg_free): New decl.
73129         * lib/quotearg.c (quotearg_free): New function.
73130         (slot0, nslots, slotvec0, slotvec):
73131         Now file-scope so that quotearg_free can get at them.
73132
73133 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73134
73135         Sync from Automake.
73136         * build-aux/gnupload: Add missing 'gnu' to example URL.
73137         Report by Karl Berry.
73138
73139 2006-11-08  Bruno Haible  <bruno@clisp.org>
73140
73141         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
73142         Suggested by Paul Eggert.
73143
73144 2006-11-08  Jim Meyering  <jim@meyering.net>
73145
73146         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
73147         It's already included if !_LIBC.
73148         (fts_safe_changedir): Add a comment.
73149
73150 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
73151
73152         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
73153         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
73154         Matthew Woehlke.
73155
73156         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
73157         definitions up, to avoid colliding with change below.
73158         (static_inline) [HAVE_INLINE]: New macro.
73159         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
73160         Provide extern decls when !HAVE_INLINE.  Do not define unless
73161         static_inline is defined, either by us or by xmalloc.c.  Use
73162         static_inline rather than static inline.
73163         (XCALLOC): Optimize sizeof(T) = 1 case.
73164         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
73165
73166 2006-11-07  Bruno Haible  <bruno@clisp.org>
73167
73168         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
73169         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
73170         AC_C_INLINE.
73171         * modules/xalloc (Files): Add m4/inline.m4.
73172
73173 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73174
73175         * README: Fix typo.
73176         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
73177         (Miscellanous Notes): ...from this.
73178
73179 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
73180
73181         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
73182         Mention that offsetof should be used instead of sizeof.
73183         From Bruno Haible.
73184
73185 2006-11-07  Bruno Haible  <bruno@clisp.org>
73186
73187         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
73188
73189 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
73190
73191         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
73192         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
73193         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
73194         (gl_tree_add_before, gl_tree_add_after):
73195         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
73196         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
73197         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
73198         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
73199         (gl_linked_add_after, gl_linked_add_at): Likewise.
73200         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
73201         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
73202         (gl_tree_add_before, gl_tree_add_after): Likewise.
73203         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
73204         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
73205         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
73206
73207 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73208
73209         * lib/gl_oset.h: Use C comment style, not C++ comment style.
73210
73211 2006-11-06  Bruno Haible  <bruno@clisp.org>
73212
73213         * m4/inline.m4: New file.
73214         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
73215         * modules/list (Files): Add m4/inline.m4.
73216         * modules/oset (Files): Likewise.
73217
73218 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
73219
73220         * lib/idcache.c: Include <stddef.h>, for offsetof.
73221         (struct userid.name): Change from char * to a flexible array member.
73222         All uses changed.
73223         * modules/idcache (Depends-on): Add flexmember.
73224
73225         * MODULES.html.sh (Core language properties): New module flexmember.
73226         * modules/flexmember, m4/flexmember.m4: New files.
73227
73228         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
73229         inline functions that are identical with the old xnmalloc_inline,
73230         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
73231         that we can avoid some unnecessary integer multiplications and
73232         divisions in the common case where the element size is known at
73233         compile time.
73234         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
73235         needed.
73236         (xnboundedmalloc): Remove.
73237         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
73238         arguments, for consistency with rest of this header.
73239         (xcharalloc): Rewrite using XNMALLOC.
73240         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
73241         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
73242         versions have been moved to lib/xalloc.h and renamed to be the
73243         non-*_inline versions.
73244         (xmalloc, xrealloc): Implement without reference to the xnmalloc
73245         and xnrealloc functions, since those functions are now inline and
73246         now call us.
73247         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
73248         renaming described above.
73249         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
73250         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
73251         captures the dependency in AC_C_INLINE.
73252
73253         New module canonicalize-lgpl, proposed by Charles Wilson in
73254         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
73255         with a few small changes afterwards.
73256         * MODULES.html.sh (File system functions): New module
73257         canonicalize-lgpl.
73258         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
73259         and canonicalize_file_name.
73260         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
73261         * modules/canonicalize-lgpl: New files.
73262
73263 2006-11-05  Bruno Haible  <bruno@clisp.org>
73264
73265         * gnulib-tool (func_import, func_create_testdir): Create directories
73266         also for files in subdirectories of lib/.
73267
73268 2006-11-05  Bruno Haible  <bruno@clisp.org>
73269
73270         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
73271         ANSI C compliant.
73272
73273 2006-11-03  Bruno Haible  <bruno@clisp.org>
73274
73275         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
73276         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
73277         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
73278         (xnboundedmalloc): New inline function.
73279         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
73280         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
73281         xmalloc.
73282         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
73283         xmalloc.
73284         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
73285         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
73286         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
73287         xmalloc.
73288         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
73289         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
73290         xmalloc.
73291         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
73292         gl_tree_add_after): Use XMALLOC instead of xmalloc.
73293         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
73294         xmalloc.
73295         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
73296         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
73297         gl_tree_add_after): Use XMALLOC instead of xmalloc.
73298         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
73299         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
73300         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
73301         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
73302
73303 2006-11-03  Bruno Haible  <bruno@clisp.org>
73304
73305         * lib/c-ctype.h [C++]: Define functions without name mangling.
73306         * lib/fwriteerror.h [C++]: Likewise.
73307         * lib/gcd.h [C++]: Likewise.
73308         * lib/linebreak.h [C++]: Likewise.
73309
73310 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
73311
73312         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
73313         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
73314         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
73315         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
73316         Check for functions and headers just once.
73317         Check for declaration of canonicalize_file_name.
73318         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
73319
73320 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
73321
73322         * gnulib-tool (func_import): Fix typo in actioncmd.
73323
73324 2006-11-02  Bruno Haible  <bruno@clisp.org>
73325
73326         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
73327         newline sequence in the Makefile.am snippet as a space, like "make"
73328         does.
73329         Reported by Roger Persson <perrog@gmail.com>.
73330
73331 2006-11-01  Bruno Haible  <bruno@clisp.org>
73332
73333         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
73334         already declared in <string.h>.
73335         * lib/strcase.h (strncasecmp): Don't declare it if yes.
73336
73337 2006-11-01  Bruno Haible  <bruno@clisp.org>
73338
73339         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
73340         * lib/strcase.h: Include <string.h>.
73341         (strcasecmp): Define to rpl_strcasecmp here.
73342
73343 2006-11-01  Bruno Haible  <bruno@clisp.org>
73344
73345         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
73346
73347 2006-11-01  Eric Blake  <ebb9@byu.net>
73348
73349         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
73350
73351         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
73352
73353 2006-10-29  Bruno Haible  <bruno@clisp.org>
73354
73355         Make it compile in C++ mode.
73356         * lib/full-write.c (full_rw): Add a cast.
73357
73358 2006-11-01  Bruno Haible  <bruno@clisp.org>
73359
73360         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
73361         be POSIX compliant.
73362         Reported by Roger Persson <perrog@gmail.com>.
73363
73364 2006-11-01  Eric Blake  <ebb9@byu.net>
73365
73366         * lib/getopt_.h: Fix comments.
73367
73368 2006-10-31  Eric Blake  <ebb9@byu.net>
73369
73370         * modules/tmpdir (Depends-on): Add sys_stat.
73371         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
73372         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
73373         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
73374         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
73375         tempname.
73376
73377 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
73378
73379         Avoid some C++ diagnostics reported by Bruno Haible.
73380         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
73381         xmalloc.
73382         (quotearg_alloc): Use xcharalloc rather than xmalloc.
73383         (struct slotvec): Move to top level.
73384         (quotearg_n_options): Rewrite to avoid xmalloc.
73385         * lib/xalloc.h (xcharalloc): New function.
73386         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
73387         [defined __cplusplus]: Add function template that provides result
73388         type propagation.  This part of the change is from Bruno Haible.
73389
73390 2006-10-29  Bruno Haible  <bruno@clisp.org>
73391
73392         Make it compile in C++ mode.
73393         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
73394         * lib/strnlen1.c (strnlen1): Cast memchr result.
73395         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
73396         * lib/clean-temp.c (string_equals, string_hash): Add casts.
73397         (create_temp_dir): Rename local variable 'template'.
73398         (compile_csharp_using_sscli): Add cast.
73399         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
73400         * lib/findprog.c (find_in_path): Likewise.
73401         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
73402         * lib/wait-process.c (register_slave_subprocess): Likewise.
73403
73404 2006-10-22  Bruno Haible  <bruno@clisp.org>
73405
73406         * modules/tsearch: New file.
73407         * lib/tsearch.h: New file.
73408         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
73409         * m4/tsearch.m4: New file.
73410         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
73411
73412 2006-10-29  Eric Blake  <ebb9@byu.net>
73413
73414         * lib/arcfour.c: Assume config.h.
73415         * lib/arctwo.c: Likewise.
73416         * lib/base64.c: Likewise.
73417         * lib/check-version.c: Likewise.
73418         * lib/crc.c: Likewise.
73419         * lib/des.c: Likewise.
73420         * lib/gc-gnulib.c: Likewise.
73421         * lib/gc-libgcrypt.c: Likewise.
73422         * lib/gc-pbkdf2-sha1.c: Likewise.
73423         * lib/getaddrinfo.c: Likewise.
73424         * lib/getdelim.c: Likewise.
73425         * lib/getline.c: Likewise.
73426         * lib/hmac-md5.c: Likewise.
73427         * lib/hmac-sha1.c: Likewise.
73428         * lib/iconvme.c: Likewise.
73429         * lib/md2.c: Likewise.
73430         * lib/md4.c: Likewise.
73431         * lib/memxor.c: Likewise.
73432         * lib/read-file.c: Likewise.
73433         * lib/readline.c: Likewise.
73434         * lib/rijndael-alg-fst.c: Likewise.
73435         * lib/rijndael-api-fst.c: Likewise.
73436         * lib/xgetdomainname.c: Likewise.
73437
73438 2006-10-28  Eric Blake  <ebb9@byu.net>
73439
73440         * lib/xstrndup.c: Assume config.h.
73441
73442 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
73443
73444         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
73445         stat-macros.h is now for our own macros, whereas stat_h is for
73446         macros in the <sys/stat.h> name space.
73447         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
73448         (STAT_MACROS_H): Remove.
73449         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
73450         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
73451         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
73452         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
73453         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
73454         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
73455         Move these macros to ...
73456         * lib/stat_.h: here.  Don't include stat-macros.h.
73457         * lib/canonicalize.c: Don't include stat-macros.h.
73458         * lib/chown.c: Likewise.
73459         * lib/euidaccess.c: Likewise.
73460         * lib/file-type.c: Likewise.
73461         * lib/filemode.c: Likewise.
73462         * lib/glob.c: Likewise.
73463         * lib/isapipe.c: Likewise.
73464         * lib/lchown.c: Likewise.
73465         * lib/lstat.c: Likewise.
73466         * lib/mkdir-p.c: Likewise.
73467         * lib/rmdir.c: Likewise.
73468         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
73469         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
73470         unless mkdir isn't declared, to speed up 'configure'.
73471         Always create sys/stat.h, since it's unlikely any real sys/stat.h
73472         would define all the S_* symbols.
73473         * modules/canonicalize (Depends-on):
73474         Depend on sys_stat, not stat-macros.
73475         * modules/chown: Likewise.
73476         * modules/euidaccess: Likewise.
73477         * modules/filemode: Likewise.
73478         * modules/file-type: Likewise.
73479         * modules/glob: Likewise.
73480         * modules/isapipe: Likewise.
73481         * modules/lchown: Likewise.
73482         * modules/lstat: Likewise.
73483         * modules/mkancesdirs: Likewise.
73484         * modules/rmdir: Likewise.
73485         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
73486         * modules/modechange: Likewise.
73487         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
73488         (configure.ac): Remove gl_STAT_MACROS.
73489         * modules/sys_stat (Depends-on): Remove stat-macros.
73490
73491 2006-10-27  Bruno Haible  <bruno@clisp.org>
73492
73493         * m4/signed.m4: Remove file.
73494         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
73495         invocation.
73496         * modules/vasnprintf (Files): Remove m4/signed.m4.
73497
73498 2006-10-27  Bruno Haible  <bruno@clisp.org>
73499
73500         Update to GNU gettext 0.16.
73501         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
73502         m4/inttypes-h.m4, m4/signed.m4.
73503         * m4/gettext.m4: Update to GNU gettext 0.16.
73504         * m4/intl.m4: New file, from GNU gettext.
73505         * m4/intldir.m4: New file, from GNU gettext.
73506         * config/srclist.txt: Update
73507
73508 2006-10-27  Eric Blake  <ebb9@byu.net>
73509
73510         * MODULES.html.sh: Document tempname.
73511         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
73512         dependencies.
73513         (Files): Move lib/tempname.c...
73514         * modules/tempname: ...to this new module.
73515         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
73516         (gl_PREREQ_TEMPNAME): Move...
73517         * m4/tempname.m4: ...to this new file.
73518         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
73519         * modules/sys_stat (Depends-on): Add stat-macros.
73520         * lib/stat_.h (includes): Pick up stat macros.
73521         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
73522         if stat macros are broken.
73523         * lib/tempname.c (includes): No need to include "stat-macros.h".
73524         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
73525         (direxists, __path_search) [!_LIBC]: Don't compile these in
73526         gnulib; the tmpdir module covers that.
73527         * lib/tempname.h: New file.
73528
73529 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
73530
73531         * COPYING: Explain how gnulib-tool converts licence headers.
73532         Almost all wording by Eric Blake.
73533
73534 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
73535
73536         * lib/mbchar.h (is_basic_table): Make read-only.
73537         * lib/mbchar.c (is_basic_table): Likewise.
73538         Reported by John Darrington.
73539
73540 2006-10-25  Bruno Haible  <bruno@clisp.org>
73541
73542         * lib/progname.h (set_program_name): Undefine before defining.
73543
73544 2006-10-25  Bruno Haible  <bruno@clisp.org>
73545
73546         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
73547         false for non-gcc C++ compilers.
73548         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
73549
73550 2006-10-24  Bruno Haible  <bruno@clisp.org>
73551
73552         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
73553         iconv implementations like Irix iconv.
73554
73555 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
73556
73557         * modules/vararrays: New file.
73558         * m4/vararrays.m4: New file, taken from diffutils.
73559         * MODULES.html.sh: New module vararrays.
73560
73561 2006-10-24  Karl Berry  <karl@gnu.org>
73562
73563         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
73564         Don't call GNU Unix.
73565
73566 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73567
73568         * users.txt: Add Libtool.
73569
73570         Sync from Libtool:
73571
73572         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
73573
73574         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
73575         to gnulib's policy of including config.h unconditionally.
73576
73577 2006-10-24  Bruno Haible  <bruno@clisp.org>
73578
73579         * modules/wcwidth (Files): Add m4/wint_t.m4.
73580         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
73581         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
73582
73583 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
73584
73585         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
73586         to pacify GCC with some -W flags enabled.  Problem reported by
73587         Bruno Haible.
73588
73589 2006-10-24  Jim Meyering  <jim@meyering.net>
73590
73591         * MODULES.html.sh: Remove uinttostr.  It's not a module.
73592         Reported by Karl Berry.
73593
73594 2006-10-23  Bruno Haible  <bruno@clisp.org>
73595
73596         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
73597
73598 2006-10-24  Bruno Haible  <bruno@clisp.org>
73599
73600         * lib/gl_list.h: Use C comment style, not C++ comment style.
73601
73602 2006-10-23  Eric Blake  <ebb9@byu.net>
73603
73604         * lib/getaddrinfo.c (includes): Add missing include.
73605
73606 2006-10-23  Bruno Haible  <bruno@clisp.org>
73607             Paul Eggert  <eggert@cs.ucla.edu>
73608
73609         Ability to rename obstack_free.
73610         * lib/obstack.h (__obstack_free): New macro. Declare instead of
73611         obstack_free.
73612         (obstack_free): Invoke the __obstack_free macro.
73613         * lib/obstack.c (obstack_free): Use __obstack_free macro.
73614
73615 2006-10-23  Bruno Haible  <bruno@clisp.org>
73616             Paul Eggert  <eggert@cs.ucla.edu>
73617
73618         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
73619         __argc, __argv from the declaration. (They are defined as macros on
73620         mingw.)
73621
73622 2006-10-22  Bruno Haible  <bruno@clisp.org>
73623
73624         * doc/gnulib-intro.texi: New file.
73625         * doc/gnulib.texi: Include it.
73626
73627 2006-10-21  Bruno Haible  <bruno@clisp.org>
73628
73629         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
73630         "Introduction", "Miscellanous Notes", "Particular Modules".
73631
73632 2006-10-21  Bruno Haible  <bruno@clisp.org>
73633
73634         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
73635         Change mostlyclean-local rule to avoid sh syntax error from bash
73636         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
73637
73638 2006-10-23  Jim Meyering  <jim@meyering.net>
73639
73640         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
73641         in place of snprintf.
73642
73643         * modules/inttostr (Files): Add lib/uinttostr.c.
73644         * lib/uinttostr.c (inttostr): New file/function.
73645         * lib/inttostr.h (uinttostr): Declare.
73646         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
73647         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
73648         Add uinttostr.
73649         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
73650
73651 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
73652
73653         * lib/canonicalize.c (ELOOP): Define if not already defined.
73654         Problem reported by Bruno Haible in
73655         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
73656
73657 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
73658
73659         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
73660         Problem reported by Perry Smith and Ville Laurikari.
73661
73662         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
73663         uses.
73664
73665 2006-10-19  Bruno Haible  <bruno@clisp.org>
73666
73667         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
73668         for mingw.
73669
73670 2006-10-19  Bruno Haible  <bruno@clisp.org>
73671
73672         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
73673         Needed for mingw.
73674
73675 2006-10-19  Bruno Haible  <bruno@clisp.org>
73676
73677         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
73678
73679 2006-10-19  Bruno Haible  <bruno@clisp.org>
73680
73681         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
73682         it.
73683
73684 2006-10-19  Bruno Haible  <bruno@clisp.org>
73685
73686         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
73687         invocation.
73688
73689 2006-10-19  Bruno Haible  <bruno@clisp.org>
73690
73691         * gnulib-tool (func_create_testdir): Don't include ftruncate and
73692         mountlist by default.
73693
73694 2006-10-16  Bruno Haible  <bruno@clisp.org>
73695
73696         * lib/c-strstr.c: Include c-strstr.h.
73697
73698 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
73699
73700         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
73701         in a slash.
73702
73703 2006-10-18  Bruno Haible  <bruno@clisp.org>
73704
73705         * lib/lock.h [C++]: Wrap definitions in extern "C".
73706
73707 2006-10-18  Bruno Haible  <bruno@clisp.org>
73708
73709         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
73710         gl_LIBOBJS list.
73711
73712 2006-10-18  Bruno Haible  <bruno@clisp.org>
73713
73714         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
73715
73716 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
73717
73718         * lib/xstrtol.h: Include gettext.h.
73719         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
73720         Problem reported by Eric Blake.
73721         * modules/xstrtol (Depends-on): Add gettext-h.
73722
73723 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
73724
73725         * lib/strftime.c (advance): New macro.
73726         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
73727         incomplete type, so you can't add 0 to it.  Problem and patch
73728         reported by Eelco Dolstra for dietlibc.
73729
73730 2006-10-18  Jim Meyering  <jim@meyering.net>
73731
73732         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
73733         type for a local, and rename it: s/up/user_proc/.
73734
73735 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
73736
73737         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
73738         READ_UTMP_USER_PROCESS.
73739         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
73740
73741 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
73742
73743         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
73744         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
73745
73746 2006-10-17  Eric Blake  <ebb9@byu.net>
73747
73748         * lib/sigprocmask.c (sigprocmask): Fix typo.
73749
73750         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
73751
73752         * modules/clean-temp (Makefile.am): Don't add to make output...
73753         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
73754         config.h.
73755
73756 2006-10-17  Bruno Haible  <bruno@clisp.org>
73757
73758         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
73759         differently if DEFAULT_TEXT_DOMAIN is set.
73760
73761 2006-10-16  Bruno Haible  <bruno@clisp.org>
73762
73763         * lib/clean-temp.c: Include fwriteerror.h.
73764
73765 2006-10-16  Bruno Haible  <bruno@clisp.org>
73766
73767         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
73768
73769 2006-10-16  Bruno Haible  <bruno@clisp.org>
73770
73771         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
73772         * lib/sigprocmask.h: Include <sys/types.h>.
73773         (sigset_t): Use the system's definition if present.
73774
73775 2006-10-17  Eric Blake  <ebb9@byu.net>
73776
73777         * lib/xvasprintf.c (includes): Assume config.h.
73778         * lib/xasprintf.c (includes): Likewise.
73779
73780 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
73781
73782         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
73783         at least as wide as intmax_t.
73784
73785 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
73786
73787         (Imported from Automake.)
73788         * build-aux/gnupload: Update to version 1.1 of directive file.
73789
73790 2006-10-16  Eric Blake  <ebb9@byu.net>
73791
73792         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
73793         match Automake 1.10a.
73794
73795 2006-10-14  Bruno Haible  <bruno@clisp.org>
73796
73797         * modules/sigprocmask: New file.
73798         * lib/sigprocmask.h: New file.
73799         * lib/sigprocmask.c: New file.
73800         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
73801         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
73802         request sigprocmask.o.
73803         (gl_PREREQ_SIGPROCMASK): New macro.
73804         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
73805         (Depends-on): Add sigprocmask.
73806         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
73807         gt_SIGNALBLOCKING. Test for 'raise' only once.
73808         * lib/fatal-signal.c: Include sigprocmask.h.
73809         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
73810         unblock_fatal_signals): Define always.
73811         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73812         sigprocmask.
73813
73814 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
73815
73816         Sync from Automake.
73817         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
73818         which incorrectly sets the mode of an existing destination
73819         directory.  In some cases the unpatched install-sh could do the
73820         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
73821         system.  We hope this is rare in practice, but it's clearly worth
73822         fixing.  Problem reported by Alex Unleashed in
73823         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
73824         Also, don't bother to check for -m bugs unless we're using -m;
73825         suggested by Stepan Kasal.
73826
73827 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73828
73829         Sync from Automake.
73830         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
73831         `-c' flag, so they appear at the same position as in %FASTDEP%
73832         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
73833         which ignores unknown options only after the first non-option.
73834         Bug report against M4 by Nelson H. F. Beebe.
73835
73836 2006-10-13  Jim Meyering  <jim@meyering.net>
73837
73838         Fix a bug in yesterday's change.
73839         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
73840         p->fts_statp->st_dev would be used uninitialized.
73841         Ensures that we always call fts_stat on the very first entry.
73842         Miklos Szeredi reported that find -xdev stopped working.
73843
73844 2006-10-12  Bruno Haible  <bruno@clisp.org>
73845
73846         * gnulib-tool (func_get_automake_snippet): Append an automatically
73847         computed EXTRA_DIST augmentation.
73848         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
73849         * modules/alloca-opt (Makefile.am): Likewise.
73850         * modules/allocsa (Makefile.am): Likewise.
73851         * modules/arcfour (Makefile.am): Likewise.
73852         * modules/arctwo (Makefile.am): Likewise.
73853         * modules/argmatch (Makefile.am): Likewise.
73854         * modules/argz (Makefile.am): Likewise.
73855         * modules/atexit (Makefile.am): Likewise.
73856         * modules/backupfile (Makefile.am): Likewise.
73857         * modules/byteswap (Makefile.am): Likewise.
73858         * modules/c-strtod (Makefile.am): Likewise.
73859         * modules/c-strtold (Makefile.am): Likewise.
73860         * modules/calloc (Makefile.am): Likewise.
73861         * modules/canon-host (Makefile.am): Likewise.
73862         * modules/canonicalize (Makefile.am): Likewise.
73863         * modules/chdir-long (Makefile.am): Likewise.
73864         * modules/chdir-safer (Makefile.am): Likewise.
73865         * modules/check-version (Makefile.am): Likewise.
73866         * modules/chown (Makefile.am): Likewise.
73867         * modules/cloexec (Makefile.am): Likewise.
73868         * modules/close-stream (Makefile.am): Likewise.
73869         * modules/closeout (Makefile.am): Likewise.
73870         * modules/crc (Makefile.am): Likewise.
73871         * modules/csharpexec (Makefile.am): Likewise.
73872         * modules/cycle-check (Makefile.am): Likewise.
73873         * modules/des (Makefile.am): Likewise.
73874         * modules/dev-ino (Makefile.am): Likewise.
73875         * modules/dirfd (Makefile.am): Likewise.
73876         * modules/dirname (Makefile.am): Likewise.
73877         * modules/dup2 (Makefile.am): Likewise.
73878         * modules/eealloc (Makefile.am): Likewise.
73879         * modules/error (Makefile.am): Likewise.
73880         * modules/euidaccess (Makefile.am): Likewise.
73881         * modules/exclude (Makefile.am): Likewise.
73882         * modules/exitfail (Makefile.am): Likewise.
73883         * modules/fcntl-safer (Makefile.am): Likewise.
73884         * modules/fcntl (Makefile.am): Likewise.
73885         * modules/file-type (Makefile.am): Likewise.
73886         * modules/fileblocks (Makefile.am): Likewise.
73887         * modules/filemode (Makefile.am): Likewise.
73888         * modules/filenamecat (Makefile.am): Likewise.
73889         * modules/fnmatch (Makefile.am): Likewise.
73890         * modules/fopen-safer (Makefile.am): Likewise.
73891         * modules/fpending (Makefile.am): Likewise.
73892         * modules/fprintftime (Makefile.am): Likewise.
73893         * modules/free (Makefile.am): Likewise.
73894         * modules/fsusage (Makefile.am): Likewise.
73895         * modules/ftruncate (Makefile.am): Likewise.
73896         * modules/fts (Makefile.am): Likewise.
73897         * modules/gc-arcfour (Makefile.am): Likewise.
73898         * modules/gc-des (Makefile.am): Likewise.
73899         * modules/gc-hmac-md5 (Makefile.am): Likewise.
73900         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
73901         * modules/gc-md4 (Makefile.am): Likewise.
73902         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
73903         * modules/gc-sha1 (Makefile.am): Likewise.
73904         * modules/gc (Makefile.am): Likewise.
73905         * modules/getaddrinfo (Makefile.am): Likewise.
73906         * modules/getcwd (Makefile.am): Likewise.
73907         * modules/getdelim (Makefile.am): Likewise.
73908         * modules/getdomainname (Makefile.am): Likewise.
73909         * modules/getgroups (Makefile.am): Likewise.
73910         * modules/gethostname (Makefile.am): Likewise.
73911         * modules/gethrxtime (Makefile.am): Likewise.
73912         * modules/getline (Makefile.am): Likewise.
73913         * modules/getloadavg (Makefile.am): Likewise.
73914         * modules/getlogin_r (Makefile.am): Likewise.
73915         * modules/getndelim2 (Makefile.am): Likewise.
73916         * modules/getopt (Makefile.am): Likewise.
73917         * modules/getpagesize (Makefile.am): Likewise.
73918         * modules/getpass-gnu (Makefile.am): Likewise.
73919         * modules/getpass (Makefile.am): Likewise.
73920         * modules/getsubopt (Makefile.am): Likewise.
73921         * modules/gettime (Makefile.am): Likewise.
73922         * modules/gettimeofday (Makefile.am): Likewise.
73923         * modules/getugroups (Makefile.am): Likewise.
73924         * modules/getusershell (Makefile.am): Likewise.
73925         * modules/glob (Makefile.am): Likewise.
73926         * modules/group-member (Makefile.am): Likewise.
73927         * modules/hard-locale (Makefile.am): Likewise.
73928         * modules/hash (Makefile.am): Likewise.
73929         * modules/hmac-md5 (Makefile.am): Likewise.
73930         * modules/hmac-sha1 (Makefile.am): Likewise.
73931         * modules/human (Makefile.am): Likewise.
73932         * modules/idcache (Makefile.am): Likewise.
73933         * modules/imaxabs (Makefile.am): Likewise.
73934         * modules/imaxdiv (Makefile.am): Likewise.
73935         * modules/inet_ntop (Makefile.am): Likewise.
73936         * modules/inet_pton (Makefile.am): Likewise.
73937         * modules/intprops (Makefile.am): Likewise.
73938         * modules/inttostr (Makefile.am): Likewise.
73939         * modules/inttypes (Makefile.am): Likewise.
73940         * modules/isapipe (Makefile.am): Likewise.
73941         * modules/javaversion (Makefile.am): Likewise.
73942         * modules/lchmod (Makefile.am): Likewise.
73943         * modules/lchown (Makefile.am): Likewise.
73944         * modules/localcharset (Makefile.am): Likewise.
73945         * modules/long-options (Makefile.am): Likewise.
73946         * modules/lstat (Makefile.am): Likewise.
73947         * modules/malloc (Makefile.am): Likewise.
73948         * modules/mathl (Makefile.am): Likewise.
73949         * modules/mbchar (Makefile.am): Likewise.
73950         * modules/md2 (Makefile.am): Likewise.
73951         * modules/md4 (Makefile.am): Likewise.
73952         * modules/md5 (Makefile.am): Likewise.
73953         * modules/memcasecmp (Makefile.am): Likewise.
73954         * modules/memchr (Makefile.am): Likewise.
73955         * modules/memcmp (Makefile.am): Likewise.
73956         * modules/memcoll (Makefile.am): Likewise.
73957         * modules/memcpy (Makefile.am): Likewise.
73958         * modules/memmem (Makefile.am): Likewise.
73959         * modules/memmove (Makefile.am): Likewise.
73960         * modules/mempcpy (Makefile.am): Likewise.
73961         * modules/memrchr (Makefile.am): Likewise.
73962         * modules/memset (Makefile.am): Likewise.
73963         * modules/memxor (Makefile.am): Likewise.
73964         * modules/mkancesdirs (Makefile.am): Likewise.
73965         * modules/mkdir-p (Makefile.am): Likewise.
73966         * modules/mkdir (Makefile.am): Likewise.
73967         * modules/mkdtemp (Makefile.am): Likewise.
73968         * modules/mkstemp (Makefile.am): Likewise.
73969         * modules/mktime (Makefile.am): Likewise.
73970         * modules/modechange (Makefile.am): Likewise.
73971         * modules/mountlist (Makefile.am): Likewise.
73972         * modules/nanosleep (Makefile.am): Likewise.
73973         * modules/obstack (Makefile.am): Likewise.
73974         * modules/openat (Makefile.am): Likewise.
73975         * modules/pagealign_alloc (Makefile.am): Likewise.
73976         * modules/pathmax (Makefile.am): Likewise.
73977         * modules/physmem (Makefile.am): Likewise.
73978         * modules/poll (Makefile.am): Likewise.
73979         * modules/posixtm (Makefile.am): Likewise.
73980         * modules/posixver (Makefile.am): Likewise.
73981         * modules/putenv (Makefile.am): Likewise.
73982         * modules/quote (Makefile.am): Likewise.
73983         * modules/quotearg (Makefile.am): Likewise.
73984         * modules/raise (Makefile.am): Likewise.
73985         * modules/read-file (Makefile.am): Likewise.
73986         * modules/readline (Makefile.am): Likewise.
73987         * modules/readlink (Makefile.am): Likewise.
73988         * modules/readtokens (Makefile.am): Likewise.
73989         * modules/readutmp (Makefile.am): Likewise.
73990         * modules/realloc (Makefile.am): Likewise.
73991         * modules/regex (Makefile.am): Likewise.
73992         * modules/rename-dest-slash (Makefile.am): Likewise.
73993         * modules/rename (Makefile.am): Likewise.
73994         * modules/rijndael (Makefile.am): Likewise.
73995         * modules/rmdir (Makefile.am): Likewise.
73996         * modules/rpmatch (Makefile.am): Likewise.
73997         * modules/safe-read (Makefile.am): Likewise.
73998         * modules/safe-write (Makefile.am): Likewise.
73999         * modules/same-inode (Makefile.am): Likewise.
74000         * modules/same (Makefile.am): Likewise.
74001         * modules/save-cwd (Makefile.am): Likewise.
74002         * modules/savedir (Makefile.am): Likewise.
74003         * modules/setenv (Makefile.am): Likewise.
74004         * modules/settime (Makefile.am): Likewise.
74005         * modules/sha1 (Makefile.am): Likewise.
74006         * modules/sig2str (Makefile.am): Likewise.
74007         * modules/snprintf (Makefile.am): Likewise.
74008         * modules/stat-macros (Makefile.am): Likewise.
74009         * modules/stat-time (Makefile.am): Likewise.
74010         * modules/stdbool (Makefile.am): Likewise.
74011         * modules/stdint (Makefile.am): Likewise.
74012         * modules/stdlib-safer (Makefile.am): Likewise.
74013         * modules/stpcpy (Makefile.am): Likewise.
74014         * modules/stpncpy (Makefile.am): Likewise.
74015         * modules/strcase (Makefile.am): Likewise.
74016         * modules/strcasestr (Makefile.am): Likewise.
74017         * modules/strchrnul (Makefile.am): Likewise.
74018         * modules/strcspn (Makefile.am): Likewise.
74019         * modules/strdup (Makefile.am): Likewise.
74020         * modules/strerror (Makefile.am): Likewise.
74021         * modules/strftime (Makefile.am): Likewise.
74022         * modules/strndup (Makefile.am): Likewise.
74023         * modules/strnlen (Makefile.am): Likewise.
74024         * modules/strpbrk (Makefile.am): Likewise.
74025         * modules/strsep (Makefile.am): Likewise.
74026         * modules/strstr (Makefile.am): Likewise.
74027         * modules/strtod (Makefile.am): Likewise.
74028         * modules/strtoimax (Makefile.am): Likewise.
74029         * modules/strtok_r (Makefile.am): Likewise.
74030         * modules/strtol (Makefile.am): Likewise.
74031         * modules/strtoll (Makefile.am): Likewise.
74032         * modules/strtoul (Makefile.am): Likewise.
74033         * modules/strtoull (Makefile.am): Likewise.
74034         * modules/strtoumax (Makefile.am): Likewise.
74035         * modules/strverscmp (Makefile.am): Likewise.
74036         * modules/sys_socket (Makefile.am): Likewise.
74037         * modules/sys_stat (Makefile.am): Likewise.
74038         * modules/sysexits (Makefile.am): Likewise.
74039         * modules/time_r (Makefile.am): Likewise.
74040         * modules/timegm (Makefile.am): Likewise.
74041         * modules/timespec (Makefile.am): Likewise.
74042         * modules/tmpfile-safer (Makefile.am): Likewise.
74043         * modules/trim (Makefile.am): Likewise.
74044         * modules/unistd-safer (Makefile.am): Likewise.
74045         * modules/unlinkdir (Makefile.am): Likewise.
74046         * modules/unlocked-io (Makefile.am): Likewise.
74047         * modules/userspec (Makefile.am): Likewise.
74048         * modules/utime (Makefile.am): Likewise.
74049         * modules/utimecmp (Makefile.am): Likewise.
74050         * modules/utimens (Makefile.am): Likewise.
74051         * modules/vasnprintf (Makefile.am): Likewise.
74052         * modules/vasprintf (Makefile.am): Likewise.
74053         * modules/vsnprintf (Makefile.am): Likewise.
74054         * modules/xalloc (Makefile.am): Likewise.
74055         * modules/xgetcwd (Makefile.am): Likewise.
74056         * modules/xnanosleep (Makefile.am): Likewise.
74057         * modules/xreadlink (Makefile.am): Likewise.
74058         * modules/xstrtod (Makefile.am): Likewise.
74059         * modules/xstrtol (Makefile.am): Likewise.
74060         * modules/xstrtold (Makefile.am): Likewise.
74061         * modules/yesno (Makefile.am): Likewise.
74062         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
74063
74064 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
74065
74066         * modules/error (Makefile.am): Distribute files through
74067         EXTRA_DIST, not lib_SOURCES.
74068
74069 2006-10-12  Eric Blake  <ebb9@byu.net>
74070
74071         * modules/error (Makefile.am): Distribute files in /lib.
74072         * modules/obstack (Makefile.am): Likewise.
74073
74074 2006-10-12  Bruno Haible  <bruno@clisp.org>
74075
74076         * modules/acl (Makefile.am): Distribute all files in lib/ through
74077         EXTRA_DIST.
74078         * modules/arcfour (Makefile.am): Likewise.
74079         * modules/arctwo (Makefile.am): Likewise.
74080         * modules/argmatch (Makefile.am): Likewise.
74081         * modules/argz (Makefile.am): Likewise.
74082         * modules/atexit (Makefile.am): Likewise.
74083         * modules/backupfile (Makefile.am): Likewise.
74084         * modules/c-strtod (Makefile.am): Likewise.
74085         * modules/c-strtold (Makefile.am): Likewise.
74086         * modules/calloc (Makefile.am): Likewise.
74087         * modules/canon-host (Makefile.am): Likewise.
74088         * modules/canonicalize (Makefile.am): Likewise.
74089         * modules/chdir-long (Makefile.am): Likewise.
74090         * modules/chdir-safer (Makefile.am): Likewise.
74091         * modules/check-version (Makefile.am): Likewise.
74092         * modules/chown (Makefile.am): Likewise.
74093         * modules/cloexec (Makefile.am): Likewise.
74094         * modules/close-stream (Makefile.am): Likewise.
74095         * modules/closeout (Makefile.am): Likewise.
74096         * modules/crc (Makefile.am): Likewise.
74097         * modules/cycle-check (Makefile.am): Likewise.
74098         * modules/des (Makefile.am): Likewise.
74099         * modules/dirfd (Makefile.am): Likewise.
74100         * modules/dirname (Makefile.am): Likewise.
74101         * modules/dup2 (Makefile.am): Likewise.
74102         * modules/euidaccess (Makefile.am): Likewise.
74103         * modules/exclude (Makefile.am): Likewise.
74104         * modules/exitfail (Makefile.am): Likewise.
74105         * modules/fcntl-safer (Makefile.am): Likewise.
74106         * modules/file-type (Makefile.am): Likewise.
74107         * modules/fileblocks (Makefile.am): Likewise.
74108         * modules/filemode (Makefile.am): Likewise.
74109         * modules/filenamecat (Makefile.am): Likewise.
74110         * modules/fnmatch (Makefile.am): Likewise.
74111         * modules/fopen-safer (Makefile.am): Likewise.
74112         * modules/fpending (Makefile.am): Likewise.
74113         * modules/fprintftime (Makefile.am): Likewise.
74114         * modules/free (Makefile.am): Likewise.
74115         * modules/fsusage (Makefile.am): Likewise.
74116         * modules/ftruncate (Makefile.am): Likewise.
74117         * modules/fts (Makefile.am): Likewise.
74118         * modules/gc (Makefile.am): Likewise.
74119         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
74120         * modules/getaddrinfo (Makefile.am): Likewise.
74121         * modules/getcwd (Makefile.am): Likewise.
74122         * modules/getdelim (Makefile.am): Likewise.
74123         * modules/getdomainname (Makefile.am): Likewise.
74124         * modules/getgroups (Makefile.am): Likewise.
74125         * modules/gethostname (Makefile.am): Likewise.
74126         * modules/gethrxtime (Makefile.am): Likewise.
74127         * modules/getline (Makefile.am): Likewise.
74128         * modules/getloadavg (Makefile.am): Likewise.
74129         * modules/getlogin_r (Makefile.am): Likewise.
74130         * modules/getopt (Makefile.am): Likewise.
74131         * modules/getpass (Makefile.am): Likewise.
74132         * modules/getpass-gnu (Makefile.am): Likewise.
74133         * modules/getsubopt (Makefile.am): Likewise.
74134         * modules/gettime (Makefile.am): Likewise.
74135         * modules/gettimeofday (Makefile.am): Likewise.
74136         * modules/getugroups (Makefile.am): Likewise.
74137         * modules/getusershell (Makefile.am): Likewise.
74138         * modules/glob (Makefile.am): Likewise.
74139         * modules/group-member (Makefile.am): Likewise.
74140         * modules/hard-locale (Makefile.am): Likewise.
74141         * modules/hash (Makefile.am): Likewise.
74142         * modules/hmac-md5 (Makefile.am): Likewise.
74143         * modules/hmac-sha1 (Makefile.am): Likewise.
74144         * modules/human (Makefile.am): Likewise.
74145         * modules/idcache (Makefile.am): Likewise.
74146         * modules/imaxabs (Makefile.am): Likewise.
74147         * modules/imaxdiv (Makefile.am): Likewise.
74148         * modules/inet_ntop (Makefile.am): Likewise.
74149         * modules/inet_pton (Makefile.am): Likewise.
74150         * modules/inttostr (Makefile.am): Likewise.
74151         * modules/isapipe (Makefile.am): Likewise.
74152         * modules/lchown (Makefile.am): Likewise.
74153         * modules/long-options (Makefile.am): Likewise.
74154         * modules/lstat (Makefile.am): Likewise.
74155         * modules/malloc (Makefile.am): Likewise.
74156         * modules/mathl (Makefile.am): Likewise.
74157         * modules/mbchar (Makefile.am): Likewise.
74158         * modules/md2 (Makefile.am): Likewise.
74159         * modules/md4 (Makefile.am): Likewise.
74160         * modules/md5 (Makefile.am): Likewise.
74161         * modules/memcasecmp (Makefile.am): Likewise.
74162         * modules/memchr (Makefile.am): Likewise.
74163         * modules/memcmp (Makefile.am): Likewise.
74164         * modules/memcoll (Makefile.am): Likewise.
74165         * modules/memcpy (Makefile.am): Likewise.
74166         * modules/memmem (Makefile.am): Likewise.
74167         * modules/memmove (Makefile.am): Likewise.
74168         * modules/mempcpy (Makefile.am): Likewise.
74169         * modules/memrchr (Makefile.am): Likewise.
74170         * modules/memset (Makefile.am): Likewise.
74171         * modules/memxor (Makefile.am): Likewise.
74172         * modules/mkancesdirs (Makefile.am): Likewise.
74173         * modules/mkdir (Makefile.am): Likewise.
74174         * modules/mkdir-p (Makefile.am): Likewise.
74175         * modules/mkdtemp (Makefile.am): Likewise.
74176         * modules/mkstemp (Makefile.am): Likewise.
74177         * modules/mktime (Makefile.am): Likewise.
74178         * modules/modechange (Makefile.am): Likewise.
74179         * modules/mountlist (Makefile.am): Likewise.
74180         * modules/nanosleep (Makefile.am): Likewise.
74181         * modules/openat (Makefile.am): Likewise.
74182         * modules/pagealign_alloc (Makefile.am): Likewise.
74183         * modules/physmem (Makefile.am): Likewise.
74184         * modules/poll (Makefile.am): Likewise.
74185         * modules/posixtm (Makefile.am): Likewise.
74186         * modules/posixver (Makefile.am): Likewise.
74187         * modules/putenv (Makefile.am): Likewise.
74188         * modules/quote (Makefile.am): Likewise.
74189         * modules/quotearg (Makefile.am): Likewise.
74190         * modules/raise (Makefile.am): Likewise.
74191         * modules/read-file (Makefile.am): Likewise.
74192         * modules/readline (Makefile.am): Likewise.
74193         * modules/readlink (Makefile.am): Likewise.
74194         * modules/readtokens (Makefile.am): Likewise.
74195         * modules/readutmp (Makefile.am): Likewise.
74196         * modules/realloc (Makefile.am): Likewise.
74197         * modules/regex (Makefile.am): Likewise.
74198         * modules/rename (Makefile.am): Likewise.
74199         * modules/rename-dest-slash (Makefile.am): Likewise.
74200         * modules/rijndael (Makefile.am): Likewise.
74201         * modules/rmdir (Makefile.am): Likewise.
74202         * modules/rpmatch (Makefile.am): Likewise.
74203         * modules/safe-read (Makefile.am): Likewise.
74204         * modules/safe-write (Makefile.am): Likewise.
74205         * modules/same (Makefile.am): Likewise.
74206         * modules/save-cwd (Makefile.am): Likewise.
74207         * modules/savedir (Makefile.am): Likewise.
74208         * modules/setenv (Makefile.am): Likewise.
74209         * modules/settime (Makefile.am): Likewise.
74210         * modules/sha1 (Makefile.am): Likewise.
74211         * modules/sig2str (Makefile.am): Likewise.
74212         * modules/snprintf (Makefile.am): Likewise.
74213         * modules/stdlib-safer (Makefile.am): Likewise.
74214         * modules/stpcpy (Makefile.am): Likewise.
74215         * modules/stpncpy (Makefile.am): Likewise.
74216         * modules/strcase (Makefile.am): Likewise.
74217         * modules/strcasestr (Makefile.am): Likewise.
74218         * modules/strchrnul (Makefile.am): Likewise.
74219         * modules/strcspn (Makefile.am): Likewise.
74220         * modules/strdup (Makefile.am): Likewise.
74221         * modules/strerror (Makefile.am): Likewise.
74222         * modules/strftime (Makefile.am): Likewise.
74223         * modules/strndup (Makefile.am): Likewise.
74224         * modules/strnlen (Makefile.am): Likewise.
74225         * modules/strpbrk (Makefile.am): Likewise.
74226         * modules/strsep (Makefile.am): Likewise.
74227         * modules/strstr (Makefile.am): Likewise.
74228         * modules/strtod (Makefile.am): Likewise.
74229         * modules/strtoimax (Makefile.am): Likewise.
74230         * modules/strtok_r (Makefile.am): Likewise.
74231         * modules/strtol (Makefile.am): Likewise.
74232         * modules/strtoll (Makefile.am): Likewise.
74233         * modules/strtoul (Makefile.am): Likewise.
74234         * modules/strtoull (Makefile.am): Likewise.
74235         * modules/strtoumax (Makefile.am): Likewise.
74236         * modules/strverscmp (Makefile.am): Likewise.
74237         * modules/time_r (Makefile.am): Likewise.
74238         * modules/timegm (Makefile.am): Likewise.
74239         * modules/tmpfile-safer (Makefile.am): Likewise.
74240         * modules/unistd-safer (Makefile.am): Likewise.
74241         * modules/unlinkdir (Makefile.am): Likewise.
74242         * modules/userspec (Makefile.am): Likewise.
74243         * modules/utime (Makefile.am): Likewise.
74244         * modules/utimecmp (Makefile.am): Likewise.
74245         * modules/utimens (Makefile.am): Likewise.
74246         * modules/vasnprintf (Makefile.am): Likewise.
74247         * modules/vasprintf (Makefile.am): Likewise.
74248         * modules/vsnprintf (Makefile.am): Likewise.
74249         * modules/xalloc (Makefile.am): Likewise.
74250         * modules/xgetcwd (Makefile.am): Likewise.
74251         * modules/xnanosleep (Makefile.am): Likewise.
74252         * modules/xreadlink (Makefile.am): Likewise.
74253         * modules/xstrtod (Makefile.am): Likewise.
74254         * modules/xstrtol (Makefile.am): Likewise.
74255         * modules/xstrtold (Makefile.am): Likewise.
74256         * modules/yesno (Makefile.am): Likewise.
74257
74258 2006-10-12  Jim Meyering  <jim@meyering.net>
74259
74260         * m4/getloadavg.m4: Revert the change below.
74261
74262         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
74263         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
74264         fail with a symlink, which is what coreutils' ./bootstrap now
74265         creates by default.
74266
74267 2006-10-12  Bruno Haible  <bruno@clisp.org>
74268
74269         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
74270         mingw.
74271         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
74272         MSVC and mingw explicitly.
74273
74274 2006-10-11  Simon Josefsson  <jas@extundo.com>
74275             Bruno Haible  <bruno@clisp.org>
74276
74277         Add support for multiple gnulib-tool invocations in the scope of a
74278         single configure.ac file.
74279         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
74280         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
74281         with the same contents as the _LIBADD variable.
74282         (func_emit_initmacro_start, func_emit_initmacro_end,
74283         func_emit_initmacro_done): New functions.
74284         (func_import, func_create_testdir): Invoke them. Allow the identifiers
74285         gl_LIBOBJS and gl_LTLIBOBJS.
74286
74287 2006-10-11  Bruno Haible  <bruno@clisp.org>
74288
74289         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
74290         (func_create_testdir): Don't create po/Makefile.am, don't invoke
74291         autoreconf. Instead, invoke autopoint explicitly but move back the
74292         *.m4 files from gnulib.
74293
74294 2006-10-11  Bruno Haible  <bruno@clisp.org>
74295
74296         * gnulib-tool (func_usage): Make module names after --create-testdir
74297         optional.
74298         (func_create_testdir): If no module was specified, use nearly all
74299         modules.
74300
74301 2006-10-12  Jim Meyering  <jim@meyering.net>
74302
74303         Big performance improvement for fts-based tools that use FTS_NOSTAT.
74304         Avoid spurious inode-mismatch problems on non-POSIX file systems.
74305         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
74306         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
74307         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
74308         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
74309         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
74310         (fts_set_stat_required): New function.
74311         (fts_open): Defer the calls to fts_stat, if possible or requested.
74312         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
74313         into fts_stat itself.
74314         (fts_read): Perform any required (deferred) fts_stat call.
74315         (fts_build): Likewise, for the directory we're about to open and read.
74316         In the readdir loop, carefully decide whether each entry will require
74317         an eventual call to fts_stat, using dirent.d_type info if available.
74318         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
74319         a command line argument into this function.  Update all callers.
74320         Map a return value of FTS_DOT to FTS_D for a command line argument.
74321         * modules/fts (Depends-on): Add d-type.  Alphabetize.
74322         Thanks to Miklos Szeredi for his tenacity and for the initial
74323         bug report about "find" failing on a FUSE-based file system.
74324
74325         * lib/fts.c (fts_open): Use consistent indentation.
74326
74327 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
74328
74329         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
74330         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
74331         reported by Jim Meyering.  All uses of cache variables renamed
74332         to match Autoconf's.
74333         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
74334         the other one.
74335
74336         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
74337         Fix misspelling in diagnostic.
74338
74339 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
74340
74341         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
74342         defined.  Problem reported by Matthew Woehlke.
74343
74344         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
74345         Add support for Tandem NonStop R series.
74346         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
74347         Use new macro.
74348
74349         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
74350         (has_trailing_slash): Omit size arg; all callers changed.
74351         Omit 'inline', since it doesn't help performance and we'd
74352         need to configure it.
74353         Don't count //, ///, etc. as having a trailing slash.
74354         As a side effect, this removes a C99ism reported by Matthew Woehlke.
74355         (rpl_rename_dest_slash): On failure, use rename's errno rather
74356         than (in some cases) an incorrect or junk errno.
74357         Simplify code by removing need to compute length; this does
74358         cause it to make two passes instead of one over the file name,
74359         but it's worth it.
74360
74361         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
74362         change, since Autoconf's version may no longer be appropriate now
74363         that we are using CVS Autoconf's version.  Add support for Tandem.
74364
74365 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
74366             Bruno Haible  <bruno@clisp.org>
74367
74368         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
74369         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
74370         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
74371         gl_AC_TYPE_LONG_LONG.
74372
74373         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
74374         instead of HAVE_LONG_LONG.
74375         * lib/printf-args.c (printf_fetchargs): Likewise.
74376         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
74377         * lib/vasnprintf.c (VASNPRINTF): Likewise.
74378         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
74379         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
74380         gl_AC_TYPE_LONG_LONG.
74381
74382 2006-10-11  Bruno Haible  <bruno@clisp.org>
74383
74384         * m4/longlong.m4: Add comments.
74385         * m4/ulonglong.m4: Likewise.
74386
74387 2006-10-10  Bruno Haible  <bruno@clisp.org>
74388
74389         Make it possible to #define stpcpy, strdup to aliases.
74390         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
74391         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
74392
74393 2006-10-10  Bruno Haible  <bruno@clisp.org>
74394
74395         Make it possible to #define gcd to an alias.
74396         * lib/gcd.c: Include config.h.
74397
74398 2006-10-10  Bruno Haible  <bruno@clisp.org>
74399
74400         Make it possible to #define c_isascii to an alias.
74401         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
74402         defined. Undefine the macros before defining them, to avoid gcc
74403         warnings.
74404         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
74405         define NO_C_CTYPE_MACROS early.
74406
74407 2006-10-10  Bruno Haible  <bruno@clisp.org>
74408
74409         Make it possible to #define set_program_name to an alias.
74410         * lib/progname.c: Don't undefine set_program_name; instead, undefine
74411         ENABLE_RELOCATABLE early.
74412
74413 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
74414
74415         Port to Tandem NSK OSS, which has 64-bit signed int but at most
74416         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
74417         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
74418         More generally, don't assume that 64-bit signed int is available
74419         if unsigned int is, and vice versa.
74420         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
74421         unsigned symbols, not on their signed counterparts.
74422         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
74423         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
74424         (UINT64_C, UINTMAX_C):
74425         Likewise.
74426         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
74427         unsigned counterparts.
74428         (Have_long_long, Unsigned): New macros.
74429         (Int): Renamed from INT.
74430         (strtoimax): Use the new macros.
74431         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
74432         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
74433         * modules/inttypes (inttypes.h): Substitute
74434         HAVE_UNSIGNED_LONG_LONG_INT.
74435         * modules/stdint (stdint.h): Likewise.
74436         (Files): Add m4/ulonglong.m4.
74437
74438 2006-10-10  Bruno Haible  <bruno@clisp.org>
74439
74440         Fix a gcc -Wshadow warning.
74441         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
74442         to 'bucket'.
74443         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
74444         gl_linked_indexof_from_to): Likewise.
74445         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
74446         Likewise.
74447         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
74448         Likewise.
74449         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
74450         Reported by Eric Blake.
74451
74452 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
74453
74454         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
74455         for NetBSD.  Problem reported by Bruno Haible.
74456
74457 2006-10-09  Jim Meyering  <jim@meyering.net>
74458
74459         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
74460         Patch from Bruno Haible.
74461
74462 2006-10-09  Jim Meyering  <jim@meyering.net>
74463
74464         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
74465         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
74466         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
74467
74468 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
74469
74470         Don't include <config.h> twice; this doesn't work in some cases,
74471         e.g., when config.h has "#define intmax_t long long int" and
74472         we include <config.h>, <inttypes.h>, <config.h> in that order.
74473         Problem reported by Matthew Woehlke in:
74474         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
74475         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
74476         * lib/fts-cycle.c: Don't include config.h.
74477         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
74478         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
74479         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
74480         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
74481         inttypes.h.
74482         * lib/xstrtoumax.c: Likewise.
74483         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
74484         __strtol and the like, so that this module is more like its siblings.
74485         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
74486         Remove; no longer needed now that we assume gnulib inttypes.h.
74487
74488 2006-10-08  Bruno Haible  <bruno@clisp.org>
74489
74490         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
74491         option.
74492
74493 2006-10-07  Jim Meyering  <jim@meyering.net>
74494
74495         * modules/inttypes (inttypes.h): Revert what seems to have been
74496         an inadvertent part of today's change: use "|", not "/" in the
74497         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
74498
74499 2006-10-07  Bruno Haible  <bruno@clisp.org>
74500
74501         * modules/sublist: New file.
74502
74503 2006-10-07  Bruno Haible  <bruno@clisp.org>
74504
74505         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
74506         * modules/argz (argz.h): Likewise.
74507         * modules/arpa_inet (arpa/inet.h): Likewise.
74508         * modules/byteswap (byteswap.h): Likewise.
74509         * modules/configmake (configmake.h): Likewise.
74510         * modules/fcntl (fcntl.h): Likewise.
74511         * modules/fnmatch (fnmatch.h): Likewise.
74512         * modules/getopt (getopt.h): Likewise.
74513         * modules/glob (glob.h): Likewise.
74514         * modules/inttypes (inttypes.h): Likewise.
74515         * modules/netinet_in (netinet/in.h): Likewise.
74516         * modules/poll (poll.h): Likewise.
74517         * modules/stdbool (stdbool.h): Likewise.
74518         * modules/stdint (stdint.h): Likewise.
74519         * modules/sys_select (sys/select.h): Likewise.
74520         * modules/sys_socket (sys/socket.h): Likewise.
74521         * modules/sys_stat (sys/stat.h): Likewise.
74522         * modules/sysexits (sysexits.h): Likewise.
74523         * modules/unistd (unistd.h): Likewise.
74524         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74525         Add a "DO NOT EDIT" comment to the generated file.
74526         (func_import): Likewise for gnulib-comp.m4.
74527
74528 2006-10-07  Bruno Haible  <bruno@clisp.org>
74529
74530         * lib/gl_sublist.h: New file.
74531         * lib/gl_sublist.c: New file.
74532
74533 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
74534
74535         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
74536         name (relative to the original working directory) and the file
74537         name component (relative to the temporary working directory).  All
74538         callers changed.
74539         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
74540         * lib/mkdir-p.c (make_dir_parents): Likewise.
74541         * lib/mkdir-p.h (make_dir_parents): Likewise.
74542
74543 2006-10-06  Eric Blake  <ebb9@byu.net>
74544
74545         Define several macros for use by the clean-temp module.
74546         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
74547         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
74548         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
74549
74550         * lib/clean-temp.h (close_stream_temp): New declaration.
74551         * lib/clean-temp.c (includes): Pull in headers according to what
74552         other modules are in use.
74553         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
74554
74555 2006-10-06  Bruno Haible  <bruno@clisp.org>
74556
74557         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
74558         instead of fopen, fwriteerror.
74559
74560 2006-10-06  Bruno Haible  <bruno@clisp.org>
74561
74562         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
74563         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
74564         int.
74565         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
74566         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
74567         Return an error indicator.
74568         Suggested by Eric Blake.
74569
74570 2006-10-06  Bruno Haible  <bruno@clisp.org>
74571
74572         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
74573         Reported by Eric Blake.
74574
74575 2006-10-06  Bruno Haible  <bruno@clisp.org>
74576
74577         * modules/closeout (Description): Mention stderr too.
74578
74579 2006-10-06  Bruno Haible  <bruno@clisp.org>
74580         and Paul Eggert  <eggert@cs.ucla.edu>
74581
74582         * lib/closeout.c (close_stdout): Also close stderr.
74583         * lib/closeout.h: Update comment.
74584
74585 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
74586
74587         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
74588         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
74589         * lib/dirchownmod.c: Include lchown.h.
74590         * lib/lchown.c: Don't include files that lchown.h now includes.
74591         Don't declare chown, since lchown.h now does that.
74592         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
74593         (lchown): Define to rpl_chown if lchown is declared but
74594         does not exist.  Declare using a prototype if lchown is not
74595         declared.  Add a copyright notice.
74596         * lib/mkstemp.h: Include <unistd.h>.
74597         * lib/openat.c: Include lchown.h.
74598
74599         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
74600         we now test for that separately.
74601         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
74602         rather than O_NOFOLLOW, when testing whether it's possible to
74603         avoid a race condition reliably.
74604         * lib/savewd.c (savewd_chdir): Likewise.
74605
74606         Remove macros that are no longer needed now that stdint.h is
74607         reliable.
74608         * lib/fsusage.c (UINTMAX_MAX): Remove.
74609         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
74610         * lib/utimecmp.c (SIZE_MAX): Remove.
74611
74612         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
74613
74614         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
74615         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
74616         O_NOATIME works.
74617
74618 2006-10-05  Bruno Haible  <bruno@clisp.org>
74619
74620         * lib/gl_list.h (gl_sortedlist_search_from_to,
74621         gl_sortedlist_indexof_from_to): New declarations.
74622         (gl_list_implementation): New fields sortedlist_search_from_to,
74623         sortedlist_indexof_from_to.
74624         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
74625         inline functions.
74626         * lib/gl_list.c (gl_sortedlist_search_from_to,
74627         gl_sortedlist_indexof_from_to): New functions.
74628         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
74629         function.
74630         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
74631         (gl_array_sortedlist_search_from_to): New function.
74632         (gl_array_list_implementation): Update.
74633         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
74634         function.
74635         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
74636         (gl_carray_sortedlist_search_from_to): New function.
74637         (gl_carray_list_implementation): Update.
74638         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
74639         gl_linked_sortedlist_indexof_from_to): New functions.
74640         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
74641         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
74642         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
74643         gl_tree_sortedlist_indexof_from_to): New functions.
74644         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
74645         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
74646         Update.
74647         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
74648         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
74649         Update.
74650
74651 2006-10-05  Bruno Haible  <bruno@clisp.org>
74652
74653         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
74654         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
74655         (struct gl_list_implementation): Add fields search_from_to,
74656         indexof_from_to. Remove fields search, indexof.
74657         (gl_list_search): Use the search_from_to method.
74658         (gl_list_search_from, gl_list_search_from_to): New functions.
74659         (gl_list_indexof): Use the indexof_from_to method.
74660         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
74661         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
74662         (gl_list_search_from, gl_list_search_from_to): New functions.
74663         (gl_list_indexof): Use the indexof_from_to method.
74664         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
74665         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
74666         gl_array_indexof. Add start_index, end_index arguments.
74667         (gl_array_search_from_to): Renamed from gl_array_search. Add
74668         start_index, end_index arguments.
74669         (gl_array_remove, gl_array_list_implementation): Update.
74670         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
74671         gl_carray_indexof. Add start_index, end_index arguments.
74672         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
74673         start_index, end_index arguments.
74674         (gl_carray_remove, gl_carray_list_implementation): Update.
74675         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
74676         gl_linked_search. Add start_index, end_index arguments.
74677         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
74678         start_index, end_index arguments.
74679         (gl_linked_remove): Update.
74680         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
74681         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
74682         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
74683         field to 'size_t'.
74684         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
74685         gl_tree_search. Add start_index, end_index arguments.
74686         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
74687         start_index, end_index arguments.
74688         (gl_tree_remove): Update.
74689         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
74690         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
74691         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
74692         function.
74693         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
74694         gl_tree_search. Add start_index, end_index arguments.
74695         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
74696         start_index, end_index arguments.
74697         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
74698         Update.
74699         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
74700
74701 2006-10-05  Bruno Haible  <bruno@clisp.org>
74702
74703         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
74704
74705         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
74706         fwriteerror_temp): New declarations.
74707         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
74708         (descriptors): New variable.
74709         (cleanup): First, close the descriptors.
74710         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
74711         fclose_temp, fwriteerror_temp): New functions.
74712
74713 2006-10-04  Jim Meyering  <jim@meyering.net>
74714
74715         * lib/fts.c (fts_open): Tiny comment change.
74716
74717 2006-10-04  Bruno Haible  <bruno@clisp.org>
74718
74719         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
74720         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
74721         gl_LOCK_BODY.
74722         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
74723         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
74724         gl_LOCK_EARLY_BODY.
74725         (gl_LOCK): Require gl_LOCK_BODY.
74726
74727 2006-10-04  Bruno Haible  <bruno@clisp.org>
74728
74729         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
74730         (gl_oset_search_atleast): New declaration.
74731         (struct gl_oset_implementation): Add field 'search_atleast'.
74732         (gl_oset_search_atleast): New inline function.
74733         * lib/gl_oset.c (gl_oset_search_atleast): New function.
74734         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
74735         (gl_array_oset_implementation): Update.
74736         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
74737         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
74738         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
74739
74740 2006-10-04  Bruno Haible  <bruno@clisp.org>
74741
74742         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
74743
74744 2006-10-03  Bruno Haible  <bruno@clisp.org>
74745
74746         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
74747         from gl_avltreehash_list_implementation.
74748
74749 2006-10-03  Bruno Haible  <bruno@clisp.org>
74750
74751         * lib/gl_oset.c (gl_oset_add): Fix return type.
74752
74753 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
74754
74755         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
74756
74757 2006-10-02  Eric Blake  <ebb9@byu.net>
74758
74759         * modules/strnlen (Depends-on): Add extensions.
74760
74761 2006-10-02  Eric Blake  <ebb9@byu.net>
74762
74763         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
74764         definition in 2.60+.
74765
74766 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
74767
74768         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
74769         checks.
74770
74771 2006-10-02  Bruno Haible  <bruno@clisp.org>
74772
74773         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
74774         to the AUTOMAKE_OPTIONS.
74775         Reported by Jim Meyering.
74776
74777 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
74778
74779         Work around bug in Solaris 10 /proc file system:
74780         /proc/self/fd/NNN/.. isn't the parent directory of
74781         the directory whose file descriptor is NNN.  This needs to
74782         be worked around at run time, not compile time, since a
74783         program might be built on Solaris 8, where things work, and
74784         run on Solaris 10.
74785         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
74786         to use the following interface instead:
74787         (OPENAT_BUFFER_SIZE): New macro.
74788         (openat_proc_name): New function.
74789         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
74790         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
74791         Likewise.
74792         * lib/openat-proc.c: New file.
74793         * modules/openat (Files): Add lib/openat-proc.c.
74794         (Depends-on): Add same-inode, stdbool.
74795         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
74796
74797 2006-09-29  Bruno Haible  <bruno@clisp.org>
74798
74799         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
74800         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
74801         argument. Set stdout_closed before testing for ferror, not after.
74802         (fwriteerror, fwriteerror_no_ebadf): New functions.
74803
74804 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74805
74806         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
74807
74808 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
74809
74810         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
74811         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
74812
74813 2006-09-28  Jim Meyering  <jim@meyering.net>
74814
74815         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
74816         Include <unistd.h>.
74817
74818 2006-09-28  Bruno Haible  <bruno@clisp.org>
74819
74820         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
74821         * modules/linkedhash-list (Depends-on): Likewise.
74822         * modules/rbtreehash-list (Depends-on): Likewise.
74823
74824 2006-09-28  Bruno Haible  <bruno@clisp.org>
74825
74826         * lib/strndup.h: Simplify the redefinition of strndup.
74827         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
74828         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
74829
74830 2006-09-28  Bruno Haible  <bruno@clisp.org>
74831
74832         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
74833         * lib/gl_linkedhash_list.c: Likewise.
74834         * lib/gl_rbtreehash_list.c: Likewise.
74835
74836 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
74837
74838         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
74839         getaddrinfo.
74840
74841         * lib/__fpending.h: Don't include <stdio_ext.h> unless
74842         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
74843         it causes <stdio_ext.h> to cause a compile-time error.
74844         Problem reported by Nelson H. F. Beebe.
74845         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
74846         of HAVE_DECL___PENDING.
74847
74848         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
74849         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
74850         declaration.
74851
74852 2006-09-27  Jim Meyering  <jim@meyering.net>
74853
74854         This file could end up with a definition for a function
74855         named __strndup, rather than rpl_strndup on a system with
74856         incomplete weak_alias support.
74857         * lib/strndup.c (strndup): Rename from __strndup.
74858         Remove #defines that used to map __strndup to strndup.
74859         Don't use K&R prototypes.
74860         Remove LIBC-related code, since this file is not sync'd with glibc.
74861         * lib/strndup.h: Revamp, accordingly.
74862         * m4/strndup.m4: Modernize.
74863
74864 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
74865
74866         * modules/savewd (Depends-on): Add 'raise'.
74867         * lib/savewd.c: Include <signal.h>, for 'raise'.
74868
74869 2006-09-26  Jim Meyering  <jim@meyering.net>
74870
74871         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
74872         when we detect Darwin 8.7.0's acl_get_file bug.
74873         Rearrange to perform the new (below) run-test while $LIBS
74874         contains any acl-related library.  Set USE_ACL at the end.
74875         (gl_ACL_GET_FILE): New function.
74876
74877 2006-09-26  Eric Blake  <ebb9@byu.net>
74878
74879         * lib/verror.c: Include <config.h> unconditionally.
74880
74881 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
74882
74883         * modules/clock-time (Maintainer): Add self.
74884         * modules/getlogin_r (Depends-on): Add extensions.
74885
74886 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74887
74888         * modules/clock-time: New module.
74889         * modules/nanosleep (Depends-on): Add clock-time.
74890         * modules/gethrxtime (Depends-on): Likewise.
74891         * modules/gettime (Depends-on): Likewise.
74892         * modules/settime (Depends-on): Likewise.
74893
74894         * modules/fts-lgpl: Depend on openat.
74895         * modules/mkancesdirs: Depend on savewd.
74896         * modules/mkdir-p: Likewise.
74897
74898 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74899
74900         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
74901
74902         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
74903         `gl_have_arbitrary_file_name_length_limit' to
74904         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
74905         actually works between configure runs.
74906
74907 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74908             Bruno Haible  <bruno@clisp.org>
74909
74910         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
74911
74912 2006-09-25  Jim Meyering  <jim@meyering.net>
74913
74914         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
74915         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
74916
74917 2006-09-25  Eric Blake  <ebb9@byu.net>
74918
74919         * gnulib-tool (func_import, func_create_testdir): Fix typos in
74920         exec's in 2006-09-18 patch when shuffling fds.
74921
74922 2006-09-25  Bruno Haible  <bruno@clisp.org>
74923
74924         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
74925         Reported by Jim Meyering.
74926
74927 2006-09-24  Jim Meyering  <jim@meyering.net>
74928
74929         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
74930         compare a pointer against a literal "0".  That caused failures with
74931         at least HP-UX's hpcc.
74932
74933 2006-09-22  Simon Josefsson  <jas@extundo.com>
74934
74935         * modules/gc-sha1:
74936         * modules/gc-md4:
74937         * modules/gc-hmac-sha1:
74938         * modules/gc-hmac-md5:
74939         * modules/gc-des:
74940         * modules/gc-arcfour: Distribute more files.
74941
74942 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74943
74944         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
74945         (gl_linked_iterator_from_to): Initialize struct completely.
74946         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
74947         (gl_tree_iterator_from_to): Likewise
74948         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
74949         * lib/gl_array_list.c [lint] (gl_array_iterator)
74950         (gl_array_iterator_from_to): Likewise.
74951         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
74952         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
74953         (gl_carray_iterator_from_to): Likewise.
74954
74955         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
74956         * lib/md4.c (md4_process_block): Remove unused variable.
74957         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
74958         parentheses for clarity.
74959
74960 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74961
74962         * modules/bison-i18n (Depends-on): Add gettext.
74963
74964 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74965
74966         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
74967         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
74968         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
74969         also add missing comma that caused broken test.
74970         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
74971         stdlib.h, for `abort'.
74972         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
74973         variables.
74974         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
74975         include unistd.h if present, for `rmdir'.
74976         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
74977         variables.
74978         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
74979         in the process include standard headers for prototypes.
74980         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
74981         gets declared on GNU/Linux.
74982         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
74983         unistd.h, for `rmdir'.
74984         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
74985
74986         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
74987         always true.
74988         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
74989
74990         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
74991
74992 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74993
74994         * gnulib-tool (func_version): Create output all at once.  This
74995         may help avoid triggering unnecessary SIGPIPEs, and at any
74996         rate it doesn't hurt.
74997
74998 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74999             Bruno Haible  <bruno@clisp.org>
75000
75001         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
75002         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
75003         * m4/signed.m4 (bh_C_SIGNED): Likewise.
75004
75005         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
75006         (gl_FUNC_VASPRINTF): Invoke it.
75007
75008 2006-09-22  Bruno Haible  <bruno@clisp.org>
75009
75010         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
75011         getloadavg.c as first argument.
75012
75013 2006-09-22  Bruno Haible  <bruno@clisp.org>
75014
75015         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
75016         at the beginning of the gl_INIT macro.
75017         * modules/getloadavg (configure.ac): Pass $gl_source_base to
75018         gl_GETLOADAVG.
75019
75020 2006-09-22  Bruno Haible  <bruno@clisp.org>
75021
75022         * gnulib-tool (func_create_megatestdir): Don't include the config-h
75023         module.
75024         Suggested by Ralf Wildenhues.
75025
75026 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
75027
75028         Import this patch from libc:
75029
75030         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
75031
75032         * lib/regex_internal.c (re_string_reconstruct): Handle
75033         offset < pstr->valid_raw_len && pstr->offsets_needed case.
75034         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
75035         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
75036         re_string_context_at.
75037
75038         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
75039         now requires it.
75040         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
75041         gl_REGEX now does it for us.
75042         (gl_REGEX): Add test taken from
75043         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
75044
75045         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
75046         Check that large offsets work.  Modernize Autoconf usages.
75047         Prefer "yes" to mean a good thing rather than a bad.
75048         Don't put "#define mkstemp" in config.h, as this might interfere
75049         with standard system headers that "#define mkstemp mkstemp64".
75050
75051         * modules/mkstemp (Depends-on): Add extensions, so that
75052         mkstemp is visible on some platforms.
75053         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
75054         (Include): Change to "mkstemp.h" from <stdlib.h>.
75055         (Files): Add mkstemp.h.
75056
75057         * lib/mkstemp.h: New file, since some standard headers
75058         #define mkstemp.
75059         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
75060         Include "mkstemp.h".
75061         Make the _LIBC code resemble glibc original more,
75062         e.g., use K&R style.
75063         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
75064         (mkstemp): Remove, since mkstemp.h does this for us.
75065         * lib/stdlib--.h: Include mkstemp.h.
75066
75067         Import this patch from libc:
75068
75069         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
75070
75071         * lib/tempname.c (__gen_tempname): Change attempts_min
75072         into a macro.  Use preprocessor to decide how to initialize
75073         attempts [Coverity CID 67].
75074
75075 2006-09-20  Bruno Haible  <bruno@clisp.org>
75076
75077         * lib/mkdtemp.c: Import from libc.
75078         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
75079                 * sysdeps/posix/tempname.c (__gen_tempname): Change
75080                 attempts_min into a macro.  Use preprocessor to decide how to
75081                 initialize attempts [Coverity CID 67].
75082         2001-11-27  Paul Eggert  <eggert@twinsun.com>
75083                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
75084                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
75085
75086 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75087
75088         * gnulib-tool (func_exit): New function, to allow to pass the
75089         exit status portably through the trap.  Use everywhere.
75090         (--help, --version): Signal a write error.
75091         (trap): catch SIGPIPE, for write errors.
75092         Exit at the end of the trap, with the correct exit status.
75093
75094 2006-09-19  Karl Berry  <karl@gnu.org>
75095
75096         * doc/gnulib.texi: note about the license texinfo files.
75097
75098 2006-09-19  Eric Blake  <ebb9@byu.net>
75099
75100         * gnulib-tool: Avoid space-tab.
75101
75102 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
75103
75104         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
75105         that prevented coreutils 6.1 from building.  Problem reported
75106         by Petter Reinholdtsen.
75107
75108 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
75109
75110         * gnulib-tool (avoidlist): Fix typo that broke options like
75111         --avoid=lock that are used by coreutils bootstrap.
75112
75113 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
75114
75115         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
75116         more systematically.
75117
75118 2006-09-18  Jim Meyering  <jim@meyering.net>
75119
75120         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
75121
75122 2006-09-18  Bruno Haible  <bruno@clisp.org>
75123
75124         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
75125
75126 2006-09-18  Bruno Haible  <bruno@clisp.org>
75127
75128         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
75129         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
75130         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
75131         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
75132         * m4/gettext.m4: Require autoconf >= 2.52.
75133         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
75134         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
75135         of gl_cv_header_inttypes_h.
75136
75137 2006-09-18  Bruno Haible  <bruno@clisp.org>
75138
75139         * lib/javaversion.c: Include configmake.h.
75140
75141 2006-09-18  Bruno Haible  <bruno@clisp.org>
75142
75143         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
75144         avoid that the while loops be executed in a subshell.
75145
75146 2006-09-18  Bruno Haible  <bruno@clisp.org>
75147
75148         * MODULES.html.sh (func_module): Break long lines.
75149         Suggested by Bruce Korb <bkorb@gnu.org>.
75150
75151 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75152
75153         Speed up by a factor of 1.12.
75154         * gnulib-tool (nl): New variable.
75155         (func_import): Rewrite include directive extraction to only read each
75156         directive once.
75157
75158 2006-09-17  Bruno Haible  <bruno@clisp.org>
75159
75160         * modules/javaversion (Makefile.am): Remove DEFS setting.
75161         (Depends-on): Add configmake, for PKGDATADIR definition.
75162
75163 2006-09-17  Bruno Haible  <bruno@clisp.org>
75164
75165         * gnulib-tool (func_create_testdir): Rewrite all files at once.
75166
75167 2006-09-17  Bruno Haible  <bruno@clisp.org>
75168
75169         * gnulib-tool (func_append): New function, stolen from libtool.m4.
75170         (func_modules_transitive_closure, func_modules_add_dummy,
75171         func_modules_to_filelist, func_import, func_create_testdir,
75172         func_create_megatestdir, ...): Use it wherever possible.
75173         Suggested by Ralf Wildenhues.
75174
75175 2006-09-16  Karl Berry  <karl@gnu.org>
75176
75177         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
75178         to avoid sectioning errors.
75179         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
75180         [ifinfo]: blank line after @center-ed titles.
75181         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
75182         Spell FSF address consistently with others.
75183         (These changes approved by rms.)
75184
75185 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75186
75187         Speed up by a factor of 1.61.
75188         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
75189         already checked module names again.
75190
75191 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75192
75193         Speed up by a factor of 1.13.
75194         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
75195         for new_files, and the input to func_add_or_update.
75196
75197 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75198
75199         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
75200         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
75201
75202 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
75203
75204         * modules/mkancesdirs (Depends-on): Add fcntl.
75205         * modules/savewd: New file.
75206         * MODULES.html.sh (File system functions): Add savewd.
75207
75208         * modules/configmake (Makefile.am): Add support for the
75209         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
75210
75211 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
75212
75213         * m4/savewd.m4: New file.
75214
75215 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
75216
75217         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
75218         (dirchownmod): New arg FD.  All callers changed.
75219         Use FD rather than opening the directory ourself, as opening is
75220         now the caller's responsibility.
75221         * lib/dirchownmod.h: Likewise.
75222         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
75223         hosts that require <sys/types.h> before <sys/stat.h>.  Include
75224         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
75225         (test_dir): Remove.
75226         (mkancesdirs): Return length of prefix of FILE that has already
75227         been made, or -2 if there is a child doing the work.  Redo
75228         algorithm so that it is O(N) rather than O(N**2).  Optimize away
75229         ".", and treat ".." specially since it might stray back into
75230         already-created areas.  Use a subprocess if necessary.  New arg
75231         WD; all users changed.  MAKE_DIR function should now return 1
75232         if it creates a directory that is not readable.  Return -2 if
75233         a child process is spun off.
75234         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
75235         Adjust signature to match code.
75236         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
75237         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
75238         all users changed.
75239         * lib/savewd.c, lib/savewd.h: New files.
75240
75241 2006-09-15  Jim Meyering  <jim@meyering.net>
75242
75243         * modules/rename-dest-slash: New module.
75244         * MODULES.html.sh (posix_compat): Add it here.
75245
75246         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
75247
75248 2006-09-15  Jim Meyering  <jim@meyering.net>
75249
75250         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
75251         file.
75252
75253         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
75254
75255 2006-09-15  Jim Meyering  <jim@meyering.net>
75256
75257         * lib/rename-dest-slash.c (has_trailing_slash): Use
75258         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
75259         (rpl_rename_dest_slash): Perform the cheaper trailing slash
75260         test before testing whether SRC is a directory.
75261         Suggestions from Bruno Haible.
75262
75263         Avoid a warning about an unused variable.
75264         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
75265         into the #ifdef block where it's used.
75266
75267         * lib/rename-dest-slash.c: New file.
75268
75269 2006-09-14  Bruno Haible  <bruno@clisp.org>
75270
75271         * lib/allocsa.c: Include <config.h> unconditionally.
75272         * lib/asnprintf.c: Likewise.
75273         * lib/asprintf.c: Likewise.
75274         * lib/c-strcasecmp.c: Likewise.
75275         * lib/c-strcasestr.c: Likewise.
75276         * lib/c-strncasecmp.c: Likewise.
75277         * lib/c-strstr.c: Likewise.
75278         * lib/classpath.c: Likewise.
75279         * lib/clean-temp.c: Likewise.
75280         * lib/concatpath.c: Likewise.
75281         * lib/copy-file.c: Likewise.
75282         * lib/csharpcomp.c: Likewise.
75283         * lib/csharpexec.c: Likewise.
75284         * lib/execute.c: Likewise.
75285         * lib/fatal-signal.c: Likewise.
75286         * lib/findprog.c: Likewise.
75287         * lib/fwriteerror.c: Likewise.
75288         * lib/gl_array_list.c: Likewise.
75289         * lib/gl_array_oset.c: Likewise.
75290         * lib/gl_avltree_list.c: Likewise.
75291         * lib/gl_avltree_oset.c: Likewise.
75292         * lib/gl_avltreehash_list.c: Likewise.
75293         * lib/gl_carray_list.c: Likewise.
75294         * lib/gl_linked_list.c: Likewise.
75295         * lib/gl_linkedhash_list.c: Likewise.
75296         * lib/gl_list.c: Likewise.
75297         * lib/gl_oset.c: Likewise.
75298         * lib/gl_rbtree_list.c: Likewise.
75299         * lib/gl_rbtree_oset.c: Likewise.
75300         * lib/gl_rbtreehash_list.c: Likewise.
75301         * lib/imaxabs.c: Likewise.
75302         * lib/imaxdiv.c: Likewise.
75303         * lib/javacomp.c: Likewise.
75304         * lib/javaexec.c: Likewise.
75305         * lib/javaversion.c: Likewise.
75306         * lib/linebreak.c: Likewise.
75307         * lib/localcharset.c: Likewise.
75308         * lib/lock.c: Likewise.
75309         * lib/mbchar.c: Likewise.
75310         * lib/mbswidth.c: Likewise.
75311         * lib/mkdtemp.c: Likewise.
75312         * lib/pipe.c: Likewise.
75313         * lib/printf-args.c: Likewise.
75314         * lib/printf-parse.c: Likewise.
75315         * lib/progname.c: Likewise.
75316         * lib/progreloc.c: Likewise.
75317         * lib/readlink.c: Likewise.
75318         * lib/sh-quote.c: Likewise.
75319         * lib/stpcpy.c: Likewise.
75320         * lib/stpncpy.c: Likewise.
75321         * lib/strcasecmp.c: Likewise.
75322         * lib/strcasestr.c: Likewise.
75323         * lib/strcspn.c: Likewise.
75324         * lib/striconv.c: Likewise.
75325         * lib/strncasecmp.c: Likewise.
75326         * lib/strnlen1.c: Likewise.
75327         * lib/strstr.c: Likewise.
75328         * lib/strtok_r.c: Likewise.
75329         * lib/tls.c: Likewise.
75330         * lib/tmpdir.c: Likewise.
75331         * lib/unicodeio.c: Likewise.
75332         * lib/unsetenv.c: Likewise.
75333         * lib/vasnprintf.c: Likewise.
75334         * lib/vasprintf.c: Likewise.
75335         * lib/wait-process.c: Likewise.
75336         * lib/xallocsa.c: Likewise.
75337         * lib/xsetenv.c: Likewise.
75338         * lib/xstriconv.c: Likewise.
75339
75340 2006-09-13  Simon Josefsson  <jas@extundo.com>
75341
75342         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
75343         that internally, suggested by Ralf Wildenhues
75344         <Ralf.Wildenhues@gmx.de>.
75345
75346 2006-09-13  Simon Josefsson  <jas@extundo.com>
75347
75348         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
75349         @LIBOBJS@.
75350         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
75351
75352 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
75353
75354         * lib/_fpending.c: Include <config.h> unconditionally, since we no
75355         longer worry about uses that don't define HAVE_CONFIG_H.
75356         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
75357         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
75358         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
75359         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
75360         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
75361         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
75362         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
75363         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
75364         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
75365         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
75366         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
75367         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
75368         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
75369         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
75370         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
75371         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
75372         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
75373         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
75374         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
75375         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
75376         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
75377         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
75378         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
75379         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
75380         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
75381         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
75382         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
75383         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
75384         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
75385         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
75386         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
75387         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
75388         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
75389         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
75390         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
75391         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
75392         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
75393         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
75394         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
75395         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
75396         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
75397         Likewise.
75398
75399 2006-09-13  Eric Blake  <ebb9@byu.net>
75400
75401         * lib/getopt.c: Fix typo in last commit.
75402
75403 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
75404
75405         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
75406         dgettext.
75407
75408 2006-09-12  Jim Meyering  <jim@meyering.net>
75409
75410         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
75411         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
75412         Reported by Nelson H. F. Beebe.
75413
75414 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
75415
75416         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
75417         program_invocation_name and program_invocation_short_name are
75418         initialized.
75419         * lib/argp-namefrob.h: Move declarations of program_invocation_name
75420         and program_invocation_short_name to argp.h, so they are visible
75421         to user programs.
75422         * lib/argp.h: Likewise
75423
75424 2006-09-10  Bruno Haible  <bruno@clisp.org>
75425
75426         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
75427         m4/inttypes_h.m4, m4/uintmax_t.m4.
75428
75429 2006-09-10  Bruno Haible  <bruno@clisp.org>
75430
75431         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
75432         gl_AC_TYPE_UINTMAX_T.
75433
75434 2006-09-10  Bruno Haible  <bruno@clisp.org>
75435
75436         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
75437
75438 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
75439
75440         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
75441         convention.  Text proposed by Bruno Haible.
75442         (struct argp_option): Document the use of N_() wrappers.
75443
75444         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
75445         '\v', and translate the two parts separately, instead of feeding
75446         the whole string to gettext.  This allows to exclude
75447         '\v' from the strings visible to the translator by writing doc
75448         strings as N_("..") "\v" N_("..").
75449
75450 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
75451
75452         * config/srclist.txt: Undo latest change; the bug was fixed.
75453
75454 2006-09-09  Bruno Haible  <bruno@clisp.org>
75455
75456         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
75457         assignments if building a library without libtool.
75458         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
75459         in func_emit_lib_Makefile_am.
75460         (func_import): When building a static library libfoo.a, arrange to
75461         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
75462         (func_create_testdir): Likewise.
75463         * modules/gc (configure.ac, Makefile.am): If building statically,
75464         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
75465         * modules/iconvme (configure.ac, Makefile.am): Likewise.
75466         * modules/striconv (configure.ac, Makefile.am): Likewise.
75467         Based on a suggestion by Ralf Wildenhues.
75468
75469 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75470
75471         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
75472         Check for unistd.h too, since Autoconf doesn't assume POSIX.
75473         Also:
75474
75475         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75476         Add year_2050_test to catch glibc bug 2821
75477         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
75478
75479         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75480         Prefer #ifdef to #if.
75481
75482         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
75483         Return from 'main' instead of calling 'exit'.
75484
75485 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75486
75487         * lib/mktime.c (guess_time_tm): Fix bug where mktime
75488         returned the maximum time_t value rather than (time_t) -1.
75489         Problem originally reported by William Bardwell
75490         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
75491
75492         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
75493         Moved to here ...
75494         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
75495         ... from here.
75496
75497 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75498
75499         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
75500         2821 is fixed.
75501
75502 2006-09-08  Jim Meyering  <jim@meyering.net>
75503
75504         Don't make generated files read-only.  That would bother too many
75505         people.  However, do retain the ability to work when targets are
75506         read-only: remove the destination and temporary files before writing
75507         them (when generated via sed or echo), or by using the -f option for
75508         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
75509         * modules/alloca-opt, modules/argz, modules/arpa_inet:
75510         * modules/byteswap, modules/configmake, modules/fcntl:
75511         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
75512         * modules/localcharset, modules/netinet_in, modules/poll:
75513         * modules/stdbool, modules/stdint, modules/sys_select:
75514         * modules/sys_socket, modules/sys_stat, modules/sysexits:
75515
75516 2006-09-08  Jim Meyering  <jim@meyering.net>
75517
75518         Avoid new build failure on FreeBSD 6.0.
75519         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
75520         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
75521         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
75522
75523 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75524
75525         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
75526
75527 2006-09-07  Jim Meyering  <jim@meyering.net>
75528
75529         Fix global typo in last change: use chmod u-w, not chmod u-x.
75530         Spotted by Paul Eggert and Bruce Korb.
75531         * modules/alloca-opt, modules/argz, modules/arpa_inet:
75532         * modules/byteswap, modules/configmake, modules/fcntl:
75533         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
75534         * modules/localcharset, modules/netinet_in, modules/poll:
75535         * modules/stdbool, modules/stdint, modules/sys_select:
75536         * modules/sys_socket, modules/sys_stat, modules/sysexits:
75537
75538 2006-09-06  Jim Meyering  <jim@meyering.net>
75539
75540         Make generated files be read-only.
75541         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
75542         Ensure that each generated file is now read-only.
75543         * modules/argz: Likewise.
75544         * modules/arpa_inet: Likewise.
75545         * modules/byteswap: Likewise.
75546         * modules/configmake: Likewise.
75547         * modules/fcntl: Likewise.
75548         * modules/fnmatch: Likewise.
75549         * modules/getopt: Likewise.
75550         * modules/glob: Likewise.
75551         * modules/inttypes: Likewise.
75552         * modules/netinet_in: Likewise.
75553         * modules/poll: Likewise.
75554         * modules/stdbool: Likewise.
75555         * modules/stdint: Likewise.
75556         * modules/sys_select: Likewise.
75557         * modules/sys_socket: Likewise.
75558         * modules/sys_stat: Likewise.
75559         * modules/sysexits: Likewise.
75560         * modules/localcharset: Same as above, but continue using temporary
75561         file named "t-$@" (why different?) rather than the "$@-t" used
75562         everywhere else.
75563
75564         * modules/sysexits (Makefile.am): Replace literal occurrences
75565         of "sysexit.h" more readable, and more consistent, "$@".
75566
75567 2006-09-06  Bruno Haible  <bruno@clisp.org>
75568
75569         * modules/striconv: New file.
75570         * modules/xstriconv: New file.
75571         * MODULES.html.sh (Internationalization functions): Add striconv,
75572         xstriconv.
75573
75574 2006-09-06  Bruno Haible  <bruno@clisp.org>
75575
75576         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
75577         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
75578         not using libtool correctly.
75579
75580 2006-09-06  Bruno Haible  <bruno@clisp.org>
75581
75582         * lib/striconv.h: New file.
75583         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
75584         iconvstring.c.
75585         * lib/xstriconv.h: New file.
75586         * lib/xstriconv.c: New file.
75587
75588 2006-09-06  Bruno Haible  <bruno@clisp.org>
75589
75590         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
75591         lib_..._LDFLAGS.
75592
75593 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75594
75595         * lib/argz_.h: Sync from Libtool.
75596
75597         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
75598                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
75599
75600         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
75601
75602 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
75603
75604         * modules/trim: New file.
75605
75606 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
75607
75608         * lib/trim.h: New file.
75609         * lib/trim.c: New file.
75610
75611 2006-09-05  Bruno Haible  <bruno@clisp.org>
75612
75613         * MODULES.html.sh (String handling): Add trim.
75614
75615 2006-09-04  Karl Berry  <karl@gnu.org>
75616
75617         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
75618         until next release.
75619
75620 2006-09-03  Bruno Haible  <bruno@clisp.org>
75621
75622         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
75623         correctly.
75624
75625 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
75626
75627         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
75628         not gl_GETLOADAVG.  Omit unneeded semicolons.
75629         Problems reported by Ralf Wildenhues in
75630         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
75631         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
75632         at the end, which is the usual gnulib style.
75633
75634         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
75635         of doing all the work ourselves.
75636         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
75637         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
75638
75639 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
75640
75641         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
75642         Problem reported by Ralf Wildenhues in
75643         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
75644
75645         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
75646         HAVE_STRUCT_STATFS_F_FSTYPENAME.
75647
75648 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
75649
75650         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
75651         yesterday's patch by changing test -n to test -z.
75652
75653 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75654
75655         * modules/getloadavg (Files): Add m4/getloadavg.m4.
75656         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
75657         the former is now obsolescent.
75658
75659         * modules/chdir-long (Depends-on): Add fcntl.
75660
75661 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75662
75663         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
75664         obsolescent, and programs should use gnulib instead.
75665         * m4/getloadavg.m4: New file, with contents taken from Autoconf
75666         but with prefixes changed.
75667
75668 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75669
75670         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
75671         or stdbool.h, because they might not exist while configuring.
75672
75673         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
75674         Don't include unistd.h or limits.h; not needed, since chdir-long.h
75675         does that for us.
75676         (O_DIRECTORY): Remove.
75677
75678 2006-08-31  Eric Blake  <ebb9@byu.net>
75679
75680         * gnulib-tool: Don't let emacs change spaces to TAB.
75681
75682 2006-08-31  Bruno Haible  <bruno@clisp.org>
75683
75684         * gnulib-tool: When calling func_import more than once, do it in a
75685         subshell.
75686         Reported by Eric Blake <ebb9@byu.net>.
75687
75688 2006-08-31  Bruno Haible  <bruno@clisp.org>
75689
75690         * gnulib-tool (nl): Remove variable.
75691         (sed_transform_lib_file): Use more robust test for config-h module.
75692         (func_import): Fix typo in 2006-08-25 patch.
75693
75694 2006-08-31  Bruno Haible  <bruno@clisp.org>
75695
75696         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
75697         specified, augment Makefile.am variables instead of assigning them.
75698
75699 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
75700
75701         Work around a bug in both the Linux and SunOS 64-bit kernels:
75702         nanosleep mishandles sleeps for longer than 2**31 seconds.
75703         Problem reported by Frank v Waveren in
75704         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
75705         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
75706         Check for nanosleep bug.
75707         (LIB_NANOSLEEP): Append clock_gettime library if needed.
75708
75709 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
75710
75711         Work around a bug in both the Linux and SunOS 64-bit kernels:
75712         nanosleep mishandles sleeps for longer than 2**31 seconds.
75713         Problem reported by Frank v Waveren in
75714         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
75715         * lib/nanosleep.c (BILLION): New constant.
75716         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
75717         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
75718         implementation.
75719
75720 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
75721
75722         * modules/nanosleep (Depends-on): Add gettime.
75723
75724 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
75725         and Simon Josefsson  <jas@extundo.com>
75726         and Oskar Liljeblad  <oskar@osk.mine.nu>
75727
75728         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
75729         * gnulib-tool (func_import): New license type 'unmodifiable license
75730         text'.
75731         * modules/fdl: Use it.  Longer description.
75732         * module/gpl, module/lgpl: New files.
75733
75734 2006-08-30  Jim Meyering  <jim@meyering.net>
75735
75736         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
75737         shadowing the parameter.
75738
75739 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75740
75741         Sync from Libtool:
75742
75743         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75744
75745         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
75746         sharing with gnulib.  Report by Eric Blake.
75747
75748 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
75749
75750         * modules/isapipe: New file.
75751         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
75752
75753 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
75754
75755         * modules/configmake (Makefile.am): Add a comment, and omit
75756         the CONFIGMAKE_ prefix from generated macro names.  Suggested
75757         by Bruno Haible.
75758
75759 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
75760
75761         * m4/isapipe.m4: New file.
75762
75763 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
75764
75765         * lib/isapipe.c, lib/isapipe.h: New files.
75766
75767 2006-08-29  Jim Meyering  <jim@meyering.net>
75768
75769         * modules/configmake (Makefile.am): Make configmake.h depend on
75770         Makefile.  Otherwise, a stale configmake.h could hang around.
75771
75772 2006-08-29  Eric Blake  <ebb9@byu.net>
75773
75774         * lib/error.c (error_at_line, print_errno_message): Match libc, after
75775         resolution of upstream bug 3044.
75776
75777 2006-08-29  Bruno Haible  <bruno@clisp.org>
75778
75779         * modules/localcharset (Depends-on): Add configmake.
75780         (Makefile.am): Remove setting of LIBDIR through DEFS.
75781
75782 2006-08-29  Bruno Haible  <bruno@clisp.org>
75783
75784         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
75785         defined.
75786
75787 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
75788
75789         * modules/fcntl: New file.
75790         * modules/chdir-safer (Depends-on): Add fcntl.
75791         * modules/fts: Likewise.
75792         * modules/mkdir-p: Likewise.
75793
75794         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
75795         This undoes the most recent change, since we're now addressing the
75796         problem in a different way.
75797
75798         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
75799         into output, since the output might be called Makefile.am even
75800         if $makefile_name is something different.
75801         (func_import): Use $makefile_am rather than
75802         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
75803         empty.
75804
75805         * modules/inttypes (Files): Add m4/inttypes-h.m4.
75806
75807 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
75808
75809         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
75810         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
75811         recent change to stdint.m4, since we're now addressing the problem in a
75812         different way.
75813
75814 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
75815
75816         * m4/fcntl_h.m4: New file.
75817
75818 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
75819
75820         * lib/fcntl_.h: New file.
75821         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
75822         the fcntl module.
75823         * lib/dirchownmod.c: Likewise.
75824         * lib/fts.c: Likewise.
75825
75826         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
75827         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
75828         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
75829         just before including <inttypes.h>, to avoid circular inclusion.
75830
75831 2006-08-28  Jim Meyering  <jim@meyering.net>
75832
75833         * doc/visibility.texi: Actually read and correct the grammar of the
75834         sentence affected by yesterday's change.
75835
75836 2006-08-28  Eric Blake  <ebb9@byu.net>
75837
75838         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
75839         needs wrapper.
75840
75841 2006-08-28  Eric Blake  <ebb9@byu.net>
75842
75843         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
75844
75845 2006-08-28  Eric Blake  <ebb9@byu.net>
75846
75847         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
75848
75849 2006-08-28  Bruno Haible  <bruno@clisp.org>
75850
75851         * modules/c-strstr: New file, from GNU gettext.
75852         * MODULES.html.sh (String handling): Add c-strstr.
75853
75854 2006-08-28  Bruno Haible  <bruno@clisp.org>
75855
75856         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
75857         macros.
75858         Reported by Eric Blake.
75859
75860 2006-08-28  Bruno Haible  <bruno@clisp.org>
75861
75862         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
75863         (VASNPRINTF): Return a string of length > INT_MAX without failing.
75864         * lib/vasprintf.c: Include errno.h, limits.h.
75865         (EOVERFLOW): New fallback definition.
75866         (vasprintf): Test here whether the string length is > INT_MAX.
75867         * lib/vsnprintf.c: Include errno.h, limits.h.
75868         (EOVERFLOW): New fallback definition.
75869         (vsnprintf): Fix bug when generated string was too long for the buffer.
75870         Test here whether the string length is > INT_MAX.
75871
75872 2006-08-28  Bruno Haible  <bruno@clisp.org>
75873
75874         * lib/inttypes_.h (SCNX*): Remove definitions.
75875         Reported by Eric Blake.
75876
75877 2006-08-28  Bruno Haible  <bruno@clisp.org>
75878
75879         * lib/c-strstr.h: New file, from GNU gettext.
75880         * lib/c-strstr.c: New file, from GNU gettext.
75881
75882 2006-08-28  Bruno Haible  <bruno@clisp.org>
75883
75884         * gnulib-tool: Reorder some statements.
75885
75886 2006-08-28  Bruno Haible  <bruno@clisp.org>
75887
75888         * gnulib-tool: New option --makefile-name.
75889         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
75890         $makefile_name.
75891         (func_import): Write $makefile_name to the cache file, and read it from
75892         there unless explicitly specified. Use $makefile_name as file name
75893         instead of Makefile.am. Adjust the recommendations accordingly.
75894
75895 2006-08-28  Bruno Haible  <bruno@clisp.org>
75896
75897         * gnulib-tool (func_verify_module): Check against misapplying patch.
75898
75899 2006-08-28  Bruno Haible  <bruno@clisp.org>
75900
75901         * gnulib-tool (func_relativize, func_relconcat): New functions.
75902         Give an error if --local-dir is given with --update.
75903         Remove trailing slashes from $local_gnulib_dir.
75904         (func_import): Store the relativized $local_gnulib_dir in
75905         gnulib-cache.m4, and read it from there if not specified explicitly.
75906
75907 2006-08-28  Bruno Haible  <bruno@clisp.org>
75908
75909         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
75910         is the current directory. Respect also $local_gnulib_dir.
75911
75912 2006-08-28  Bruno Haible  <bruno@clisp.org>
75913             Simon Josefsson  <jas@extundo.com>
75914
75915         BeOS portability.
75916         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
75917
75918 2006-08-27  Jim Meyering  <jim@meyering.net>
75919
75920         * doc/visibility.texi: Remove duplicate word: "pointer".
75921
75922 2006-08-26  Bruno Haible  <bruno@clisp.org>
75923
75924         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
75925         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
75926         (Makefile.am): Create inttypes.h from inttypes_.h.
75927         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
75928
75929         * modules/imaxabs: New file.
75930
75931         * modules/imaxdiv: New file.
75932
75933 2006-08-26  Bruno Haible  <bruno@clisp.org>
75934
75935         * m4/inttypes.m4: New file.
75936         * m4/_inttypes_h.m4: Remove file.
75937         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
75938         PRI_MACROS_BROKEN.
75939         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
75940
75941         * m4/imaxabs.m4: New file.
75942
75943         * m4/imaxdiv.m4: New file.
75944
75945 2006-08-26  Bruno Haible  <bruno@clisp.org>
75946
75947         * lib/inttypes_.h: New file.
75948         * lib/inttypes.h: Remove file.
75949         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
75950
75951         * lib/imaxabs.c: New file.
75952
75953         * lib/imaxdiv.c: New file.
75954
75955 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75956
75957         New config-h module, so that "make" output needn't be cluttered
75958         by -DHAVE_CONFIG_H.
75959         * MODULES.html.sh (Support for building libraries and executables):
75960         Add config-h.
75961         * modules/config-h: New file.
75962         * gnulib-tool (nl, sed_transform_lib_file): New vars.
75963         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
75964         the config-h module is used.
75965
75966         New configmake module, so that "make" output needn't be cluttered
75967         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
75968         * MODULES.html.sh (Support for building libraries and executables):
75969         Add configmake.
75970         * modules/configmake: New file.
75971
75972 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75973
75974         * m4/config-h.m4: New file.
75975
75976 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75977
75978         * config/srclist.txt: Add elisp-comp.
75979
75980 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75981
75982         * MODULES.html.sh (Support for building libraries and executables):
75983         Add elisp-comp.
75984         * build-aux/elisp-comp: New file.
75985         * modules/elisp-comp: New file.
75986
75987 2006-08-24  Bruno Haible  <bruno@clisp.org>
75988
75989         * gnulib-tool (func_create_testdir): Use non-default values of
75990         sourcebase and m4base.
75991
75992 2006-08-24  Bruno Haible  <bruno@clisp.org>
75993
75994         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
75995         HTML structure.
75996
75997 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
75998
75999         * modules/openat (Depends-on): Add lchown.
76000
76001 2006-08-23  Bruno Haible  <bruno@clisp.org>
76002
76003         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
76004         of gl_LOCK_EARLY instead of gl_LOCK.
76005
76006 2006-08-23  Bruno Haible  <bruno@clisp.org>
76007
76008         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
76009         on OSF/1 to no.
76010         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
76011
76012 2006-08-23  Bruno Haible  <bruno@clisp.org>
76013
76014         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
76015         as unusable.
76016
76017         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
76018         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
76019         (gl_LOCK): New macro.
76020
76021 2006-08-22  Simon Josefsson  <jas@extundo.com>
76022
76023         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
76024         to md5 module.
76025
76026 2006-08-22  Simon Josefsson  <jas@extundo.com>
76027
76028         * MODULES.html.sh: Add "Support for maintaining and release
76029         projects".
76030
76031         * build-aux/gnupload: New file, from coreutils.
76032
76033 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
76034
76035         Avoid the need for AC_LIBSOURCES in m4 macros.
76036         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
76037         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
76038         * modules/check-version (EXTRA_DIST): Add check-version.h.
76039         * modules/crc (EXTRA_DIST): Add crc.h.
76040         * modules/des (EXTRA_DIST): Add des.h.
76041         * modules/gc (EXTRA_DIST): Add gc.h.
76042         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
76043         * modules/getline (EXTRA_DIST): Add getline.h.
76044         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
76045         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
76046         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
76047         * modules/md2 (EXTRA_DIST): Add md2.h.
76048         * modules/md4 (EXTRA_DIST): Add md4.h.
76049         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
76050         * modules/read-file (EXTRA_DIST): Add read-file.h.
76051         * modules/readline (EXTRA_DIST): Add readline.h.
76052         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
76053         rijndael-api-fst.h.
76054
76055 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
76056
76057         * m4/rijndael.m4 (gl_ARCFOUR):
76058         * m4/arctwo.m4 (gl_ARCTWO):
76059         * m4/check-version.m4 (gl_CHECK_VERSION):
76060         * m4/crc.m4 (gl_CRC):
76061         * m4/des.m4 (gl_DES):
76062         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
76063         * m4/gc.m4 (gl_GC):
76064         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
76065         * m4/getline.m4 (gl_FUNC_GETLINE):
76066         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
76067         * m4/hmac-md5.m4 (gl_HMAC_MD5):
76068         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
76069         * m4/md2.m4 (gl_MD2):
76070         * m4/md4.m4 (gl_MD4):
76071         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
76072         * m4/read-file.m4 (gl_FUNC_READ_FILE):
76073         * m4/readline.m4 (gl_FUNC_READLINE):
76074         * m4/rijndael.m4 (gl_RIJNDAEL):
76075         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
76076         to get the necessary .h files and whatnot.
76077
76078 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
76079
76080         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
76081         gnulib rather than the other way around.
76082         * config/srclistvars.sh (COREUTILS): Remove.
76083
76084 2006-08-22  Jim Meyering  <jim@meyering.net>
76085
76086         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
76087
76088         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
76089
76090 2006-08-22  Eric Blake  <ebb9@byu.net>
76091
76092         * modules/regexprops-generic: New file.
76093         * MODULES.html.sh (Support for building documentation): List it.
76094
76095 2006-08-22  Eric Blake  <ebb9@byu.net>
76096
76097         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
76098         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
76099         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
76100         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
76101
76102 2006-08-22  Bruno Haible  <bruno@clisp.org>
76103
76104         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
76105         and lib_LTLIBRARIES like the other lib_* variables.
76106
76107 2006-08-22  Bruno Haible  <bruno@clisp.org>
76108
76109         * build-aux/x-to-1.in: New file, from GNU gettext.
76110
76111 2006-08-22  Bruno Haible  <bruno@clisp.org>
76112
76113         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
76114         <utmpx.h> exists.
76115
76116 2006-08-22  Bruno Haible  <bruno@clisp.org>
76117
76118         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
76119         <utmpx.h> exists.
76120
76121 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
76122
76123         BeOS portability.
76124         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
76125         exist.
76126         Problem reported by Bruno Haible.
76127
76128 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
76129
76130         Avoid the need for AC_LIBSOURCES in m4 macros.
76131         * modules/acl (EXTRA_DIST): Add acl.h.
76132         * modules/argmatch (Files): Add m4/argmatch.m4.
76133         (configure.ac): Add gl_ARGMATCH.
76134         (EXTRA_DIST): Renamed from lib_SOURCES, for
76135         consistency with the other modules.  Remove argmatch.c.
76136         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
76137         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
76138         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
76139         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
76140         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
76141         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
76142         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
76143         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
76144         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
76145         * modules/closeout (EXTRA_DIST): Add closeout.h.
76146         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
76147         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
76148         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
76149         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
76150         dirname.h; remove basename.c and stripslash.c.
76151         * modules/exclude (EXTRA_DIST): Add exclude.h.
76152         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
76153         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
76154         * modules/file-type (EXTRA_DIST): Add file-type.h.
76155         * modules/filemode (EXTRA_DIST): Add filemode.h.
76156         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
76157         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
76158         * modules/fpending (EXTRA_DIST): Add __fpending.h.
76159         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
76160         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
76161         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
76162         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
76163         * modules/getdate (EXTRA_DIST): Add getdate.c.
76164         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
76165         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
76166         * modules/getpass (EXTRA_DIST): Add getpass.h.
76167         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
76168         * modules/group-member (EXTRA_DIST): Add group-member.h.
76169         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
76170         * modules/hash (EXTRA_DIST): Add hash.h.
76171         * modules/human (EXTRA_DIST): Add human.h.
76172         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
76173         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
76174         * modules/lchown (EXTRA_DIST): Add lchown.h.
76175         * modules/long-options (EXTRA_DIST): Add long-options.h.
76176         * modules/lstat (EXTRA_DIST): Add lstat.h.
76177         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
76178         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
76179         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
76180         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
76181         * modules/memxor (EXTRA_DIST): Add memxor.h.
76182         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
76183         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
76184         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
76185         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
76186         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
76187         * modules/physmem (EXTRA_DIST): Add physmem.h.
76188         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
76189         * modules/posixver (EXTRA_DIST): Add posixver.h.
76190         * modules/quote (EXTRA_DIST): Add quote.h.
76191         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
76192         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
76193         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
76194         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
76195         regex_internal.h regexec.c.
76196         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
76197         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
76198         * modules/same (EXTRA_DIST): Add same.h.
76199         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
76200         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
76201         * modules/savedir (EXTRA_DIST): Add savedir.h.
76202         * modules/sha1 (EXTRA_DIST): Add sha1.h.
76203         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
76204         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
76205         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
76206         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
76207         * modules/strdup (EXTRA_DIST): Add strdup.h.
76208         * modules/strftime (EXTRA_DIST): Add strftime.h.
76209         * modules/strndup (EXTRA_DIST): Add strndup.h.
76210         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
76211         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
76212         * modules/time_r (EXTRA_DIST): Add time_r.h.
76213         * modules/timespec (EXTRA_DIST): Add timespec.h.
76214         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
76215         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
76216         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
76217         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
76218         * modules/userspec (EXTRA_DIST): Add userspec.h.
76219         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
76220         * modules/utimens (EXTRA_DIST): Add utimens.h.
76221         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
76222         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
76223         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
76224         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
76225         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
76226         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
76227         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
76228         * modules/yesno (EXTRA_DIST): Add yesno.h.
76229
76230 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
76231
76232         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
76233
76234         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
76235         * m4/dev-ino.m4, same-inode.m4: Remove.
76236
76237         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
76238         * m4/acl.m4 (AC_FUNC_ACL):
76239         * m4/backupfile.m4 (gl_BACKUPFILE):
76240         * m4/c-strtod.m4 (gl_C99_STRTOLD):
76241         * m4/canon-host.m4 (gl_CANON_HOST):
76242         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
76243         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
76244         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
76245         * m4/cloexec.m4 (gl_CLOEXEC):
76246         * m4/close-stream.m4 (gl_CLOSE_STREAM):
76247         * m4/closeout.m4 (gl_CLOSEOUT):
76248         * m4/dirfd.m4 (gl_FUNC_DIRFD):
76249         * m4/dirname.m4 (gl_DIRNAME):
76250         * m4/exclude.m4 (gl_EXCLUDE):
76251         * m4/exitfail.m4 (gl_EXITFAIL):
76252         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
76253         * m4/file-type.m4 (gl_FILE_TYPE):
76254         * m4/filemode.m4 (gl_FILEMODE):
76255         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
76256         * m4/fpending.m4 (gl_FUNC_FPENDING):
76257         * m4/fprintftime.m4 (gl_FPRINTFTIME):
76258         * m4/fts.m4 (gl_FUNC_FTS):
76259         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
76260         * m4/getdate.m4 (gl_GETDATE):
76261         * m4/gethrxtime.m4 (gl_GETHRXTIME):
76262         * m4/getpagesize.m4 (gl_GETPAGESIZE):
76263         * m4/getpass.m4 (gl_FUNC_GETPASS):
76264         * m4/gettime.m4 (gl_GETTIME):
76265         * m4/getugroups.m4 (gl_GETUGROUPS):
76266         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
76267         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
76268         * m4/hard-locale.m4 (gl_HARD_LOCALE):
76269         * m4/hash.m4 (gl_HASH):
76270         * m4/idcache.m4 (gl_IDCACHE):
76271         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
76272         * m4/lchown.m4 (gl_FUNC_LCHOWN):
76273         * m4/long-options.m4 (gl_LONG_OPTIONS):
76274         * m4/lstat.m4 (gl_FUNC_LSTAT):
76275         * m4/md5.m4 (gl_MD5):
76276         * m4/memcasecmp.m4 (gl_MEMCASECMP):
76277         * m4/memcoll.m4 (gl_MEMCOLL):
76278         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
76279         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
76280         * m4/memxor.m4 (gl_MEMXOR):
76281         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
76282         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
76283         * m4/modechange.m4 (gl_MODECHANGE):
76284         * m4/mountlist.m4 (gl_MOUNTLIST):
76285         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
76286         * m4/openat.m4 (gl_FUNC_OPENAT):
76287         * m4/pathmax.m4 (gl_PATHMAX):
76288         * m4/physmem.m4 (gl_PHYSMEM):
76289         * m4/posixtm.m4 (gl_POSIXTM):
76290         * m4/posixver.m4 (gl_POSIXVER):
76291         * m4/quote.m4 (gl_QUOTE):
76292         * m4/quotearg.m4 (gl_QUOTEARG):
76293         * m4/readtokens.m4 (gl_READTOKENS):
76294         * m4/readutmp.m4 (gl_READUTMP):
76295         * m4/regex.m4 (gl_REGEX):
76296         * m4/safe-read.m4 (gl_SAFE_READ):
76297         * m4/safe-write.m4 (gl_SAFE_WRITE):
76298         * m4/same.m4 (gl_SAME):
76299         * m4/save-cwd.m4 (gl_SAVE_CWD):
76300         * m4/savedir.m4 (gl_SAVEDIR):
76301         * m4/settime.m4 (gl_SETTIME):
76302         * m4/sha1.m4 (gl_SHA1):
76303         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
76304         * m4/stat-macros.m4 (gl_STAT_MACROS):
76305         * m4/stat-time.m4 (gl_STAT_TIME):
76306         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
76307         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
76308         * m4/strdup.m4 (gl_FUNC_STRDUP):
76309         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
76310         * m4/strndup.m4 (gl_FUNC_STRNDUP):
76311         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
76312         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
76313         * m4/time_r.m4 (gl_TIME_R):
76314         * m4/timespec.m4 (gl_TIMESPEC):
76315         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
76316         * m4/unlinkdir.m4 (gl_UNLINKDIR):
76317         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
76318         * m4/userspec.m4 (gl_USERSPEC):
76319         * m4/utimecmp.m4 (gl_UTIMECMP):
76320         * m4/utimens.m4 (gl_UTIMENS):
76321         * m4/xalloc.m4 (gl_XALLOC):
76322         * m4/xgetcwd.m4 (gl_XGETCWD):
76323         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
76324         * m4/xreadlink.m4 (gl_XREADLINK):
76325         * m4/xstrtod.m4 (gl_XSTRTOD):
76326         * m4/yesno.m4 (gl_YESNO):
76327         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
76328         to get the necessary .h files and whatnot.
76329
76330 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
76331             Bruno Haible  <bruno@clisp.org>
76332
76333         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
76334         /bin/sh understanding of '!' conditional negation.
76335
76336 2006-08-21  Jim Meyering  <jim@meyering.net>
76337
76338         * modules/openat (Depends-on): Really alphabetize.
76339
76340         * modules/acl (Depends-on): Add error and quote.
76341
76342         * check-module (find_included_lib_files): Add at-func.c to the
76343         ok-to-include-more-than-once white list.
76344
76345         * modules/openat (Depends-on): Add lstat.  Alphabetize.
76346
76347 2006-08-21  Bruno Haible  <bruno@clisp.org>
76348
76349         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76350         Emit a pkgdata_DATA variable only if some snippets add contents to it.
76351         Reported by Martin Lambers <marlam@marlam.de>.
76352
76353 2006-08-21  Bruno Haible  <bruno@clisp.org>
76354
76355         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
76356         specify an installation location, don't emit a noinst_LIBRARIES or
76357         noinst_LTLIBRARIES assignment.
76358
76359 2006-08-21  Bruno Haible  <bruno@clisp.org>
76360
76361         BeOS portability.
76362         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
76363         BeOS has mbrtowc() but no <wctype.h>.
76364
76365 2006-08-21  Bruno Haible  <bruno@clisp.org>
76366
76367         BeOS portability.
76368         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
76369         exist.
76370
76371 2006-08-21  Bruno Haible  <bruno@clisp.org>
76372
76373         BeOS portability.
76374         * lib/mbchar.h: Include <wctype.h> only if it exists.
76375
76376 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76377
76378         Remove files that are no longer needed by their respective modules.
76379         * m4/obstack.m4: Remove.
76380         * m4/strerror_r.m4: Remove.
76381         * m4/uint32_t.m4: Remove.
76382         * m4/uintptr_t.m4: Remove.
76383         * m4/ullong_max.m4: Remove.
76384         * m4/xstrtoimax.m4: Remove.
76385         * m4/xstrtoumax.m4: Remove.
76386
76387         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
76388         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
76389         dependencies now capture this.
76390
76391         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
76392         Do not use AC_LIBSOURCES, since gnulib modules now do this.
76393         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
76394         * m4/human.m4 (gl_HUMAN): Likewise.
76395         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
76396         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
76397
76398         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
76399
76400         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
76401         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
76402         stdint.
76403         * m4/human.m4 (gl_HUMAN): Likewise.
76404         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
76405         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
76406         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
76407         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
76408         * m4/xstrtol (gl_XSTRTOL): Likewise.
76409
76410         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
76411         AC_TYPE_LONG_LONG_INT.
76412         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
76413         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
76414         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
76415         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
76416
76417         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
76418         on stdbool.
76419
76420         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
76421         (gl_PREREQ_XSTRTOUL): Remove.
76422
76423         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
76424
76425         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
76426         mode.
76427
76428 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76429
76430         Add and change modules to make it easier for coreutils to use
76431         gnulib-tool.
76432         * modules/backupfile (Files): Remove m4/d-ino.m4.
76433         (Depends-on): Add d-ino.
76434         * modules/cycle-check (Depends-on): Add stdint.
76435         (lib_SOURCES): Add cycle-check.h.
76436         * modules/d-ino: New module.
76437         * modules/d-type: New module.
76438         * modules/error (Files): Remove m4/strerror_r.m4.
76439         * modules/filemode (Files): Add m4/st_dm_mode.m4.
76440         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
76441         m4/inttypes_h.m4, m4/uintmax_t.m4.
76442         (Depends-on): Add stdint.
76443         (lib_SOURCES): Add fsusage.h.
76444         * modules/getcwd (Files): Remove d-ino.m4.
76445         (Depends-on): Add d-ino.
76446         * modules/getndelim2 (Depends-on): Add stdint.
76447         * modules/glob (Files): Remove m4/d-type.m4.
76448         (Depends-on): Add d-type.
76449         * modules/host-os: New module.
76450         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
76451         m4/inttypes_h.m4, m4/uintmax_t.m4.
76452         * Depends-on: Add stdint.
76453         (lib_SOURCES): Add human.h.
76454         * modules/inttostr (Files): Remove m4/intmax_t.m4,
76455         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
76456         m4/uintmax_t.m4, m4/ulonglong.m4.
76457         (Depends-on): Add stdint.
76458         (EXTRA_DIST): Add inttostr.h.
76459         * modules/lchmod: New module.
76460         * modules/link-follow: New module.
76461         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
76462         (Depends-on): Add lchmod.
76463         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
76464         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
76465         (Depends-on): Add stdint.
76466         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
76467         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
76468         (Depends-on): Add stdint.
76469         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
76470         * modules/perl: New module.
76471         * modules/regex (Depends-on): Add stdint.
76472         * modules/rmdir-errno: New module.
76473         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
76474         m4/intmax_t.m4.
76475         (Depends-on): Add stdint.
76476         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
76477         m4/uintmax_t.m4.
76478         (Depends-on): Add stdint.
76479         * modules/unlink-busy: New module.
76480         * modules/utimecmp (Depends-on): Add stdint.
76481         * modules/uptime: New module.
76482         * modules/winsz-ioctl: New module.
76483         * modules/winsz-termios: New module.
76484         * modules/xnanosleep (Depends-on): Add nanosleep.
76485         * modules/ullong_max: Remove.
76486         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
76487         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
76488         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
76489         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
76490         (Depends-on): Add inttypes.
76491         (lib_SOURCES): Add xstrtol.h.
76492         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
76493         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
76494         * MODULES.html.sh: Move 'assert' into the assert section.
76495         Move 'dummy' into the linking section.
76496         Remove ullong_max.
76497         Add section for compatibility checks for POSIX:2001 functions,
76498         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
76499         winsz-ioctl, and winsz-termios into it.
76500         Add lchmod.
76501         Add top-level Misc section and put host-os, perl, and uptime
76502         into it.
76503
76504 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76505
76506         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
76507         now assume the stdint module.  Do not include inttypes.h.
76508         * lib/fsusage.h: Likewise.
76509         * lib/getndelim2.c: Likewise.
76510         * lib/human.h: Likewise.
76511         * lib/inttostr.h: Likewise.
76512         * lib/obstack.c: Likewise.
76513         * lib/regex_internal.h: Likewise.
76514         * lib/tempname.c: Likewise.
76515         * lib/utimecmp.c: Likewise.
76516         * lib/xstrtol.h: Likewise.
76517
76518         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
76519
76520         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
76521         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
76522         * lib/xtime.h: Likewise.
76523
76524 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76525
76526         * modules/openat (Files): Add lib/fchmodat.c.
76527         Fixes problem reported by Jay Youngman.
76528
76529 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76530
76531         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
76532         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
76533
76534 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
76535             Bruno Haible  <bruno@clisp.org>
76536
76537         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
76538         and is a script that invokes bison. Tighten the code. Add comments.
76539
76540 2006-08-18  Jim Meyering  <jim@meyering.net>
76541
76542         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
76543         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
76544         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
76545         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
76546
76547 2006-08-18  Bruno Haible  <bruno@clisp.org>
76548
76549         * modules/bison-i18n: New file.
76550         * MODULES.html.sh (Internationalization functions): Add it.
76551
76552 2006-08-18  Bruno Haible  <bruno@clisp.org>
76553
76554         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
76555         sys/statvfs.h. When getmntinfo was found, check its declaration and
76556         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
76557
76558 2006-08-18  Bruno Haible  <bruno@clisp.org>
76559
76560         * m4/bison-i18n.m4: New file, from bison.
76561
76562 2006-08-18  Bruno Haible  <bruno@clisp.org>
76563
76564         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
76565         (ME_DUMMY): Treat "kernfs" as a dummy.
76566         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
76567
76568 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
76569
76570         Update from coreutils.
76571
76572         2006-08-15  Jim Meyering  <jim@meyering.net>
76573
76574         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
76575
76576         2006-01-17  Jim Meyering  <jim@meyering.net>
76577
76578         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
76579
76580         2006-01-11  Jim Meyering  <jim@meyering.net>
76581
76582         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
76583         Check for the lchmod function.
76584
76585 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
76586
76587         Update from coreutils.
76588
76589         * lib/__fpending.h: Add copyright notice.
76590         * lib/fprintftime.h: Likewise.
76591         * lib/savedir.c: Use (C) in copyright notice.
76592         * lib/savedir.h: Likewise.
76593
76594         2006-08-15  Jim Meyering  <jim@meyering.net>
76595
76596         * lib/at-func.c: New file, with the logic of all emulated at-functions.
76597         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
76598         in support of the EXPECTED_ERRNO macro.
76599         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
76600         definitions.  Instead, define the appropriate symbols and include
76601         "at-func.c".
76602         * lib/mkdirat.c (mkdirat): Likewise.
76603         * lib/fchmodat.c (fchmodat): Likewise.
76604         (ENOSYS): Remove definition.
76605         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
76606         it.  Don't include "unistd--.h" -- it wasn't ever used.
76607
76608         2006-01-17  Jim Meyering  <jim@meyering.net>
76609
76610         Rewrite fts.c not to change the current working directory,
76611         by using openat, fstatat, fdopendir, etc..
76612
76613         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
76614         (HAVE_OPENAT_SUPPORT): Define.
76615         [_LIBC] (fchdir): Don't undef or define; no longer used.
76616         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
76617         Now, this `function' always succeeds, and consumes its file descriptor
76618         parameter -- so callers must not close such FDs.  Update callers.
76619         (diropen_fd, opendirat, cwd_advance_fd): New functions.
76620         (diropen): Add parameter, SP.  Adjust all callers.
76621         Implement using diropen_fd, rather than open.
76622         (fts_open): Initialize new member, fts_cwd_fd.
76623         Remove fts_rft-setting code.
76624         (fts_close): Close fts_cwd_fd, if necessary.
76625         (__opendir2): Define in terms of opendir or opendirat,
76626         depending on whether the FST_NOCHDIR flag is set.
76627         (fts_build): Since fts_safe_changedir consumes its FD, and since
76628         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
76629         and close the dup'd file descriptor upon failure.
76630         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
76631         (fts_safe_changedir): Tweak semantics to reflect that this function
76632         now calls cwd_advance_fd and hence consumes its FD argument.
76633         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
76634         [struct FTS] (fts_rft): Remove now-unused member.
76635         [struct FTS] (fts_cycle.state): Improve comment.
76636
76637         * lib/openat.c (openat_needs_fchdir): New function.
76638         * lib/openat.h (openat_needs_fchdir): Declare it.
76639
76640 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
76641
76642         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
76643         Problem and fix reported by Pádraig Brady in
76644         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
76645
76646 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
76647
76648         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
76649
76650 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
76651
76652         * lib/memcoll.c (memcoll): Optimize for the common case where the
76653         arguments are bytewise equal.
76654
76655 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
76656
76657         * doc/regexprops-generic.texi: Add a copyright notice.
76658
76659 2006-08-15  Bruno Haible  <bruno@clisp.org>
76660
76661         * modules/tmpdir (License): Change to LGPL.
76662
76663 2006-08-15  Bruno Haible  <bruno@clisp.org>
76664
76665         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
76666         module.
76667
76668 2006-08-14  Simon Josefsson  <jas@extundo.com>
76669
76670         * config/srclist.txt: Add gnupload.
76671
76672 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
76673
76674         Change copyright notice from LGPL 2 to GPL 2, since that's the
76675         standard form used in the gnulib repository.
76676         * tests/test-lock.c: Likewise.
76677         * tests/test-stdint.c: Likewise.
76678         * tests/test-tls.c: Likewise.
76679
76680         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
76681         prelude-manager.  User shorter URLs for GNU projects, without '?'.
76682         Add copyright notice.
76683
76684         * check-module: Add copyright notice.  Output a copyright
76685         notice if "--version" is specified.
76686         * modules/COPYING: New file.
76687         * tests/test-getaddrinfo.c: Add copyright notice.
76688         * tests/test-verify.c: Likewise.
76689
76690 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
76691
76692         Change copyright notice from LGPL 2 to GPL 2, since that's the
76693         standard form used in the gnulib repository.
76694         * lib/lock.c: LGPL -> GPL.
76695         * lib/lock.h: Likewise.
76696         * lib/strnlen1.c: Likewise.
76697         * lib/strnlen1.h: Likewise.
76698         * lib/tls.c: Likewise.
76699         * lib/tls.h: Likewise.
76700         * lib/tmpdir.c: Likewise.
76701
76702         * lib/TODO: Remove; this belongs only in coreutils.
76703
76704 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
76705
76706         Add copyright notices to long-enough files that lack them, since
76707         otherwise the files aren't clearly free.  Use the same notice that
76708         getdate.texi already uses.
76709         * doc/alloca-opt.texi: Add copyright notice.
76710         * doc/alloca.texi: Likewise.
76711         * doc/ctime.texi: Likewise.
76712         * doc/functions.texi: Likewise.
76713         * doc/gcd.texi: Likewise.
76714         * doc/gnulib-tool.texi: Likewise.
76715         * doc/inet_ntoa.texi: Likewise.
76716         * doc/visibility.texi: Likewise.
76717
76718         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
76719         * doc/quote.texi: Add copyright notice.
76720
76721         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
76722         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
76723         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
76724         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
76725         is now obsolete, and give a pointer to the Sun list.
76726         Add copyright notice.
76727
76728 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
76729
76730         * config/srclistvars.sh: Add copyright notice.
76731
76732 2006-08-14  Eric Blake  <ebb9@byu.net>
76733
76734         Import the following change from libc:
76735
76736         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
76737
76738         Upstream bug 2997.
76739         * lib/misc/error.c: Add space between program name and message if file
76740         name is missing.
76741
76742 2006-08-12  Karl Berry  <karl@gnu.org>
76743
76744         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
76745         remove, these originate in gnulib now.
76746
76747 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76748
76749         * doc/Makefile (standards.info standards.html standards.dvi):
76750         Also depend on make-stds.texi.
76751
76752 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
76753
76754         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
76755         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
76756
76757         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
76758         in wchar_t.  Problem reported by Eric Blake.
76759
76760         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
76761         LEN is smaller than SIZE.  Suggested by Bruno Haible.
76762         Also, help the compiler to keep LEN in a register.
76763
76764 2006-08-11  Eric Blake  <ebb9@byu.net>
76765
76766         * users.txt: Sort.  Add tar.
76767
76768 2006-08-11  Bruno Haible  <bruno@clisp.org>
76769
76770         * users.txt: New file.
76771
76772 2006-08-11  Bruno Haible  <bruno@clisp.org>
76773
76774         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
76775         before <wchar.h>. Needed for OSF/1 and BSD/OS.
76776
76777 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
76778
76779         * modules/snprintf (Depends-on): Remove minmax.
76780         (Maintainer): Add self and Bruno.
76781
76782 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
76783
76784         * lib/.cppi-disable: Add snprintf.h, socket_.h.
76785         * lib/snprintf.c: Include <errno.h> and <limits.h>.
76786         (EOVERFLOW): Define if the system does not.
76787         Do not include "minmax.h"; it wasn't used.
76788         (snprintf): Don't assume size_t promotes to an unsigned type.
76789         Fix bug when generated string was too long for the buffer: the
76790         buffer's contents are supposed to be the initial prefix of the
76791         output.  Don't assume vasnprintf returns EOVERFLOW if the size
76792         exceeds INT_MAX; do the check ourselves.
76793
76794         Import the following changes from libc:
76795
76796         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
76797
76798         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
76799         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
76800         set wc to the byte which couldn't be converted.
76801         (re_string_reconstruct): Don't clear valid_raw_len before calling
76802         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
76803         tip_context using re_string_context_at.
76804
76805         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
76806
76807         * lib/posix/regex.h: g++ still cannot handled [restrict].
76808
76809         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
76810
76811         * lib/posix/regex.h: Remove special handling for VMS.
76812
76813 2006-08-10  Jim Meyering  <jim@meyering.net>
76814
76815         * modules/same-inode: New module.
76816         * modules/dev-ino: New module.
76817         * modules/cycle-check: Depend on these modules, rather than simply
76818         including their .h files.
76819         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
76820         required via m4/cycle-check.m4.
76821         * modules/same: Depend on new same-inode module, rather than
76822         including same-inode.h.
76823         * modules/chdir-safer: New file.
76824
76825         * modules/chown (Depends-on): Add stat-macros.
76826
76827 2006-08-10  Jim Meyering  <jim@meyering.net>
76828
76829         * m4/cycle-check.m4: New file.
76830         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
76831         * m4/dev-ino.m4, m4/same-inode.m4: New files.
76832
76833 2006-08-10  Eric Blake  <ebb9@byu.net>
76834
76835         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
76836         in from original proposal.
76837
76838 2006-08-10  Eric Blake  <ebb9@byu.net>
76839         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
76840
76841         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
76842         namespace.
76843
76844 2006-08-10  Bruno Haible  <bruno@clisp.org>
76845
76846         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
76847         as well.
76848
76849 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
76850
76851         Sync from coreutils.
76852
76853         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
76854
76855         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
76856         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
76857
76858 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
76859
76860         * modules/restrict: Remove; no longer needed now that we assume
76861         Autoconf 2.59 or later.
76862         * MODULES.html.sh: Remove 'restrict'.
76863         * modules/argp (Depends-on): Remove 'restrict'.
76864         * modules/base64 (Depends-on): Likewise.
76865         * modules/gc (Depends-on): Likewise.
76866         * modules/getaddrinfo (Depends-on): Likewise.
76867         * modules/glob (Depends-on): Likewise.
76868         * modules/inet_ntop (Depends-on): Likewise.
76869         * modules/inet_pton (Depends-on): Likewise.
76870         * modules/memxor (Depends-on): Likewise.
76871         * modules/regex (Depends-on): Likewise.
76872         * modules/strtok_r (Depends-on): Likewise.
76873         * modules/time_r (Depends-on): Likewise.
76874
76875 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
76876
76877         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
76878         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
76879         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
76880         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
76881         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
76882         * m4/memxor.m4 (gl_MEMXOR): Likewise.
76883         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
76884         gl_C_RESTRICT replaced by AC_C_RESTRICT.
76885
76886         Merge from coreutils.
76887         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
76888         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
76889         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
76890         * m4/time_r.m4 (gl_TIME_R): Likewise.
76891
76892 2006-08-09  Karl Berry  <karl@gnu.org>
76893
76894         * config/srclist.txt: no more gettext-tools, per Bruno.
76895
76896 2006-08-08  Eric Blake  <ebb9@byu.net>
76897
76898         * modules/verror: New module.
76899         * MODULES.html.sh: Document it.
76900
76901 2006-08-08  Eric Blake  <ebb9@byu.net>
76902
76903         * lib/verror.h, lib/verror.c: New files.
76904
76905 2006-08-08  Eric Blake  <ebb9@byu.net>
76906
76907         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
76908         verror_at_line output complies with GNU Coding Standards even when
76909         file is NULL.
76910
76911 2006-08-07  Bruno Haible  <bruno@clisp.org>
76912
76913         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
76914         versions of AIX.
76915         Reported by Ralf Wildenhues.
76916
76917 2006-08-07  Bruno Haible  <bruno@clisp.org>
76918
76919         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
76920         in an AC_DEFUN. Needed so that the autoconf snippets can use
76921         AC_REQUIRE.
76922
76923 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76924
76925         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76926         Initialize pkgdata_DATA.
76927         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
76928         overriding it.
76929
76930 2006-08-06  Eric Blake  <ebb9@byu.net>
76931
76932         * lib/error.h: Fold in some upstream changes from glibc.
76933         * lib/error.c: Likewise.
76934
76935 2006-08-04  Bruno Haible  <bruno@clisp.org>
76936
76937         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76938         Make the mostlyclean-local rule depend on mostlyclean-generic.
76939         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
76940
76941 2006-07-31  Bruno Haible  <bruno@clisp.org>
76942
76943         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
76944         <stdlib.h>, <string.h>.
76945
76946 2006-07-30  Bruno Haible  <bruno@clisp.org>
76947
76948         * modules/readlink (License): Change to LGPL.
76949
76950 2006-07-30  Bruno Haible  <bruno@clisp.org>
76951
76952         * modules/javaversion (Makefile.am): Distribute javaversion.java and
76953         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
76954         set PKGDATADIR to point to it.
76955
76956 2006-07-30  Bruno Haible  <bruno@clisp.org>
76957
76958         * modules/csharpexec (configure.ac): Comment out macro invocation.
76959         * modules/javaexec (configure.ac): Likewise.
76960         * modules/javacomp-script (configure.ac): Likewise.
76961
76962         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
76963
76964 2006-07-30  Bruno Haible  <bruno@clisp.org>
76965
76966         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
76967         linked-list.
76968
76969 2006-07-30  Bruno Haible  <bruno@clisp.org>
76970
76971         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
76972
76973 2006-07-30  Bruno Haible  <bruno@clisp.org>
76974
76975         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76976         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
76977         get removed.
76978
76979 2006-07-29  Bruno Haible  <bruno@clisp.org>
76980
76981         Make it possible for gnulib-tool to work with locally modified or
76982         augmented gnulib repositories.
76983         * gnulib-tool (func_usage): Document --local-dir option.
76984         (local_gnulib_dir): New variable.
76985         Handle --local-dir option.
76986         (func_lookup_file): New function.
76987         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
76988         (func_get_description, func_get_filelist, func_get_description,
76989         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
76990         func_get_automake_snippet, func_get_include_directive,
76991         func_get_license, func_get_maintainer): Use func_lookup_file.
76992         (func_import, func_create_testdir): Use func_lookup_file.
76993
76994 2006-07-29  Bruno Haible  <bruno@clisp.org>
76995
76996         * modules/setenv (Depends-on): Add unistd.
76997
76998 2006-07-29  Bruno Haible  <bruno@clisp.org>
76999
77000         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
77001
77002 2006-07-29  Bruno Haible  <bruno@clisp.org>
77003
77004         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
77005
77006 2006-07-29  Bruno Haible  <bruno@clisp.org>
77007
77008         * gnulib-tool (import, update): If there is no Makefile.am, look at
77009         aclocal.m4, instead of bailing out.
77010
77011 2006-07-29  Bruno Haible  <bruno@clisp.org>
77012
77013         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
77014         Categorize the options by when they are useful.
77015
77016 2006-07-29  Bruno Haible  <bruno@clisp.org>
77017
77018         * gnulib-tool (func_usage): Document option --no-libtool.
77019         Handle option --no-libtool.
77020         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
77021         for changed semantics of $libtool variable.
77022         (func_import): Likewise. If libtool is not used, show this through
77023         an option --no-libtool.
77024         (func_create_testdir): Update.
77025
77026 2006-07-29  Bruno Haible  <bruno@clisp.org>
77027
77028         * gnulib-tool (func_import): Extend error message about missing
77029         --doc-base.
77030
77031 2006-07-29  Bruno Haible  <bruno@clisp.org>
77032
77033         * gnulib-tool (func_import): Don't create the $docbase directory if
77034         there is no file to store there.
77035
77036 2006-07-29  Bruno Haible  <bruno@clisp.org>
77037
77038         * gnulib-tool (autoconf_minversion): If a --dir option is given and
77039         relevant, look for configure.ac there, not in the current directory.
77040         Also use a simple search for AC_PREREQ, not "autoconf --trace".
77041
77042 2006-07-29  Bruno Haible  <bruno@clisp.org>
77043
77044         * gnulib-tool (SORT): New variable.
77045         (func_usage): Undocument --assume-autoconf option.
77046         Remove --assume-autoconf option handling.
77047         (autoconf_minversion): Determine from the contents of configure.ac.
77048         (func_import): Remove autoconf_minversion handling.
77049         Suggested by Eric Blake.
77050
77051 2006-07-29  Bruno Haible  <bruno@clisp.org>
77052
77053         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
77054
77055 2006-07-29  Bruno Haible  <bruno@clisp.org>
77056
77057         * config/srclist.txt (*setenv.[ch]): Remove rules.
77058
77059 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77060
77061         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
77062
77063 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77064
77065         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
77066         arpa/inet.h.
77067
77068 2006-07-28  Simon Josefsson  <jas@extundo.com>
77069
77070         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
77071         * modules/inet_pton (Depends-on): Likewise.
77072
77073 2006-07-28  Simon Josefsson  <jas@extundo.com>
77074
77075         * m4/netinet_in_h.m4: New file.
77076
77077 2006-07-28  Simon Josefsson  <jas@extundo.com>
77078
77079         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
77080         #include's.
77081
77082 2006-07-28  Simon Josefsson  <jas@extundo.com>
77083
77084         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
77085         #include's.
77086
77087 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
77088
77089         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
77090         setgid on directories only if they set these bits.
77091         * lib/modechange.h: Remove obsolete comment about masks.
77092
77093 2006-07-28  Eric Blake  <ebb9@byu.net>
77094
77095         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
77096         macro expansion.
77097
77098 2006-07-28  Bruno Haible  <bruno@clisp.org>
77099
77100         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
77101
77102 2006-07-28  Bruno Haible  <bruno@clisp.org>
77103
77104         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
77105
77106 2006-07-28  Bruno Haible  <bruno@clisp.org>
77107
77108         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
77109         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
77110         Define fallbacks.
77111         Avoids link error on FreeBSD 4.x.
77112         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
77113
77114         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
77115         encoding.
77116         * lib/mbswidth.c (iswcntrl): Likewise.
77117
77118 2006-07-27  Bruno Haible  <bruno@clisp.org>
77119
77120         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
77121         test.
77122
77123 2006-07-27  Bruno Haible  <bruno@clisp.org>
77124
77125         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
77126         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
77127         defined.
77128
77129 2006-07-26  Eric Blake  <ebb9@byu.net>
77130
77131         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
77132
77133 2006-07-26  Eric Blake  <ebb9@byu.net>
77134
77135         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
77136         like mingw that lack mkstemp.
77137         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
77138         avoid compilation warning on mingw.
77139
77140 2006-07-26  Bruno Haible  <bruno@clisp.org>
77141
77142         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
77143         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
77144         INT_FAST*_MIN, INTPTR_MIN.
77145
77146 2006-07-25  Bruno Haible  <bruno@clisp.org>
77147
77148         * modules/version-etc (Depends-on): Add stdarg.
77149
77150 2006-07-25  Bruno Haible  <bruno@clisp.org>
77151
77152         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
77153         complex commands.
77154
77155 2006-07-25  Bruno Haible  <bruno@clisp.org>
77156
77157         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
77158         defined in <stdarg.h> or config.h.
77159
77160 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
77161
77162         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
77163         (gl_STDIO_SAFER): Remove.
77164
77165 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
77166
77167         * MODULES.html.sh (File stream based Input/Output):
77168         Add fopen-safer, tmpfile-safer; remove stdio-safer.
77169         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
77170         * modules/fopen-safer, modules/tmpfile-safer: New files.
77171         * modules/stdio-safer: Remove.
77172
77173 2006-07-24  Bruno Haible  <bruno@clisp.org>
77174
77175         * modules/tmpdir: New file.
77176         * MODULES.html.sh (File system functions): Add it.
77177
77178 2006-07-24  Bruno Haible  <bruno@clisp.org>
77179
77180         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
77181         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
77182
77183 2006-07-24  Bruno Haible  <bruno@clisp.org>
77184
77185         * modules/clean-temp: New file.
77186
77187 2006-07-24  Bruno Haible  <bruno@clisp.org>
77188
77189         * m4/tmpdir.m4: New file, from GNU gettext.
77190
77191 2006-07-24  Bruno Haible  <bruno@clisp.org>
77192
77193         * lib/tmpdir.h: New file, from GNU gettext.
77194         * lib/tmpdir.c: New file, from GNU gettext.
77195
77196 2006-07-24  Bruno Haible  <bruno@clisp.org>
77197
77198         * lib/clean-temp.h: New file, from GNU gettext.
77199         * lib/clean-temp.c: New file, from GNU gettext.
77200
77201 2006-07-23  Eric Blake  <ebb9@byu.net>
77202
77203         * modules/stdio-safer (Files): Add tmpfile-safer.c.
77204         (Depends-on): Add binary-io.
77205
77206 2006-07-23  Eric Blake  <ebb9@byu.net>
77207
77208         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
77209
77210 2006-07-23  Eric Blake  <ebb9@byu.net>
77211
77212         * lib/tmpfile-safer.c: New file.
77213         * lib/stdio-safer.h (fopen_safer): Add prototype.
77214         * lib/stdio--.h (tmpfile): Make safer.
77215
77216 2006-07-23  Bruno Haible  <bruno@clisp.org>
77217
77218         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
77219         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
77220         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
77221         gl_linked_remove_at): Use it.
77222
77223 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77224         and Simon Josefsson <jas@extundo.com>
77225
77226         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
77227
77228         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
77229
77230 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
77231
77232         * modules/close-stream: New file.
77233         * modules/closeout (Description): Make it clear that it exits
77234         with a diagnostic on error.
77235         (Depends-on): Add close-stream.  Remove fpending, stdbool.
77236         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
77237
77238 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
77239
77240         * m4/close-stream.m4: New file.
77241
77242 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
77243
77244         * lib/close-stream.c, lib/close-stream.h: New files.
77245
77246 2006-07-22  Bruno Haible  <bruno@clisp.org>
77247
77248         Merge from GNU gettext 0.15.
77249
77250         2006-05-01  Bruno Haible  <bruno@clisp.org>
77251
77252                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
77253
77254         2006-07-22  Bruno Haible  <bruno@clisp.org>
77255
77256                 * modules/javaversion: New file.
77257                 * MODULES.html.sh (Java): Add javaversion.
77258
77259         2006-03-12  Bruno Haible  <bruno@clisp.org>
77260
77261                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
77262
77263         2005-12-04  Bruno Haible  <bruno@clisp.org>
77264
77265                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
77266                 (untested).
77267
77268         2006-06-21  Bruno Haible  <bruno@clisp.org>
77269
77270                 Avoid warnings from recent versions of mcs.
77271                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
77272                 -o, -L, -r any more. Use options documented since mcs-1.0
77273                 instead. Similarly for -g.
77274
77275         2005-12-04  Bruno Haible  <bruno@clisp.org>
77276
77277                 * build-aux/csharpcomp.sh.in: Suffix for resources is
77278                 .resources, not .resource.
77279
77280         2005-07-09  Bruno Haible  <bruno@clisp.org>
77281
77282                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
77283                 add a .dll suffix.
77284                 Reported by Mark Junker <mjscod@gmx.de>.
77285
77286         2006-07-22  Bruno Haible  <bruno@clisp.org>
77287
77288                 * modules/gettext: Upgrade to gettext-0.15.
77289                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
77290                 m4/visibility.m4.
77291                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
77292
77293 2006-07-22  Bruno Haible  <bruno@clisp.org>
77294
77295         Merge from GNU gettext 0.15.
77296
77297         2006-03-25  Bruno Haible  <bruno@clisp.org>
77298
77299                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
77300
77301         2006-07-21  Bruno Haible  <bruno@clisp.org>
77302
77303                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
77304                 "1.1".
77305
77306         2006-05-09  Bruno Haible  <bruno@clisp.org>
77307
77308                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
77309                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
77310                 for the conftestver execution.
77311
77312         2006-05-01  Bruno Haible  <bruno@clisp.org>
77313
77314                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
77315                 optional target-version argument. Verify that the compiler
77316                 groks source of the specified source-version, or add -source
77317                 option as necessary. Verify that the compiler produces
77318                 bytecode in the specified target-version, or add -target and
77319                 -source options as necessary. Make the result of the test
77320                 available as variable CONF_JAVAC. Also log error output in
77321                 config.log.
77322
77323         2006-03-11  Bruno Haible  <bruno@clisp.org>
77324
77325                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
77326
77327         2006-05-09  Bruno Haible  <bruno@clisp.org>
77328
77329                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
77330                 CLASSPATH_SEPARATOR to a semicolon.
77331
77332         2006-03-12  Bruno Haible  <bruno@clisp.org>
77333
77334                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
77335                 available as variable CONF_JAVA, for subsequent autoconf
77336                 tests. Also log error output in config.log.
77337
77338         2006-07-19  Bruno Haible  <bruno@clisp.org>
77339
77340                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
77341                 that getline works on glibc2 systems. Needed to avoid trouble
77342                 in relocatable.c.
77343                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
77344
77345         2005-12-04  Bruno Haible  <bruno@clisp.org>
77346
77347                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
77348                 launcher (untested).
77349
77350         2005-12-04  Bruno Haible  <bruno@clisp.org>
77351
77352                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
77353
77354         2006-07-22  Bruno Haible  <bruno@clisp.org>
77355
77356                 * gettext.m4: Update from GNU gettext-0.15.
77357                 * nls.m4: Likewise.
77358                 * po.m4: Likewise.
77359                 * inttypes-pri.m4: Likewise.
77360                 * inttypes-h.m4: Renamed from inttypes.m4.
77361                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
77362
77363 2006-07-22  Bruno Haible  <bruno@clisp.org>
77364
77365         Merge from GNU gettext 0.15.
77366
77367         2005-07-05  Bruno Haible  <bruno@clisp.org>
77368
77369                 * printf-args.c (printf_fetchargs): Work around broken
77370                 definition of wint_t on mingw.
77371
77372         2005-02-12  Bruno Haible  <bruno@clisp.org>
77373
77374                 * xallocsa.h: Add extern "C" for C++.
77375
77376         2006-05-17  Bruno Haible  <bruno@clisp.org>
77377
77378                 Cygwin portability.
77379                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
77380
77381         2006-04-30  Bruno Haible  <bruno@clisp.org>
77382
77383                 * progreloc.c: Include <mach-o/dyld.h> if available.
77384                 (find_executable): Use _NSGetExecutablePath when possible.
77385
77386         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
77387
77388                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
77389                 function.
77390
77391         2005-12-29  Bruno Haible  <bruno@clisp.org>
77392
77393                 * progreloc.c (set_program_name_and_installdir): Fix
77394                 compilation error.
77395
77396         2005-12-04  Bruno Haible  <bruno@clisp.org>
77397
77398                 Cygwin portability.
77399                 * progreloc.c: Include <windows.h> also on Cygwin.
77400                 (find_executable): Add support for Cygwin.
77401                 (set_program_name_and_installdir): Handle also platforms with
77402                 nonempty EXEEXT.
77403
77404         2006-07-11  Bruno Haible  <bruno@clisp.org>
77405
77406                 * javacomp.c: Fix a comment.
77407                 Reported by Jim Meyering.
77408
77409         2006-04-30  Bruno Haible  <bruno@clisp.org>
77410
77411                 * javacomp.h (compile_java_class): Add source_version,
77412                 target_version arguments.
77413                 * javacomp.c: Rewritten to choose only a compiler that
77414                 respects the specified source_version and target_version.
77415
77416         2006-06-27  Bruno Haible  <bruno@clisp.org>
77417
77418                 Assume correct S_ISDIR macro.
77419                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
77420
77421         2006-07-22  Bruno Haible  <bruno@clisp.org>
77422
77423                 * javaversion.h: New file, from GNU gettext.
77424                 * javaversion.c: New file, from GNU gettext.
77425                 * javaversion.java: New file, from GNU gettext.
77426                 * javaversion.class: New file, from GNU gettext.
77427
77428         2006-05-17  Bruno Haible  <bruno@clisp.org>
77429
77430                 Cygwin portability.
77431                 * javaexec.c (execute_java_class): Test for jview program
77432                 also on Cygwin.
77433
77434         2006-04-09  Bruno Haible  <bruno@clisp.org>
77435
77436                 * fatal-signal.c: Don't include string.h.
77437                 (at_fatal_signal): Use a copying loop instead of memcpy.
77438
77439         2005-12-04  Bruno Haible  <bruno@clisp.org>
77440
77441                 * csharpexec.c: Add support for 'clix' launcher (untested).
77442                 (execute_csharp_using_sscli): New function.
77443                 (execute_csharp_program): Call it.
77444
77445         2006-06-21  Bruno Haible  <bruno@clisp.org>
77446
77447                 Avoid warnings from recent versions of mcs.
77448                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
77449                 -o, -L, -r any more. Use options documented since mcs-1.0
77450                 instead. Similarly for -g.
77451
77452         2005-07-09  Bruno Haible  <bruno@clisp.org>
77453
77454                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
77455                 add a .dll suffix.
77456                 Reported by Mark Junker <mjscod@gmx.de>.
77457
77458         2006-06-17  Bruno Haible  <bruno@clisp.org>
77459
77460                 * config.charset: Update for NetBSD 3.0.
77461
77462         2006-05-17  Bruno Haible  <bruno@clisp.org>
77463
77464                 Cygwin portability.
77465                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
77466
77467         2006-05-16  Bruno Haible  <bruno@clisp.org>
77468
77469                 * localcharset.c [CYGWIN]: Include <windows.h>.
77470                 (get_charset_aliases): For Cygwin, return the same CPxxx
77471                 aliases list as under WIN32.
77472                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
77473                 the environment variables. Fall back to GetACP().
77474
77475         2006-04-05  Bruno Haible  <bruno@clisp.org>
77476
77477                 * config.charset: Update Juan Manuel Guerrero's address.
77478
77479         2005-02-12  Bruno Haible  <bruno@clisp.org>
77480
77481                 * allocsa.h: Add extern "C" for C++.
77482
77483         2005-02-10  Bruno Haible  <bruno@clisp.org>
77484
77485                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
77486                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
77487
77488         2006-07-22  Bruno Haible  <bruno@clisp.org>
77489
77490                 * gettext.h: Update to GNU gettext-0.15.
77491
77492 2006-07-22  Bruno Haible  <bruno@clisp.org>
77493
77494         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
77495         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
77496         lib-prefix.m4, longdouble.m4, ssize_t.m4.
77497
77498 2006-07-21  Eric Blake  <ebb9@byu.net>
77499
77500         * modules/stdlib-safer: New file.
77501         * MODULES.html.sh (File stream based Input/Output): Add
77502         stdlib-safer.
77503
77504 2006-07-21  Eric Blake  <ebb9@byu.net>
77505
77506         * lib/stdlib-safer.h: New file from coreutils, required by
77507         stdlib--.h.
77508
77509 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
77510
77511         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
77512
77513 2006-07-20  Bruno Haible  <bruno@clisp.org>
77514
77515         * gnulib-tool: Recognize new option --assume-autoconf.
77516         (autoconf_minversion): New variable.
77517         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
77518
77519 2006-07-20  Bruno Haible  <bruno@clisp.org>
77520
77521         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
77522
77523 2006-07-19  Derek R. Price  <derek@ximbiot.com>
77524
77525         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
77526         Reindent and repaginate.
77527
77528 2006-07-19  Derek Price  <derek@ximbiot.com>
77529
77530         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
77531         Correct grammar.
77532
77533 2006-07-17  Bruno Haible  <bruno@clisp.org>
77534
77535         * modules/list: New file.
77536         * modules/array-list: New file.
77537         * modules/carray-list, modules/carray-list-tests: New files.
77538         * modules/linked-list, modules/linked-list-tests: New files.
77539         * modules/avltree-list, modules/avltree-list-tests: New files.
77540         * modules/rbtree-list, modules/rbtree-list-tests: New files.
77541         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
77542         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
77543         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
77544         * modules/oset: New file.
77545         * modules/array-oset: New file.
77546         * modules/avltree-oset, modules/avltree-oset-tests: New files.
77547         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
77548         * tests/test-carray_list.c: New file.
77549         * tests/test-linked_list.c: New file.
77550         * tests/test-avltree_list.c: New file.
77551         * tests/test-rbtree_list.c: New file.
77552         * tests/test-linkedhash_list.c: New file.
77553         * tests/test-avltreehash_list.c: New file.
77554         * tests/test-rbtreehash_list.c: New file.
77555         * tests/test-avltree_oset.c: New file.
77556         * tests/test-rbtree_oset.c: New file.
77557         * MODULES.html.sh (Container data structures): New section.
77558
77559 2006-07-17  Bruno Haible  <bruno@clisp.org>
77560
77561         * m4/gl_list.m4: New file.
77562
77563 2006-07-17  Bruno Haible  <bruno@clisp.org>
77564
77565         * lib/gl_list.h: New file.
77566         * lib/gl_list.c: New file.
77567         * lib/gl_array_list.h: New file.
77568         * lib/gl_array_list.c: New file.
77569         * lib/gl_carray_list.h: New file.
77570         * lib/gl_carray_list.c: New file.
77571         * lib/gl_linked_list.h: New file.
77572         * lib/gl_linked_list.c: New file.
77573         * lib/gl_anylinked_list1.h: New file.
77574         * lib/gl_anylinked_list2.h: New file.
77575         * lib/gl_avltree_list.h: New file.
77576         * lib/gl_avltree_list.c: New file.
77577         * lib/gl_anyavltree_list1.h: New file.
77578         * lib/gl_anyavltree_list2.h: New file.
77579         * lib/gl_rbtree_list.h: New file.
77580         * lib/gl_rbtree_list.c: New file.
77581         * lib/gl_anyrbtree_list1.h: New file.
77582         * lib/gl_anyrbtree_list2.h: New file.
77583         * lib/gl_anytree_list1.h: New file.
77584         * lib/gl_anytree_list2.h: New file.
77585         * lib/gl_linkedhash_list.h: New file.
77586         * lib/gl_linkedhash_list.c: New file.
77587         * lib/gl_anyhash_list1.h: New file.
77588         * lib/gl_anyhash_list2.h: New file.
77589         * lib/gl_avltreehash_list.h: New file.
77590         * lib/gl_avltreehash_list.c: New file.
77591         * lib/gl_rbtreehash_list.h: New file.
77592         * lib/gl_rbtreehash_list.c: New file.
77593         * lib/gl_anytreehash_list1.h: New file.
77594         * lib/gl_anytreehash_list2.h: New file.
77595
77596         * lib/gl_oset.h: New file.
77597         * lib/gl_oset.c: New file.
77598         * lib/gl_array_oset.h: New file.
77599         * lib/gl_array_oset.c: New file.
77600         * lib/gl_avltree_oset.h: New file.
77601         * lib/gl_avltree_oset.c: New file.
77602         * lib/gl_rbtree_oset.h: New file.
77603         * lib/gl_rbtree_oset.c: New file.
77604         * lib/gl_anytree_oset.h: New file.
77605
77606 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
77607
77608         * m4/mkancesdirs.m4: New file.
77609         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
77610         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
77611         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
77612         it.
77613
77614 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
77615
77616         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
77617         * lib/mkancesdirs.h: New files.
77618         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
77619         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
77620         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
77621         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
77622         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
77623         callers changed.  Revamp internals significantly, by not
77624         attempting to create directories that are temporarily more
77625         permissive than the final results.  Do not attempt to use
77626         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
77627         This removes some race conditions, fixes some bugs, and simplifies
77628         things.  Use new dirchownmod function to do owner and mode changes.
77629         * lib/mkdir-p.h: Likewise.
77630         * lib/modechange.c (octal_to_mode): New function.
77631         (struct mode_change): New member mentioned.
77632         (make_node_op_equals): New arg mentioned.  All callers changed.
77633         (mode_compile): Keep track of which mode bits the user has explicitly
77634         mentioned.
77635         (mode_adjust): New arg DIR, so that we implement the X op correctly.
77636         New arg PMODE_BITS, to keep track of which mode bits the user
77637         mentioned; it treats S_ISUID and S_ISGID speciall.
77638         All callers changed.
77639         * lib/modechange.h: Likewise.
77640
77641 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
77642
77643         * MODULES.html.sh: Add mkancestors.
77644         * modules/mkancesdirs: New module.
77645         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
77646         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
77647         The chdir-safer and afs files are now orphans; I'll remove them
77648         unless someone speaks up.
77649         Add lib/dirchownmod.c, lib/dirchownmod.h.
77650         (Depends-on): Remove alloca, chown, save-cwd, dirname.
77651         Add lchown, mkancesdirs.
77652         (Maintainer): Add self.
77653
77654 2006-07-15  Karl Berry  <karl@gnu.org>
77655
77656         * gnulib-tool: help message wording/arrangement.
77657
77658 2006-07-14  Simon Josefsson  <jas@extundo.com>
77659
77660         * doc/gnulib.texi (Libtool and Windows): New section.
77661
77662 2006-07-12  Simon Josefsson  <jas@extundo.com>
77663
77664         * modules/gendocs (License): Fix license, approved by Karl.
77665
77666 2006-07-12  Eric Blake  <ebb9@byu.net>
77667
77668         * MODULES.html.sh: Add gendocs.
77669
77670 2006-07-11  Eric Blake  <ebb9@byu.net>
77671
77672         * modules/fdl: New module, to install doc/fdl.texi.
77673         * MODULES.html.sh: Add new section for documentation modules.
77674         * gnulib-tool: Avoid space-tab.
77675         (--doc-base): New option, to manage files from doc.
77676
77677 2006-07-11  Eric Blake  <ebb9@byu.net>
77678
77679         * m4/absolute-header.m4: Fix comments to match recent change.
77680
77681 2006-07-11  Eric Blake  <ebb9@byu.net>
77682
77683         * gnulib-tool: List --doc-base before --tests-base.
77684
77685 2006-07-11  Derek R. Price  <derek@ximbiot.com>
77686
77687         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
77688
77689 2006-07-11  Bruno Haible  <bruno@clisp.org>
77690
77691         * README: Mention where to put documentation.
77692
77693 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77694
77695         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
77696
77697 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
77698
77699         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
77700         to stdint.m4.
77701
77702 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
77703
77704         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
77705         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
77706         "no/such/file/stdint.h" when there is no such file, so that
77707         the resulting C code can be parsed by dodgy compilers.
77708         Problems reported by Bob Proulx.
77709
77710 2006-07-10  Derek R. Price  <derek@ximbiot.com>
77711
77712         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
77713         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
77714         macros into the GNU _D_EXACT_NAMLEN.
77715         * lib/savedir.c:  Likewise.
77716         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
77717
77718 2006-07-10  Derek R. Price  <derek@ximbiot.com>
77719         and Paul Eggert  <eggert@cs.ucla.edu>
77720
77721         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
77722         * m4/savedir.m4:
77723         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
77724         macros into the GNU _D_EXACT_NAMLEN.
77725
77726 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
77727
77728         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
77729         around the absolute name, to work around a problem with the HP-UX
77730         11.23 native C compiler, reported by Bob Proulx.
77731
77732 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
77733
77734         * doc/maintain.texi, make-stds.texi: Sync from
77735         <http://savannah.gnu.org/projects/gnustandards>.
77736
77737 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
77738
77739         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
77740
77741 2006-07-09  Jim Meyering  <jim@meyering.net>
77742
77743         * m4/glob.m4: Remove a doubled word in a comment.
77744
77745 2006-07-09  Jim Meyering  <jim@meyering.net>
77746
77747         * lib/argp-pv.c: Remove a doubled word in a comment.
77748         * lib/check-version.c (check_version): Likewise.
77749         * lib/javacomp.c (compile_java_class): Likewise.
77750
77751 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
77752
77753         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
77754         for the benefit of people using Autoconf 2.60.  If you want to
77755         support older Autoconf versions you can copy m4/onceonly_2_57.m4
77756         (or m4/onceonly.m4, if pre-2.57) manually.
77757
77758 2006-07-08  Jim Meyering  <jim@meyering.net>
77759
77760         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
77761         comment.
77762         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
77763         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
77764         comment.
77765
77766 2006-07-08  Jim Meyering  <jim@meyering.net>
77767
77768         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
77769
77770 2006-07-07  Simon Josefsson  <jas@extundo.com>
77771
77772         * tests/test-crc.c: Change expected crc value, the test vector
77773         were probably computed using the old broken crc.c?
77774
77775 2006-07-06  Simon Josefsson  <jas@extundo.com>
77776
77777         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
77778         now the canonical place for the M4 file).
77779
77780         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
77781         from the sys_socket dependency now.
77782
77783         * modules/inet_pton (Files): Ditto.
77784
77785         * modules/inet_ntop (Files): Ditto.
77786
77787 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
77788
77789         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
77790         not gl_PREREQ_GETUSERSHELL.
77791
77792 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77793
77794         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
77795         with only one argument, for Autoconf 2.60.
77796         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
77797         expand to nothing, so add a shell command to avoid syntax error.
77798         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
77799
77800 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77801
77802         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
77803
77804 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
77805
77806         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
77807         no longer needed.  Check for isblank decl.
77808         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
77809         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
77810         of existence.
77811
77812 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
77813
77814         * lib/getloadavg.c: Use __VMS, not VMS.
77815         * lib/getopt.c: Likewise.
77816         * lib/getpagesize.h: Likewise.
77817         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
77818         and probably does not work.
77819
77820 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
77821
77822         * lib/.cppi-disable: Add wcwidth.
77823         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
77824         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
77825         (ISGRAPH): Remove.  All uses changed to isgraph.
77826         (FOLD) [!defined _LIBC]: Remove special case.
77827         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
77828         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
77829         HAVE_ISBLANK.
77830         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
77831         case.
77832
77833 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
77834
77835         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
77836         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
77837         brackets.  Other minor changes to suppress some compiler
77838         warnings.
77839
77840 2006-07-06  Derek R. Price  <derek@ximbiot.com>
77841         and Paul Eggert  <eggert@cs.ucla.edu>
77842
77843         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
77844         of invoking obsolescent AC_HEADER_DIRENT macro.
77845         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
77846         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
77847         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
77848         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
77849         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
77850         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
77851         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
77852         * m4/readdir.m4: Remove; no longer needed.
77853
77854 2006-07-06  Derek R. Price  <derek@ximbiot.com>
77855         and Paul Eggert  <eggert@cs.ucla.edu>
77856
77857         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
77858         Don't worry about this obsolete case any more.
77859         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
77860         directories.
77861         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
77862         worry about this obsolete case any more.
77863         * lib/fts.c: Likewise.
77864         * lib/getcwd.c: Likewise.
77865         * lib/glob.h: Likewise.
77866         * lib/savedir.c: Likewise.
77867
77868 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
77869
77870         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
77871         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
77872         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
77873         needed.
77874         All uses removed.
77875         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
77876         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
77877         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
77878         needed.
77879         * m4/getdate.m4 (gl_GETDATE): Likewise.
77880         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
77881         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
77882         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
77883         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
77884         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
77885         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
77886         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
77887         needed.
77888
77889 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
77890
77891         * lib/memcasecmp.c: Include <limits.h>.
77892         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
77893         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
77894         Don't assume isdigit succeeds only on '0' through '9'.
77895
77896 2006-07-05  Eric Blake  <ebb9@byu.net>
77897
77898         * modules/getaddrinfo (Depends-on): Add snprintf.
77899
77900 2006-07-05  Eric Blake  <ebb9@byu.net>
77901
77902         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
77903         to avoid 'header present but could not be compiled' on cygwin.
77904
77905 2006-07-05  Eric Blake  <ebb9@byu.net>
77906
77907         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
77908         missing from netdb.h.
77909         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
77910
77911 2006-07-05  Derek R. Price  <derek@ximbiot.com>
77912
77913         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
77914         no longer needed.
77915         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
77916         * m4/getdate.m4 (gl_GETDATE): Likewise.
77917         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
77918         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
77919         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
77920         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
77921         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
77922
77923 2006-07-05  Derek R. Price  <derek@ximbiot.com>
77924
77925         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
77926         All uses of is_space replaced by isspace.
77927         * lib/exit.h: Don't talk about STDC_HEADERS.
77928         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
77929         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
77930         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
77931         replaced by isprint etc.
77932         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
77933         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
77934         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
77935         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
77936         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
77937         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
77938
77939 2006-07-05  Bruno Haible  <bruno@clisp.org>
77940
77941         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
77942         the function exists, before testing against AIX.
77943         Reported by Martin Lambers <marlam@marlam.de>.
77944
77945 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
77946
77947         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
77948         From Mark D. Baushke.
77949
77950 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
77951
77952         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
77953         to the absolute name, not just one, to bypass Sun C 5.8's
77954         "warning: #include of /usr/include/... may be non-portable".
77955
77956 2006-07-04  Eric Blake  <ebb9@byu.net>
77957
77958         * modules/dirname-tests: New test module.
77959         * tests/test-dirname.c: New file, replacing dirname.c
77960         TEST_DIRNAME section that was recently deleted.
77961
77962 2006-07-04  Bruno Haible  <bruno@clisp.org>
77963
77964         Assume ANSI C header files and <ctype.h> functions.
77965         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
77966         (mbsnwidth): Use isprint, iscntrl instead.
77967
77968 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77969
77970         Merge from coreutils.
77971         * MODULES.html.sh: Add xstrtold.
77972         * modules/xstrtold: New file.
77973         * modules/cycle-check (Files): Add lib/same-inode.h.
77974         * modules/dirname (Files): Add m4/double-slash-root.m4.
77975         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
77976         * modules/mkdir-p (Files): Add lib/same-inode.h.
77977         * modules/same (Files): Add lib/same-inode.h.
77978
77979 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77980
77981         * m4/absolute-header.m4: Renamed from full-header-path.m4.
77982         This is to keep the terminology clean; POSIX talks about
77983         "absolute pathnames", not "full pathnames", but the GNU
77984         Coding Standards say to use "path" for something else;
77985         so use "absolute" to keep both sides happy.
77986         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
77987         Set gl_absolute_header, not gl_full_header_path.
77988         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
77989         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
77990         All uses changed.
77991
77992         Merge from coreutils.
77993
77994         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
77995
77996         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
77997         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
77998         want to require the building of c-strtod.o.
77999         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
78000         needs -lm directly.
78001         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
78002
78003         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
78004
78005         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
78006         --as-needed option if available.  Problem reported by Albert Chin in
78007         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
78008         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
78009         cc merely issues a bunch of annoying warnings for --as-needed
78010         (this problem was reported by Bob Proulx).  Also, try linking with
78011         -lm to detect a bug in binutils 2.16 (this problem was reported
78012         by Ralf Wildenhues).
78013
78014         2006-06-18  Jim Meyering  <jim@meyering.net>
78015
78016         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
78017         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
78018         macro.
78019         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
78020         also check for glibc-2.4's abort-inducing bug.
78021
78022         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
78023         Low-probability clean-up should be to use rmdir to get rid of
78024         the just-created directory, not unlink.
78025
78026         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
78027         configure fail, and request a bug report to inform us about it.
78028         Add a comment that, barring reports to the contrary, in 2007 we'll
78029         assume ftruncate is universally available.
78030
78031         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
78032
78033         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
78034
78035         2006-03-12  Jim Meyering  <jim@meyering.net>
78036
78037         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
78038         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
78039         * m4/same.m4 (gl_SAME): Likewise.
78040         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
78041
78042         2006-03-11  Eric Blake  <ebb9@byu.net>
78043
78044         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
78045         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
78046         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
78047         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
78048
78049 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
78050
78051         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
78052         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
78053         reported by Mark D. Baushke, one in
78054         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
78055
78056         Merge from coreutils.
78057
78058         * lib/.cppi-disable: Add stdint_.h.
78059         * lib/.cvsignore: Add stdint.h.
78060
78061         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
78062
78063         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
78064         both double and long double versions.
78065         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
78066         * lib/xstrtold.c: New file.
78067         * lib/xstrtod.h (xstrtold): New decl.
78068
78069         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
78070
78071         * lib/filemode.c (setst): Remove.
78072         (strmode): Rewrite to avoid setst.  This makes the code shorter,
78073         (arguably) clearer, and the generated code is a bit smaller on my
78074         Debian GNU/Linux stable x86 host.
78075
78076         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
78077
78078         * lib/filemode.c: Include "filemode.h" first, to test the interface.
78079         Assume that filemode.h includes sys/types.h and sys/stat.h.
78080         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
78081         (ftypelet): Reorder to put common cases first, for efficiency.
78082         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
78083         to do 'M'.
78084         (strmode): Renamed from mode_string, and now stores 12 bytes instead
78085         of 10, for compatibility with FreeBSD.  All callers changed.
78086         (filemodestring): Now stores 12 bytes instead of 10, and sets file
78087         types that can't be deduced solely from st_mode.  First arg is now a
78088         const pointer.
78089         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
78090         (strmode): Renamed from mode_string.
78091         (filemodestring): New decl.
78092         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
78093         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
78094         needed.
78095         (S_ISPORT, S_ISWHT): New macros, if not already defined.
78096
78097         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
78098
78099         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
78100         fsusage.h now does that.  Include fsusage.h first, to test interface.
78101         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
78102         at most one method (the old code could have generated decls that
78103         didn't conform to C89, not that this was ever exercised).
78104         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
78105
78106         2006-03-19  Jim Meyering  <jim@meyering.net>
78107
78108         Work even in a chroot where d_ino values for entries in "/"
78109         don't match the stat.st_ino values for the same names.
78110         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
78111         number, iterate through all entries again, using lstat instead.
78112         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
78113         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
78114
78115         * lib/getcwd.c (__getcwd): Clarify a comment.
78116         Use memcpy in place of a call to strcpy.
78117
78118         2006-03-12  Jim Meyering  <jim@meyering.net>
78119
78120         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
78121         matches that of the current directory (which we're about to chdir ".."
78122         out of), then save the dev-ino of the parent, instead.
78123
78124         * lib/same-inode.h (SAME_INODE): New file/macro.
78125         * lib/chdir-safer.c (SAME_INODE): Remove definition.
78126         Include "same-inode.h", instead.
78127         * lib/same.c: Likewise.
78128         * lib/cycle-check.h: Include "same-inode.h".
78129         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
78130         * lib/cycle-check.c (SAME_INODE): Remove definition.
78131         * lib/root-dev-ino.h: Include "same-inode.h".
78132
78133         2006-03-11  Eric Blake  <ebb9@byu.net>
78134
78135         * lib/same.c (same_name): s/base_name/last_component/
78136         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
78137         * lib/filenamecat.c (file_name_concat): Likewise.
78138
78139         2006-03-11  Eric Blake  <ebb9@byu.net>,
78140                     Paul Eggert  <eggert@cs.ucla.edu>
78141
78142         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
78143         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
78144         drive prefix.
78145         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
78146         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
78147         (last_component): New method.
78148         * lib/dirname.c (dir_len): Determine when drive letters need a
78149         subsequent slash.  Preserve // when it is special.
78150         (dir_name): Don't append dot when drive letter is absolute.
78151         [TEST_DIRNAME]: Move into a full-blown gnulib test.
78152         * lib/basename.c (base_name): New semantics - malloc the result.
78153         Preserve // when it is special.  Preserve relative files that look
78154         like drive letters.
78155         (base_len): Preserve // when it is special.
78156         (last_component): New method, similar to old base_name semantics.
78157         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
78158         base_name.  Strip redundant slashes from ///.
78159
78160 2006-07-03  Jim Meyering  <jim@meyering.net>
78161
78162         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
78163         macro is used before the first cycle_check call.
78164
78165 2006-07-03  Eric Blake  <ebb9@byu.net>
78166
78167         * modules/dirname (Depends-on): Add xstrndup.
78168
78169 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
78170
78171         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
78172         test cases, so that config.log is a bit easier to follow.
78173
78174 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
78175
78176         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
78177         both are 64 bits, since this seems to be the tradition, and this
78178         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
78179         we ever run into a host that prefers long long to long in this
78180         case, we'll need another configure-time test.  Problem reported by
78181         Jim Meyering.
78182
78183 2006-07-02  Eric Blake  <ebb9@byu.net>
78184
78185         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
78186
78187 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
78188
78189         * modules/inttypes (Depends-on): No longer depends on stdint.
78190         * modules/stdint (Description): Say more about assumptions.
78191         Say that the fast types might differ.  Say macros are used.
78192         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
78193         (Makefile.am): Revise list of substituted symbols to match
78194         new stdint.m4.
78195         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
78196         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
78197         * tests/test-stdint.c (verify_same_types)
78198         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
78199         the code conforms to C99/C89.
78200         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
78201         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
78202
78203 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
78204
78205         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
78206         but fix a bug, by requiring at least 64 bits.
78207         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
78208         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
78209         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
78210         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
78211
78212         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
78213         changes.  Make 2.59 a prerequisite.  Check and substitute for
78214         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
78215         inttypes.h.  Do not use special include files; just use the
78216         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
78217         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
78218         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
78219         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
78220         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
78221         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
78222         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
78223         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
78224         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
78225         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
78226         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
78227         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
78228         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
78229         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
78230         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
78231         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
78232         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
78233         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
78234         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
78235         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
78236         WINT_MAX.  Check for C99 conformance more strictly, by detecting
78237         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
78238         not check for things that C99 does not require, e.g., int8_t.  If
78239         a test isn't needed unless <stdint.h> isn't working, and is
78240         unlikely to be needed for any other reason, then don't do it
78241         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
78242         size_t, since we assume C89 freestanding at least.  Do not check
78243         for sig_atomic_t, wchar_t, or wint_t, since the code now does
78244         the right thing even if the types are not defined.  Instead use:
78245         (gl_STDINT_TYPE_PROPERTIES): New macro.
78246         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
78247         testing whether <sys/types.h> clashes, as Autoconf does this for
78248         us now.  All uses removed.
78249         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
78250         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
78251         (gl_CHECK_TYPE_SAME):
78252         Remove; no longer needed.
78253         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
78254         exists, since we'll return 0 anyway in that case.
78255         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
78256
78257 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
78258
78259         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
78260         possible collision with system files.
78261         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
78262         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
78263         WCHAR_MIN and WCHAR_MAX in this case.
78264         (<stddef.h>): Do not include; no longer needed.
78265         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
78266         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
78267         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
78268         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
78269         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
78270         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
78271         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
78272         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
78273         !defined(__c99))]: Include in this case too, since it's harmless
78274         now.
78275         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
78276         dangerous to do so.
78277         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
78278         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
78279         (_STDINT_MIN, _STDINT_MAX): New macros.
78280         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
78281         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
78282         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
78283         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
78284         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
78285         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
78286         macros, not typedefs; this simplifies things quite a bit.
78287         Use long int for all types narrower than int64_t.
78288         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
78289         Define in terms of long long int or int64_t or long int,
78290         not int64_t or int32_t.  This saves some compile-time testing.
78291         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
78292         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
78293         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
78294         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
78295         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
78296         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
78297         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
78298         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
78299         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
78300         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
78301         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
78302         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
78303         undef any previous version and define our own version, for
78304         simplicity and consistency with the new macros for types.
78305         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
78306         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
78307         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
78308         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
78309         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
78310         @WINT_T_SUFFIX@ to keep things simple here.
78311         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
78312         Simplify by assuming typical 8/16/32/64 host, since we're
78313         already doing that elsewhere anyway.
78314         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
78315         and assume long long int is 64 bits if available.  This
78316         speeds up 'configure'.
78317
78318 2006-07-01  Eric Blake  <ebb9@byu.net>
78319
78320         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
78321         Reported by Andreas Buening.
78322
78323 2006-07-01  Eric Blake  <ebb9@byu.net>
78324
78325         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
78326
78327 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
78328
78329         * lib/getaddrinfo.c: fixed typo
78330
78331 2006-06-29  Jim Meyering  <jim@meyering.net>
78332
78333         * modules/strftime (Maintainer): Add my name, since with the
78334         FPRINTFTIME changes strftime.c has forked from glibc.
78335
78336 2006-06-29  Eric Blake  <ebb9@byu.net>
78337
78338         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
78339
78340 2006-06-29  Eric Blake  <ebb9@byu.net>
78341
78342         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
78343
78344 2006-06-29  Eric Blake  <ebb9@byu.net>
78345
78346         * lib/stat_.h: New file.
78347
78348 2006-06-29  Eric Blake  <ebb9@byu.net>
78349
78350         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
78351         unused static function.
78352
78353 2006-06-29  Eric Blake  <ebb9@byu.net>
78354
78355         * doc/functions.texi (Function Portability): Document missing lstat
78356         on mingw.
78357
78358 2006-06-29  Eric Blake  <ebb9@byu.net>
78359
78360         * MODULES.html.sh: Add sys_stat.
78361         * modules/sys_stat: New module.
78362         * modules/mkstemp (Depends-on): Add sys_stat.
78363
78364 2006-06-29  Derek R. Price  <derek@ximbiot.com>
78365
78366         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
78367
78368 2006-06-29  Derek R. Price  <derek@ximbiot.com>
78369
78370         * m4/c-bs-a.m4: Removed.
78371
78372 2006-06-29  Derek R. Price  <derek@ximbiot.com>
78373
78374         * lib/strftime.c: Assume strftime() exists.
78375
78376 2006-06-29  Derek Price  <derek@ximbiot.com>
78377
78378         * modules/c-bs-a: Removed - \a is C89.
78379         * MODULES.html.sh: Remove c-bs-a.
78380
78381 2006-06-29  Bruno Haible  <bruno@clisp.org>
78382
78383         * modules/wcwidth (License): Change to LGPL.
78384
78385 2006-06-28  Simon Josefsson  <jas@extundo.com>
78386
78387         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
78388         on _WIN32.
78389
78390         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
78391         getnameinfo.
78392
78393 2006-06-28  Simon Josefsson  <jas@extundo.com>
78394
78395         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
78396
78397 2006-06-28  Simon Josefsson  <jas@extundo.com>
78398
78399         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
78400         functions there.  It will succeed on Windows XP, but on Windows
78401         2000 and (presumably) earlier, it will fail, and use the internal
78402         re-implementation.
78403         (use_win32_p): New function.
78404         (getaddrinfo): Use strtoul on servname, to support numeric ports.
78405         Support AI_NUMERICSERV to disable getservbyname.
78406         (getnameinfo): New function, only supports
78407         NI_NUMERICHOST|NI_NUMERICSERV for now.
78408
78409         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
78410         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
78411         getnameinfo.
78412
78413 2006-06-28  Eric Blake  <ebb9@byu.net>
78414
78415         * modules/wcwidth: New file.
78416         * modules/mbchar (Depends-on): Add wcwidth.
78417         * modules/mbswidth (Depends-on): Add wcwidth.
78418         * MODULES.html.sh: Add wcwidth.
78419
78420 2006-06-28  Eric Blake  <ebb9@byu.net>
78421
78422         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
78423         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
78424
78425 2006-06-28  Eric Blake  <ebb9@byu.net>
78426
78427         * lib/xvasprintf.h: Fix comments.
78428
78429 2006-06-28  Eric Blake  <ebb9@byu.net>
78430
78431         * lib/mbchar.h (wcwidth): Include wcwidth.h.
78432         * lib/mbswidth.c (wcwidth): Move from here...
78433         * lib/wcwidth.h: ...to this new file.
78434
78435 2006-06-28  Derek R. Price  <derek@ximbiot.com>
78436
78437         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
78438
78439         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
78440         it's obsolete.
78441         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
78442
78443 2006-06-28  Derek R. Price  <derek@ximbiot.com>
78444
78445         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
78446         Autoconf 2.60 says this stuff was obsolete.
78447
78448 2006-06-28  Bruno Haible  <bruno@clisp.org>
78449
78450         * modules/wcwidth (Files): Add m4/wchar_t.m4.
78451
78452 2006-06-28  Bruno Haible  <bruno@clisp.org>
78453
78454         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
78455         gt_TYPE_WCHAR_T.
78456
78457 2006-06-28  Bruno Haible  <bruno@clisp.org>
78458
78459         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
78460         declaration for wcwidth.
78461         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
78462
78463 2006-06-28  Bruno Haible  <bruno@clisp.org>
78464
78465         * lib/mkdtemp.c [MINGW]: Include <io.h>.
78466         (mkdir): Define using _mkdir.
78467
78468 2006-06-28  Bruno Haible  <bruno@clisp.org>
78469
78470         * lib/getaddrinfo.h: Fix POSIX URL.
78471         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
78472         _WIN32.
78473         (use_win32_p): Make static.
78474         (getaddrinfo): Reject service name if it is empty or does not consist
78475         solely of decimal digits, or if its value is > 65535.
78476         (getnameinfo): Remove useless casts.
78477
78478 2006-06-27  Simon Josefsson  <jas@extundo.com>
78479
78480         * modules/sys_select: New file, suggested by Bruno Haible, Paul
78481         Eggert and Martin Lambers.
78482
78483 2006-06-27  Simon Josefsson  <jas@extundo.com>
78484
78485         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
78486         Eggert and Martin Lambers.
78487
78488 2006-06-27  Bruno Haible  <bruno@clisp.org>
78489
78490         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
78491         result to 0, not to empty.
78492         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
78493
78494 2006-06-27  Bruno Haible  <bruno@clisp.org>
78495
78496         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
78497
78498 2006-06-26  Simon Josefsson  <jas@extundo.com>
78499
78500         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
78501         present.
78502
78503 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
78504
78505         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
78506         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
78507         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
78508
78509 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
78510
78511         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
78512
78513 2006-06-26  Bruno Haible  <bruno@clisp.org>
78514
78515         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
78516
78517 2006-06-26  Bruno Haible  <bruno@clisp.org>
78518
78519         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
78520
78521 2006-06-26  Bruno Haible  <bruno@clisp.org>
78522
78523         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
78524         SGI C compiler in pre-C99 mode.
78525         Suggested by Mark D. Baushke and Larry Jones.
78526
78527 2006-06-26  Bruno Haible  <bruno@clisp.org>
78528
78529         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
78530         WCHAR_MAX.
78531         Reported by Mark D. Baushke and Larry Jones.
78532
78533 2006-06-26  Bruno Haible  <bruno@clisp.org>
78534
78535         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
78536         in pre-C99 mode.
78537         Suggested by Mark D. Baushke and Larry Jones.
78538
78539 2006-06-23  Simon Josefsson  <jas@extundo.com>
78540             Bruno Haible  <bruno@clisp.org>
78541
78542         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
78543         Emit mostlyclean-local rule.
78544         (func_emit_tests_Makefile_am): Likewise.
78545         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
78546
78547 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
78548
78549         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
78550
78551 2006-06-23  Bruno Haible  <bruno@clisp.org>
78552
78553         * tests/test-stdint.c: Update to match ISO C 99 Technical
78554         Corrigendum 1.
78555
78556 2006-06-23  Bruno Haible  <bruno@clisp.org>
78557
78558         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
78559
78560 2006-06-23  Bruno Haible  <bruno@clisp.org>
78561
78562         * lib/stdint_.h: Treat IRIX like OpenBSD.
78563
78564 2006-06-23  Bruno Haible  <bruno@clisp.org>
78565
78566         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
78567         ISO C 99 Technical Corrigendum 1.
78568
78569 2006-06-22  Simon Josefsson  <jas@extundo.com>
78570
78571         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
78572         MinGW.
78573
78574 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
78575
78576         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
78577         needed.  Some compiler complained about some of them.  Problem reported
78578         by Larry Jones in
78579         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
78580
78581 2006-06-21  Simon Josefsson  <jas@extundo.com>
78582
78583         * tests/test-getaddrinfo.c: New file.
78584
78585         * modules/getaddrinfo-tests: New file.
78586
78587         * MODULES.html.sh: Add inet_pton.
78588
78589         * modules/inet_pton: New file.
78590
78591 2006-06-21  Simon Josefsson  <jas@extundo.com>
78592
78593         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
78594         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
78595         of using the (limited) gnulib implementation on Windows XP.
78596
78597         * m4/inet_pton.m4: New file.
78598
78599 2006-06-21  Simon Josefsson  <jas@extundo.com>
78600
78601         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
78602         variable.
78603
78604         * lib/socket_.h: Don't define WINVER.
78605
78606         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
78607         slightly modified to work in gnulib.
78608
78609 2006-06-21  Simon Josefsson  <jas@extundo.com>
78610
78611         * doc/gnulib.texi (Windows sockets): Add.
78612
78613 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
78614
78615         * lib/read-file.c (fread_file): Start with buffer allocation of
78616         0 bytes rather than 1 byte; this simplifies the code.
78617         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
78618         code to free buffer and save/restore errno.
78619         (internal_read_file): Remove unused local.
78620
78621 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
78622
78623         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
78624         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
78625         Problem reported by Denis Excoffier in
78626         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
78627
78628 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78629
78630         * modules/sys_socket, modules/socklen: Include sys/types since
78631         FreeBSD 4.x's sys/socket.h needs it.
78632
78633 2006-06-19  Simon Josefsson  <jas@extundo.com>
78634
78635         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
78636
78637 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
78638
78639         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
78640
78641 2006-06-19  Bruno Haible  <bruno@clisp.org>
78642
78643         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
78644         and FULL_PATH_INTTYPES_H in angle brackets.
78645         Reported by Mark D. Baushke <mdb@gnu.org>.
78646
78647 2006-06-17  Eric Blake  <ebb9@byu.net>
78648
78649         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
78650         errno.
78651
78652 2006-06-17  Bruno Haible  <bruno@clisp.org>
78653
78654         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
78655         <sys/inttypes.h>.
78656
78657 2006-06-17  Bruno Haible  <bruno@clisp.org>
78658
78659         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
78660         whether errno is declared. Assume <errno.h> declares errno.
78661
78662 2006-06-17  Bruno Haible  <bruno@clisp.org>
78663
78664         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
78665
78666 2006-06-17  Bruno Haible  <bruno@clisp.org>
78667
78668         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
78669         problem on Solaris 2.5.1.
78670
78671 2006-06-16  Eric Blake  <ebb9@byu.net>
78672
78673         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
78674         * lib/unicodeio.c [!defined errno]: Likewise.
78675         * lib/strtol.c [!defined errno]: Likewise.
78676         * lib/strtod.c [!defined errno]: Likewise.
78677
78678 2006-06-15  Eric Blake  <ebb9@byu.net>
78679
78680         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
78681
78682 2006-06-15  Eric Blake  <ebb9@byu.net>
78683
78684         * config/srclist.txt (ssize_t.m4): Lose sync.
78685
78686 2006-06-15  Bruno Haible  <bruno@clisp.org>
78687
78688         * modules/stdint (Files): Include m4/full-header-path.m4,
78689         m4/size_max.m4, m4/wchar_t.m4.
78690         (Makefile.am): Many more substitutions.
78691         * modules/stdint-tests: New file.
78692         * tests/test-stdint.c: New file.
78693
78694 2006-06-15  Bruno Haible  <bruno@clisp.org>
78695
78696         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
78697         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
78698         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
78699         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
78700         gl_CHECK_TYPE_SAME): New macros.
78701
78702 2006-06-15  Bruno Haible  <bruno@clisp.org>
78703
78704         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
78705
78706 2006-06-15  Bruno Haible  <bruno@clisp.org>
78707
78708         * lib/stdint_.h: Rewritten to be fully auto-configured.
78709         Fixes bug on HP-UX/IA64.
78710
78711 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
78712
78713         * lib/getdate.y (__attribute__): Don't define if already defined.
78714         Problem reported by Larry Jones.
78715         * lib/utimens.c (__attribute__): Likewise.
78716
78717 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
78718
78719         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
78720         reported by Andreas Schwab.
78721
78722 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78723             Bruno Haible  <bruno@clisp.org>
78724
78725         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
78726         check for the declaration of strnlen and a run test that exposes the
78727         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
78728         rpl_strndup.
78729
78730 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78731             Bruno Haible  <bruno@clisp.org>
78732
78733         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
78734
78735 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78736
78737         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
78738         compile test, for Tru64 4.0D.
78739
78740 2006-05-28  Karl Berry  <karl@gnu.org>
78741
78742         * config/srclist.txt (printf-args.c): lose sync.
78743
78744 2006-05-26  Martin Lambers  <marlam@marlam.de>
78745
78746         * lib/getpass.c: Updates the test for the native W32 API, and adds
78747         missing includes, thus fixing compilation warnings.
78748
78749 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
78750
78751         * lib/exclude.c (exclude_fnmatch): New function.
78752         (excluded_file_name): Call exclude_fnmatch.
78753         * lib/exclude.h (excluded_file_name): New prototype
78754
78755 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
78756
78757         * lib/tempname.c (small_open, large_open): New macros.
78758         (__open, __open64) [!_LIBC]: Remove.
78759         (__gen_tempname): Use small_open and large_open instead of __open
78760         and __open64.  This fixes a portability bug on HP-UX 11.11i
78761         reported by Simon Wing-Tang in
78762         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
78763
78764 2006-05-24  Bruno Haible  <bruno@clisp.org>
78765
78766         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
78767         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
78768         Reported by Thorsten Maerz <torte@netztorte.de> via
78769         Aaron Stone <aaron@serendipity.cx>.
78770
78771 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
78772
78773         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
78774         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
78775         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
78776         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
78777         not really conditional on the cache.
78778         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
78779
78780 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
78781
78782         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
78783         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
78784         (my_usleep): Don't mishandle maximum value.
78785
78786 2006-05-19  Jim Meyering  <jim@meyering.net>
78787
78788         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
78789
78790 2006-05-17  Bruno Haible  <bruno@clisp.org>
78791
78792         Cygwin portability.
78793         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
78794
78795 2006-05-17  Bruno Haible  <bruno@clisp.org>
78796
78797         * lib/stdint_.h: Fix recognition of Cygwin.
78798
78799 2006-05-15  Bruno Haible  <bruno@clisp.org>
78800
78801         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
78802         on libtool patch by Ralf Wildenhues.
78803
78804 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
78805
78806         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
78807         test for C99 conformance; (bool) 0.5 is an integer constant
78808         expression, but (bool) -0.5 is not.  Problem reported by Fedor
78809         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
78810
78811 2006-05-11  Simon Josefsson  <jas@extundo.com>
78812
78813         * m4/xvasprintf.m4: Fix obvious typo.
78814
78815 2006-05-11  Jim Meyering  <jim@meyering.net>
78816
78817         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
78818         James Lemley.
78819
78820 2006-05-10  Simon Josefsson  <jas@extundo.com>
78821
78822         * lib/md4.c: Typo fix, update copyright years.
78823         (K1, K2): Don't use L because it turn computations into 64-bit on
78824         64-bit platforms.
78825
78826 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
78827
78828         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
78829         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
78830         unwanted sign propagation, e.g., on hosts with 64-bit int.
78831         There still are some problems with reeelly weird theoretical hosts
78832         (e.g., 33-bit int) but it's not worth worrying about now.
78833         * lib/sha1.c (rol): Likewise.
78834         (K1, K2, K3, K4): Remove unnecessary L suffix.
78835
78836 2006-05-10  Bruno Haible  <bruno@clisp.org>
78837
78838         * lib/des.c: Cast to avoid warnings.
78839
78840 2006-05-09  Bruno Haible  <bruno@clisp.org>
78841
78842         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
78843         (Depends-on): Depend also on xsize, stdarg.
78844         (configure.ac): Add gl_XVASPRINTF.
78845
78846 2006-05-09  Bruno Haible  <bruno@clisp.org>
78847
78848         * m4/xvasprintf.m4: New file.
78849
78850 2006-05-09  Bruno Haible  <bruno@clisp.org>
78851
78852         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
78853         (EOVERFLOW): Define fallback value.
78854         (xstrcat): New function.
78855         (xvasprintf): Recognize the special case of a string concatenation.
78856
78857 2006-05-08  Eric Blake  <ebb9@byu.net>
78858
78859         * gnulib-tool (func_version): Base copyright year on CVS date.
78860         (func_emit_copyright_notice): New function.
78861         (func_emit_lib_Makefile_am): Use it.
78862         (func_emit_tests_Makefile_am): Likewise.
78863         (func_import): Likewise.
78864
78865 2006-05-08  Bruno Haible  <bruno@clisp.org>
78866
78867         * modules/stdarg: New file.
78868         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
78869
78870 2006-05-08  Bruno Haible  <bruno@clisp.org>
78871
78872         * m4/stdarg.m4: New file, from GNU gettext.
78873
78874 2006-05-08  Bruno Haible  <bruno@clisp.org>
78875
78876         * config/srclist.txt (build-aux/config.rpath): different from latest
78877         release.
78878
78879 2006-05-08  Bruno Haible  <bruno@clisp.org>
78880
78881         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
78882
78883 2006-05-05  Jim Meyering  <jim@meyering.net>
78884
78885         * m4/warning.m4: New file, derived from bison's file by the same name.
78886
78887 2006-05-03  Bruno Haible  <bruno@clisp.org>
78888
78889         * lib/stdint_.h: Shorter URL.
78890         * lib/inttypes.h: Likewise.
78891
78892 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
78893
78894         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
78895
78896 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
78897
78898         * lib/verify.h: Document the internals better.  Most of this change
78899         was written by Bruno Haible.
78900
78901 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
78902
78903         * doc/verify.texi: New file, partly based on a proposal by
78904         Bruno Haible.
78905
78906 2006-05-02  Bruno Haible  <bruno@clisp.org>
78907
78908         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
78909         test from here...
78910         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
78911
78912 2006-04-29  Bruno Haible  <bruno@clisp.org>
78913
78914         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
78915         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
78916
78917 2006-04-29  Bruno Haible  <bruno@clisp.org>
78918
78919         * gnulib-tool: Make --update option actually work.
78920
78921 2006-04-29  Bruno Haible  <bruno@clisp.org>
78922
78923         * doc/gcd.texi: New file.
78924         * doc/gnulib.texi: Include it.
78925
78926 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
78927
78928         * lib/getdate.y (get_date): When adding relative date, start with the
78929         initial time, not with the result of the first mktime call.
78930
78931 2006-04-25  Bruno Haible  <bruno@clisp.org>
78932
78933         * gnulib-tool (func_import): Output the include directives in three
78934         blocks, sorted separately.
78935         Reported by Ben Pfaff <blp@cs.stanford.edu>.
78936
78937 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
78938
78939         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
78940         to define main with arguments, for C++.  Reported by Eric Blake.
78941         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
78942         Prefer 'int main ()' to 'int main (void)', for C++.
78943         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
78944         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
78945         for 'main', for C99 and C++.
78946
78947 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
78948
78949         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
78950         Don't assume that exit status -1 is valid.
78951         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
78952         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
78953         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
78954         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
78955         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
78956         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
78957         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
78958         functions can be used without declaring them, or that you can
78959         exit with status -1.
78960         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
78961
78962 2006-04-24  Karl Berry  <karl@gnu.org>
78963
78964         * config/srclist.txt (longdouble.m4): sync lost.
78965
78966 2006-04-24  Eric Blake  <ebb9@byu.net>
78967
78968         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
78969
78970 2006-04-24  Bruno Haible  <bruno@clisp.org>
78971
78972         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
78973         poll() implementation in AIX.
78974         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78975
78976 2006-04-24  Bruno Haible  <bruno@clisp.org>
78977
78978         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
78979         assigned exactly once.
78980
78981 2006-04-23  Claudio Fontana  <claudio@gnu.org>
78982             Bruno Haible  <bruno@clisp.org>
78983
78984         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
78985         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
78986         for AM_CPPFLAGS.
78987
78988 2006-04-23  Bruno Haible  <bruno@clisp.org>
78989
78990         * modules/copy-file: Depend on unistd.
78991         * modules/execute: Likewise.
78992         * modules/fatal-signal: Likewise.
78993         * modules/findprog: Likewise.
78994         * modules/mkdtemp : Likewise.
78995         * modules/pipe: Likewise.
78996         * modules/wait-process: Likewise.
78997
78998 2006-04-23  Bruno Haible  <bruno@clisp.org>
78999
79000         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
79001         condition was already detected.
79002         Reported by Ben Pfaff <blp@cs.stanford.edu>.
79003
79004 2006-04-23  Bruno Haible  <bruno@clisp.org>
79005
79006         * lib/copy-file.c: Include <unistd.h> unconditionally.
79007         * lib/execute.c: Likewise.
79008         * lib/fatal-signal.c: Likewise.
79009         * lib/findprog.c: Likewise.
79010         * lib/mkdtemp.c: Likewise.
79011         * lib/pipe.h: Likewise.
79012         * lib/pipe.c: Likewise.
79013         * lib/wait-process.h: Likewise.
79014
79015 2006-04-23  Bruno Haible  <bruno@clisp.org>
79016
79017         * gnulib-tool (func_usage): Fix --import description. Document
79018         --update.
79019         (func_import): Create temporary file in a temporary directory, if
79020         --dry-run is specified. Silence errors from 'grep' when there are no
79021         m4 files in $m4dir.
79022         (func_create_testdir): Silence errors from 'grep' when there are no
79023         m4 files in $m4dir.
79024         Reported by Karl Berry <karl@freefriends.org>.
79025
79026 2006-04-20  Bruno Haible  <bruno@clisp.org>
79027
79028         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
79029         one argument, so that the code will be portable to Autoconf 2.60.
79030         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
79031         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
79032         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
79033
79034 2006-04-19  Derek Price  <derek@ximbiot.com>
79035             Eric Blake  <ebb9@byu.net>
79036
79037         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
79038         rather than "/full/path.h".  Update comment to match.  Shorten &
79039         generalize m4_translit call via AS_TR_CPP.
79040
79041 2006-04-19  Derek Price  <derek@ximbiot.com>
79042             Eric Blake  <ebb9@byu.net>
79043
79044         * lib/inttypes.h: Correct grammar in comment.
79045
79046 2006-04-18  Derek Price  <derek@ximbiot.com>
79047             Paul Eggert  <eggert@cs.ucla.edu>
79048
79049         * modules/inttypes: New file.
79050         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
79051
79052 2006-04-18  Derek Price  <derek@ximbiot.com>
79053             Paul Eggert  <eggert@cs.ucla.edu>
79054
79055         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
79056         New files.
79057
79058 2006-04-18  Derek Price  <derek@ximbiot.com>
79059             Paul Eggert  <eggert@cs.ucla.edu>
79060
79061         * lib/inttypes.h: New file.
79062         * lib/strtoimax.c: Assume <inttypes.h>.
79063
79064 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
79065
79066         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
79067         isn't mounted.  Problem reported by Kir Kolyshkin.
79068
79069 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
79070
79071         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
79072         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
79073         Derek R. Price.
79074         * lib/regex.h (RE_DUP_MAX): Update comment to match current
79075         implementation.
79076
79077 2006-04-12  Eric Blake  <ebb9@byu.net>
79078
79079         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
79080         is now done automatically by the corresponding Autoconf macro.
79081
79082 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
79083
79084         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
79085         time_r.h.
79086
79087 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
79088
79089         Merge regex changes from libc, removing some of our
79090         POSIX-conformance changes that were rejected and redoing them in a
79091         less-intrusive way.
79092
79093         * lib/regcomp.c (re_compile_internal, init_dfa):
79094         Length arg is now size_t, not Idx.  All uses changed.
79095         (peek_token): Forward decl now says internal_function.
79096         (__re_error_msgid, __re_error_msgid_idx):
79097         Now static rather than extern with attribute_hidden.
79098         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
79099         For some reason libc prefers K&R style defns for external functions.
79100         (regerror) [!defined _LIBC]: Likewise.
79101         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
79102         (seek_collating_symbol_entry, lookup_collation_sequence_value):
79103         (build_range_exp, build_collating_symbol):
79104         Use K&R-style defn.
79105         (re_compile_fastmap): Use '\0' to memset, not 0.
79106         (utf8_sb_map): Make the calculations more obvious.
79107         (init_dfa, parse_bracket_exp, build_charclass_op):
79108         Call calloc and cast result, as glibc does.
79109         (init_word_char, fetch_token, peek_token, peek_token_bracket):
79110         (build_range_exp, build_collating_symbol):
79111         Now internal functions.
79112
79113         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
79114
79115         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
79116         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
79117         Don't depend on VMS; depend on __VMS instead, for POSIX
79118         namespace cleanness.
79119         (regoff_t): Define to ssize_t, not long int.
79120
79121         Remove the REG_ macros named below.  Instead, make the old names
79122         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
79123         __USE_GNU_REGEX.
79124         (REG_BACKSLASH_ESCAPE_IN_LISTS):
79125         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
79126         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
79127         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
79128         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
79129         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
79130         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
79131         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
79132         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
79133         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
79134         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
79135         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
79136         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
79137         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
79138         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
79139         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
79140         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
79141         (REG_NREGS):
79142         Remove.  All uses replaced by the old RE_* names.
79143         (RE_BACKSLASH_ESCAPE_IN_LISTS):
79144         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
79145         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
79146         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
79147         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
79148         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
79149         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
79150         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
79151         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
79152         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
79153         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
79154         Don't bother having these macros be independent of each others'
79155         values, since they no longer exist in the POSIX name space.
79156
79157         Rename the following member names back to their old names,
79158         unless !__USE_GNU_REGEX.  All uses changed back.
79159         (buffer): Renamed from re_buffer.
79160         (allocated): Renamed from re_allocated.
79161         (used): Renamed from re_used.
79162         (syntax): Renamed from re_syntax.
79163         (fastmap): Renamed from re_fastmap.
79164         (translate): Renamed from re_translate.
79165         (can_be_null): Renamed from re_can_be_null.
79166         (regs_allocated): Renamed from re_regs_allocated.
79167         (fastmap_accurate): Renamed from re_fastmap_accurate.
79168         (no_sub): Renamed from re_no_sub.
79169         (not_bol): Renamed from re_not_bol.
79170         (not_eol): Renamed from re_not_eol.
79171         (newline_anchor): Renamed from re_newline_anchor.
79172         (num_regs): Renamed from rm_num_regs.
79173         (start): Renamed from rm_start.
79174         (end): Renamed from rm_end.
79175
79176         (free_state): Move up a bit.
79177
79178         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
79179         #define to be empty.
79180         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
79181         when that is what is intended.
79182         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
79183         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
79184         (MAX): New macro.
79185         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
79186         All uses changed back to re_malloc, etc.  It's now the caller's
79187         responsibility to check for overflow; all callers changed.
79188         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
79189         (re_x2nrealloc): Remove.
79190         (free_state): Remove decl.
79191
79192         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
79193         (re_set_registers, re_exec):
79194         Use K&R-style defn.
79195
79196         2006-01-31  Roland McGrath  <roland@redhat.com>
79197
79198         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
79199         Reported by Mike Frysinger <vapier@gentoo.org>.
79200
79201         2006-01-15  Andreas Jaeger  <aj@suse.de>
79202
79203         [BZ #1950]
79204         * lib/regex_internal.c (re_string_reconstruct): Adjust for
79205         build_wcs_upper_buffer change.
79206         (build_wcs_upper_buffer): Change return type.
79207
79208         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
79209
79210         * lib/regex_internal.h: Include <stdint.h> if available.
79211
79212         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
79213
79214         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
79215
79216         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
79217
79218         * lib/regcomp.c: Adjust for changed secondary hash function.
79219
79220         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
79221
79222         * lib/regex.h: Pretty printing.
79223         Clean up namespace a bit.
79224
79225         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
79226
79227         * lib/regexec.c (update_cur_sifted_state, check_arrival,
79228         check_arrival_add_next_nodes): Avoid using uninitialized variable.
79229
79230         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
79231                     Ulrich Drepper  <drepper@redhat.com>
79232
79233         [BZ #1302]
79234         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
79235         changed.
79236         (bitset_word_t): Renamed from bitset_word.  All uses changed.
79237
79238         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
79239
79240         [BZ #281]
79241         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
79242         * lib/regcomp.c: Remove unnecessary uses of
79243         unsigned RE_TRANSLATE_TYPE.
79244         * lib/regex_internal.h: Likewise.
79245         * lib/regex_internal.c: Likewise.
79246         * lib/regexec.c: Likewise.
79247         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
79248
79249         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
79250
79251         * lib/regexec.c (find_recover_state): Remove unnecessary
79252         initialization.
79253         (transit_state_bkref): Make DFA a const pointer.
79254         (get_subexp): Likewise.
79255         (check_arrival): Likewise.
79256         (update_cur_sifted_state): Likewise.
79257         (re_search_internal): Likewise.
79258         (prune_impossible_nodes): Likewise.
79259         (acquire_init_state_context): Likewise.
79260         (proceed_next_node): Likewise.
79261         (set_regs): Likewise.
79262         (free_fail_stack_return): Likewise.
79263         (check_arrival_expand_ecl): Mark DFA parameter as const.
79264         (check_arrival_expand_ecl_sub): Likewise.
79265         (check_subexp_limits): Likewise.
79266         (sub_epsilon_src_nodes):  Likewise.
79267         (add_epsilon_src_nodes):  Likewise.
79268         (merge_state_array): Likewise.
79269         (update_regs): Likewise.
79270         (build_trtable): Likewise.
79271         (sift_states_backward): Mark MCTX parameter as const.
79272         (build_sifted_states): Likewise.
79273         (update_cur_sifted_state): Likewise.
79274         (sift_states_mkref): Likewise.
79275         (check_arrival_expand_ecl): Mark eclosure as const.
79276         (check_dst_limits_calc_pos_1): Likewise.
79277         * lib/regex_internal.h (re_match_context_t): Make dfa a const
79278         pointer.
79279
79280         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
79281
79282         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
79283         (transit_state_sb): Likewise.
79284         (transit_state_mb): Likewise.
79285         (sift_states_iter_mb): Likewise.
79286         (check_arrival_add_next_nodes): Likewise.
79287         (check_node_accept_bytes): Change first parameter to pointer-to-const.
79288         [_LIBC] (re_search_2_stub): Use mempcpy.
79289
79290         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
79291         mbrtowc for very simple UTF-8 case.
79292
79293         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
79294         a pointer-to-const.
79295         (re_acquire_state_context): Likewise.
79296         * lib/regex_internal.h: Adjust prototypes.
79297
79298         * lib/regex.c: Prevent using C++ compilers.
79299
79300         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
79301         (re_acquire_state_context): Likewise.
79302
79303 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
79304
79305         * modules/regex (Depends-on): Add ssize_t.
79306
79307 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
79308
79309         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
79310         translation table.
79311
79312 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
79313
79314         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
79315
79316 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
79317             Bruno Haible  <bruno@clisp.org>
79318
79319         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
79320         <sys/types.h> and <inttypes.h>.
79321
79322 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79323
79324         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
79325         `__error_t_defined', so argp.h will not typedef the former.
79326
79327 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
79328
79329         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
79330         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
79331         glibc names.  Even if glibc is changed to conform to POSIX, the
79332         traditional names will be available anyway, since regex depends on
79333         the extensions module.  Also, fix a longstanding typo in the
79334         implementation of Spencer ERE test #75 from grep 2.3.  Problems
79335         reported by Emanuele Giaquinta.  Also, change sense of cached
79336         variable, so that the message makes sense.
79337
79338 2006-03-24  Simon Josefsson  <jas@extundo.com>
79339
79340         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
79341         including some doc fixes.
79342         (base64_encode_alloc): Fix +1 bug on allocation failures.
79343
79344 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79345
79346         * lib/base64.c (base64_encode): Do not read past end of array with
79347         unsanitized input on systems with CHAR_BIT > 8.
79348
79349 2006-03-24  Eric Blake  <ebb9@byu.net>
79350
79351         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
79352
79353 2006-03-22  Karl Berry  <karl@gnu.org>
79354
79355         * config/srclist.txt (*setenv.[ch]): get from coreutils.
79356         * config/srclistvars.sh (COREUTILS): new var.
79357
79358 2006-03-17  Jim Meyering  <jim@meyering.net>
79359
79360         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
79361         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
79362
79363 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
79364
79365         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
79366         no longer needs it.  Instead, check that regoff_t is as least
79367         as wide as ptrdiff_t.
79368
79369         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
79370         so that our regex.h stays compatible with the installed regex.
79371         This is helpful for installers who configure --without-included-regex.
79372         Problem reported by Emanuele Giaquinta.
79373
79374 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
79375
79376         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
79377         Typedef to long int, not to off_, as POSIX will likely change
79378         in that direction.
79379
79380 2006-03-15  Eric Blake  <ebb9@byu.net>
79381
79382         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
79383
79384 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
79385
79386         * lib/argp-help.c (validate_uparams): Fix typo
79387         * lib/argp-parse.c (argp_default_options): Consistently begin help
79388         messages with a lowercase letter.
79389
79390 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
79391
79392         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
79393         overrun buffers and shouldn't be used (much as gets shouldn't be
79394         used).
79395         * lib/time_r.c (asctime_r, ctime_r): Likewise.
79396
79397 2006-03-08  Simon Josefsson  <jas@extundo.com>
79398
79399         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
79400         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79401
79402 2006-03-08  Simon Josefsson  <jas@extundo.com>
79403
79404         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
79405         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79406
79407 2006-03-08  Simon Josefsson  <jas@extundo.com>
79408
79409         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
79410         signal that configure disabled the device.
79411
79412 2006-03-08  Simon Josefsson  <jas@extundo.com>
79413
79414         * build-aux/maint.mk: Fix refresh-po, to handle no translated
79415         languages.
79416
79417 2006-03-07  Simon Josefsson  <jas@extundo.com>
79418
79419         * modules/getopt (Depends-on): Add unistd.
79420
79421         * modules/unistd: New file.
79422
79423 2006-03-07  Simon Josefsson  <jas@extundo.com>
79424
79425         * modules/gc-random: New file.
79426
79427 2006-03-07  Simon Josefsson  <jas@extundo.com>
79428
79429         * m4/unistd_h.m4: New file.
79430
79431 2006-03-07  Simon Josefsson  <jas@extundo.com>
79432
79433         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
79434         test to be side-effect free by storing the result in the cache
79435         variable gl_cv_lib_readline, and moving the assignment of
79436         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
79437         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79438
79439 2006-03-07  Simon Josefsson  <jas@extundo.com>
79440
79441         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
79442         error on missing devices (the functions will return an error).
79443
79444         * m4/gc.m4: Move random stuff to gc-random.m4
79445
79446 2006-03-07  Simon Josefsson  <jas@extundo.com>
79447
79448         * lib/unistd_.h: New file.
79449
79450 2006-03-07  Simon Josefsson  <jas@extundo.com>
79451
79452         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
79453
79454 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
79455
79456         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
79457         Problem reported by Juan Manuel Guerrero.
79458
79459 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
79460
79461         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
79462         the unistd module.
79463         * lib/getlogin_r.c: Likewise.
79464         * lib/getlogin_r.h: Likewise.
79465         * lib/glob.c: Likewise.
79466         * lib/pagealign_alloc.c: Likewise.
79467         * lib/unistd_.h: Remove; no longer needed.
79468
79469 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
79470
79471         * MODULES.html.sh (Support for systems lacking POSIX:2001):
79472         Add unistd.
79473         * modules/c-stack (Depends-on): Add unistd.
79474         * modules/getlogin_r: Likewise.
79475         * modules/glob: Likewise.
79476         * modules/pagealign_alloc: Likewise.
79477         * modules/unistd (Files): Remove lib/unistd_.h.
79478         (EXTRA_DIST): Remove.
79479         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
79480         need unistd_.h.
79481         (MOSTLYCLEANFILES): Remove unistd.h-t.
79482
79483 2006-03-03  Simon Josefsson  <jas@extundo.com>
79484
79485         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
79486
79487 2006-03-03  Simon Josefsson  <jas@extundo.com>
79488
79489         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
79490         libidn and bison.
79491
79492 2006-03-03  Simon Josefsson  <jas@extundo.com>
79493
79494         * build-aux/maint.mk: Add indent target.
79495
79496 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
79497
79498         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
79499         our replacement poll.h in any case, to avoid a differing
79500         declaration from a system header.  Seen on AIX.
79501
79502 2006-03-01  Simon Josefsson  <jas@extundo.com>
79503
79504         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
79505         <kasal@ucw.cz>.
79506
79507 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
79508
79509         * modules/gettime (Depends-on): Add extensions module.
79510         * modules/nanosleep (Depends-on): Likewise.
79511         * modules/settime (Depends-on): Likewise.
79512
79513 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
79514
79515         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
79516         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
79517         pedantically.
79518         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
79519         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
79520
79521         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
79522         not "==".  Reported by Ralf Wildenhues.
79523
79524 2006-03-01  Karl Berry  <karl@gnu.org>
79525
79526         * doc/Copyright/request-*: new files, synced from gnuorg.
79527
79528 2006-03-01  Karl Berry  <karl@gnu.org>
79529
79530         * config/srclist.txt (Copyright/*): new entries.
79531
79532 2006-02-28  Simon Josefsson  <jas@extundo.com>
79533
79534         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
79535
79536 2006-02-27  Simon Josefsson  <jas@extundo.com>
79537
79538         * lib/base64.h: Indent #define's.  From Jim Meyering
79539         <jim@meyering.net>.
79540
79541 2006-02-27  Jim Meyering  <jim@meyering.net>
79542
79543         Revert the change of 2006-02-24, so these files can continue
79544         to be sync'd from gettext.
79545         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
79546         of `config.h'.
79547
79548 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
79549
79550         * modules/intprops: New file.
79551         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
79552         Add intprops.
79553         * modules/getloadavg (Files): Remove lib/intprops.h.
79554         (Depends-on): Add intprops.
79555         * modules/human: Likewise.
79556         * modules/inttostr: Likewise.
79557         * modules/openat: Likewise.
79558         * modules/sig2str: Likewise.
79559         * modules/userspec: Likewise.
79560         * modules/utimecmp: Likewise.
79561         * modules/xnanosleep: Likewise.
79562         * modules/xstrtol: Likewise.
79563
79564 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
79565
79566         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
79567         * modules/lock-tests (TESTS): Use $(EXEEXT).
79568         * modules/tls-tests: Likewise.
79569         * modules/argp-tests: Likewise.
79570         (check_PROGRAMS): New var, replacing...
79571         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
79572
79573 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79574
79575         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
79576         `config.h'.
79577
79578 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
79579
79580         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
79581
79582 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79583
79584         Sync from coreutils.
79585         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
79586         gl_CHDIR_SAFER.
79587
79588 2006-02-22  Jim Meyering  <jim@meyering.net>
79589
79590         Sync from coreutils.
79591         * m4/chdir-safer.m4: New file.
79592
79593 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
79594
79595         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
79596         AT_FDCWD exceeds INT_MAX.
79597         * lib/openat.h (AT_FDCWD): Likewise.
79598
79599 2006-02-17  Eric Blake  <address@hidden>
79600
79601         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
79602
79603 2006-02-16  Simon Josefsson  <jas@extundo.com>
79604
79605         * modules/getaddrinfo (Depends-on): Add sys_socket.
79606
79607 2006-02-15  Simon Josefsson  <jas@extundo.com>
79608
79609         * build-aux/maint.mk: Add dsyntax-check rule.
79610
79611 2006-02-15  Eric Blake  <ebb9@byu.net>
79612
79613         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
79614         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
79615         'present but cannot compile' warnings on cygwin.
79616         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
79617         use ws2tcpip.h if sys/socket.h works.
79618         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
79619         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
79620
79621 2006-02-14  Simon Josefsson  <jas@extundo.com>
79622
79623         * modules/maintainer-makefile (Files): Rename.
79624
79625         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
79626         and (the local) Makefile.cfg to maint-cfg.mk.
79627
79628         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
79629         to the latter.
79630
79631         * modules/maintainer-makefile: New module.
79632
79633         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
79634         severaly stripped to make it possible to build it up from scratch
79635         with reliable tests.
79636
79637         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
79638         fixes to permit overriding the default actions when configure and
79639         makefile are not available.
79640
79641 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
79642
79643         Sync from coreutils.
79644         * modules/lstat (Depends-on): Don't depend on xalloc.
79645         (License): Change from GPL to LGPL, since this is now simply a
79646         replacement for a libc function.
79647
79648 2006-02-14  Jim Meyering  <jim@meyering.net>
79649
79650         Sync from coreutils.
79651
79652         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
79653         failure on deficient systems, and simplify gnulib lgpl dependencies.
79654         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
79655         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
79656
79657         * lib/xalloc-die.c: Remove unused definition of N_.
79658
79659 2006-02-14  Jim Meyering  <jim@meyering.net>
79660
79661         Sync from coreutils.
79662         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
79663         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
79664         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
79665         double-quote uses of that variable, to accommodate the rare case in
79666         which getmntent is available in none of the libraries checked.  This
79667         happens at least on FreeBSD 5.0.
79668
79669 2006-02-13  Simon Josefsson  <jas@extundo.com>
79670
79671         * gnulib-tool (Usage): Fix --import, from
79672         karl@freefriends.org (Karl Berry).
79673
79674 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
79675
79676         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
79677
79678 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
79679
79680         * lib/argp-namefrob.h: Restore changes accidentally lost during the
79681         "autoupdate" on 2005-12-12.
79682
79683 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
79684
79685         * modules/closeout (Depends-on): Remove atexit.
79686
79687 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
79688
79689         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
79690         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
79691
79692 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
79693
79694         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
79695         __EXTENSIONS__ if this causes compilation to fail.  Problem
79696         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
79697         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
79698
79699 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
79700
79701         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
79702         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
79703         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
79704         All uses changed.
79705
79706 2006-01-26  Simon Josefsson  <jas@extundo.com>
79707
79708         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
79709         prototype is visible on mingw32.
79710
79711         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
79712         for mingw32.
79713
79714         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
79715         mingw32).
79716
79717 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
79718
79719         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
79720         attempt to open for write; this always fails, at least on POSIX
79721         hosts.  This reinstates the 2006-01-09 change, which was
79722         inadvertently removed.
79723
79724 2006-01-26  Bruno Haible  <bruno@clisp.org>
79725
79726         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
79727         Reported by Paul Eggert.
79728
79729 2006-01-26  Bruno Haible  <bruno@clisp.org>
79730             Paul Eggert  <eggert@cs.ucla.edu>
79731
79732         * lib/stdbool_.h (_Bool)
79733         [(! (defined __cplusplus || defined __BEOS__)
79734           && !defined __GNUC__
79735           && !(defined __HP_cc || defined __xlc__
79736                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
79737                || defined __sgi))]:
79738         #define to signed char in these cases too; this simplifies
79739         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
79740         etc., separately) and makes it more conservative.
79741
79742 2006-01-25  Simon Josefsson  <jas@extundo.com>
79743
79744         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
79745         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
79746         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
79747
79748 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
79749
79750         * lib/argp-namefrob.h: Bugfix. Remove stray #
79751
79752 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
79753
79754         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
79755         so that we test the test.
79756         Check for yet another HP-UX cc bug involving *bool |= bool.
79757
79758 2006-01-25  Karl Berry  <karl@gnu.org>
79759
79760         * config/srclist.txt (vasnprintf.c): sync lost.
79761
79762 2006-01-25  Jim Meyering  <jim@meyering.net>
79763
79764         Sync from the stable (b5) branch of coreutils:
79765
79766         * lib/fts.c (fts_children): Don't let close() clobber errno from
79767         failed fchdir().
79768
79769         * lib/fts.c (fts_stat): When following a symlink-to-directory,
79770         don't necessarily interpret stat-fails+lstat-succeeds as indicating
79771         a dangling symlink.  That can also happen at least for ELOOP.
79772         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
79773         FYI, this bug predates the inclusion of fts.c in coreutils.
79774
79775         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
79776         in their own block, so pre-c99 compilers don't object.
79777
79778         Avoid the double-free (first in fts_read, second in fts_close) that
79779         would occur when an `active' directory is made inaccessible (e.g.,
79780         via chmod a-x) during a traversal.
79781         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
79782         before returning.  Reproduce this failure by
79783         mkdir -p a/b; cd a; chmod a-x . b
79784         Reported by Stavros Passas.
79785
79786 2006-01-25  Jim Meyering  <jim@meyering.net>
79787
79788         * lib/fileblocks.c: Remove more useless parentheses.
79789         * lib/readutmp.h: Likewise.
79790
79791 2006-01-25  Bruno Haible  <bruno@clisp.org>
79792
79793         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
79794         warnings.
79795         Reported by Paul Eggert.
79796
79797 2006-01-25  Bruno Haible  <bruno@clisp.org>
79798
79799         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
79800         rid of a trap command. For Solaris sh.
79801         Reported by Mark D. Baushke <mdb@gnu.org>.
79802
79803 2006-01-24  Simon Josefsson  <jas@extundo.com>
79804
79805         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
79806         Bruno.
79807
79808 2006-01-24  Karl Berry  <karl@gnu.org>
79809
79810         * config/srclist.txt (argp-namefrob.h): sync lost.
79811
79812 2006-01-24  Jim Meyering  <jim@meyering.net>
79813
79814         * modules/openat (Files): Add lib/intprops.h.
79815         From Mark D. Baushke.
79816
79817 2006-01-24  Jim Meyering  <jim@meyering.net>
79818
79819         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
79820         Reported by Mark D. Baushke.
79821
79822 2006-01-24  Jim Meyering  <jim@meyering.net>
79823
79824         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
79825
79826 2006-01-24  Bruno Haible  <bruno@clisp.org>
79827
79828         * modules/strnlen (Maintainer): Change from glibc to all.
79829
79830 2006-01-24  Bruno Haible  <bruno@clisp.org>
79831
79832         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
79833         Patch by Paul Eggert.
79834
79835 2006-01-24  Bruno Haible  <bruno@clisp.org>
79836
79837         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
79838         already has it.
79839         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
79840         2005-11-26.
79841
79842         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
79843         'signed char' to avoid problems with the built-in _Bool type.
79844         Reported by Paul Eggert on 2005-11-26.
79845
79846 2006-01-24  Bruno Haible  <bruno@clisp.org>
79847
79848         * gnulib-tool (func_import): Avoid constructing complicated sed
79849         expressions inside backquote.
79850         Report and solution by Mark D. Baushke <mdb@gnu.org>.
79851
79852 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
79853
79854         These changes imported from libc.
79855         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
79856         test and two separate function calls.
79857         * lib/strndup.c (__strndup): Add libc_hidden_def.
79858
79859 2006-01-23  Simon Josefsson  <jas@extundo.com>
79860
79861         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
79862         Remove the test_*_SOURCES variable: automake infers it by default.
79863         * modules/tls-tests: Likewise.
79864
79865 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
79866
79867         Work around porting bugs reported by Dieter in
79868         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
79869         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
79870         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
79871         Include "getopt.h" first, to check interface.
79872         (getenv): Declare only if defined HAVE_DECL_GETENV &&
79873         !HAVE_DECL_GETENV.
79874         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
79875         (__strndup): Revert to K&R-style function dfns, the glibc style.
79876         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
79877         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
79878         Include strnlen.h first, to get prototype properly.
79879         (strnlen): Renamed from __strnlen.
79880         Remove weak alias.
79881
79882 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
79883
79884         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
79885
79886 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
79887
79888         * config/srclist.txt: Adjust to reflect glibc reorganization.
79889         This affects only comments.
79890
79891 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
79892
79893          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
79894          Reported by Bruce Korb <bkorb@gnu.org>.
79895
79896 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
79897
79898         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
79899         to pacify gcc -Wswitch-default.
79900
79901 2006-01-22  Bruno Haible  <bruno@clisp.org>
79902
79903         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
79904         temporary buffer for sprintf, take into account the precision also
79905         for 'd', 'i', 'u', 'o', 'x', 'X'.
79906
79907 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
79908
79909         * modules/argp-tests: New module
79910         * tests/test-argp.c: New file
79911         * tests/test-argp-2.sh: New file
79912
79913 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
79914
79915         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
79916         (__argp_base_name): Removed
79917         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
79918         typo.
79919         (__argp_base_name): Provide macro definition or extern declaration
79920         depending on the configuration
79921
79922 2006-01-20  Simon Josefsson  <jas@extundo.com>
79923
79924         * modules/inet_ntop (Depends-on): Depend on sys_socket.
79925
79926 2006-01-20  Simon Josefsson  <jas@extundo.com>
79927
79928         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
79929
79930 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
79931
79932         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
79933         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
79934         Suggested by Bruno Haible.
79935
79936 2006-01-20  Karl Berry  <karl@gnu.org>
79937
79938         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
79939         until changes propagate, I guess.
79940
79941 2006-01-19  Simon Josefsson  <jas@extundo.com>
79942
79943         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
79944
79945 2006-01-19  Simon Josefsson  <jas@extundo.com>
79946
79947         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
79948
79949 2006-01-19  Simon Josefsson  <jas@extundo.com>
79950
79951         * gnulib-tool: Set check_PROGRAMS.
79952
79953         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
79954         modules/des-tests, modules/gc-arcfour-tests,
79955         modules/gc-arctwo-tests, modules/gc-des-tests,
79956         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
79957         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
79958         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
79959         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
79960         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
79961         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
79962         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
79963         test_*_SOURCES.
79964
79965 2006-01-18  Simon Josefsson  <jas@extundo.com>
79966
79967         * modules/socklen (Depends-on): Depend on sys_socket.
79968
79969 2006-01-18  Simon Josefsson  <jas@extundo.com>
79970
79971         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
79972         modules/des-tests, modules/gc-arcfour-tests,
79973         modules/gc-arctwo-tests, modules/gc-des-tests,
79974         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
79975         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
79976         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
79977         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
79978         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
79979         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
79980         $(EXEEXT) to automake TESTS variable, for mingw32.
79981
79982 2006-01-17  Simon Josefsson  <jas@extundo.com>
79983
79984         * modules/socklen (Include): Need sys/socket.h.
79985
79986 2006-01-17  Bruno Haible  <bruno@clisp.org>
79987
79988         * modules/ssize_t (Include): Add <sys/types.h>.
79989
79990 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
79991
79992         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
79993         it's not portable and it doesn't work with cross-compiles.
79994         Problem reported by Bruno Haible.  Fix missing-$ typo in
79995         'test "gl_cv_ignore_unused_libraries" ...' that prevented
79996         -zignore from being used with Sun's C compiler.
79997
79998 2006-01-12  Simon Josefsson  <jas@extundo.com>
79999
80000         * lib/base64.c: Fix warning, reported by Bruno Haible
80001         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
80002
80003 2006-01-12  Bruno Haible  <bruno@clisp.org>
80004
80005         * modules/ldd: New file.
80006         * build-aux/ldd.sh.in: New file.
80007         * MODULES.html.sh (Support for building libraries and executables): Add
80008         ldd.
80009
80010 2006-01-12  Bruno Haible  <bruno@clisp.org>
80011
80012         * m4/ldd.m4: New file.
80013
80014 2006-01-12  Bruno Haible  <bruno@clisp.org>
80015
80016         * gnulib-tool (func_import, func_create_testdir): Don't go into an
80017         endless loop while replacing $auxdir with build-aux.
80018
80019 2006-01-11  Simon Josefsson  <jas@extundo.com>
80020
80021         * lib/stdint_.h (SIZE_MAX): Add missing (.
80022
80023 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
80024
80025         Sync from coreutils.
80026         * lib/md5.c: Fix commentary typos.
80027         (alignof, UNALIGNED_P): No need for a GCC-specific version.
80028         * lib/md5.h (__attribute__): Remove; unused.
80029         * lib/sha1.c: Fix commentary to match md5 better.
80030         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
80031         so that we don't need to worry about alignment.  All uses changed.
80032         This merges the 2005-10-28 md5 change into sha1.
80033
80034 2006-01-11  Jim Meyering  <jim@meyering.net>
80035
80036         Sync from coreutils.
80037         * lib/md5.c (OP): Fix spacing.
80038
80039 2006-01-11  Bruno Haible  <bruno@clisp.org>
80040
80041         Ensure automatic ordering between gl_LOCK and gl_ARGP.
80042         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
80043         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
80044
80045 2006-01-11  Bruno Haible  <bruno@clisp.org>
80046
80047         Ensure automatic ordering between gl_LOCK and gl_ARGP.
80048         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
80049         the "early" section as well.
80050
80051 2006-01-11  Bruno Haible  <bruno@clisp.org>
80052
80053         Avoid "ar: no archive members specified" error on MacOS X.
80054         * gnulib-tool (func_modules_add_dummy): New function.
80055         (func_import, func_create_testdir): Invoke it.
80056
80057 2006-01-11  Bruno Haible  <bruno@clisp.org>
80058
80059         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
80060         with $auxdir in AC_CONFIG_FILES statements.
80061
80062 2006-01-11  Bruno Haible  <bruno@clisp.org>
80063
80064         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
80065         Initialize also noinst_HEADERS to empty.
80066
80067 2006-01-11  Bruno Haible  <bruno@clisp.org>
80068
80069         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
80070         variables.
80071         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
80072         autoreconf.
80073
80074 2006-01-11  Bruno Haible  <bruno@clisp.org>
80075
80076         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
80077         overridable by the user.
80078         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
80079
80080 2006-01-10  Simon Josefsson  <jas@extundo.com>
80081
80082         * modules/sys_socket: New file.
80083
80084 2006-01-10  Simon Josefsson  <jas@extundo.com>
80085
80086         * m4/sys_socket_h.m4: New file.
80087
80088 2006-01-10  Simon Josefsson  <jas@extundo.com>
80089
80090         * lib/socket_.h: New file.
80091
80092 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
80093
80094         * modules/readutmp (Maintainer): Add myself.
80095
80096 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
80097
80098         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
80099         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
80100         People who are still concerned with buggy memcmp implementations
80101         can invoke gl_FUNC_MEMCMP themselves.
80102
80103 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
80104
80105         * lib/regex_internal.h (BITSET_WORD_BITS):
80106         Work around a bug in 64-bit PGC (before version 6.1-2), where the
80107         preprocessor mishandles large unsigned values as if they were signed.
80108         Problem reported by Claudio Fontana in
80109         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
80110
80111 2006-01-10  Jim Meyering  <jim@meyering.net>
80112
80113         Avoid the double-free (first in fts_read, second in fts_close) that
80114         would occur when an `active' directory is made inaccessible (e.g.,
80115         via chmod a-x) during a traversal.
80116         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
80117         before returning.  Reproduce this failure by
80118         mkdir -p a/b; cd a; chmod a-x . b
80119         Reported by Stavros Passas.
80120
80121         Sync from coreutils.
80122         * lib/sha1.c: Tweak grammar in a comment.
80123
80124 2006-01-10  Jim Meyering  <jim@meyering.net>
80125
80126         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
80127         Patch by Joerg Sonnenberger.
80128
80129 2006-01-10  Bruno Haible  <bruno@clisp.org>
80130
80131         * modules/readutmp: Depend on module free.
80132         * modules/strtok_r: Depend on module restrict.
80133
80134 2006-01-10  Bruno Haible  <bruno@clisp.org>
80135
80136         * modules/gettext (configure.ac): Add an invocation of
80137         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
80138
80139 2006-01-10  Bruno Haible  <bruno@clisp.org>
80140
80141         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
80142         Reported by Werner Lemberg <wl@gnu.org>.
80143
80144 2006-01-10  Bruno Haible  <bruno@clisp.org>
80145
80146         * lib/localcharset.c: Update from GNU gettext.
80147
80148 2006-01-10  Bruno Haible  <bruno@clisp.org>
80149
80150         * lib/argp.h (__const): Remove macro. Use const instead.
80151         * lib/argp-fmtstream.h (__const): Likewise.
80152         * lib/glob_.h (__const): Remove macro.
80153         * lib/glob-libc.h: Use const instead of __const.
80154
80155 2006-01-10  Bruno Haible  <bruno@clisp.org>
80156
80157         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
80158         variable.
80159         Needed to avoid an automake error regarding the 'gettext' module.
80160
80161 2006-01-09  Simon Josefsson  <jas@extundo.com>
80162
80163         * modules/inet_ntop (Depends-on): Add restrict.
80164
80165 2006-01-09  Simon Josefsson  <jas@extundo.com>
80166
80167         * modules/gc-rijndael-tests (License): Put under LGPL.
80168
80169         * modules/gc-des-tests (License): Likewise.
80170
80171         * modules/gc-arcfour-tests (License): Likewise.
80172
80173         * modules/gc-arctwo-tests (License): Likewise.
80174
80175         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
80176
80177         * modules/gc-hmac-sha1-tests (Files): Likewise.
80178
80179         * modules/gc-hmac-md5-tests (License): Likewise.
80180
80181         * modules/gc-sha1-tests (License): Likewise.
80182
80183         * modules/gc-md5-tests (License): Likewise.
80184
80185         * modules/gc-md4-tests (License): Likewise.
80186
80187         * modules/gc-md2-tests (License): Likewise.
80188
80189         * modules/gc-tests (License): Likewise.
80190
80191         * modules/des-tests (License): Likewise.
80192
80193         * modules/md4-tests (License): Likewise.
80194
80195         * modules/md2-tests (License): Likewise.
80196
80197 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
80198
80199         Sync from coreutils:
80200
80201         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
80202         * modules/lib-ignore: New file.
80203         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
80204         chdir-safer.m4, lchmod.m4.
80205         * modules/openat: Add mkdirat.c, openat-priv.h.
80206
80207 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
80208
80209         Sync from coreutils.
80210         * m4/lib-ignore.m4: New file.
80211         * m4/lchmod.m4: New file.
80212
80213 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
80214
80215         Sync from coreutils.
80216         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
80217         for write access: POSIX says that must fail.
80218         * lib/fts.c (diropen): Likewise.
80219         * lib/save-cwd.c (save_cwd): Likewise.
80220         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
80221         well, for minor improvements on hosts that lack O_DIRECTORY.
80222         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
80223         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
80224         Fall back on chown if open failed with EACCES.
80225
80226         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
80227         Report an error at compile-time if only a 1-second nominal clock
80228         resolution is found.
80229
80230         * lib/lchmod.h: New file.
80231         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
80232         (make_dir_parents): Use lchown rather than chown, and
80233         lchmod rather than chmod.
80234
80235         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
80236         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
80237         "proc" reported by n0dalus.
80238
80239         * lib/mountlist.c: Include <limits.h>.
80240         (dev_from_mount_options)
80241         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
80242         New function.  It no longer assumes "dev=" has the System V meaning
80243         on Linux (since it doesn't).  It also parses "dev=" more carefully.
80244         (read_file_system_list)
80245         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
80246         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
80247         dev= in that case.
80248
80249         * lib/posixtm.h (PDS_PRE_2000): New macro.
80250         * lib/posixtm.c (year): Arg is now syntax_bits rather than
80251         allow_century.  All usages changed.  Reject dates outside the range
80252         1969-1999 if PDS_PRE_2000 is used.
80253
80254 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
80255
80256         Sync from coreutils.
80257         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
80258         (Time of day items): Mention the possibility of leap seconds.
80259         Problem reported by Dr. David Alan Gilbert.
80260
80261 2006-01-09  Jim Meyering  <jim@meyering.net>
80262
80263         Sync from coreutils.
80264
80265         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
80266
80267         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
80268
80269         * lib/modechange.c (mode_compile): Reject an invalid mode string
80270         that starts with an octal digit.  From Andreas Gruenbacher.
80271
80272         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
80273         and dup to open_safer and dup_safer, respectively.
80274         (openat_permissive): Fix typo in comment.
80275
80276         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
80277         "gettext.h"; either no longer needed or are guaranteed by openat.h.
80278         (_): Remove; no longer needed.
80279         (openat): Renamed from rpl_openat; no need for rpl_openat
80280         since openat.h renames openat for us.
80281         Replace most of the body with a call to openat_permissive,
80282         to avoid duplicate code.
80283         Port to (probably hypothetical) environments were mode_t is
80284         wider than int.
80285         (openat_permissive): Require mode arg, so that we can check
80286         types better.  Put it just after flags.  Change cwd failure
80287         indicator from pointer-to-bool to pointer-to-errno-value.
80288         All callers changed.
80289         Invoke openat_save_fail and/or openat_restore_fail if
80290         cwd_errno is null, so that openat can call us.
80291         (openat_permissive, fdopendir, fstatat, unlinkat):
80292         Simplify errno handling to avoid some duplicate code,
80293         as it's OK to set errno on success.
80294         * lib/openat.h: Revamp code so that function macros depend on
80295         __OPENAT_PREFIX only, not also on AT_FDCWD.
80296         (openat_ro): Remove.  Caller changed to use openat_permissive.
80297         (openat_permissive): Now a macro, if not a function.
80298         (openat_restore_fail, openat_save_fail): Now always functions,
80299         since mkdirat needs them even if __OPENAT_PREFIX is defined.
80300
80301         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
80302         and openat.c.
80303         * lib/mkdirat.c: Include openat-priv.h.
80304         Remove definitions of macros defined therein.
80305         * lib/openat.c: Likewise.
80306
80307         * lib/mkdirat.c (mkdirat): New file and function.
80308         * lib/openat.h (mkdirat): Declare.
80309
80310         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
80311
80312         * lib/openat.h (openat_permissive): Declare.
80313         (openat_ro): Define.
80314
80315         * lib/openat.c (EXPECTED_ERRNO): New macro.
80316         (openat_permissive): New function -- used in remove.c rewrite.
80317         (all functions): Set errno just before returning, only if there
80318         was an actual failure.
80319         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
80320
80321         Emulate openat-family functions using Linux's procfs, if possible.
80322         Idea and some code based on Ulrich Drepper's glibc changes.
80323
80324         * lib/openat.c: (BUILD_PROC_NAME): New macro.
80325         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
80326         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
80327         before falling back on save_cwd and restore_cwd.
80328         (fdopendir, fstatat, unlinkat): Likewise.
80329
80330         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
80331         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
80332
80333         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
80334         as second argument to va_arg.  Otherwise, some versions of gcc
80335         warn that `if this code is reached, the program will abort'.
80336
80337 2006-01-09  Jim Meyering  <jim@meyering.net>
80338
80339         Sync from coreutils.
80340         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
80341         Require openat-priv.h.
80342
80343 2006-01-09  Bruno Haible  <bruno@clisp.org>
80344
80345         * modules/strnlen (Include): Use strnlen.h.
80346
80347 2006-01-09  Bruno Haible  <bruno@clisp.org>
80348
80349         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
80350
80351 2006-01-09  Bruno Haible  <bruno@clisp.org>
80352
80353         * lib/sysexit_.h (EX_OK): New macro.
80354         Suggested by Martin Lambers <marlam@marlam.de>.
80355
80356 2006-01-09  Bruno Haible  <bruno@clisp.org>
80357
80358         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
80359         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
80360
80361 2006-01-09  Bruno Haible  <bruno@clisp.org>
80362
80363         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
80364         numbers.
80365
80366 2006-01-09  Bruno Haible  <bruno@clisp.org>
80367
80368         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
80369         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
80370         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
80371         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
80372
80373 2006-01-09  Bruno Haible  <bruno@clisp.org>
80374
80375         * build-aux/javacomp.sh.in: New file, moved from lib/.
80376         * modules/javacomp-script (Files): Update.
80377         (configure.ac): Add AC_CONFIG_FILES invocation.
80378         (EXTRA_DIST): Remove variable.
80379
80380         * build-aux/javaexec.sh.in: New file, moved from lib/.
80381         * modules/javaexec (Files): Update.
80382         (configure.ac): Add AC_CONFIG_FILES invocation.
80383         (EXTRA_DIST): Remove javaexec.sh.in.
80384
80385         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
80386         * modules/csharpcomp-script (Files): Update.
80387         (configure.ac): Add AC_CONFIG_FILES invocation.
80388         (EXTRA_DIST): Remove variable.
80389
80390         * build-aux/csharpexec.sh.in: New file, moved from lib/.
80391         * modules/csharpexec (Files): Update.
80392         (configure.ac): Add AC_CONFIG_FILES invocation.
80393         (EXTRA_DIST): Remove csharpexec.sh.in.
80394
80395 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
80396
80397         Sync from coreutils.
80398
80399         Add POSIX ACL support
80400         * lib/acl.h (copy_acl, set_acl): Add declarations.
80401         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
80402         systems other than Linux.
80403         (chmod_or_fchmod): New function: use fchmod when possible,
80404         and chmod otherwise.
80405         (file_has_acl): Add a POSIX ACL implementation, with a
80406         Linux-specific subcase.
80407         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
80408         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
80409         acls are unsupported.
80410         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
80411         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
80412         are unsupported.
80413
80414 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
80415
80416         Sync from coreutils.
80417         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
80418
80419 2006-01-07  Bruno Haible  <bruno@clisp.org>
80420
80421         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
80422         gl_EARLY.
80423
80424 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
80425
80426         * lib/strftime.c (tzname): Don't declare if it is already #defined.
80427         Problem reported for Mingw by Mark Junker.
80428
80429 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
80430
80431         * README: Gnulib normally doesn't generate a tarball.
80432
80433 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
80434
80435         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
80436         long int, not int, for nanosecond counts, so that people who are
80437         used to POSIX struct timespec won't be surprised.  Reported by Jim
80438         Meyering.
80439
80440 2005-12-28  Bruno Haible  <bruno@clisp.org>
80441
80442         * build-aux/config.rpath: Update from GNU gettext.
80443
80444 2005-12-16  Jim Meyering  <jim@meyering.net>
80445
80446         * modules/fprintftime: New module.
80447         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
80448
80449 2005-12-16  Jim Meyering  <jim@meyering.net>
80450
80451         * m4/fprintftime.m4: New file.
80452
80453 2005-12-16  Jim Meyering  <jim@meyering.net>
80454
80455         * lib/fprintftime.c, lib/fprintftime.h: New files.
80456
80457 2005-12-15  Simon Josefsson  <jas@extundo.com>
80458
80459         * modules/socklen (configure.ac): Fix M4 macro name, to align with
80460         new m4/socklen.m4.
80461
80462 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
80463
80464         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
80465         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
80466
80467 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
80468
80469         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
80470         * lib/argp-help.c (fill_in_uparams): Check if the constructed
80471         struct uparams is valid. Fall back to the default values if it is
80472         not.
80473
80474 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
80475
80476         * modules/argp (Files): Add argp-pin.c
80477         (Depends-on): dirname
80478         (lib_SOURCES): Add argp-pin.c
80479
80480 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
80481
80482         * m4/argp.m4:  Check if program_invocation_name and
80483         program_invocation_short_name are declared and define appropriate
80484         macros if they are not.
80485
80486 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
80487
80488         * lib/argp-help.c (__argp_base_name): New function
80489         (__argp_short_program_name): Rewrite using __argp_base_name
80490         * lib/argp-namefrob.h: Define program_invocation_name and
80491         program_invocation_short_name if requested
80492         (__argp_base_name): Add prototype
80493         * lib/argp-parse.c (argp_def): Use gettext wrappers
80494         (argp_default_parser): Use __argp_base_name
80495         * lib/argp-pin.c: New file. Defines program_invocation_name and
80496         program_invocation_short_name on systems that lack them.
80497
80498 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
80499
80500         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
80501         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
80502         porting problem reported by Georg Schwarz in
80503         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
80504
80505 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
80506
80507         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
80508         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
80509         porting problem reported by Georg Schwarz in
80510         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
80511
80512 2005-12-05  Bruno Haible  <bruno@clisp.org>
80513
80514         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
80515         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
80516         Reported by Mark Junker <mjscod@gmx.de>.
80517
80518 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
80519
80520         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
80521         Use implementation from Albert Chin, with some
80522         comments/corrections by Stepan Kasal and myself.
80523
80524 2005-12-02  Bruno Haible  <bruno@clisp.org>
80525
80526         * gnulib-tool (func_import): Accept GPLed build tool modules when
80527         --lgpl is given.
80528         * modules/csharpcomp-script: New file.
80529         * modules/csharpcomp: Depend on it.
80530         * modules/javacomp-script: New file.
80531         * modules/javacomp: Depend on it.
80532         Suggested by Simon Josefsson.
80533
80534 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
80535
80536         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
80537         statement, to work around an HP-UX 10.20 compiler bug reported by
80538         Peter O'Gorman.
80539
80540 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
80541
80542         * modules/savedir (Depends-on): Add openat.
80543
80544 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
80545
80546         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
80547         (uintmax_t) [defined uintmax_t]: Do not declare.
80548         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
80549         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
80550         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
80551         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
80552         sake of portability to weird hosts that C allows (though we don't
80553         know of any practical examples).
80554
80555         * lib/savedir.h (fdsavedir): New decl.
80556         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
80557         contains most of the former guts of savedir.
80558         (savedir): Use savedirstream.
80559         Include "openat.h".
80560
80561 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
80562
80563         * modules/obstack (Files): Add m4/ulonglong.m4.
80564         Problem reported by Davide Angelocola.
80565
80566 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
80567
80568         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
80569         coreutils no longer futzes with rounding modes.
80570
80571 2005-11-14  Jim Meyering  <jim@meyering.net>
80572
80573         * lib/mkstemp-safer.c: Include <config.h>, required for possible
80574         replacement of mkstemp.
80575
80576 2005-11-10  Simon Josefsson  <jas@extundo.com>
80577
80578         * lib/readline.c: Remove EOL.
80579
80580 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
80581
80582         * modules/gethrxtime (Depends-on): Add gettime.
80583
80584 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
80585
80586         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
80587         or gettimeofday; no longer needed.
80588
80589 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
80590
80591         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
80592         time business.
80593         (gethrxtime) [! (HAVE_NANOUPTIME
80594         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
80595         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
80596         our own approximation.
80597
80598 2005-11-08  Eric Blake  <ebb9@byu.net>
80599
80600         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
80601
80602 2005-11-08  Eric Blake  <ebb9@byu.net>
80603
80604         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
80605
80606 2005-11-04  Bruno Haible  <bruno@clisp.org>
80607
80608         * gnulib-tool: Implement --update mode.
80609
80610 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
80611
80612         Fix porting problem reported by Theodoros V. Kalamatianos.
80613         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
80614         Don't assume that futimes failing means we must fail.
80615
80616 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
80617
80618         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
80619         variables to suggest the intended function of the PATH_MAX check.
80620
80621 2005-10-30  Kean Johnston  <jkj@sco.com>
80622
80623         Trivial changes to support SCO systems.
80624         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
80625         as PATH_MAX.
80626         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
80627         where __ptr is null when no I/O is pending.
80628
80629 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
80630
80631         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
80632         leave errno alone.  Problem reported by Dmitry V. Levin.
80633
80634 2005-10-28  Simon Josefsson  <jas@extundo.com>
80635
80636         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
80637         Test more.
80638
80639         * tests/test-gc-md2.c, tests/test-md2.c: New files.
80640
80641         * modules/md2, modules/md2-tests: New files.
80642
80643 2005-10-28  Simon Josefsson  <jas@extundo.com>
80644
80645         * m4/inet_ntop.m4: More tests.
80646
80647         * m4/gc-md2.m4, md2.m4: New file.
80648
80649 2005-10-28  Simon Josefsson  <jas@extundo.com>
80650
80651         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
80652         "restrict" keywords, as per POSIX.  Protect the function
80653         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
80654         Don't use K&R prototypes.  Check the sprintf return values.
80655         Re-define EAFNOSUPPORT if not present.  Indent.
80656
80657         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
80658         suggested by Bruno Haible <bruno@clisp.org>.
80659
80660         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
80661
80662         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
80663
80664         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
80665         libgcrypt).
80666
80667         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
80668
80669         * lib/md2.h, lib/md2.c: New files.
80670
80671 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
80672
80673         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
80674         errno alone.  Problem reported by Frederic Jolliton.
80675
80676 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
80677
80678         * modules/verify (License): Change from GPL to LGPL.  This is a
80679         tiny module and there are apparently near-equivalents that are
80680         under the BSD license.
80681
80682 2005-10-24  Simon Josefsson  <jas@extundo.com>
80683
80684         * modules/sha1: Relicense to LGPL.
80685
80686 2005-10-24  Simon Josefsson  <jas@extundo.com>
80687
80688         * lib/md4.h: Shrink buffer size, now that we changed the type.
80689
80690 2005-10-23  Simon Josefsson  <jas@extundo.com>
80691
80692         * gnulib-tool (func_import): Fix --tests-base.
80693
80694 2005-10-22  Simon Josefsson  <jas@extundo.com>
80695
80696         * modules/arcfour (Depends-on): Need stdint.
80697
80698 2005-10-22  Simon Josefsson  <jas@extundo.com>
80699
80700         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
80701         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
80702
80703 2005-10-22  Simon Josefsson  <jas@extundo.com>
80704
80705         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
80706         suggested by Bruno Haible <bruno@clisp.org>.
80707
80708 2005-10-22  Simon Josefsson  <jas@extundo.com>
80709
80710         * lib/crc.h: Include stddef.h, for size_t.
80711
80712 2005-10-22  Simon Josefsson  <jas@extundo.com>
80713
80714         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
80715         arcfour_context struct (simplify test vector testing in GNU
80716         Shishi).
80717
80718 2005-10-21  Simon Josefsson  <jas@extundo.com>
80719
80720         * modules/des, modules/des-tests: New files.
80721
80722         * modules/gc-des, modules/gc-des-tests: New files.
80723
80724         * tests/test-des.c, tests/test-gc-des.c: New file.
80725
80726 2005-10-21  Simon Josefsson  <jas@extundo.com>
80727
80728         * modules/arctwo, modules/arctwo-tests: New files.
80729
80730         * tests/test-arctwo.c: New file.
80731
80732         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
80733
80734         * tests/test-gc-arctwo.c: New file.
80735
80736 2005-10-21  Simon Josefsson  <jas@extundo.com>
80737
80738         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
80739         Bruno Haible <bruno@clisp.org>.
80740
80741         * m4/gc-des.m4: New file.
80742
80743 2005-10-21  Simon Josefsson  <jas@extundo.com>
80744
80745         * m4/arctwo.m4: New file.
80746
80747         * m4/gc-arctwo.m4: New file.
80748
80749 2005-10-21  Simon Josefsson  <jas@extundo.com>
80750
80751         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
80752         block.
80753
80754 2005-10-21  Simon Josefsson  <jas@extundo.com>
80755
80756         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
80757         <bruno@clisp.org>.
80758
80759         * lib/hmac-sha1.c (hmac_sha1): Likewise.
80760
80761         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
80762         Bruno Haible <bruno@clisp.org>.
80763
80764         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
80765         <bruno@clisp.org>.
80766
80767 2005-10-21  Simon Josefsson  <jas@extundo.com>
80768
80769         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
80770
80771 2005-10-21  Simon Josefsson  <jas@extundo.com>
80772
80773         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
80774
80775 2005-10-21  Simon Josefsson  <jas@extundo.com>
80776
80777         * lib/des.h, lib/des.c: New files.
80778
80779         * lib/gc-gnulib.c: Support DES.c
80780
80781 2005-10-21  Simon Josefsson  <jas@extundo.com>
80782
80783         * lib/arctwo.h, lib/arctwo.c: New files.
80784
80785         * lib/gc-gnulib.c: Support ARCTWO.
80786
80787 2005-10-21  Simon Josefsson  <jas@extundo.com>
80788
80789         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
80790         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
80791
80792 2005-10-21  Simon Josefsson  <jas@extundo.com>
80793
80794         * gnulib-tool (func_import, func_create_testdir): Define automake
80795         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
80796         Makefile.am snippet),
80797         suggested by Bruno Haible <bruno@clisp.org>.
80798
80799         * modules/gc (Makefile.am): Use it.
80800
80801 2005-10-21  Bruno Haible  <bruno@clisp.org>
80802
80803         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
80804         patch.
80805
80806 2005-10-19  Simon Josefsson  <jas@extundo.com>
80807
80808         * tests/test-gc-rijndael.c: New file.
80809
80810         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
80811
80812 2005-10-19  Simon Josefsson  <jas@extundo.com>
80813
80814         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
80815         interface too.
80816
80817 2005-10-19  Simon Josefsson  <jas@extundo.com>
80818
80819         * tests/test-gc-arcfour.c: New file.
80820
80821         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
80822
80823 2005-10-19  Simon Josefsson  <jas@extundo.com>
80824
80825         * modules/gc-md4, modules/gc-md4-tests: New file.
80826
80827         * tests/test-gc-md4.c: New file.
80828
80829 2005-10-19  Simon Josefsson  <jas@extundo.com>
80830
80831         * m4/gc-md4.m4: New file.
80832
80833 2005-10-19  Simon Josefsson  <jas@extundo.com>
80834
80835         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
80836         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
80837         <kasal@ucw.cz>.
80838
80839 2005-10-19  Simon Josefsson  <jas@extundo.com>
80840
80841         * m4/gc-arcfour.m4: New file.
80842
80843         * m4/gc-rijndael.m4: New file.
80844
80845 2005-10-19  Simon Josefsson  <jas@extundo.com>
80846
80847         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
80848
80849 2005-10-19  Simon Josefsson  <jas@extundo.com>
80850
80851         * lib/gc-gnulib.c: Support ARCFOUR.
80852
80853 2005-10-19  Simon Josefsson  <jas@extundo.com>
80854
80855         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
80856         support.
80857
80858         * lib/gc.h: Add ECB enum type.
80859
80860         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
80861
80862 2005-10-18  Simon Josefsson  <jas@extundo.com>
80863
80864         * tests/test-md5.c: New file.
80865
80866         * modules/md5-tests: New file.
80867
80868 2005-10-18  Simon Josefsson  <jas@extundo.com>
80869
80870         * tests/test-md4.c: New file.
80871
80872         * modules/md4, modules/md4-tests: New files.
80873
80874 2005-10-18  Simon Josefsson  <jas@extundo.com>
80875
80876         * m4/md4.m4: New file.
80877
80878 2005-10-18  Simon Josefsson  <jas@extundo.com>
80879
80880         * lib/md4.h, lib/md4.c: New files, based on md5.?.
80881
80882 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
80883
80884         * gnulib-tool (func_create_testdir): Omit the second check whether
80885         BUILT_SOURCES in nonempty.
80886
80887 2005-10-17  Simon Josefsson  <jas@extundo.com>
80888
80889         * tests/test-rijndael.c: New file.
80890
80891 2005-10-17  Simon Josefsson  <jas@extundo.com>
80892
80893         * modules/sha1: Depend on stdint instead of md5.
80894
80895         * modules/md5: Depend on stdint, remove uint32_t.
80896
80897 2005-10-17  Simon Josefsson  <jas@extundo.com>
80898
80899         * modules/gc-sha1-tests: New file.
80900
80901         * tests/test-gc-sha1.c: New file.
80902
80903 2005-10-17  Simon Josefsson  <jas@extundo.com>
80904
80905         * m4/md5.m4: Remove call to uint32_t.m4.
80906
80907 2005-10-17  Simon Josefsson  <jas@extundo.com>
80908
80909         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
80910
80911         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
80912         md5.h.
80913
80914         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
80915
80916         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
80917
80918 2005-10-17  Simon Josefsson  <jas@extundo.com>
80919
80920         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
80921
80922 2005-10-17  Simon Josefsson  <jas@extundo.com>
80923
80924         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
80925
80926 2005-10-17  Simon Josefsson  <jas@extundo.com>
80927
80928         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
80929
80930         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
80931
80932 2005-10-17  Bruno Haible  <bruno@clisp.org>
80933
80934         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
80935         that it can also be used in a test.
80936
80937 2005-10-16  Bruno Haible  <bruno@clisp.org>
80938
80939         * gnulib-tool (func_emit_tests_Makefile_am): Also define
80940         TESTS_ENVIRONMENT, so that individual tests can augment it.
80941
80942         * gnulib-tool (func_create_testdir): Use an intermediate target for
80943         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
80944         macros, like $(ALLOCA_H), which cannot be passed through the command
80945         line.
80946
80947 2005-10-15  Simon Josefsson  <jas@extundo.com>
80948
80949         * modules/rijndael-tests: New file.
80950
80951         * modules/rijndael: New file.
80952
80953 2005-10-15  Simon Josefsson  <jas@extundo.com>
80954
80955         * m4/rijndael.m4: New file.
80956
80957 2005-10-15  Simon Josefsson  <jas@extundo.com>
80958
80959         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
80960
80961         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
80962
80963 2005-10-14  Simon Josefsson  <jas@extundo.com>
80964
80965         * tests/test-arcfour.c: New file.
80966
80967         * modules/arcfour, modules/arcfour-tests: New files.
80968
80969 2005-10-14  Simon Josefsson  <jas@extundo.com>
80970
80971         * m4/arcfour.m4: New file.
80972
80973 2005-10-14  Simon Josefsson  <jas@extundo.com>
80974
80975         * lib/arcfour.h, lib/arcfour.c: New files.
80976
80977 2005-10-14  Roland McGrath  <roland@redhat.com>
80978
80979         Import from libc.  [BZ #1331]
80980         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
80981         macro argument.
80982         Reported by Matej Vela <vela@debian.org>.
80983
80984 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
80985
80986         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
80987         include <wchar.h>; no longer needed.
80988
80989 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
80990
80991         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
80992
80993 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
80994         and  Ulrich Drepper  <drepper@redhat.com>
80995
80996         Import from libc.
80997         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
80998         instead of inline stream orientation test and two separate
80999         function calls.  Pay no attention to USE_IN_LIBIO.
81000
81001 2005-10-13  Simon Josefsson  <jas@extundo.com>
81002
81003         * modules/gc-hmac-md5-tests: New file.
81004
81005         * tests/test-gc-hmac-sha1.c: New file.
81006
81007         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
81008
81009         * modules/gc-hmac-md5-tests: New file.
81010
81011         * tests/test-gc-md5.c: New file.
81012
81013         * modules/gc-md5-tests: New file.
81014
81015 2005-10-13  Simon Josefsson  <jas@extundo.com>
81016
81017         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
81018         Move memory allocation outside of loop.
81019
81020 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
81021
81022         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
81023         intermediate directory is in a read-only file system.  Problem
81024         reported by Eric Blake.
81025
81026 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
81027
81028         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
81029
81030 2005-10-12  Simon Josefsson  <jas@extundo.com>
81031
81032         * tests/test-hmac-sha1.c: New file.
81033
81034         * modules/hmac-sha1-tests: New file.
81035
81036         * modules/hmac-sha1: New file.
81037
81038 2005-10-12  Simon Josefsson  <jas@extundo.com>
81039
81040         * modules/gc-sha1: New file.
81041
81042 2005-10-12  Simon Josefsson  <jas@extundo.com>
81043
81044         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
81045
81046         * tests/test-gc-pbkdf2-sha1.c: New file.
81047
81048 2005-10-12  Simon Josefsson  <jas@extundo.com>
81049
81050         * modules/gc-md5, modules/gc-hmac-md5: New files.
81051
81052         * modules/gc (Files): Remove md5, memxor and hmac files.
81053
81054 2005-10-12  Simon Josefsson  <jas@extundo.com>
81055
81056         * m4/gc-pbkdf2-sha1.m4: New file.
81057
81058         * m4/gc-hmac-sha1.m4: New file.
81059
81060         * m4/gc-sha1: New file.
81061
81062         * m4/hmac-sha1.m4: New file.
81063
81064 2005-10-12  Simon Josefsson  <jas@extundo.com>
81065
81066         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
81067
81068         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
81069
81070 2005-10-12  Simon Josefsson  <jas@extundo.com>
81071
81072         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
81073         suggested by Bruno Haible <bruno@clisp.org>.
81074
81075 2005-10-12  Simon Josefsson  <jas@extundo.com>
81076
81077         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
81078
81079 2005-10-12  Simon Josefsson  <jas@extundo.com>
81080
81081         * lib/gc-pbkdf2-sha1.c: New file.
81082
81083         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
81084
81085 2005-10-12  Simon Josefsson  <jas@extundo.com>
81086
81087         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
81088
81089         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
81090
81091 2005-10-12  Simon Josefsson  <jas@extundo.com>
81092
81093         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
81094         GC_USE_HMAC_MD5, respectively.
81095
81096         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
81097         (gc_md5): Fix typo.
81098
81099         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
81100
81101         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
81102
81103         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
81104
81105 2005-10-12  Bruno Haible  <bruno@clisp.org>
81106
81107         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
81108         Reported by Stepan Kasal <kasal@ucw.cz>.
81109
81110 2005-10-11  Simon Josefsson  <jas@extundo.com>
81111
81112         * tests/test-crc.c: New file.
81113
81114         * modules/crc, modules/crc-tests: New files.
81115
81116 2005-10-11  Simon Josefsson  <jas@extundo.com>
81117
81118         * m4/crc.m4: New file.
81119
81120 2005-10-11  Simon Josefsson  <jas@extundo.com>
81121
81122         * lib/gc.h: Add gc_hash and gc_hash_buffer.
81123
81124         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
81125
81126         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
81127
81128 2005-10-11  Simon Josefsson  <jas@extundo.com>
81129
81130         * lib/crc.h, lib/crc.c: New files.
81131
81132         * lib/gc.h (gc_hash_buffer): Add doc.
81133
81134 2005-10-11  Bruno Haible  <bruno@clisp.org>
81135
81136         * modules/c-strcasestr: New file.
81137         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
81138
81139 2005-10-11  Bruno Haible  <bruno@clisp.org>
81140
81141         * modules/c-strcase: New file.
81142         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
81143
81144 2005-10-11  Bruno Haible  <bruno@clisp.org>
81145
81146         * lib/strcasecmp.c: Include limits.h.
81147         (strcasecmp): Avoid integer overflow on exotic platforms.
81148         * lib/strncasecmp.c: Include limits.h.
81149         (strncasecmp): Avoid integer overflow on exotic platforms.
81150         Reported by Paul Eggert.
81151
81152 2005-10-11  Bruno Haible  <bruno@clisp.org>
81153
81154         * lib/c-strcasestr.h: New file, from GNU gettext.
81155         * lib/c-strcasestr.c: New file, from GNU gettext.
81156
81157 2005-10-11  Bruno Haible  <bruno@clisp.org>
81158
81159         * lib/c-strcase.h: New file, from GNU gettext.
81160         * lib/c-strcasecmp.c: New file, from GNU gettext.
81161         * lib/c-strncasecmp.c: New file, from GNU gettext.
81162
81163 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
81164
81165         * modules/mempcpy (License): GPL -> LGPL.
81166         * modules/strchrnul (License): Likewise.
81167         * modules/sysexits (License): Likewise.
81168
81169 2005-10-08  Simon Josefsson  <jas@extundo.com>
81170
81171         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
81172
81173 2005-10-07  Simon Josefsson  <jas@extundo.com>
81174
81175         * m4/memxor.m4: Remove gl_C_RESTRICT call.
81176
81177 2005-10-06  Simon Josefsson  <jas@extundo.com>
81178
81179         * tests/test-hmac-md5.c: New file.
81180
81181         * modules/hmac-md5-tests: New file.
81182
81183         * modules/hmac-md5: New file.
81184
81185 2005-10-06  Simon Josefsson  <jas@extundo.com>
81186
81187         * m4/hmac-md5.m4: New file.
81188
81189         * m4/memxor.m4: Require gl_C_RESTRICT.
81190
81191 2005-10-06  Simon Josefsson  <jas@extundo.com>
81192
81193         * lib/memxor.c (memxor): Avoid casts and warnings.
81194
81195 2005-10-06  Simon Josefsson  <jas@extundo.com>
81196
81197         * lib/hmac-md5.c: New file.
81198
81199         * lib/hmac.h: New file.
81200
81201 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
81202
81203         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
81204         promotes to int, not unsigned int, to catch the AIX 5.3
81205         compiler bug.
81206
81207 2005-10-05  Simon Josefsson  <jas@extundo.com>
81208
81209         * modules/memxor: New file.
81210
81211         * modules/iconv (Files): Move config.rpath to havelib, it is used
81212         there.
81213
81214         * modules/havelib (Files): Add config.rpath.
81215
81216 2005-10-05  Simon Josefsson  <jas@extundo.com>
81217
81218         * m4/memxor.m4: New file.
81219
81220 2005-10-05  Simon Josefsson  <jas@extundo.com>
81221
81222         * lib/memxor.c (memxor): Fix compiler error.
81223
81224         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
81225         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
81226
81227         * lib/memxor.h, lib/memxor.c: New files.
81228
81229         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
81230         we assume all systems have it, suggested by Jim Meyering
81231         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
81232         any systems lack sys/socket.h; mingw32 is known to lack it, but we
81233         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
81234         same reasons.
81235
81236 2005-10-05  Simon Josefsson  <jas@extundo.com>
81237
81238         * config/srclist.txt: Add glibc bug 1423 for md5.h.
81239
81240 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
81241
81242         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
81243         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
81244         needed, since the source code now assumes these .h files.
81245
81246 2005-10-05  Derek Price  <derek@ximbiot.com>
81247
81248         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
81249
81250 2005-10-05  Bruno Haible  <bruno@clisp.org>
81251
81252         * modules/stdint (License): Change to LGPL.
81253
81254 2005-10-04  Simon Josefsson  <jas@extundo.com>
81255
81256         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
81257         D. Baushke" <mdb@gnu.org>.
81258
81259 2005-10-04  Bruno Haible  <bruno@clisp.org>
81260
81261         * lib/verify.h (verify_true): Provide alternative definition for C++.
81262
81263 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
81264
81265         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
81266         (SSIZE_MAX): New macro, if not already defined.
81267         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
81268         than 2 GiB.
81269
81270 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
81271
81272         Sync from coreutils.
81273         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
81274         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
81275         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
81276         ULLONG_MAX doesn't work with 2.7.2.1.
81277
81278 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
81279
81280         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
81281         From Ben Pfaff.
81282
81283         * modules/exclude (Depends-on): Depend on verify.
81284         * modules/strtoimax (Depends-on): Likewise.
81285         * modules/utimecmp (Depends-on): Likewise.
81286
81287 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
81288
81289         * lib/exclude.c: Include verify.h.
81290         (verify): Remove.  All callers changed to use verify.h's version.
81291         * lib/strtoimax.c: Likewise.
81292         * lib/utimecmp.c: Likewis.e
81293
81294         Sync from coreutils.
81295         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
81296         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
81297         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
81298         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
81299         bother returning ENOSYS if settimeofday or stime fails; just let
81300         them return whatever errno they want to return.
81301         * lib/utimens.c: Include unistd.h, for dup2.
81302         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
81303         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
81304
81305 2005-10-02  Jim Meyering  <jim@meyering.net>
81306
81307         Sync from coreutils.
81308         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
81309         from glibc-2.2.5 that fails for read-only files.
81310
81311 2005-10-02  Jim Meyering  <jim@meyering.net>
81312
81313         Sync from coreutils.
81314         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
81315         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
81316         `#if HAVE_CONFIG_H'.
81317         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
81318         Remove AT_FDCWD test.
81319         Do not consume the fd unless successful.
81320         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
81321         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
81322         block, so that we don't even try to compile it if settimeofday is
81323         available.  This works around a compilation failure on OSF1 V5.1,
81324         due to stime requiring a `long int*' while tv_sec is `int'.
81325
81326 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
81327
81328         Sync from coreutils.
81329         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
81330         against `yes', rather than just testing for nonempty.
81331
81332 2005-10-01  Simon Josefsson  <jas@extundo.com>
81333
81334         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
81335         and Darwin.
81336
81337         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
81338         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
81339         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
81340         freeaddrinfo and gai_strerror are declared by the POSIX headers.
81341         Check if struct addrinfo is declared.
81342
81343 2005-10-01  Simon Josefsson  <jas@extundo.com>
81344
81345         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
81346         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
81347         AI_* and EAI_* definitions.  Protect function declarations.
81348
81349 2005-10-01  Jim Meyering  <jim@meyering.net>
81350
81351         Sync from coreutils.
81352
81353         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
81354         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
81355         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
81356         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
81357         in the inet and nsl libraries.  Required on Solaris 5.7.
81358
81359 2005-10-01  Jim Meyering  <jim@meyering.net>
81360
81361         Sync from coreutils.
81362         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
81363         in the inet and nsl libraries.  Required on Solaris 5.7.
81364
81365 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
81366
81367         * lib/getdelim.c (getdelim): Remove unused variables.
81368
81369 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
81370
81371         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
81372         so that the code works even with ancient cpp.  Portability problem
81373         with GCC 2.7.2.1 reported by Thomas M.Ott.
81374
81375 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
81376
81377         * modules/regex (Depends-on): Add strcase.
81378
81379         * modules/gethostname (Licence): Change from GPL to LGPL, since
81380         gethostname.c is a trivial implementation of a standard library
81381         function.
81382         * modules/poll (License): Change from GPL to LGPL, since it's
81383         derived from LGPL code.
81384
81385 2005-09-27  Jim Meyering  <jim@meyering.net>
81386
81387         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
81388         HAVE_CONFIG_H.
81389
81390         * lib/intprops.h (signed_type_or_expr__): Define.
81391         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
81392         for unsigned types.
81393
81394 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
81395
81396         * lib/verify.h (verify_expr): Remove, replacing with:
81397         (verify_true): New macro that returns true instead of void.
81398         (verify_type__): Remove.
81399         (verify): Use verify_true rather than verify_type__.
81400
81401 2005-09-26  Bruno Haible  <bruno@clisp.org>
81402
81403         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
81404         is necessary.
81405         (lib_SOURCES): Remove mbchar.c.
81406         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
81407         (Files): Add m4/mbrtowc.m4.
81408         * modules/mbiter: Likewise.
81409         * modules/mbuiter: Likewise.
81410
81411 2005-09-26  Bruno Haible  <bruno@clisp.org>
81412
81413         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
81414         compile mbchar.c if they are not both present.
81415         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
81416         * m4/mbiter.m4 (gl_MBITER): Likewise.
81417         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
81418         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
81419         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
81420
81421 2005-09-25  Jim Meyering  <jim@meyering.net>
81422
81423         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
81424         also uses socklen_t.
81425
81426 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
81427
81428         * lib/utimens.c (ENOSYS): Define if not already defined.
81429         (futimens): Support having a null PATH if the file descriptor
81430         is nonnegative.
81431
81432         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
81433         Remove.
81434         (__attribute): Define to empty unless GCC 3.1 or later.
81435         This works around a core dump on OpenBSD 3.4, which has GCC
81436         2.95.3, which dumps core when given __attribute__(()).  It also
81437         simplifies other tests, since we really don't want to bother with
81438         worrying about which ancient version of GCC supported what.
81439         Original problem reported by Yoann Vandoorselaere, with part of
81440         the fix suggested by Derek Price.
81441
81442 2005-09-24  Jim Meyering  <jim@meyering.net>
81443
81444         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
81445         so we can once again use a positive bitfield width of 1 -- now we
81446         don't have to explain why we were using a bitfield width of 2.
81447
81448 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
81449
81450         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
81451         and similarly for the other external symbols.  Problem reported
81452         by James Gallager.
81453
81454         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
81455         bug reported by Jim Meyering.
81456
81457         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
81458         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
81459         not needed, since socklen is a prerequisite module.
81460
81461 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
81462
81463         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
81464         Problem reported by Eric Blake.
81465         (getaddrinfo): Initialize se so that it's not garbage.
81466         Redo internal storage allocation so that it doesn't make unportable
81467         assumptions about alignment.
81468         Fix a memory leak.
81469
81470         * lib/utimens.c (futimens): Use futimesat if available.
81471         Prefer it to futimes since it doesn't have the futimes bug.
81472
81473         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
81474         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
81475         Instead, declare a function that returns a pointer to an array,
81476         and use verify_type__ to declare the size of the array.
81477         Problem and germ of a solution reported by Bruno Haible.
81478         (verify_type__): Use 2, not 1, for bitfield size, to avoid
81479         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
81480
81481 2005-09-23  Jim Meyering  <jim@meyering.net>
81482
81483         Sync from coreutils.
81484         Correct build failure (socklen_t not defined) on at least
81485         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
81486         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
81487
81488 2005-09-23  Jim Meyering  <jim@meyering.net>
81489
81490         * modules/getaddrinfo (Depends-on): Add socklen.
81491
81492 2005-09-23  Bruno Haible  <bruno@clisp.org>
81493
81494         * tests/test-verify.c: New file.
81495
81496 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
81497
81498         Sync from coreutils.
81499
81500         * modules/argmatch (Depends-on): Add verify.
81501         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
81502         unistd-safer.
81503         * modules/save-cwd (Depends-on): Likewise.
81504
81505         * modules/openat (Files): Add lib/openat-die.c.
81506         (Depends-on): Remove error, exitfail.
81507         Add dirname.
81508
81509         * modules/verify: New file.
81510         * MODULES.html.sh (Diagnostics <assert.h>): New section,
81511         with "verify" module.
81512
81513 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
81514
81515         Sync from coreutils.
81516
81517         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
81518         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
81519         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
81520         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
81521         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
81522         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
81523         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
81524         Don't bother checking for string.h, stdlib.h, unistd.h.
81525         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
81526         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
81527         module's job.
81528         * m4/jm-macros.m4 (gl_MACROS): Likewise.
81529         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
81530
81531         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
81532         (gl_GETDATE): Use it.
81533
81534         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
81535
81536 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
81537
81538         Sync from coreutils.
81539
81540         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
81541         stat-time.h.
81542         * lib/argmatch.h: Include verify.h
81543         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
81544         (ARGMATCH_ASSERT): Remove; unused.
81545         * lib/canonicalize.c: Assume STDC_HEADERS.
81546         * lib/exclude.c: Include "strcase.h".
81547         * lib/regex_internal.h [!defined _LIBC]: Likewise.
81548         * lib/getusershell.c: Include stdio--.h rather than stdio.h
81549         and stdio-safer.h.
81550         (getusershell): Call fopen, not fopen_safer.
81551         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
81552         Do not include unistd-safer.h.
81553         (save_cwd): Don't call fd_safer; no longer needed
81554         now that we include fcntl--.h.
81555
81556         * lib/getdate.y (relative_time): New type.
81557         (RELATIVE_TIME_0): New constant.
81558         (parser_control): Use relative_time instead of doing it ourselves.
81559         (%union): Add new relative_time rel member.
81560         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
81561         Now typeless.
81562         (relunit, relunit_snumber): Now of type rel.
81563         (zone, rel, relunit, get_date): Adjust to above changes.
81564
81565         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
81566         Do not include unistd-safer.h.
81567         (getloadavg): Don't call fd_safer; no longer needed
81568         now that we include fcntl--.h.
81569
81570         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
81571         (make_dir_parents): Treat ENOSYS like EEXIST.
81572
81573         Improve quality of diagnostics on restore_cwd failure.
81574         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
81575         (make_dir_parents): Last arg is now int * (for errno), not bool *.
81576         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
81577         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
81578         each time through the loop.  Do not diagnose restore_cwd failure;
81579         that is the caller's job (and perhaps the caller does not care).
81580
81581         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
81582         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
81583         If the file already exists but is not a directory, don't bother
81584         to try to make its parents.
81585         Close potential file descriptor leak if we can't chdir("/") (!).
81586         Don't always return true if chdir($PWD) fails; return true only
81587         if the requested action was done successfully (except for the
81588         chdir($PWD)).
81589         Don't log final directory unless we actually made it.
81590         Refactor to avoid duplicate code to fix up permissions.
81591         Don't attempt to fix up parent permissions if chdir($PWD) fails.
81592
81593         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
81594         to make it a bit faster and (I hope) clearer.
81595         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
81596         Fix bug in formats like %2N.
81597
81598         * lib/verify.h: New file.
81599
81600 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
81601
81602         Sync from coreutils.
81603         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
81604
81605 2005-09-22  Jim Meyering  <jim@meyering.net>
81606
81607         Sync from coreutils.
81608
81609         * m4/lstat.m4 (gl_FUNC_LSTAT):
81610         Use AC_LIBSOURCES to require lstat.c and lstat.h.
81611         Remove obsolete comment.
81612         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
81613         * m4/xstrtod.m4: Likewise.
81614
81615         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
81616
81617 2005-09-22  Jim Meyering  <jim@meyering.net>
81618
81619         Sync from coreutils.
81620
81621         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
81622
81623         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
81624         the .tm_year member, since otherwise gcc-4.0 would now warn about
81625         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
81626
81627         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
81628         order to avoid an unsuppressible warning from gcc on 64-bit systems.
81629
81630         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
81631         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
81632         when run in a time zone for which daylight savings time is in effect
81633         for the starting date.
81634
81635         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
81636         stop us from restricting permissions of just-created absolute-named
81637         directories.
81638         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
81639         to restore initial working directory.
81640         * lib/mkdir-p.c (make_dir_parents): New parameter:
81641         different_working_dir, to tell caller if/when we change the working
81642         directory and are unable to return to the initial one.
81643         * lib/mkdir-p.h (make_dir_parents): Update prototype.
81644         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
81645         `return false'.  This fixes a bug introduced on 2004-07-30.
81646
81647         * lib/openat.c (fdopendir): Be sure to close the supplied
81648         file descriptor before returning.  This makes our replacement
81649         implementation a little closer to Solaris's, where fdopendir
81650         ties the file descriptor to the returned DIR* pointer.
81651         * lib/openat.c (unlinkat): New function.
81652         * lib/openat.h (unlinkat): Add prototype.
81653         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
81654         (openat_restore_fail): Rename from openat_restore_die.
81655         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
81656
81657         Provide an alternative to exiting immediately upon save_cwd or
81658         restore_cwd failure.  Now, an application can arrange e.g.,
81659         to perform a longjump in that case.
81660         * lib/openat.c: Include dirname.h.
81661         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
81662         (rpl_openat, fdopendir, fstatat): Call openat_save_die
81663         and openat_restore_die rather than calling error directly.
81664         Don't include "error.h" or "exitfail.h"; they're no longer needed.
81665
81666         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
81667         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
81668         define.
81669
81670         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
81671         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
81672                             int utc, int nanoseconds);
81673         Background:
81674         date should not have to allocate a megabyte of virtual memory to
81675         handle a format argument like +%1048575T.  When implemented with
81676         strftime, it must allocate such a buffer, use strftime to fill it
81677         in, print it, then free it.
81678         With fprintftime, it simply prints everything and exits.
81679         With no need for memory allocation, that's one fewer way to fail.
81680         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
81681         optional field width, not before, so we accept %9:z, not %:9z.
81682         (my_strftime): Be sure to use L_('x') for literals.
81683
81684         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
81685         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
81686         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
81687         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
81688         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
81689         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
81690         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
81691         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
81692         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
81693         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
81694         * lib/xgethostname.c, lib/xreadlink.c:
81695         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
81696
81697         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
81698         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
81699         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
81700         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
81701         and don't include <sys/file.h>).
81702
81703 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
81704
81705         Sync from coreutils.
81706
81707         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
81708         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
81709         [!LDAV_DONE]: Avoid unused variable warning.
81710
81711 2005-09-21  Bruno Haible  <bruno@clisp.org>
81712
81713         * lib/unicodeio.h (unicode_to_mb): New declaration.
81714
81715 2005-09-20  Derek Price  <derek@ximbiot.com>
81716
81717         * lib/getaddrinfo.c: Don't include <netdb.h> included from
81718         getaddrinfo.h.
81719
81720 2005-09-20  Bruno Haible  <bruno@clisp.org>
81721
81722         * gnulib-tool: Remove trailing slashes from the values specified for
81723         --source-base, --m4-base, --tests-base, --aux-dir.
81724         Suggested by Simon Josefsson <jas@extundo.com>.
81725
81726 2005-09-20  Bruno Haible  <bruno@clisp.org>
81727
81728         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
81729         func_modules_to_filelist, func_import, func_create_testdir): Make all
81730         sorting results locale-independent, so that gnulib-cache.m4 doesn't
81731         change when gnulib-tool is invoked in a different locale.
81732
81733 2005-09-19  Simon Josefsson  <jas@extundo.com>
81734
81735         * m4/socklen.m4: Fix typo.
81736
81737 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81738
81739         Use a consistent style for including <config.h>.
81740         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
81741         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
81742         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
81743         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
81744         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
81745         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
81746         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
81747         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
81748         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
81749         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
81750         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
81751         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
81752         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
81753         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
81754         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
81755         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
81756         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
81757         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
81758         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
81759         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
81760         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
81761         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
81762         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
81763         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
81764         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
81765         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
81766         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
81767         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
81768         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
81769         lib/xstrtoumax.c, lib/yesno.c:
81770         Standardize inclusion of config.h.
81771         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
81772         lib/inttostr.h:  Removed inclusion of config.h from header files.
81773         * lib/inttostr.c:  Adjusted in-tree users.
81774         * lib/timespec.h: Remove superfluous warning to include config.h.
81775         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
81776         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
81777         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
81778         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
81779         config.h with HAVE_CONFIG_H.
81780
81781 2005-09-19  Jim Meyering  <jim@meyering.net>
81782
81783         * modules/pathmax (License): Change to LGPL.
81784
81785 2005-09-19  Derek Price  <derek@ximbiot.com>
81786
81787         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
81788
81789 2005-09-19  Bruno Haible  <bruno@clisp.org>
81790
81791         * gnulib-tool (import): Provide default for --tests-base.
81792
81793 2005-09-19  Bruno Haible  <bruno@clisp.org>
81794
81795         * doc/quote.texi: New file, extracted from gnulib.texi.
81796         * doc/ctime.texi: New file, extracted from gnulib.texi.
81797         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
81798         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
81799         * doc/gnulib.texi: Include them.
81800
81801 2005-09-18  Bruno Haible  <bruno@clisp.org>
81802
81803         Portability fix.
81804         * gnulib-tool (func_readlink): New function.
81805         (func_ln_if_changed): Use it.
81806
81807 2005-09-18  Bruno Haible  <bruno@clisp.org>
81808
81809         * gnulib-tool: Support --with-tests also with --import.
81810         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
81811         (func_import): Use variables $testsbase and $inctests. Emit a
81812         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
81813         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
81814         SUBDIRS += $testsdir.
81815         (func_create_testdir): Update.
81816
81817 2005-09-18  Bruno Haible  <bruno@clisp.org>
81818
81819         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
81820         instead of $dry_run.
81821         (func_cp_if_changed, func_mv_if_changed): Remove functions.
81822         (func_ln_if_changed): Don't handle dry-run here.
81823         (func_import): In dry-run mode, detect more precisely which actions
81824         would be performed, and don't use "...ing" verbs.
81825
81826 2005-09-18  Bruno Haible  <bruno@clisp.org>
81827
81828         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
81829         (func_import): Use join on two temporary files instead of three nested
81830         loops, in order to determine which files are new or old.
81831
81832 2005-09-18  Bruno Haible  <bruno@clisp.org>
81833
81834         * gnulib-tool (func_import): Comment out code that spits out the
81835         new files with --dry-run.
81836
81837 2005-09-18  Bruno Haible  <bruno@clisp.org>
81838
81839         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
81840
81841 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
81842
81843         * lib/stat-time.h: New file.
81844         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
81845         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
81846         in a different way.
81847         (timespec_cmp): New function.
81848         * lib/utimecmp.c: Include stat-time.h.
81849         (SYSCALL_RESOLUTION): Depend on whether various struct stat
81850         members exist, not on the obsolescent ST_MTIM_NSEC.
81851         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
81852
81853 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
81854
81855         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
81856
81857 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
81858
81859         * MODULES.html.sh (File system functions): Add stat-time.
81860         * modules/stat-time: New file.
81861         * modules/timespec (Files): Remove m4/st_mtim.m4; this
81862         is now done in a different way, by the stat-time module.
81863         * modules/utimecmp (Depends-on): Add stat-time.
81864
81865 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
81866
81867         * m4/st_mtim.m4: Remove.  Superseded by...
81868         * m4/stat-time.m4: New file.
81869         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
81870         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
81871
81872 2005-09-15  Derek Price  <derek@ximbiot.com>
81873
81874         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
81875
81876 2005-09-15  Derek Price  <derek@ximbiot.com>
81877
81878         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
81879         * lib/regex_internal.c: Ditto, using this...
81880         (__GNUC_PREREQ): ...new macro.
81881         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
81882         using...
81883         (__GNUC_PREREQ): ...this new macro.
81884
81885         * lib/strstr.h: Include string.h. Define strstr as a macro here.
81886
81887 2005-09-15  Derek Price  <derek@ximbiot.com>
81888             Paul Eggert  <eggert@cs.ucla.edu>
81889
81890         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
81891         changes, consolidating in...
81892         * lib/regex_internal.h: ...this file.
81893
81894 2005-09-13  Jim Meyering  <jim@meyering.net>
81895
81896         * lib/canon-host.c: Filter through gnu indent and reword comments
81897         slightly.
81898         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
81899
81900 2005-09-13  Derek Price  <derek@ximbiot.com>
81901
81902         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
81903         failure.
81904         Reported by Jim Meyering  <jim@meyering.net>.
81905
81906 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
81907
81908         * lib/base64.c: Typo.
81909         (base64_encode): Put b64str in initialized data section.
81910
81911 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
81912
81913         Merge glibc and coreutils changes into gnulib, plus a few
81914         extra fixes.
81915         * lib/md5.c: Use #error rather than a string.
81916         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
81917         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
81918         (__attribute__): Define to empty for non recent-GCC.
81919         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
81920         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
81921         Renamed from their non-__ counterparts, with new macros replacing
81922         them if not _LIBC.  Add __THROW attribute.
81923         (rol): Remove.
81924         (struct md5_ctx): Align buffer if using GCC.
81925         * lib/sha1.h (struct sha1_ctx): Likewise.
81926         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
81927         The old name was backwards.
81928         (NOTSWAP): Remove; not used.
81929         (rol): New macro, moved here from md5.h.
81930         (sha1_process_block): Remove a FIXME that doesn't make sense.
81931
81932 2005-09-12  Derek Price  <derek@ximbiot.com>
81933
81934         Return usable errors from canon-host.
81935         * lib/canon-host.h: New file.
81936         * lib/canon-host.c (canon_host): Wrap...
81937         (canon_host_r): ...this new function, which now relies exclusively on
81938         getaddrinfo.
81939         (ch_strerror): New function.
81940         (last_cherror): New global.
81941         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
81942         interface.
81943         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
81944         void *.
81945         (freeaddrinfo): Free ai->ai_canonname when set.
81946
81947 2005-09-12  Derek Price  <derek@ximbiot.com>
81948
81949         Make canon-host require getaddrinfo.
81950         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
81951         AC_LIBSOURCE canon-host.h.  Call...
81952         (gl_PREREQ_CANON_HOST): ...this new function, which requires
81953         gl_GETADDRINFO.
81954         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
81955
81956 2005-09-12  Derek Price  <derek@ximbiot.com>
81957
81958         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
81959         LGPL.
81960         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
81961
81962 2005-09-12  Derek Price  <derek@ximbiot.com>
81963
81964         * lib/gai_strerror.c: Include config.h when available.  Include
81965         getaddrinfo.h before other headers to test interface.
81966         Reported by Larry Jones <lawrence.jones@ugs.com>.
81967
81968 2005-09-12  Derek Price  <derek@ximbiot.com>
81969             Paul Eggert  <eggert@cs.ucla.edu>
81970
81971         * modules/glob (Files): Add glob-libc.h.
81972
81973 2005-09-12  Derek Price  <derek@ximbiot.com>
81974             Paul Eggert  <eggert@cs.ucla.edu>
81975
81976         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
81977         glob_.h, glob-libc.h.
81978         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
81979
81980 2005-09-12  Derek Price  <derek@ximbiot.com>
81981             Paul Eggert  <eggert@cs.ucla.edu>
81982
81983         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
81984         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
81985         protecting things that should be done only in gnulib contexts.
81986         * lib/glob_.h: New file, containing only the glob things needed for
81987         gnulib.
81988         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
81989         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
81990         (glob, globfree, glob_pattern_p): Now defined simply in terms of
81991         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
81992         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
81993         and to respect the namespace rules better.
81994
81995 2005-09-08  Simon Josefsson  <jas@extundo.com>
81996
81997         * modules/socklen: New file.
81998
81999 2005-09-08  Simon Josefsson  <jas@extundo.com>
82000
82001         * m4/socklen.m4: New file.
82002
82003 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
82004
82005         * modules/utimens (Files): Add m4/utimbuf.m4, since
82006         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
82007         Reported by Sergey Poznyakoff.
82008
82009 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
82010
82011         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
82012         definitions, since that's the preferred style in glibc.
82013         Fix a minor spacing issue, and update copyright notice to match
82014         glibc's.
82015
82016 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
82017
82018         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
82019
82020 2005-09-06  Simon Josefsson  <jas@extundo.com>
82021
82022         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
82023         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
82024
82025 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
82026
82027         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
82028         warning.
82029
82030 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
82031
82032         * config/srclist.txt: Add glibc bug 1302.
82033
82034 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
82035
82036         Change bitset word type from unsigned int to unsigned long int,
82037         as this has better performance on typical 64-bit hosts.
82038         Port bitset code to hosts with unusual word sizes.
82039         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
82040         (build_collating_symbol):
82041         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
82042         argument is a bitset.  This is merely a style issue, but it makes
82043         it clearer that an entire array is expected.
82044         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
82045         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
82046         Port to the case where bitset_word is not the same as unsigned int.
82047         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
82048         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
82049         Likewise.
82050         * lib/regexec.c (check_dst_limits_calc_pos_1,
82051         check_subexp_matching_top):
82052         (build_trtable, group_nodes_into_DFAstates):
82053         Likewise.
82054         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
82055         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
82056         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
82057         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
82058         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
82059         * lib/regcomp.c (optimize_subexps, lower_subexp):
82060         Work even if bitset_word has holes in its bitwise representation.
82061         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
82062         * lib/regexec.c (check_dst_limits_calc_pos_1,
82063         check_subexp_matching_top):
82064         Likewise.
82065         * lib/regex_internal.c (re_string_reconstruct):
82066         Don't assume UCHAR_MAX == 255.
82067         * lib/regex_internal.h (bitset_set_all): Likewise.
82068         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
82069         All uses changed.
82070         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
82071         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
82072         All uses changed.
82073         (BITSET_WORD_MAX): New macro.
82074         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
82075         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
82076         (bitset_empty, bitset_copy):
82077         Prefer sizeof (bitset) to multiplying it out ourselves.
82078         (bitset_not_merge): Remove; unused.
82079         (bitset_contain): Return bool, not unsigned int with one bit on.
82080         All callers changed.
82081         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
82082         alignment than re_node_set; do this by defining a new internal
82083         type struct dests_alloc and using it to allocate memory.
82084
82085 2005-09-05  Bruno Haible  <bruno@clisp.org>
82086
82087         * gnulib-tool (func_import): Fix comparison in handling of symbolic
82088         links.
82089
82090 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
82091
82092         * modules/size_max (Makefile.am): Add size_max.h
82093
82094 2005-09-04  Derek Price  <derek@ximbiot.com>
82095
82096         * gnulib-tool (func_import): Fix reversed $symbolic logic.
82097
82098 2005-09-03  Simon Josefsson  <jas@extundo.com>
82099
82100         * gnulib-tool: Fix typo.
82101
82102 2005-09-03  Simon Josefsson  <jas@extundo.com>
82103
82104         * config/srclist.txt: Add glibc bug 1293.
82105
82106 2005-09-03  Derek Price  <derek@ximbiot.com>
82107
82108         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
82109         From Larry Jones <lawrence.jones@ugs.com>.
82110
82111 2005-09-02  Simon Josefsson  <jas@extundo.com>
82112
82113         * modules/socklen: New file.
82114
82115 2005-09-02  Simon Josefsson  <jas@extundo.com>
82116
82117         * modules/havelib: New module.
82118
82119         * modules/gettext, modules/iconv, modules/lock, modules/readline:
82120         Use havelib.
82121
82122 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
82123
82124         Check for arithmetic overflow when calculating sizes, to prevent
82125         some buffer-overflow issues.  These patches are conservative, in the
82126         sense that when I couldn't determine whether an overflow was possible,
82127         I inserted a run-time check.
82128         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
82129         macros.
82130         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
82131         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
82132         (re_xnrealloc, re_x2nrealloc): New inline functions.
82133         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
82134         parse_bracket_exp):
82135         (build_equiv_class, build_charclass): Check for arithmetic overflow
82136         in size expression calculations.
82137         * lib/regex_internal.c (re_string_realloc_buffers):
82138         (build_wcs_upper_buffer, re_node_set_add_intersect):
82139         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
82140         (re_dfa_add_node, register_state): Likewise.
82141         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
82142         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
82143         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
82144         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
82145
82146 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
82147
82148         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
82149         m4/ulonglong.m4.  Problem reported by Martin Lambers.
82150
82151 2005-09-02  Bruno Haible  <bruno@clisp.org>
82152
82153         Support for lib vs. lib64 distinction on biarch platforms.
82154         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
82155         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
82156         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
82157
82158 2005-09-02  Bruno Haible  <bruno@clisp.org>
82159
82160         * gnulib-tool (import): In the other first-use case, provide defaults
82161         as well.
82162
82163 2005-09-02  Bruno Haible  <bruno@clisp.org>
82164
82165         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
82166         patches not yet found in the latest gettext release.
82167
82168 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
82169
82170         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
82171         to avoid a collision with bits/local_lim.h in glibc.
82172         All uses changed.  Problem reported by Dmitry V. Levin in
82173         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
82174
82175         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
82176         bugs in int versus size_t comparisons.
82177         (re_string_context_at): Fix bug where the code assumed that
82178         Idx is signed.
82179
82180         Use bool where appropriate.
82181         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
82182         All callers changed.
82183         (calc_eclosure_iter): Likewise, for ROOT arg.
82184         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
82185         (build_charclass_op): Likewise, for NON_MATCH arg.
82186         * lib/regex_internal.c (re_string_allocate, re_string_construct):
82187         (re_string_construct_common): Likewise, for ICASE arg.
82188         * lib/regexec.c (re_search_2_stub, re_search_stub):
82189         Likewise, for RET_LEN arg.
82190         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
82191         (set_regs): Likewise, for FL_BACKTRACK arg.
82192         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
82193         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
82194         (calc_eclosure_iter, parse_bracket_exp):
82195         Use bool for internal variables that are booleans.
82196         * lib/regexec.c (re_search_internal, check_matching,
82197         proceed_next_node):
82198         (set_regs, build_sifted_states, sift_states_bkref):
82199         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
82200         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
82201         (find_collation_sequence_value):
82202         Likewise.
82203         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
82204         (re_node_set_compare):
82205         Return bool, not int. All callers changed.
82206         * lib/regexec.c (check_halt_node_context, check_dst_limits):
82207         (build_trtable, check_node_accept): Likewise.
82208         * lib/regex_internal.h: Include stdbool.h.
82209
82210         Fix bugs uncovered when converting to bool.
82211         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
82212         failure instead of charging ahead blindly.
82213         * lib/regex_internal.c (register_state): Likewise.
82214         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
82215         for freeing internal storage.
82216         (group_nodes_into_DFA_states): Use unsigned int, not int, for
82217         bitset pieces used as boolean, to avoid undefined behavior
82218         on hosts that do int overflow checking.
82219
82220 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
82221
82222         * config/srclist.txt: Add glibc bugs 1285-1287.
82223
82224 2005-09-01  Jim Meyering  <jim@meyering.net>
82225
82226         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
82227         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
82228         Require gl_STAT_MACROS, too.
82229
82230 2005-09-01  Bruno Haible  <bruno@clisp.org>
82231
82232         * gnulib-tool (import): In the first-use case, provide defaults.
82233
82234 2005-09-01  Bruno Haible  <bruno@clisp.org>
82235
82236         * gnulib-tool (func_import): Remove the .tmp files.
82237
82238 2005-09-01  Bruno Haible  <bruno@clisp.org>
82239
82240         * gnulib-tool (func_import): Fix handling of symbolic links.
82241
82242 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
82243
82244         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
82245         old glibc regex code mishandles strings longer than 2**31 bytes.
82246         This patch fixes this when the regex code is used in gnulib
82247         (i.e., outside glibc).
82248
82249         This patch should not affect the use of the regex code inside
82250         glibc.  No doubt this problem also needs to be handled for glibc
82251         as well, but the result will be an incompatible change to the
82252         glibc ABI, and the old ABI will have to be supported too.  That
82253         can be the the subject for another patch.
82254
82255         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
82256         governing whether the rest of this patch is active.  By default,
82257         the macro is disabled and the patch has no effect.
82258         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
82259         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
82260         (struct re_pattern_buffer, re_search, re_search_2, re_match):
82261         (re_match_2, re_set_registers): Use the new types.
82262         * lib/regex_internal.h (Idx, re_hashval_t): New types.
82263         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
82264         New macros.
82265         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
82266         (re_string_context_at, bin_tree_t, re_dfastate_t):
82267         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
82268         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
82269         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
82270         (re_string_char_size_at, re_string_wchar_at):
82271         (re_string_elem_size_at):
82272         Use the new types and macros to port to 64-bit hosts.
82273         Use unsigned types for internal values, so that the code
82274         mostly works even for arrays larger than SSIZE_MAX.
82275         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
82276         (search_duplicated_node, calc_eclosure_iter, fetch_number):
82277         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
82278         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
82279         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
82280         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
82281         (calc_inveclosure, parse_dup_op, build_range_exp):
82282         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
82283         (fetch_number, create_token_tree, mark_opt_subexp):
82284         Likewise.
82285         * lib/regex_internal.c (re_string_construct_common,
82286         create_ci_newstate):
82287         (create_cd_newstate, re_string_allocate, re_string_construct):
82288         (re_string_realloc_buffers, build_wcs_upper_buffer):
82289         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
82290         (re_string_reconstruct, re_string_peek_byte_case):
82291         (re_string_fetch_byte_case, re_string_context_at):
82292         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
82293         (re_node_set_init_copy, re_node_set_add_intersect):
82294         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
82295         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
82296         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
82297         (re_acquire_state, re_acquire_state_context, register_state):
82298         Likewise.
82299         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
82300         search_cur_bkref_entry):
82301         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
82302         (re_search_internal, re_search_2_stub, re_search_stub)
82303         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
82304         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
82305         (update_cur_sifted_state, check_dst_limits):
82306         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
82307         (check_subexp_limits, sift_states_bkref, merge_state_array):
82308         (check_subexp_matching_top, get_subexp, get_subexp_sub):
82309         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
82310         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
82311         (expand_bkref_cache, check_node_accept_bytes):
82312         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
82313         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
82314         (acquire_init_state_context, check_halt_node_context):
82315         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
82316         (sift_states_backward, clean_state_log_if_needed):
82317         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
82318         (find_recover_state, transit_state_sb, transit_state_mb):
82319         (transit_state_bkref, build_trtable, match_ctx_clean):
82320         Likewise.
82321         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
82322         to work around an assumption that REG_MISSING is negative.
82323
82324         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
82325         (seek_collating_symbol_entry) [defined _LIBC]:
82326         (lookup_collation_sequence_value) [defined _LIBC]:
82327         (build_range_exp, build_collating_symbol) [defined _LIBC]:
82328         Use prototypes rather than old-style function definitions.
82329         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
82330         (transit_state_sb) [0]:
82331         (find_collation_sequence_value) [defined _LIBC]: Likewise.
82332
82333         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
82334         rm_eo.
82335
82336         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
82337         (optimize_subexps, lower_subexp):
82338         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
82339         since the signed shift might overflow.  Use 1u<<31 instead.
82340         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
82341         Likewise.
82342         * lib/regexec.c (check_dst_limits_calc_pos_1,
82343         check_subexp_matching_top): Likewise.
82344
82345         * lib/regcomp.c (optimize_subexps, lower_subexp):
82346         Use CHAR_BIT rather than 8, for clarity.
82347         * lib/regexec.c (check_dst_limits_calc_pos_1):
82348         (check_subexp_matching_top): Likewise.
82349         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
82350         have to worry about portability issues when shifting it left.
82351         Remove no-longer-needed test for table_size > 0.
82352         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
82353         in a word, as the resulting behavior is undefined.
82354         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
82355         in one case, a <= should have been an <, and in another case the
82356         whole test was missing.
82357         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
82358         the standard name CHAR_BIT.
82359         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
82360         this is not true on one's complement and signed-magnitude hosts.
82361
82362         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
82363         next_last_offset.
82364         (struct re_dfa_t): Remove unused member states_alloc.
82365         * lib/regcomp.c (init_dfa): Don't initialize unused members.
82366
82367 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
82368
82369         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
82370         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
82371         and large-file glibc and in 32-bit large-file Solaris.
82372
82373 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
82374
82375         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
82376         lengths fit in regoff_t; this isn't true if regoff_t is the same
82377         width as size_t.
82378         * lib/regex.c (re_search_internal): 5th arg is LAST_START
82379         (= START + RANGE) instead of RANGE.  This avoids overflow
82380         problems when regoff_t is the same width as size_t.
82381         All callers changed.
82382         (re_search_2_stub): Check for overflow when adding the
82383         sizes of the two strings.
82384         (re_search_stub): Check for overflow when adding START
82385         to RANGE; if it occurs, substitute the extreme value.
82386
82387 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
82388
82389         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
82390
82391 2005-08-31  Jim Meyering  <jim@meyering.net>
82392
82393         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
82394         a pointer-to-const.
82395         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
82396         (register_state): Likewise.
82397         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
82398         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
82399         (group_nodes_into_DFAstates): Likewise.
82400
82401 2005-08-31  Jim Meyering  <jim@meyering.net>
82402
82403         * check-module: Add a FIXME comment.
82404
82405 2005-08-31  Eric Blake  <ebb9@byu.net>
82406
82407         * modules/unistd-safer (Files): Add unistd--.h.
82408         * modules/stdio-safer (Files): Add stdio--.h.
82409
82410 2005-08-31  Derek Price  <derek@ximbiot.com>
82411
82412         * lib/getdelim.c (getdelim): Return EOF on EOF.
82413         Reported by Larry Jones <lawrence.jones@ugs.com>.
82414
82415 2005-08-31  Bruno Haible  <bruno@clisp.org>
82416
82417         Avoid unnecessary diffs in the generated lib/Makefile.am.
82418         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
82419         the generated files.
82420         (func_import): Don't set cmd.
82421
82422 2005-08-31  Bruno Haible  <bruno@clisp.org>
82423
82424         * lib/strstr.c: Include <stddef.h>, for NULL.
82425         * lib/strcasestr.c: Likewise.
82426         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
82427
82428 2005-08-31  Bruno Haible  <bruno@clisp.org>
82429
82430         * gnulib-tool: New option --macro-prefix.
82431         (func_import): Use macro_prefix.
82432         (import): Handle option --macro-prefix.
82433
82434 2005-08-31  Bruno Haible  <bruno@clisp.org>
82435
82436         * gnulib-tool (import): Rename most ac_* variables to cached_*.
82437         Also use new variables cached_lgpl, cached_libtool.
82438
82439 2005-08-31  Bruno Haible  <bruno@clisp.org>
82440
82441         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
82442         always instantiating them.
82443
82444 2005-08-31  Bruno Haible  <bruno@clisp.org>
82445
82446         * gnulib-tool (func_import): Read the previous cached settings
82447         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
82448         earlier added by gnulib but are now dropped. Warn when a gnulib file
82449         overwrites a non-gnulib file.
82450
82451 2005-08-31  Bruno Haible  <bruno@clisp.org>
82452
82453         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
82454         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
82455         projects that don't keep autogenerated files in CVS. Put into
82456         actioncmd only the specified modules, not the transitive closure.
82457
82458 2005-08-31  Bruno Haible  <bruno@clisp.org>
82459
82460         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
82461         Create directories that shall be filled.
82462         (import): Don't look for gl_* macros in configure.ac. Recurse across
82463         all directories containing a gnulib-cache.m4 files, if meaningful.
82464
82465 2005-08-31  Bruno Haible  <bruno@clisp.org>
82466
82467         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
82468         (import): Set seen_libtool when we see gl_LIBTOOL.
82469
82470 2005-08-31  Bruno Haible  <bruno@clisp.org>
82471
82472         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
82473         declaration macro definitions from generated gnulib.m4.
82474
82475 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
82476
82477         * lib/iconvme.h: Add prototype for iconv_alloc.
82478
82479 2005-08-29  Simon Josefsson  <jas@extundo.com>
82480
82481         * lib/iconvme.c: Fix errno.
82482
82483 2005-08-29  Bruno Haible  <bruno@clisp.org>
82484
82485         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
82486         that it works when the directory contains spaces.
82487
82488 2005-08-29  Bruno Haible  <bruno@clisp.org>
82489
82490         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
82491
82492 2005-08-29  Bruno Haible  <bruno@clisp.org>
82493
82494         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
82495         Emit more advice.
82496
82497 2005-08-29  Bruno Haible  <bruno@clisp.org>
82498         and Stepan Kasal  <kasal@ucw.cz>
82499
82500         * check-module: If more parameters are given, check each of them
82501         separately; add more exceptions, as noted by Jim Meyering.
82502         (check_module): New procedure.
82503         (%exempt_header): Now contains all exceptions.
82504
82505 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
82506
82507         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
82508
82509 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
82510
82511         * lib/iconvme.c: Split iconv_string into iconv_alloc.
82512
82513 2005-08-28  Bruno Haible  <bruno@clisp.org>
82514
82515         * m4/gnulib-tool.m4: New file.
82516
82517 2005-08-27  Jim Meyering  <jim@meyering.net>
82518
82519         * modules/unistd-safer (Files): Add pipe-safer.c.
82520         * modules/fcntl-safer (Files): Add creat-safer.c.
82521
82522 2005-08-27  Jim Meyering  <jim@meyering.net>
82523
82524         * m4/stdlib-safer.m4: New file.  From coreutils.
82525         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
82526         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
82527         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
82528         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
82529         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
82530
82531 2005-08-27  Jim Meyering  <jim@meyering.net>
82532
82533         * lib/fopen-safer.c: Merge minor changes from coreutils.
82534         * lib/dup-safer.c: Likewise.
82535         * lib/fd-safer.c: Likewise.
82536
82537         Merge from coreutils.
82538         * lib/stdio--.h: New file.
82539         * lib/stdlib--.h: New file.
82540         * lib/mkstemp-safer.c: New file.
82541
82542         GNU tar needs these.
82543         * lib/pipe-safer.c: New file.
82544         * lib/creat-safer.c: New file.
82545         * lib/fcntl--.h (creat): Define to creat_safer.
82546         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
82547         * lib/unistd--.h (pipe): Define to pipe_safer.
82548         * lib/unistd-safer.h: Declare pipe_safer.
82549
82550 2005-08-26  Simon Josefsson  <jas@extundo.com>
82551
82552         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
82553         Haible <bruno@clisp.org>.
82554
82555 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
82556
82557         * lib/regex_internal.h: Remove all references to
82558         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
82559         or better.
82560         (bitset_not, bitset_merge, bitset_not_merge):
82561         (bitset_mask, re_string_allocate, re_string_construct):
82562         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
82563         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
82564         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
82565         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
82566         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
82567         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
82568         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
82569         (re_acquire_state_context):
82570         Remove unnecessary forward decls.
82571         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
82572         Put __attribute at function definition,
82573         now that the function decl has been removed.
82574         * lib/regex_internal.c (re_string_peek_byte_case):
82575         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
82576         Likewise.
82577
82578 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
82579
82580         * m4/regex.m4: Add AC_PREREQ(2.50).
82581         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
82582
82583 2005-08-25  Simon Josefsson  <jas@extundo.com>
82584
82585         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
82586         __fsetlocking.
82587
82588 2005-08-25  Simon Josefsson  <jas@extundo.com>
82589
82590         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
82591         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
82592         GLIBC specific code.
82593
82594 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
82595
82596         Make regex safe for g++.  This fixes one real bug (an "err"
82597         that should have been "*err").  g++ problem reported by
82598         Sam Steingold.
82599         * lib/regex_internal.h (re_calloc): New macro, consistent with
82600         re_malloc etc.  All callers of calloc changed to use re_calloc.
82601         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
82602         not int.  All callers changed.
82603         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
82604         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
82605         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
82606         (find_recover_state): Change "err" to "*err"; this fixes what
82607         appears to be a real bug.
82608         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
82609         versus int.
82610
82611 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
82612
82613         * modules/regex (Depends-on): Add malloc, since the code
82614         assumes that !malloc(0) means failure.
82615
82616 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
82617
82618         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
82619
82620         alloca modernization/simplification for regex.
82621         * lib/regex.c: Remove portability cruft for alloca.  This no longer
82622         needs to be at the start of the file, and can be moved into
82623         regex_internal.h and simplified.
82624         * lib/regex_internal.h: Include <alloca.h>.
82625         (__libc_use_alloca) [!defined _LIBC]: New macro.
82626         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
82627         now works outside glibc.
82628
82629 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
82630
82631         * config/srclist.txt: Add glibc bugs 1241, 1245.
82632
82633 2005-08-25  Jim Meyering  <jim@meyering.net>
82634
82635         * lib/open-safer.c: Include <config.h>.
82636         Otherwise, we'd lose LARGEFILE support in any file using
82637         e.g. "fcntl--.h"
82638
82639 2005-08-25  Bruno Haible  <bruno@clisp.org>
82640
82641         * m4/minmax.m4: Require autoconf 2.52.
82642         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
82643         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
82644         alternatives of translit over the alphabet.
82645         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
82646
82647 2005-08-24  Simon Josefsson  <jas@extundo.com>
82648
82649         * tests/test-getpass.c: New file.
82650
82651 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
82652
82653         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
82654         for GNU regex features.
82655
82656 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
82657
82658         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
82659         * lib/regex.h (regerror): Likewise.
82660
82661         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
82662         requires this.  (The code never needed it.)
82663
82664         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
82665         All uses of recently-renamed identifiers changed to use the new,
82666         POSIX-compliant names.  The code will build and run just fine
82667         without these changes, but it's better to eat our own dog food
82668         and use the standard-conforming names.
82669
82670         * lib/regex.h: Fix a multitude of POSIX name space violations.
82671         These changes have an effect only for programs that define
82672         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
82673         do not change anything for programs compiled in the normal way.
82674         Also, there is no effect on the ABI.
82675
82676         (_REGEX_SOURCE): New macro.
82677         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
82678         defined and _GNU_SOURCE is not; this fixes a name space violation.
82679
82680         Rename the following macros to obey POSIX requirements.
82681         The old names are still visible as macros if _REGEX_SOURCE is defined.
82682         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
82683         RE_BACKSLASH_ESCAPE_IN_LISTS.
82684         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
82685         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
82686         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
82687         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
82688         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
82689         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
82690         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
82691         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
82692         (REG_INTERVALS): renamed from RE_INTERVALS.
82693         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
82694         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
82695         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
82696         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
82697         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
82698         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
82699         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
82700         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
82701         RE_UNMATCHED_RIGHT_PAREN_ORD.
82702         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
82703         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
82704         (REG_DEBUG): renamed from RE_DEBUG.
82705         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
82706         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
82707         unusual, since we can't clash with the POSIX REG_ICASE.
82708         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
82709         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
82710         (REG_NO_SUB): renamed from RE_NO_SUB.
82711         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
82712         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
82713         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
82714         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
82715         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
82716         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
82717         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
82718         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
82719         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
82720         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
82721         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
82722         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
82723         RE_SYNTAX_POSIX_MINIMAL_BASIC.
82724         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
82725         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
82726         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
82727         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
82728         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
82729         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
82730         (REG_FIXED): Renamed from REGS_FIXED.
82731         (REG_NREGS): Renamed from RE_NREGS.
82732
82733         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
82734         of other REG_* macros, since POSIX says the user is allowed to
82735         #undef these macros selectively.
82736
82737         (reg_errcode_t): Update comment stating what other tables need
82738         to be consistent.
82739
82740         Rename the following enum values to obey POSIX requirements.
82741         The old names are still visible as macros.
82742         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
82743         is not defined, since GNU is supposed to be a superset of POSIX as
82744         much as possible, and since we want reg_errcode_t to be a signed
82745         type for implementation consistency.
82746         (_REG_NOERROR): Renamed from REG_NOERROR.
82747         (_REG_NOMATCH): Renamed from REG_NOMATCH.
82748         (_REG_BADPAT): Renamed from REG_BADPAT.
82749         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
82750         (_REG_ECTYPE): Renamed from REG_ECTYPE.
82751         (_REG_EESCAPE): Renamed from REG_EESCAPE.
82752         (_REG_ESUBREG): Renamed from REG_ESUBREG.
82753         (_REG_EBRACK): Renamed from REG_EBRACK.
82754         (_REG_EPAREN): Renamed from REG_EPAREN.
82755         (_REG_EBRACE): Renamed from REG_EBRACE.
82756         (_REG_BADBR): Renamed from REG_BADBR.
82757         (_REG_ERANGE): Renamed from REG_ERANGE.
82758         (_REG_ESPACE): Renamed from REG_ESPACE.
82759         (_REG_BADRPT): Renamed from REG_BADRPT.
82760         (_REG_EEND): Renamed from REG_EEND.
82761         (_REG_ESIZE): Renamed from REG_ESIZE.
82762         (_REG_ERPAREN): Renamed from REG_ERPAREN.
82763         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
82764         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
82765         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
82766         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
82767
82768         (_REG_RE_NAME, _REG_RM_NAME): New macros.
82769         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
82770         changed.  But support the old name if the new one is not defined
82771         and if _REGEX_SOURCE.
82772
82773         Change the following member names in struct re_pattern_buffer.
82774         The old names are still supported if !_REGEX_SOURCE.
82775         The new names are always supported, regardless of _REGEX_SOURCE.
82776         (re_buffer): Renamed from buffer.
82777         (re_allocated): Renamed from allocated.
82778         (re_used): Renamed from used.
82779         (re_syntax): Renamed from syntax.
82780         (re_fastmap): Renamed from fastmap.
82781         (re_translate): Renamed from translate.
82782         (re_can_be_null): Renamed from can_be_null.
82783         (re_regs_allocated): Renamed from regs_allocated.
82784         (re_fastmap_accurate): Renamed from fastmap_accurate.
82785         (re_no_sub): Renamed from no_sub.
82786         (re_not_bol): Renamed from not_bol.
82787         (re_not_eol): Renamed from not_eol.
82788         (re_newline_anchor): Renamed from newline_anchor.
82789
82790         Change the following member names in struct re_registers.
82791         The old names are still supported if !_REGEX_SOURCE.
82792         The new names are always supported, regardless of _REGEX_SOURCE.
82793         (rm_num_regs): Renamed from num_regs.
82794         (rm_start): Renamed from start.
82795         (rm_end): Renamed from end.
82796
82797         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
82798         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
82799         Prepend __ to parameter names.
82800
82801         Undo yesterday's changes.
82802
82803 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
82804
82805         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
82806         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
82807         lib/regex.c.
82808
82809 2005-08-24  Jim Meyering  <jim@meyering.net>
82810
82811         Sync from coreutils.
82812         * m4/fcntl-safer.m4: New file.
82813
82814         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
82815         and object files for this module.
82816
82817 2005-08-24  Jim Meyering  <jim@meyering.net>
82818
82819         Sync from coreutils.
82820         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
82821
82822 2005-08-24  Jim Meyering  <jim@meyering.net>
82823
82824         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
82825         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
82826
82827 2005-08-24  Jim Meyering  <jim@meyering.net>
82828
82829         * modules/fcntl-safer: New module.
82830         * modules/fts (Depends-on): Add fcntl-safer.
82831         * MODULES.html.sh (File descriptor based Input/Output):
82832         Add fcntl-safer.
82833
82834 2005-08-24  Bruno Haible  <bruno@clisp.org>
82835
82836         Support for unit test modules.
82837         * modules/README: Mention tests modules.
82838         * modules/TEMPLATE-TESTS: New file.
82839         * gnulib-tool: New options --extract-tests-module, --with-tests and
82840         --tests-base (unused for the moment).
82841         (testsbase, inctests): New variables.
82842         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
82843         (func_verify_module): Exclude TEMPLATE-TESTS.
82844         (func_verify_nontests_module, func_verify_tests_module): New functions.
82845         (func_get_dependencies): Add implicit dependency for tests modules.
82846         (func_get_tests_module): New function.
82847         (func_modules_transitive_closure): When --with-tests was specified,
82848         include the unit tests as well, unless explicitly avoided.
82849         (func_emit_lib_Makefile_am): Ignore the tests modules here.
82850         (func_emit_tests_Makefile_am): New function.
82851         (func_create_testdir): When --with-tests was specified, emit a
82852         tests/ directory.
82853         * MODULES.html.sh (Future developments): Update.
82854
82855 2005-08-24  Bruno Haible  <bruno@clisp.org>
82856
82857         * modules/tls-tests: New file.
82858         * tests/test-tls.c: New file, from GNU gettext.
82859
82860 2005-08-24  Bruno Haible  <bruno@clisp.org>
82861
82862         * modules/lock-tests: New file.
82863         * tests/test-lock.c: New file, from GNU gettext.
82864
82865 2005-08-24  Bruno Haible  <bruno@clisp.org>
82866
82867         * lib/lock.h: Add multiple inclusion guard.
82868         * lib/tls.h: Add multiple inclusion guard.
82869
82870 2005-08-24  Bruno Haible  <bruno@clisp.org>
82871
82872         * gnulib-tool: Add support for the --aux-dir option to
82873         --create-testdir, --create-megatestdir, --test, --megatest.
82874         (func_create_testdir, func_create_megatestdir): Optionally emit a
82875         AC_CONFIG_AUX_DIR directive.
82876         (create-testdir, create-megatestdir, test, megatest): Provide a
82877         default value for $auxdir.
82878
82879 2005-08-24  Bruno Haible  <bruno@clisp.org>
82880
82881         * gnulib-tool (import): Use compound statement instead of subshell
82882         where possible.
82883
82884 2005-08-24  Bruno Haible  <bruno@clisp.org>
82885
82886         * gnulib-tool (import): Change --aux-dir default to "build-aux".
82887
82888 2005-08-24  Bruno Haible  <bruno@clisp.org>
82889
82890         * gnulib-tool (func_version): Update.
82891
82892 2005-08-24  Bruno Haible  <bruno@clisp.org>
82893
82894         * gnulib-tool (func_import, func_create_testdir,
82895         func_create_megatestdir): Quote all autoconf macro arguments.
82896
82897 2005-08-24  Bruno Haible  <bruno@clisp.org>
82898
82899         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
82900         option --force, because --force causes the aclocal.m4 of each
82901         subdirectory to be newer than the corresponding config.h.in.
82902
82903 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
82904
82905         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
82906         All contents moved to gl_REGEX.
82907         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
82908         assume that it does.
82909
82910 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
82911
82912         * lib/regex.h (REG_NOSYS)
82913         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
82914         Define, since POSIX requires it as of 2001.
82915         (_REG_ENOSYS)
82916         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
82917         New private symbol, used to keep the enum signed in all cases.
82918         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
82919         Youngman in
82920         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
82921
82922         * lib/regex_internal.c (re_string_skip_chars, register_state):
82923         (calc_state_hash):
82924         Remove forward decls; no longer needed now that we use prototypes.
82925         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
82926         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
82927         (clean_state_log_if_needed): Likewise.
82928
82929 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
82930
82931         * config/srclist.txt: Add glibc bugs 1231-1233.
82932
82933 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
82934
82935         Fix problems reported by Sam Steingold in
82936         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
82937         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
82938         assumed that reg_errcode_t is a signed type, which is not
82939         necessarily true if _XOPEN_SOURCE is not defined.
82940         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
82941         since some compilers warn about it otherwise.
82942
82943 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
82944
82945         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
82946         (init_word_char, create_initial_state, duplicate_node_closure):
82947         (fetch_token, peek_token_bracket, build_range_exp):
82948         (build_collating_symbol): Remove forward decls; no longer needed
82949         now that we use prototypes.
82950
82951         * lib/regcomp.c:
82952         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
82953         (re_compile_fastmap_iter, regcomp, regerror, regfree):
82954         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
82955         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
82956         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
82957         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
82958         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
82959         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
82960         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
82961         (build_range_exp, build_collating_symbol, parse_bracket_exp):
82962         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
82963         (build_charclass, build_charclass_op, fetch_number, create_tree):
82964         (create_token_tree, mark_opt_subexp, duplicate_tree):
82965         Use prototypes rather than old-style definitions.
82966
82967         * lib/regex_internal.c:
82968         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
82969         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
82970         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
82971         (re_string_reconstruct, re_string_peek_byte_case):
82972         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
82973         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
82974         (re_node_set_init_copy, re_node_set_add_intersect):
82975         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
82976         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
82977         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
82978         (re_acquire_state, re_acquire_state_context, register_state):
82979         (create_ci_newstate, create_cd_newstate, free_state):
82980         Likewise.
82981         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
82982         re_search_2):
82983         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
82984         (re_search_internal, prune_impossible_nodes):
82985         (acquire_init_state_context, check_matching, static):
82986         (check_halt_node_context, check_halt_state_context, proceed_next_node):
82987         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
82988         (update_regs, sift_states_backward, build_sifted_states):
82989         (clean_state_log_if_needed, merge_state_array):
82990         (update_cur_sifted_state, add_epsilon_src_nodes):
82991         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
82992         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
82993         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
82994         (find_recover_state, check_subexp_matching_top, transit_state_mb):
82995         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
82996         (check_arrival, check_arrival_add_next_nodes):
82997         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
82998         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
82999         (check_node_accept_bytes, check_node_accept, extend_buffers):
83000         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
83001         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
83002         (sift_ctx_init):
83003         Likewise.
83004
83005         * lib/regex_internal.h:
83006         (re_string_allocate, re_string_construct, re_string_reconstruct):
83007         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
83008         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
83009         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
83010         (re_string_context_at, re_string_peek_byte_case):
83011         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
83012         is defined, since we now use prototypes always.
83013
83014         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
83015         C89 or better.  All uses removed.
83016
83017 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
83018
83019         * config/srclist.txt: Add glibc bugs 1220-1227.
83020
83021 2005-08-20  Jim Meyering  <jim@meyering.net>
83022
83023         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
83024         of unused local, dfa.
83025
83026 2005-08-20  Bruno Haible  <bruno@clisp.org>
83027
83028         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
83029
83030 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
83031
83032         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
83033         (re_node_set_insert_last, re_dfa_add_node):
83034         Rename local variables to avoid GCC shadowing warnings.
83035
83036 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
83037
83038         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
83039         [defined lint]: Suppress bogus uninitialized-variable warnings.
83040
83041         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
83042         and let the caller return REG_ESPACE if out of space.  This
83043         removes an uninitialied-variable warning with GCC 4.0.1, and also
83044         avoids taking the address of a local variable.  All callers
83045         changed.
83046
83047 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
83048
83049         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
83050         $LIBCSRC/posix/regexec.c.
83051         Add glibc bug 1217 for regcomp.c.
83052
83053 2005-08-19  Jim Meyering  <jim@meyering.net>
83054
83055         * lib/regexec.c (proceed_next_node): Redo local variables to
83056         avoid GCC shadowing warnings.
83057
83058 2005-08-18  Bruno Haible  <bruno@clisp.org>
83059
83060         * lib/strstr.c (strstr): Fix return value in multibyte case.
83061         * lib/strcasestr.c (strcasestr): Likewise.
83062
83063 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
83064
83065         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
83066
83067 2005-08-17  Jim Meyering  <jim@meyering.net>
83068
83069         Make the %s format (seconds since the epoch) work for a negative
83070         number and when used with a zero-padded field width, e.g. %015s.
83071
83072         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
83073         label so that it precedes the code to set `digits'.  Otherwise,
83074         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
83075         print `00-22'.  Now, it prints `-0022', as it should.
83076
83077 2005-08-17  Bruno Haible  <bruno@clisp.org>
83078
83079         * modules/strstr (Files): Add m4/mbrtowc.m4.
83080         (Depends-on): Add mbuiter.
83081
83082 2005-08-17  Bruno Haible  <bruno@clisp.org>
83083
83084         * modules/strcasestr: New file.
83085         * MODULES.html.sh (String handling, based on ANSI C 89): Add
83086         strcasestr.
83087
83088 2005-08-17  Bruno Haible  <bruno@clisp.org>
83089
83090         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
83091
83092 2005-08-17  Bruno Haible  <bruno@clisp.org>
83093
83094         * modules/mbuiter: New file.
83095         * MODULES.html.sh (Extended multibyte and wide character utilities):
83096         Add mbuiter.
83097
83098 2005-08-17  Bruno Haible  <bruno@clisp.org>
83099
83100         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
83101         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
83102
83103 2005-08-17  Bruno Haible  <bruno@clisp.org>
83104
83105         * m4/strcasestr.m4: New file.
83106
83107 2005-08-17  Bruno Haible  <bruno@clisp.org>
83108
83109         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
83110         * lib/strstr.c: Completely rewritten, with multibyte locale support.
83111
83112 2005-08-17  Bruno Haible  <bruno@clisp.org>
83113
83114         * lib/strcasestr.h: New file.
83115         * lib/strcasestr.c: New file.
83116
83117 2005-08-17  Bruno Haible  <bruno@clisp.org>
83118
83119         * lib/strcasecmp.c: Use mbuiter.h.
83120
83121 2005-08-17  Bruno Haible  <bruno@clisp.org>
83122
83123         * lib/mbuiter.h: New file.
83124
83125 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
83126
83127         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
83128         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
83129         and gl_GETOPT are both invoked via different paths (as happens
83130         with GNU tar CVS because it uses both argp and getopt), the former
83131         wins.
83132
83133 2005-08-16  Bruno Haible  <bruno@clisp.org>
83134
83135         * modules/tls: New file.
83136         * MODULES.html.sh (Multithreading): Add tls.
83137
83138 2005-08-16  Bruno Haible  <bruno@clisp.org>
83139
83140         * modules/strnlen1: New file.
83141         * MODULES.html.sh (String handling): Add strnlen1.
83142
83143 2005-08-16  Bruno Haible  <bruno@clisp.org>
83144
83145         * modules/strcase (Files): Add m4/mbrtowc.m4.
83146         (Depends-on): Add strnlen1, mbchar.
83147
83148 2005-08-16  Bruno Haible  <bruno@clisp.org>
83149
83150         * modules/mbiter: New file.
83151         * MODULES.html.sh (Extended multibyte and wide character utilities):
83152         Add mbiter.
83153
83154 2005-08-16  Bruno Haible  <bruno@clisp.org>
83155
83156         * modules/mbfile: New file.
83157         * MODULES.html.sh (Extended multibyte and wide character utilities):
83158         Add mbfile.
83159
83160 2005-08-16  Bruno Haible  <bruno@clisp.org>
83161
83162         * modules/mbchar: New file.
83163         * MODULES.html.sh (Extended multibyte and wide character utilities):
83164         New section.
83165
83166 2005-08-16  Bruno Haible  <bruno@clisp.org>
83167
83168         * m4/tls.m4: New file, from GNU gettext.
83169
83170 2005-08-16  Bruno Haible  <bruno@clisp.org>
83171
83172         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
83173         always.
83174         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
83175
83176 2005-08-16  Bruno Haible  <bruno@clisp.org>
83177
83178         * m4/mbiter.m4: New file.
83179
83180 2005-08-16  Bruno Haible  <bruno@clisp.org>
83181
83182         * m4/mbfile.m4: New file.
83183
83184 2005-08-16  Bruno Haible  <bruno@clisp.org>
83185
83186         * m4/mbchar.m4: New file.
83187
83188 2005-08-16  Bruno Haible  <bruno@clisp.org>
83189
83190         * lib/tls.h: New file, from GNU gettext.
83191         * lib/tls.c: New file, from GNU gettext.
83192
83193 2005-08-16  Bruno Haible  <bruno@clisp.org>
83194
83195         * lib/strnlen1.h: New file.
83196         * lib/strnlen1.c: New file.
83197
83198 2005-08-16  Bruno Haible  <bruno@clisp.org>
83199
83200         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
83201         (mbi_init): Update.
83202         (mbi_avail, mbi_advance): Let the iteration end before the terminating
83203         NUL byte, not after it.
83204
83205 2005-08-16  Bruno Haible  <bruno@clisp.org>
83206
83207         * lib/strcase.h (strcasecmp): Add note in comments.
83208         * lib/strncasecmp.c: Use code from strcasecmp.c.
83209         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
83210         (strcasecmp): Work correctly in multibyte locales.
83211
83212 2005-08-16  Bruno Haible  <bruno@clisp.org>
83213
83214         * lib/mbiter.h: New file.
83215
83216 2005-08-16  Bruno Haible  <bruno@clisp.org>
83217
83218         * lib/mbfile.h: New file.
83219
83220 2005-08-16  Bruno Haible  <bruno@clisp.org>
83221
83222         * lib/mbchar.h: New file.
83223         * lib/mbchar.c: New file.
83224
83225 2005-08-16  Bruno Haible  <bruno@clisp.org>
83226
83227         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
83228         the valid ones. Makes the comparison operations transitive:
83229         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
83230         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
83231
83232 2005-08-15  Simon Josefsson  <jas@extundo.com>
83233
83234         * modules/ssize_t (License): Change to 'unlimited'.
83235
83236         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
83237
83238 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
83239
83240         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
83241         Add comments for each pending glibc patch.
83242
83243 2005-08-15  Bruno Haible  <bruno@clisp.org>
83244
83245         * lib/regex.h (__restrict_arr): Don't define to __restrict if
83246         __cplusplus is defined.
83247
83248 2005-08-14  Jim Meyering  <jim@meyering.net>
83249
83250         Sync from coreutils.
83251
83252         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
83253         Use the hash-table-based cycle-detection code not just when
83254         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
83255         Reported by James Youngman in
83256         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
83257         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
83258         FTS_TIGHT_CYCLE_CHECK.
83259         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
83260         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
83261         once again.
83262         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
83263         * lib/fts.c (fd_safer): Remove decl.
83264         Include fcntl--.h rather than unistd-safer.h
83265         (fts_safe_changedir): Don't call fd_safer; no longer needed
83266         now that we include fcntl--.h.
83267
83268 2005-08-12  Simon Josefsson  <jas@extundo.com>
83269
83270         * modules/getndelim2: Use ssize_t module.
83271         * modules/getnline: Likewise.
83272         * modules/safe-read: Likewise.
83273         * modules/xreadlink: Likewise.
83274
83275         * modules/ssize_t: New file.
83276
83277 2005-08-12  Simon Josefsson  <jas@extundo.com>
83278
83279         * m4/readline.m4: Look for termcap, curses or ncurses if required.
83280
83281 2005-08-12  Simon Josefsson  <jas@extundo.com>
83282
83283         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
83284         ssize_t.
83285
83286 2005-08-12  Simon Josefsson  <jas@extundo.com>
83287
83288         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
83289         readline, getdelim and check_version.
83290         (Support for systems lacking ISO C 99: Sizes of integer types):
83291         Add size_max.
83292
83293 2005-08-12  Bruno Haible  <bruno@clisp.org>
83294
83295         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
83296
83297 2005-08-11  Simon Josefsson  <jas@extundo.com>
83298
83299         * modules/readline: New file.
83300
83301         * modules/strnlen (Files): Add strnlen.h.
83302
83303 2005-08-11  Simon Josefsson  <jas@extundo.com>
83304
83305         * m4/readline.m4: New file.
83306
83307 2005-08-11  Simon Josefsson  <jas@extundo.com>
83308
83309         * lib/readline.h, readline.c: New file.
83310
83311 2005-08-11  Simon Josefsson  <jas@extundo.com>
83312
83313         * doc/gnulib.texi (Initial import, Finishing touches): Mention
83314         gl_AVOID.
83315
83316 2005-08-11  Bruno Haible  <bruno@clisp.org>
83317
83318         * lib/strnlen.h (strnlen): Change parameter name to match comment.
83319
83320 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
83321
83322         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
83323
83324 2005-08-10  Simon Josefsson  <jas@extundo.com>
83325
83326         * tests/test-iconvme.c: New file.
83327
83328 2005-08-10  Simon Josefsson  <jas@extundo.com>
83329
83330         * m4/strnlen.m4: New file.
83331
83332         * m4/strndup.m4: Don't check for strnlen declaration, done in
83333         strnlen.m4.
83334
83335 2005-08-10  Simon Josefsson  <jas@extundo.com>
83336
83337         * lib/strndup.c: Use strnlen.h.
83338
83339         * lib/strnlen.h: New file.
83340
83341 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
83342
83343         * README: Typos.
83344
83345 2005-08-02  Simon Josefsson  <jas@extundo.com>
83346
83347         * modules/readline: New file.
83348
83349 2005-08-02  Simon Josefsson  <jas@extundo.com>
83350
83351         * modules/getdelim: New file.
83352
83353         * modules/getline: Rewrite, don't use getndelim2.
83354
83355 2005-08-02  Simon Josefsson  <jas@extundo.com>
83356
83357         * m4/getline.m4: Separate out getdelim stuff into separate module.
83358
83359         * m4/getdelim.m4: New file.
83360
83361 2005-08-02  Simon Josefsson  <jas@extundo.com>
83362
83363         * lib/getline.h, getline.c: Rewrite.
83364
83365         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
83366
83367 2005-07-31  Bruno Haible  <bruno@clisp.org>
83368
83369         * lib/lock.h (gl_lock_initializer): New macro.
83370         (gl_lock_define_initialized): Use it.
83371         (gl_rwlock_initializer): New macro.
83372         (gl_rwlock_define_initialized): Use it.
83373         (gl_recursive_lock_initializer): New macro.
83374         (gl_recursive_lock_define_initialized): Use it.
83375
83376 2005-07-30  Karl Berry  <karl@gnu.org>
83377
83378         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
83379         Report from Ben Pfaff, regarding getopt.
83380
83381 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
83382
83383         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
83384         normal way.
83385         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
83386         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
83387         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
83388         (gl_GETOPT): Use the new macros.  Most of the implementation
83389         is moved to the new macros.  This is for programs like Emacs
83390         that don't want all the functionality of gl_GETOPT.
83391
83392 2005-07-26  Bruno Haible  <bruno@clisp.org>
83393
83394         * m4/lock.m4: Update from GNU gettext.
83395
83396 2005-07-26  Bruno Haible  <bruno@clisp.org>
83397
83398         * lib/lock.h: Update from GNU gettext.
83399         * lib/lock.c: Update from GNU gettext.
83400
83401 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
83402
83403         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
83404         obsolescent AC_TRY_RUN.  Include the default includes files, for
83405         'exit'.
83406
83407 2005-07-24  Bruno Haible  <bruno@clisp.org>
83408
83409         * modules/visibility: New file.
83410         * MODULES.html.sh (Misc): Add visibility.
83411
83412 2005-07-24  Bruno Haible  <bruno@clisp.org>
83413
83414         * m4/visibility.m4: New file.
83415
83416 2005-07-24  Bruno Haible  <bruno@clisp.org>
83417
83418         * doc/visibility.texi: New file.
83419
83420 2005-07-22  Bruno Haible  <bruno@clisp.org>
83421
83422         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
83423         $(ALLOCA_H), redundant through BUILT_SOURCES.
83424         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
83425         redundant through BUILT_SOURCES.
83426         * modules/byteswap (Makefile.am): Remove explicit dependency on
83427         $(BYTESWAP_H), redundant through BUILT_SOURCES.
83428         * modules/fnmatch (Makefile.am): Remove explicit dependency on
83429         $(FNMATCH_H), redundant through BUILT_SOURCES.
83430         * modules/getopt (Makefile.am): Remove explicit dependency on
83431         $(GETOPT_H), redundant through BUILT_SOURCES.
83432         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
83433         redundant through BUILT_SOURCES.
83434         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
83435         redundant through BUILT_SOURCES.
83436         * modules/stdbool (Makefile.am): Remove explicit dependency on
83437         $(STDBOOL_H), redundant through BUILT_SOURCES.
83438         * modules/stdint (Makefile.am): Remove explicit dependency on
83439         $(STDINT_H), redundant through BUILT_SOURCES.
83440         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
83441         Remove explicit dependency on $(SYSEXITS_H).
83442         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
83443
83444 2005-07-18  Simon Josefsson  <jas@extundo.com>
83445
83446         * lib/check-version.c (check_version): Accept identical versions too.
83447
83448 2005-07-18  Bruno Haible  <bruno@clisp.org>
83449
83450         * modules/lock: New file.
83451         * MODULES.html.sh (Multithreading): New section.
83452
83453 2005-07-18  Bruno Haible  <bruno@clisp.org>
83454
83455         * m4/lock.m4: New file, from GNU gettext.
83456
83457 2005-07-18  Bruno Haible  <bruno@clisp.org>
83458
83459         * lib/lock.h: New file, from GNU gettext.
83460         * lib/lock.c: New file, from GNU gettext.
83461
83462 2005-07-18  Bruno Haible  <bruno@clisp.org>
83463
83464         * lib/lock.h (gl_once_t): New type.
83465         (gl_once_define, gl_once): New macros.
83466         * lib/lock.c (fresh_once): New variable.
83467         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
83468         functions.
83469
83470 2005-07-16  Simon Josefsson  <jas@extundo.com>
83471
83472         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
83473         workaround, suggested by Bruno.
83474
83475 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
83476
83477         * modules/xalloc (Depends-on): Add xalloc-die.
83478         * modules/xvasprintf (Depends-on): Add xalloc-die.
83479
83480 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
83481
83482         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
83483         with a minor change.
83484
83485 2005-07-15  Bruno Haible  <bruno@clisp.org>
83486
83487         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
83488         When using lib/poll.c, define poll as rpl_poll.
83489
83490 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
83491
83492         * modules/argp (Depends-on): Remove unlocked-io.
83493
83494 2005-07-14  Derek Price  <derek@ximbiot.com>
83495
83496         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
83497         for glob symlink bug.
83498
83499 2005-07-14  Bruno Haible  <bruno@clisp.org>
83500
83501         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
83502         Instead, test for *_unlocked function declarations directly.
83503
83504 2005-07-11  Simon Josefsson  <jas@extundo.com>
83505
83506         * modules/size_max: New file.
83507
83508         * modules/xsize: Depend on size_max module for size_max.m4.
83509
83510 2005-07-11  Simon Josefsson  <jas@extundo.com>
83511
83512         * lib/size_max.h: New file.
83513
83514 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
83515
83516         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
83517         copyright symbol and the year.
83518         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
83519         (version_etc_va): Use parameterized copyright notice.
83520         Reword to conform to the current GNU coding standards.
83521
83522 2005-07-11  Karl Berry  <karl@gnu.org>
83523
83524         * doc/gnulib.texi (Quoting): new node.
83525         (Initial import): more info, from Patrice.
83526
83527 2005-07-11  Bruno Haible  <bruno@clisp.org>
83528
83529         * gnulib-tool (func_usage): Document option --avoid.
83530         (Command line options): Handle --avoid.
83531         (func_acceptable): New function.
83532         (func_modules_transitive_closure): Use it.
83533
83534 2005-07-11  Bruno Haible  <bruno@clisp.org>
83535
83536         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
83537         Reported by Jim Meyering.
83538
83539 2005-07-10  Bruno Haible  <bruno@clisp.org>
83540
83541         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
83542         Needed when size_t is smaller than 'unsigned int'.
83543         Reported by Paul Eggert.
83544
83545 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
83546
83547         * modules/argp (Depends-on): Add unlocked-io
83548
83549 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
83550
83551         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
83552         block of defines.
83553
83554 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
83555
83556         * config/srclist.txt: Comment out regcomp.c, since we have a porting
83557         fix now.
83558
83559 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
83560         and Paul Eggert  <eggert@cs.ucla.edu>
83561
83562         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
83563         in wint_t, not wchar_t.  Remove now-unnecessary cast.
83564
83565 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
83566
83567         * modules/regex (Files): Add lib/regex_internal.c,
83568         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
83569         (Depends-on): Add extensions.
83570         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
83571
83572 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
83573
83574         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
83575         pathconf.
83576         * m4/same.m4 (gl_SAME): Likewise.
83577         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
83578
83579         * m4/regex.m4: Adjust to new libc regex implementation.
83580         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
83581         all the .c and .h parts of (the new) regex.
83582         Quote the m4 stuff better.
83583         Check for RE_ICASE bug of old gnulib.
83584         Check for REG_STARTEND of recent libc.
83585         Rename local variables from jm_* to gl_*.
83586         Quote operand of "test -f".
83587         Say "recent enough" version of libc, not "version 2".
83588         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
83589         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
83590         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
83591         Remove check for btowc, isascii.
83592         Require AM_LANGINFO_CODESET.
83593
83594 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
83595
83596         * lib/regex.c, regex.h: Sync from libc.
83597         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
83598         * lib/regexec.c:
83599         New files, synced from libc, except that regex_internal.h
83600         currently has a small porting fix.
83601
83602 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
83603
83604         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
83605         regex_internal.c, regexec.c.
83606         Add regex_internal.h too, but as a comment, since the libc version
83607         is currently broken in gnulib mode.
83608
83609 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
83610
83611         Support programs like Emacs that use gnulib but not gettext.
83612         * MODULES.html.sh (Internationalization functions): Add gettext-h.
83613         * modules/gettext-h: New file.
83614         * modules/gettext (Files): Remove lib/gettext.h.
83615         (Depends-on): Add gettext-h.
83616         (Makefile.am): Remove lib_SOURCES.
83617         * modules/argmatch, modules/c-stack, modules/closeout:
83618         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
83619         * modules/execute, modules/file-type, modules/getaddrinfo:
83620         * modules/getopt, modules/human, modules/javacomp:
83621         * modules/javaexec, modules/mkdir-p, modules/obstack:
83622         * modules/openat, modules/pagealign_alloc, modules/pipe:
83623         * modules/quotearg, modules/regex, modules/rpmatch:
83624         * modules/unicodeio, modules/userspec, modules/version-etc:
83625         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
83626         * modules/xsetenv:
83627         Depend on gettext-h, not gettext.
83628
83629 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
83630
83631         * gnulib-tool (func_import): Add support for 'public domain' license.
83632         * modules/alloca, modules/atexit, modules/memmove:
83633         Now public domain, not GPL.
83634         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
83635         * modules/realloc, modules/strerror, modules/strtod:
83636         Now LGPL, not GPL.
83637
83638 2005-07-05  Bruno Haible  <bruno@clisp.org>
83639
83640         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
83641         autoconf CVS. Needed for mingw.
83642
83643 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
83644
83645         Remove the dependency of the strftime module on the tzset module.
83646         * modules/strftime (Depends-on): Remove dependency on tzset.
83647
83648 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
83649
83650         Remove the dependency of the strftime module on the tzset module.
83651         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
83652         gl_FUNC_TZSET_CLOBBER.
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         * lib/strftime.c (my_strftime)
83658         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
83659         Copy the input structure, to work around some of the bug with
83660         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
83661         Solaris releases, you should also use the tzset module, but we won't
83662         require it as a dependency any more since we don't want LGPLed code
83663         to depend on GPLed code.
83664
83665 2005-07-02  Jim Meyering  <jim@meyering.net>
83666
83667         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
83668         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
83669         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
83670         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
83671
83672 2005-07-02  Jim Meyering  <jim@meyering.net>
83673
83674         * lib/backupfile.c (backup_args): Change a `0' to NULL.
83675
83676 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
83677
83678         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
83679         declares only 'struct timespec;' (!).
83680
83681 2005-07-01  Jim Meyering  <jim@meyering.net>
83682
83683         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
83684         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
83685         * lib/save-cwd.c, tempname.c:
83686         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
83687         and don't include <sys/file.h>).
83688
83689 2005-06-29  Jim Meyering  <jim@meyering.net>
83690
83691         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
83692         type name.  Use the variable name instead.
83693         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
83694         Likewise.
83695
83696 2005-06-28  Simon Josefsson  <jas@extundo.com>
83697
83698         * modules/check-version (Files): Add check-version.m4.
83699
83700 2005-06-28  Simon Josefsson  <jas@extundo.com>
83701
83702         * m4/check-version.m4: New file, suggested by Jim Meyering
83703         <jim@meyering.net>.
83704
83705 2005-06-28  Simon Josefsson  <jas@extundo.com>
83706
83707         * lib/check-version.h, lib/check-version.c: New files.
83708
83709 2005-06-28  Simon Josefsson  <jas@extundo.com>
83710
83711         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
83712         collision with global variable.  Better indentation.  Don't
83713         increment buffer pointer beyond buffer end.  Based on comments
83714         from Paul Eggert <eggert@cs.ucla.edu>.
83715
83716         * lib/base64.h: Indent.
83717
83718 2005-06-28  Simon Josefsson  <jas@extundo.com>
83719
83720         * doc/gnulib.texi (Library version handling): New section.
83721
83722 2005-06-28  Jim Meyering  <jim@meyering.net>
83723
83724         * check-module (find_included_lib_files): Hard-code another
83725         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
83726         but modules/fts-lgpl (correctly) does not list those files.
83727
83728         * modules/canonicalize (Files): Add lib/pathmax.h.
83729
83730 2005-06-25  Simon Josefsson  <jas@extundo.com>
83731
83732         * modules/check-version: New file.
83733
83734 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
83735
83736         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
83737         initializer of struct addrinfo, as an indication that we don't
83738         care how many members the structure has.
83739
83740 2005-06-24  Derek Price  <derek@ximbiot.com>
83741         and Bruno Haible  <bruno@clisp.org>
83742
83743         Remove stat module & update lstat.
83744         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
83745         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
83746         * m4/stat.m4: Remove this file.
83747
83748 2005-06-24  Derek Price  <derek@ximbiot.com>
83749         and Bruno Haible  <bruno@clisp.org>
83750
83751         Remove stat module & update lstat.
83752         * lib/stat.c: Remove this file...
83753         (slash_aware_lstat): ...moving this content and its support...
83754         * lib/lstat.c (rpl_lstat): ...into here.
83755         * lib/lstat.h: New file.
83756
83757 2005-06-24  Derek Price  <derek@ximbiot.com>
83758         and Bruno Haible  <bruno@clisp.org>
83759
83760         Remove stat module & update lstat.
83761         * config/srclist.txt (libc sources): Remove stat.
83762
83763 2005-06-24  Derek Price  <derek@ximbiot.com>
83764         and Bruno Haible  <bruno@clisp.org>
83765
83766         Remove stat module & update lstat.
83767         * MODULES.html.sh (stat): Remove.
83768         * MODULES.html: Regenerated.
83769         * modules/lstat (Description): Correct function name.
83770         (Files): Add "lstat.h".
83771         (Depends-on): Remove stat, add xalloc, stat-macros.
83772         * modules/stat: Remove this file.
83773         (Include): Add "lstat.h", remove <sys/stat.h>.
83774
83775 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
83776
83777         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
83778         (ranged_convert): Don't save conversion in a temporary struct.
83779         This causes a warning with GCC 4.0.0, and anyway in the typical
83780         case it's not worth the extra 100 bytes or so of code.
83781         (ranged_convert, __mktime_internal): When calling a function via a
83782         pointer P, use P () rather than (*P) (), as we now assume C89 or
83783         better.
83784
83785 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
83786
83787         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
83788         "who -r" failed to give output.  Problem reported by Tim Waugh.
83789
83790         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
83791         (xcalloc): Use it to avoid needless tests.
83792         Problem reported by Jim Meyering.
83793
83794 2005-06-20  Derek Price  <derek@ximbiot.com>
83795
83796         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
83797         unnecessary for Autoconfs > 2.59c.
83798
83799 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83800
83801         * lib/argp.h (__option_is_short): Check upper limit of
83802         __key. Isprint() requires its argument to have the value
83803         of an unsigned char or EOF.
83804
83805 2005-06-16  Jim Meyering  <jim@meyering.net>
83806
83807         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
83808         when either N or S is zero.
83809
83810 2005-06-16  Derek Price  <derek@ximbiot.com>
83811
83812         * m4/bison.m4: Declare YACC & YFLAGS precious.
83813
83814 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
83815
83816         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
83817         multibyte string or pattern, fall back on unibyte matching.
83818         Problem reported by James Youngman.
83819
83820 2005-06-08  Bruno Haible  <bruno@clisp.org>
83821
83822         * modules/csharpcomp: New file.
83823         * MODULES.html.sh (C#): Add csharpcomp.
83824
83825 2005-06-08  Bruno Haible  <bruno@clisp.org>
83826
83827         * m4/csharpcomp.m4: New file, from GNU gettext.
83828
83829 2005-06-08  Bruno Haible  <bruno@clisp.org>
83830
83831         * lib/csharpcomp.h: New file, from GNU gettext.
83832         * lib/csharpcomp.c: New file, from GNU gettext.
83833         * lib/csharpcomp.sh.in: New file, from GNU gettext.
83834
83835 2005-06-08  Bruno Haible  <bruno@clisp.org>
83836
83837         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
83838         warning on mingw.
83839
83840 2005-06-07  Derek Price  <derek@ximbiot.com>
83841
83842         Sync from CVS.
83843         * lib/glob_.h: Indent nested #ifdef.
83844
83845 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
83846
83847         Sync from coreutils.
83848         Use "file name" when talking about file names, instead of "filename"
83849         or "path", as per the GNU coding standards.
83850         * lib/mkdir-p.c: Renamed from makepath.c.
83851         (make_dir_parents): Renamed from make_path.  All callers changed.
83852         * lib/mkdir-p.h: Likewise.  All includers changed.
83853         * lib/filenamecat.c: Renamed from path-concat.c.
83854         (file_name_concat): Renamed from path_concat.  All callers changed.
83855         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
83856         * lib/filenamecat.h: Likewise.  All includers changed.
83857         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
83858         in comments or local variable names.
83859         * lib/basename.c: Likewise.
83860         * lib/canonicalize.c, canonicalize.h: Likewise.
83861         * lib/dirname.c, dirname.h: Likewise.
83862         * lib/euidaccess.c: Likewise.
83863         * lib/exclude.c: Likewise
83864         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
83865         * lib/fsusage.c, fsuage.h: Likewise.
83866         * lib/fts.c, fts_.h: Likewise.
83867         * lib/getcwd.c: Likewise.
83868         * lib/getloadavg.c: Likewise.
83869         * lib/mkstemp.c: Likewise.
83870         * lib/mountlist.c, mountlist.h: Likewise.
83871         * lib/openat.c, openat.h: Likewise.
83872         * lib/readlink-stub.c: Likewise.
83873         * lib/readutmp.c, readutmp.h: Likewise.
83874         * lib/rename.c: Likewise.
83875         * lib/rmdir.c: Likewise.
83876         * lib/same.c: Likewise.
83877         * lib/savedir.c: Likewise.
83878         * lib/stripslash.c: Likewise.
83879         * lib/tempname.c: Likewise.
83880         * lib/xreadlink.c: Likewise.
83881         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
83882         All uses changed.
83883         * lib/exclude.h: Likewise.
83884
83885         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
83886         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
83887         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
83888         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
83889         * lib/pathmax.h: Include <limits.h> unconditionally, since other
83890         files have been getting away with it for years (MORE/BSD 4.3
83891         is extinct now).
83892         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
83893         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
83894
83895         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
83896         Define to 256, not 255, as per modern POSIX.
83897
83898 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
83899
83900         Sync from coreutils.
83901         Use "file name" when talking about file names, instead of "filename"
83902         or "path", as per the GNU coding standards.
83903         * MODULES.html.sh: mkdir-p renamed from makepath.
83904         filenamecat renamed from path-concat.
83905         * modules/filenamecat: Renamed from modules/path-concat.
83906         (Files): filenamecat.h and filenamecat.c renamed from
83907         path-concat.h and path-concat.c.
83908         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
83909         (Include): filenamecat.h, not path-concat.h.
83910         * modules/mkdir-p: Renamed from modules/makepath.
83911         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
83912         makepath.c.
83913         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
83914         (Include): mkdir-p.h, not makepath.h.
83915
83916 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
83917
83918         Sync from coreutils.
83919         * m4/mkdir-p.m4: Renamed from makepath.m4.
83920         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
83921         Rename files from makepath.c to mkdir-p.c, and from
83922         makepath.h to mkdir-p.h.
83923         * m4/filenamecat.m4: Renamed from path-concat.m4.
83924         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
83925         Rename files from path-concat.c to filenamecat.c,
83926         and from path-concat.h to filenamecat.h.
83927         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
83928         "file name" in local variables or comments.
83929         * m4/rename.m4: Likewise.
83930
83931 2005-06-01  Bruno Haible  <bruno@clisp.org>
83932
83933         * modules/csharpexec: New file.
83934         * MODULES.html.sh (C#): New section.
83935
83936 2005-06-01  Bruno Haible  <bruno@clisp.org>
83937
83938         * m4/csharp.m4: New file, from GNU gettext.
83939         * m4/csharpexec.m4: New file, from GNU gettext.
83940
83941 2005-06-01  Bruno Haible  <bruno@clisp.org>
83942
83943         * lib/csharpexec.h: New file, from GNU gettext.
83944         * lib/csharpexec.c: New file, from GNU gettext.
83945         * lib/csharpexec.sh.in: New file, from GNU gettext.
83946
83947 2005-05-31  Derek Price  <derek@ximbiot.com>
83948             Paul Eggert  <eggert@cs.ucla.edu>
83949
83950         Sync from cvs.
83951         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
83952
83953 2005-05-31  Derek Price  <derek@ximbiot.com>
83954             Paul Eggert  <eggert@cs.ucla.edu>
83955
83956         Sync from cvs.
83957         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
83958
83959 2005-05-29  Derek Price  <derek@ximbiot.com>
83960
83961         * config/srclist.txt (glob_.h, glob.c): Add these files.
83962
83963 2005-05-29  Derek Price  <derek@ximbiot.com>
83964
83965         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
83966         * modules/glob: New file.
83967         * modules/getlogin_r: Add link to POSIX spec in description.
83968
83969 2005-05-29  Derek Price  <derek@ximbiot.com>
83970             Paul Eggert  <eggert@cs.ucla.edu>
83971
83972         * m4/glob.m4: New file.
83973
83974 2005-05-29  Derek Price  <derek@ximbiot.com>
83975             Paul Eggert  <eggert@cs.ucla.edu>
83976
83977         * lib/glob_.h, lib/glob.c: New files.
83978
83979 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
83980
83981         * modules/fts (Files): Remove m4/inttypes-pri.m4.
83982         * modules/fts-lgpl (Depends-on): Remove gettext.
83983
83984 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
83985
83986         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
83987         and don't require gt_INTTYPES_PRI.
83988
83989 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
83990
83991         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
83992
83993         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
83994         the configuration hassle isn't worth it.
83995         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
83996         (LONGEST_MODIFIER, PRIuMAX): Remove.
83997
83998 2005-05-27  Bruno Haible  <bruno@clisp.org>
83999
84000         * lib/getlogin_r.h: Remove second include of <stddef.h>.
84001
84002 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
84003
84004         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
84005         _POSIX_PTHREAD_SEMANTICS for Solaris.
84006
84007 2005-05-25  Derek Price  <derek@ximbiot.com>
84008
84009         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
84010
84011 2005-05-25  Derek Price  <derek@ximbiot.com>
84012             Paul Eggert  <eggert@cs.ucla.edu>
84013
84014         * modules/getlogin_r, m4/getlogin_r.m4: New files.
84015         * lib/getlogin_r.c, getlogin_r.h: New files.
84016
84017 2005-05-25  Bruno Haible  <bruno@clisp.org>
84018             Derek Price  <derek@ximbiot.com>
84019
84020         * lib/getlogin_r.h: Simplify API documentation.
84021
84022 2005-05-23  Derek Price  <derek@ximbiot.com>
84023
84024         * modules/minmax (Files): Add m4/minmax.m4.
84025         (configure.ac): Add gl_MINMAX.
84026
84027 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
84028
84029         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
84030         so that unistd-safer.h (GPL'ed code) need not be included.
84031
84032 2005-05-22  Bruno Haible  <bruno@clisp.org>
84033
84034         * m4/minmax.m4: New file.
84035         Based on a patch by Derek Price <derek@ximbiot.com>.
84036
84037 2005-05-22  Bruno Haible  <bruno@clisp.org>
84038
84039         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
84040         (INT64_MIN): Fix definition.
84041         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
84042
84043         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
84044         NEED_SIGNED_INT_TYPES.
84045
84046         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
84047         HAVE_SYSTEM_INTTYPES.
84048
84049 2005-05-22  Bruno Haible  <bruno@clisp.org>
84050
84051         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
84052         Also include <sys/param.h> if it defines MIN, MAX.
84053         Based on a patch by Derek Price <derek@ximbiot.com>.
84054
84055 2005-05-21  Jim Meyering  <jim@meyering.net>
84056
84057         * modules/fts (Files): Add m4/inttypes-pri.m4.
84058         (Depends-on): Add lstat and remove gettext.  Alphabetize.
84059
84060 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
84061
84062         New fts module.
84063         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
84064         (setup_dir, free_dir): New functions.
84065         (enter_dir, leave_dir): Define trivial
84066         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
84067         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
84068         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
84069         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
84070         Move to fts-cycle.c.
84071         (fts_open): Use setup_dir.
84072         (fts_close): Use free_dir.
84073         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
84074         This adds a label and some gotos, but the alternatives were messier.
84075         Check for memory allocation failure when entering a dir.
84076         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
84077         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
84078         (FTS): New member fts_cycle, that is a union that contains the
84079         old active_dir_ht and cycle_state.  All uses changed to mention
84080         fts_cycle.ht and fts_cycle.state.
84081         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
84082         fts.c, with the following changes:
84083         (setup_dir, free_dir): New functions.
84084         (enter_dir): Now returns bool.  Return true if successful, false
84085         if memory exhausted.  All callers changed.
84086         Do not bother partly cleaning up on
84087         memory allocation failure; that is free_dir's job.
84088         However, free ad if hash_insert fails, to avoid memory leak.
84089         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
84090         fts->fts_options to see which union member to use.
84091
84092 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
84093
84094         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
84095         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
84096
84097 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
84098
84099         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
84100
84101 2005-05-20  Jim Meyering  <jim@meyering.net>
84102
84103         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
84104         Now a macro, to pacify GCC.
84105
84106 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
84107
84108         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
84109         of -1.
84110
84111 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
84112
84113         * lib/chown.c (rpl_chown): Return -1 on failure.
84114
84115 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
84116
84117         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
84118         Don't check for stddef.h.
84119         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
84120         don't use its results.
84121         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
84122         since we include them unconditionally.  Don't require
84123         AM_STDBOOL_H, since stdbool is a prerequisite.
84124         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
84125         since we assume C89 or better.
84126         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
84127         as we don't use their results.
84128         Don't check for fchdir, memmove, memset, strrchr, as we use
84129         them unconditionally.
84130         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
84131         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
84132
84133 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
84134
84135         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
84136         Include <stddef.h> unconditionally, since we assume C89 now.
84137         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
84138         * lib/fts.c: Include fts_.h first, to check interface.
84139         Do not include intprops.h; no longer needed.
84140         Include cycle-check.h and hash.h, since fts_.h no longer does.
84141         Remove unnecessary casts of closedir to void.
84142         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
84143         decide whether to decrement nlinks.
84144         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
84145         (FTS): Use struct hash_table * instead of Hash_table, so that
84146         we no longer need to include hash.h here.
84147
84148 2005-05-18  Jim Meyering  <jim@meyering.net>
84149
84150         * modules/dirfd (License): Change to LGPL.  Most of the code
84151         is already in the public domain.
84152
84153 2005-05-18  Jim Meyering  <jim@meyering.net>
84154
84155         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
84156         Reported by Yoann Vandoorselaere.
84157
84158 2005-05-17  Jim Meyering  <jim@meyering.net>
84159
84160         * m4/fts.m4: New file, from coreutils.
84161
84162 2005-05-17  Jim Meyering  <jim@meyering.net>
84163
84164         * lib/fts.c, lib/fts_.h: New files, from coreutils.
84165
84166 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
84167
84168         Sync from coreutils.
84169         * m4/unlinkdir.m4: New file.
84170
84171 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
84172
84173         Sync from coreutils.
84174         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
84175         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
84176         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
84177         White space changes only.
84178         * lib/makepath.c (make_path): Port to hosts where leading "//" is
84179         special.
84180         * lib/yesno.c: Include getline.h, not ctype.h.
84181         (yesno): Don't remove leading white space; POSIX doesn't allow it.
84182         Use getline to remove arbitrary restriction on response length.
84183
84184 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
84185
84186         * config/srclist-update: Spell out "Street" in FSF postal
84187         mail address; this is the style the FSF seems to prefer.
84188
84189         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
84190         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
84191         this updates FSF postal mail address.
84192
84193         Sync from coreutils.
84194         * modules/unlinkdir: New file.
84195         * modules/yesno (Depends-on): Add getline.
84196         * MODULES.html.sh (File system functions): Add unlinkdir.
84197
84198 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
84199
84200         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
84201         lib/strsep.h:
84202         Change the initial comment to refer to GPL, not LGPL.
84203         gnulib-tool will change it to LGPL as needed.
84204
84205         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
84206         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
84207         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
84208         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
84209         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
84210         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
84211         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
84212         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
84213         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
84214         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
84215         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
84216         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
84217         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
84218         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
84219         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
84220         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
84221         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
84222         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
84223         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
84224         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
84225         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
84226         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
84227         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
84228         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
84229         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
84230         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
84231         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
84232         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
84233         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
84234         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
84235         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
84236         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
84237         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
84238         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
84239         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
84240         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
84241         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
84242         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
84243         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
84244         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
84245         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
84246         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
84247         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
84248         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
84249         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
84250         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
84251         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
84252         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
84253         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
84254         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
84255         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
84256         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
84257         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
84258         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
84259         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
84260         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
84261         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
84262         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
84263         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
84264         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
84265         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
84266         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
84267         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
84268         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
84269         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
84270         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
84271         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
84272         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
84273         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
84274         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
84275         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
84276         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
84277         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
84278         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
84279         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
84280         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
84281         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
84282         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
84283         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
84284         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
84285         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
84286         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
84287         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
84288         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
84289         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
84290         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
84291         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
84292         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
84293         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
84294         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
84295         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
84296         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
84297         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
84298         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
84299         lib/yesno.c, lib/yesno.h:
84300         Update FSF postal mail address.
84301
84302 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
84303
84304         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
84305         tests/test-memmem.c, tests/test-stpncpy.c:
84306         Update FSF postal mail address.
84307
84308 2005-05-13  Bruno Haible  <bruno@clisp.org>
84309
84310         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
84311         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
84312         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
84313         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
84314         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
84315         Add support for 64-bit integers in the MSVC compiler.
84316
84317 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84318
84319         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
84320
84321 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
84322
84323         * gnulib-tool (func_import): Sort and uniquify recommended includes.
84324
84325 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
84326
84327         * doc/getdate.texi (General date syntax): Don't say that date
84328         date --iso-8601=ns generates acceptable dates; it doesn't yet.
84329         Problem reported by Nic Ferrier.
84330
84331 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
84332
84333         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
84334         specified in ai_socktype. Fix invalid ai_protocol
84335         check. ai_protocol is usually set to 0 or depending on
84336         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
84337         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
84338         ai_socktype / ai_protocol in the returned addrinfo structure.
84339
84340 2005-05-10  Simon Josefsson  <jas@extundo.com>
84341
84342         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
84343         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
84344
84345 2005-05-10  Karl Berry  <karl@gnu.org>
84346
84347         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
84348         (from http://www.gnu.org/licenses).
84349         * doc/COPYING.LIB: also rename to COPYING.LESSER.
84350         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
84351         fdl.texi suffices.
84352
84353 2005-05-10  Karl Berry  <karl@gnu.org>
84354
84355         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
84356         (COPYING.DOC): remove.
84357
84358         * config/srclist-update: new FSF address.
84359
84360 2005-05-10  Derek Price  <derek@ximbiot.com>
84361
84362         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
84363         possible.
84364
84365 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
84366             Bruno Haible  <bruno@clisp.org>
84367
84368         * modules/inet_ntop: New file.
84369         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84370         inet_ntop.
84371
84372 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
84373             Bruno Haible  <bruno@clisp.org>
84374
84375         * m4/inet_ntop.m4: New file.
84376
84377 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
84378             Bruno Haible  <bruno@clisp.org>
84379
84380         * lib/inet_ntop.h: New file.
84381         * lib/inet_ntop.c: New file, from glibc with modifications.
84382
84383 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
84384
84385         * modules/time_r (License): Change to LGPL.
84386         * modules/extensions (License): Change to LGPL.  Actually,
84387         the license is more permissive than that, but currently gnulib-tool
84388         doesn't know how to handle more-permissive licenses.
84389
84390         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
84391         Problem reported by Dave Love.
84392
84393 2005-05-08  Jim Meyering  <jim@meyering.net>
84394
84395         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
84396         blank.
84397
84398 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
84399
84400         * modules/argmatch (Depends-on): Add stdbool.
84401         * modules/backupfile (Depends-on): Likewise.
84402         * modules/chdir-long (Depends-on): Likewise.
84403         * modules/closeout (Depends-on): Likewise.
84404         * modules/cycle-check (Depends-on): Likewise.
84405         * modules/dirname (Depends-on): Likewise.
84406         * modules/fnmatch (Depends-on): Likewise.
84407         * modules/fsusage (Depends-on): Likewise.
84408         * modules/fwriteerror (Depends-on): Likewise.
84409         * modules/getcwd (Depends-on): Likewise.
84410         * modules/getloadavg (Depends-on): Likewise.
84411         * modules/hard-locale (Depends-on): Likewise.
84412         * modules/makepath (Depends-on): Likewise.
84413         * modules/mountlist (Depends-on): Likewise.
84414         * modules/nanosleep (Depends-on): Likewise.
84415         * modules/posixtm (Depends-on): Likewise.
84416         * modules/quotearg (Depends-on): Likewise.
84417         * modules/readtokens (Depends-on): Likewise.
84418         * modules/readtokens0 (Depends-on): Likewise.
84419         * modules/readutmp (Depends-on): Likewise.
84420         * modules/save-cwd (Depends-on): Likewise.
84421         * modules/strftime (Depends-on): Likewise.
84422         * modules/userspec (Depends-on): Likewise.
84423         * modules/utimecmp (Depends-on): Likewise.
84424         * modules/xgetcwd (Depends-on): Likewise.
84425         * modules/xnanosleep (Depends-on): Likewise.
84426         * modules/xstrtod (Depends-on): Likewise.
84427         * modules/yesno (Depends-on): Likewise.
84428
84429 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
84430
84431         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
84432         needless checks.
84433
84434 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
84435
84436         Merge from coreutils.  Among other things,
84437         add bulletproofing for cases where stdin, stdout, or stderr are closed.
84438         * lib/fd-safer.c: New file.
84439         * lib/fcntl-safer.h, open-safer.c: Remove.
84440         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
84441         * lib/dup-safer.c: Include unistd-safer.h first.
84442         Don't include errno.h.
84443         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
84444         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
84445         * lib/file-type.c: Rely on file-type.h change.
84446         * lib/getloadavg.c: Include unistd-safer.h.
84447         (getloadavg): Use safer open.
84448         * lib/getusershell.c: Include "stdio-safer.h".
84449         (getusershell): Use safer fopen.
84450         * lib/long-options.c (long_options): Use NULL rather than 0.
84451         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
84452         'free'.
84453         * lib/modechange.c: Likewise.
84454         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
84455         (MODE_DONE): New constant.
84456         (struct mode_change): Remove 'next' member.
84457         (make_node_op_equals): New function; like the old one of the
84458         same name, except it allocates an array.
84459         (mode_compile, mode_create_from_ref): Use it.
84460         (mode_compile): Allocate result as an array, not a linked list.
84461         Parse octal string ourself, so that we catch mistakes like "+0".
84462         (mode_adjust): Arg is an array, not a linked list.
84463         * lib/modechange.c: Include stat-macros.h, xalloc.h.
84464         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
84465         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
84466         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
84467         Remove.  This is now stat-macros.h's job.
84468         (talloc): Remove.  All callers replaced by xalloc, so that
84469         our invokers don't have to worry about reporting memory failures.
84470         (make_node_op_equals): Remove.
84471         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
84472         New constants.
84473         (struct mode_change): Moved here from modechange.h.
84474         (mode_append_entry): Remove.
84475         (mode_compile): Remove MASKED_OPS arg, since it encouraged
84476         apps to have incorrect behavior.  Use simpler algorithm for head
84477         and tail.  Don't futz with umask; that's now the job of mode_adjust.
84478         Detect more invalid usages rather than having somewhat-random behavior.
84479         Don't insert an "a=" action, as that leads to incorrect behavior.
84480         (mode_compile, mode_create_from_ref): Return NULL on error instead
84481         of an enum, since now there's only one way to have an error.  All
84482         callers changed.
84483         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
84484         at the correct time.  Simplify calculation of "+u" and its ilk.
84485         Don't mishandle "+X".
84486         (mode_free): Remove "register" and localize decls.
84487         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
84488         (struct mode_change): Move to modechange.c; callers don't
84489         need to see this stuff.
84490         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
84491         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
84492         (mode_change, mode_adjust): Reflect the new signatures noted above.
84493         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
84494         that might redefine system include files.
84495         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
84496         (my_usleep): Use NULL rather than (void *) 0.
84497         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
84498         Use siginterrupt to specify that system calls should be interrupted.
84499         (rpl_nanosleep): Move initialization of suspended closer to call of
84500         my_usleep.
84501         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
84502         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
84503         (desirable_utmp_entry): New function.
84504         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
84505         using x2nrealloc, to simplify logic.
84506         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
84507         size calculation.  Do not assume utmp file is a regular file.
84508         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
84509         (READ_UTMP_CHECK_PIDS): New constant.
84510         * lib/save-cwd.c: Include unistd-safer.h.
84511         (save_cwd): Use fd_safer.
84512         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
84513         [!_LIBC] Include "stat-macros.h" instead.
84514         * lib/unistd-safer.h (fd_safer): New decl.
84515
84516 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
84517
84518         * modules/getloadavg (Depends-on): Add unistd-safer.
84519         * modules/getusershell (Depends-on): Add stdio-safer.
84520         * modules/lstat (Depends-on): Remove xalloc.
84521         * modules/mkstemp (Depends-on): Add stat-macros.
84522         * modules/modechange (Depends-on): Remove xstrtol.
84523         Add stat-macros, xalloc.
84524         * modules/save-cwd (Depends-on): Add unistd-safer.
84525         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
84526         * modules/unistd-safer (Files): Add lib/fd-safer.c
84527         (Makefile.am): Remove lib_SOURCES.
84528
84529         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
84530         Remove fcntl-safer; unistd-safer supersedes it.
84531
84532 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
84533
84534         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
84535         AC_HEADER_STAT.
84536         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
84537         (gl_PREREQ_CHOWN): Remove.
84538         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
84539         it.  Don't require AC_HEADER_STAT.
84540         (gl_PREREQ_LSTAT): Remove.
84541         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
84542         Don't require AC_HEADER_STAT.
84543         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
84544         (gl_PREREQ_RMDIR): Remove.
84545         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
84546         mention stat-macros.h or AC_HEADER_STAT, since we'll make
84547         the stat-macros module a prerequisite.
84548         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
84549         * m4/filemode.m4 (gl_FILEMODE): Likewise.
84550         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
84551         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
84552         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
84553         variable names.
84554         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
84555         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
84556         variable prefixes.
84557         * m4/fcntl-safer.m4: Remove.
84558         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
84559         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
84560         Invoke gl_PREREQ_FD_SAFER.
84561         (gl_PREREQ_FD_SAFER): New macro.
84562         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
84563         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
84564         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
84565         Remove duplicate call to AC_LIBOBJ(readutmp).
84566         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
84567
84568         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
84569         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
84570
84571 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
84572
84573         * MODULES.html.sh (Misc): Add byteswap.
84574
84575 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
84576
84577         * modules/getcwd (Depends-on): Add extensions.
84578         * modules/openat (Depends-on): Likewise.
84579
84580 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
84581
84582         * modules/byteswap: New file.
84583
84584 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
84585
84586         * m4/byteswap.m4: New file.
84587
84588 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
84589
84590         * lib/byteswap_.h: New file.
84591
84592 2005-04-25  Karl Berry  <karl@gnu.org>
84593
84594         * m4/gettext.m4: Update from GNU gettext 0.14.4.
84595
84596 2005-04-25  Albert Chin  <china@thewrittenword.com>
84597
84598         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
84599         Toolkit C bug.
84600
84601 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
84602
84603         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
84604         (func_ln_if_changed): Remove forcibly for no error message
84605         in case file does not exist.
84606
84607 2005-04-19  Simon Josefsson  <jas@extundo.com>
84608
84609         * gnulib-tool (Options): Make --symlink mean --symbolic.
84610
84611 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
84612
84613         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
84614
84615 2005-04-16  Simon Josefsson  <jas@extundo.com>
84616
84617         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
84618
84619 2005-04-15  Simon Josefsson  <jas@extundo.com>
84620
84621         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
84622
84623 2005-04-15  Simon Josefsson  <jas@extundo.com>
84624
84625         * gnulib-tool: Rename --symlink to --symbolic.
84626
84627 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
84628
84629         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
84630         symbolic links to files instead of copying/moving.  Add --aux-dir,
84631         specifying directory relative --dir where auxiliary build tools
84632         are placed.
84633
84634 2005-04-14  Bruno Haible  <bruno@clisp.org>
84635
84636         * modules/allocsa (License): Change to LGPL.
84637         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
84638
84639 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
84640
84641         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
84642         that "UTC +1 second" continues to work.  Problem reported
84643         by Dmitry V. Levin.
84644         (relunit_snumber): New rule.
84645         (relunit): Use it.
84646
84647 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
84648
84649         * lib/getdate.y (universal_time_zone_table): New constant.
84650         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
84651         universal_time_zone_table.
84652         (lookup_zone): Prefer universal_time_zone_table to
84653         local_time_zone_table, so that "GMT" time stamps are allowed in
84654         London during the summer.  Problem reported by Ian Abbott.
84655
84656 2005-04-12  Jim Meyering  <jim@meyering.net>
84657
84658         * lib/human.c (humblock): Set *options even when returning due to
84659         xstrtoumax conversion failure.  Thanks to a used-uninitialized
84660         warning from gcc-4.
84661
84662 2005-04-09  Jim Meyering  <jim@meyering.net>
84663
84664         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
84665         -Wuninitialized: initialize tm0.tm_year.
84666
84667 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
84668
84669         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
84670         count, since there's no maximum.  All uses changed.
84671         Add member dsts_seen.
84672         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
84673         not being INT_MAX.
84674         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
84675         Use pc_rels_seen to decide whether a date is absolute.
84676
84677         * lib/getdate.y (number): Don't overwrite year.
84678         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
84679         check.
84680
84681 2005-04-02  Simon Josefsson  <jas@extundo.com>
84682
84683         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
84684         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
84685
84686 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
84687
84688         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
84689         where no absolute path name can be longer than PATH_MAX.
84690
84691 2005-03-27  Jim Meyering  <jim@meyering.net>
84692
84693         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
84694
84695 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
84696
84697         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
84698         "one's complement" -> "ones' complement" in comment, as per Knuth.
84699         "value of type" -> "type or expression" in comment.
84700         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
84701
84702 2005-03-26  Jim Meyering  <jim@meyering.net>
84703
84704         Comment nits.
84705         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
84706         Correct typos: s/or/of/.
84707
84708 2005-03-26  Jim Meyering  <jim@meyering.net>
84709
84710         * modules/check-include-files: Move to ../ and rename to...
84711         * check-module: ...this.
84712
84713 2005-03-25  Jim Meyering  <jim@meyering.net>
84714
84715         * modules/xvasprintf (Files): Add xalloc.h.
84716
84717 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
84718
84719         * modules/gettext (Files): config/config.rpath ->
84720         build-aux/config.rpath
84721         * modules/iconv (Files): Likewise.
84722         Problem reported by Oskar Liljeblad.
84723
84724 2005-03-23  Jim Meyering  <jim@meyering.net>
84725
84726         * modules/check-include-files: New script to check for
84727         missing dependencies, multiple includes, etc.
84728
84729         * modules/c-strtold (Depends-on): Add xalloc.
84730         * modules/c-strtod (Depends-on): Add xalloc.
84731         * modules/hash (Depends-on): Add xalloc.
84732         (Files): Remove lib/xalloc.h.
84733
84734         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
84735         * modules/userspec (Files): Add lib/inttostr.h.
84736
84737 2005-03-23  Jim Meyering  <jim@meyering.net>
84738
84739         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
84740
84741 2005-03-22  Jim Meyering  <jim@meyering.net>
84742
84743         * modules/stat-macros: New module.
84744         * modules/canonicalize, modules/euidaccess, modules/file-type,
84745         * modules/filemode, modules/lchown, modules/makepath,
84746         * modules/rmdir, modules/stat: Depend on new stat-macros module
84747         rather than listing lib/stat-macros.h manually.
84748         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
84749
84750 2005-03-22  Jim Meyering  <jim@meyering.net>
84751
84752         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
84753
84754 2005-03-22  Bruno Haible  <bruno@clisp.org>
84755
84756         * config/srclist.txt: Replace target directory 'config' with
84757         'build-aux'.
84758         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
84759         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
84760         ../build-aux/.
84761
84762 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
84763
84764         * modules/chdir-long (Depends-on): Add mempcpy.
84765
84766         * modules/acl, modules/backupfile, modules/c-strtod,
84767         modules/c-strtold, modules/canon-host, modules/canonicalize,
84768         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
84769         modules/exclude, modules/exitfail, modules/file-type,
84770         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
84771         modules/getdate, modules/getline, modules/getpagesize,
84772         modules/getpass, modules/getugroups, modules/group-member,
84773         modules/hard-locale, modules/hash, modules/human, modules/idcache,
84774         modules/inttostr, modules/long-options, modules/makepath,
84775         modules/md5, modules/memcasecmp, modules/memcoll,
84776         modules/modechange, modules/mountlist, modules/path-concat,
84777         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
84778         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
84779         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
84780         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
84781         modules/strftime, modules/strndup, modules/strverscmp,
84782         modules/timespec, modules/unlocked-io, modules/userspec,
84783         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
84784         modules/yesno:
84785         Remove lib_SOURCES line from Makefile.am section, as this is now
84786         done automatically by the corresponding Autoconf macro.
84787
84788 2005-03-21  Jim Meyering  <jim@meyering.net>
84789
84790         Changes imported from coreutils.
84791
84792         * lib/cycle-check.c: Don't include xalloc.h.
84793
84794         * lib/path-concat.c: Don't include assert.h.
84795         (path_concat): Remove assertion that would have triggered
84796         for ABASE starting with more than one slash.
84797         Reported by Andreas Schwab.
84798
84799         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
84800         properly when ABASE is an absolute file name.
84801         Correct the description of this function.
84802         Include <assert.h>.
84803         Add an assertion and a test driver.
84804         This fixes a bug introduced on 2004-07-02.
84805         Andreas Schwab reported the resulting failure of cp --parents:
84806         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
84807
84808 2005-03-21  Jim Meyering  <jim@meyering.net>
84809
84810         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
84811         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
84812
84813 2005-03-21  Jim Meyering  <jim@meyering.net>
84814         and  Paul Eggert  <eggert@cs.ucla.edu>
84815
84816         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
84817         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
84818         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
84819         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
84820         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
84821         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
84822         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
84823         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
84824         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
84825         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
84826         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
84827         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
84828         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
84829         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
84830         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
84831         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
84832         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
84833         for these modules.
84834
84835 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
84836
84837         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
84838         (which shouldn't happen), generate nothing instead of returning 0
84839         immediately, so that nstrftime (NULL, ...) doesn't return 0.
84840
84841 2005-03-16  Bruno Haible  <bruno@clisp.org>
84842
84843         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
84844         HAVE_LONGLONG_64BIT.
84845
84846 2005-03-16  Bruno Haible  <bruno@clisp.org>
84847
84848         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
84849         HAVE_LONGLONG_64BIT.
84850
84851 2005-03-16  Bruno Haible  <bruno@clisp.org>
84852
84853         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
84854         HAVE_LONGLONG_64BIT.
84855
84856 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
84857
84858         * lib/strftime.c (my_strftime): Prepend space to format so that we can
84859         reliably distinguish strftime failure from empty output on POSIX
84860         hosts.
84861
84862 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
84863
84864         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
84865         (iconv_string): Don't guess a size-zero buffer, as that might cause
84866         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
84867         result would be 'too large', where 'too large' is (heuristically)
84868         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
84869         overflow concerns.  This will prevent some unwanted malloc failures
84870         when the inputs are very large.
84871
84872 2005-03-15  Karl Berry  <karl@gnu.org>
84873
84874         * config/srclist.txt (config.rpath): from gettext.
84875         * config/config.rpath: update.
84876
84877 2005-03-15  Bruno Haible  <bruno@clisp.org>
84878
84879         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
84880         to 'negate'.
84881
84882         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
84883         variable.
84884
84885         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
84886         results.
84887
84888 2005-03-14  Simon Josefsson  <jas@extundo.com>
84889
84890         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
84891         <fx@gnu.org>.
84892
84893 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
84894
84895         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
84896         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
84897         intprops.h.
84898         * lib/strtol.c: Likewise.
84899
84900 2005-03-14  Jim Meyering  <jim@meyering.net>
84901
84902         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
84903         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
84904         to be nonzero so that we (and caller) can detect the difference
84905         between a valid zero-length expansion and an error return, even
84906         when the underlying strftime fails before writing anything into
84907         that location.
84908
84909 2005-03-14  Bruno Haible  <bruno@clisp.org>
84910
84911         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
84912         Update from GNU gettext 0.14.3.
84913
84914 2005-03-10  Jim Meyering  <jim@meyering.net>
84915
84916         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
84917
84918 2005-03-10  Jim Meyering  <jim@meyering.net>
84919
84920         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
84921         so that this module works on systems without fchdir.
84922
84923 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
84924
84925         Factor int-properties macros into a single file, except for
84926         glibc-related files.
84927         * lib/intprops.h: New file.
84928         * lib/getloadavg.c: Include it instead of limits.h.
84929         (INT_STRLEN_BOUND): Remove.
84930         * lib/human.c: Include intprops.h.
84931         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
84932         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
84933         302/1000.
84934         * lib/inttostr.h: Include intprops.h instead of limits.h.
84935         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
84936         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
84937         for consistency with intprops.h.
84938         (time_t_is_integer, twos_complement_arithmetic): Use them.
84939         * lib/sig2str.h: Include <signal.h>, intprops.h.
84940         (INT_STRLEN_BOUND): Remove.
84941         * lib/strftime.c (TYPE_SIGNED): Remove.
84942         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
84943         * lib/strtol.c: Adjust comments to match intprops.h.
84944         * lib/userspec.c: Include intprops.h.
84945         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
84946         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
84947         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
84948         instead of rolling our own expressions.
84949         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
84950
84951         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
84952         instead of int.
84953         (my_strftime): Do not mishandle years close to INT_MAX, by doing
84954         the right thing even if adding 1900 would overflow.  Similarly
84955         for tm_mon + 1 and tm_yday + 1.
84956         Make %Y always equivalent to %C%y, and similarly for %G and %g.
84957         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
84958         (DO_SIGNED_NUMBER): New macro.
84959         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
84960
84961 2005-03-07  Bruno Haible  <bruno@clisp.org>
84962
84963         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
84964
84965 2005-03-07  Bruno Haible  <bruno@clisp.org>
84966
84967         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
84968
84969 2005-03-04  Derek R. Price  <derek@ximbiot.com>
84970
84971         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
84972         (func_import): Only replace files via --import when they have actually
84973         changed.
84974
84975 2005-03-03  Derek R. Price  <derek@ximbiot.com>
84976
84977         * m4/mmap-anon.m4: New file.
84978         * m4/pagealign_alloc.m4: New file.
84979
84980 2005-03-03  Derek R. Price  <derek@ximbiot.com>
84981             Bruno Haible  <bruno@clisp.org>
84982
84983         * modules/pagealign_alloc: New file.
84984         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
84985
84986 2005-03-03  Derek R. Price  <derek@ximbiot.com>
84987             Bruno Haible  <bruno@clisp.org>
84988
84989         * lib/pagealign_alloc.h: New file.
84990         * lib/pagealign_alloc.c: New file.
84991
84992 2005-03-03  Bruno Haible  <bruno@clisp.org>
84993
84994         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
84995         Use an all-permissive copyright notice, recommended by RMS.
84996
84997 2005-03-02  Bruno Haible  <bruno@clisp.org>
84998
84999         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
85000         of AIX, the replacement has to be done only after <string.h> is
85001         included, therefore not in config.h. stpncpy.h does the replacement,
85002         and stpncpy.c uses it.
85003
85004 2005-03-02  Bruno Haible  <bruno@clisp.org>
85005
85006         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
85007         stpncpy.c uses it.
85008
85009 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
85010
85011         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
85012         The workaround isn't strictly needed for POSIX conformance, and
85013         it's too much of a pain to configure and maintain.  We'll ask
85014         people to fix their kernels instead.
85015         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
85016         (NANOSLEEP_BUG_WORKAROUND): Remove.
85017         (xnanosleep): Remove the workaround.
85018
85019 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
85020
85021         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
85022         Reported by Derek Price.
85023         (Include): Add "timespec.h".
85024
85025         * modules/xnanosleep (Depends-on): Remove gethrxtime.
85026
85027 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
85028
85029         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
85030         to detect nanosleep bug.
85031
85032 2005-03-01  Bruno Haible  <bruno@clisp.org>
85033
85034         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
85035
85036 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
85037
85038         * modules/gethrxtime: New file.
85039         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
85040         (Depends-on): Add gethrxtime.
85041         (configure.ac): Add gl_XNANOSLEEP.
85042         (Makefile.am): Remove lib_SOURCES line.
85043
85044 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
85045
85046         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
85047         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
85048
85049 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
85050
85051         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
85052         * lib/timespec.h (gettime): Return void, since it always
85053         succeeds now.  All uses changed.
85054         * lib/gettime.c (gettime): Likewise.
85055         [HAVE_NANOTIME]: Prefer nanotime.
85056         Assume gettimeofday succeeds, as POSIX requires.
85057         Assime time () succeeds, since other code already does.
85058         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
85059         (timespec_subtract): Remove.
85060         (NANOSLEEP_BUG_WORKAROUND): New constant.
85061         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
85062         things considerably.  Use it only on GNU/Linux hosts, since the
85063         workaround shouldn't be needed elsewhere.
85064
85065 2005-02-24  Bruno Haible  <bruno@clisp.org>
85066
85067         * modules/gettext (Files): Add m4/glibc2.m4.
85068
85069 2005-02-24  Bruno Haible  <bruno@clisp.org>
85070
85071         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
85072         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
85073         * m4/progtest.m4:
85074         Update from GNU gettext 0.14.2.
85075         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
85076
85077 2005-02-24  Bruno Haible  <bruno@clisp.org>
85078
85079         * lib/localcharset.c: Update from GNU gettext 0.14.2.
85080         * lib/config.charset: Update from GNU gettext 0.14.2.
85081
85082 2005-02-24  Bruno Haible  <bruno@clisp.org>
85083
85084         * lib/gettext.h: Update from GNU gettext 0.14.2.
85085
85086 2005-02-23  Simon Josefsson  <jas@extundo.com>
85087
85088         * m4/iconvme.m4: New file.
85089
85090 2005-02-23  Jim Meyering  <jim@meyering.net>
85091
85092         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
85093         change.
85094         Thanks to Bruno Haible for catching it.
85095
85096 2005-02-22  Simon Josefsson  <jas@extundo.com>
85097
85098         * modules/iconvme: New file.
85099
85100         * MODULES.html.sh: Add iconvme.
85101
85102 2005-02-22  Simon Josefsson  <jas@extundo.com>
85103
85104         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
85105
85106 2005-02-22  Simon Josefsson  <jas@extundo.com>
85107
85108         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
85109
85110 2005-02-22  Jim Meyering  <jim@meyering.net>
85111
85112         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
85113         s/ifndef/ifdef/.
85114
85115 2005-02-20  Neil Conway  <neilc@samurai.com>
85116
85117         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
85118         returned by OSX/Darwin if the specified buffer is not large
85119         enough for the hostname.
85120
85121 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85122
85123         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
85124         pass it to _help, otherwise the latter coredumps trying to
85125         dereference state.root_argp.
85126
85127 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
85128
85129         * modules/chdir-long (Depends-on): Add memrchr.
85130         * modules/memrchr (Files): Add lib/memrchr.h.
85131         (Include): "memrchr.h".
85132
85133 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
85134
85135         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
85136
85137 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
85138
85139         * lib/memrchr.h: New file.
85140         * lib/chdir-long.c: Include it.
85141         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
85142         Don't bother including stddef.h.
85143
85144 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
85145
85146         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
85147         inclusion.
85148         Include <sys/types.h>, for dev_t.
85149         (ME_DUMMY, ME_REMOTE): Move from here....
85150         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
85151         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
85152         Dmitry V. Levin.
85153         Include mountlist.h first, to test the interface.
85154
85155 2005-01-29  Bruno Haible  <bruno@clisp.org>
85156
85157         * lib/progname.c (program_name): Initialize.
85158         Needed when linking statically on MacOS X.
85159
85160 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
85161
85162         Sync from coreutils.
85163         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
85164         (Depends-on): Add c-strtod.
85165         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
85166
85167 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
85168
85169         Sync from coreutils.
85170         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
85171
85172         Remove files that are specific to coreutils.
85173         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
85174
85175 2005-01-28  Bruno Haible  <bruno@clisp.org>
85176
85177         * modules/javacomp: New file.
85178         * MODULES.html.sh (Java): Add javacomp.
85179
85180 2005-01-28  Bruno Haible  <bruno@clisp.org>
85181
85182         * m4/javacomp.m4: New file, from GNU gettext.
85183
85184 2005-01-28  Bruno Haible  <bruno@clisp.org>
85185
85186         * lib/javacomp.sh.in: New file, from GNU gettext.
85187         * lib/javacomp.h: New file, from GNU gettext.
85188         * lib/javacomp.c: New file, from GNU gettext.
85189
85190 2005-01-26  Simon Josefsson  <jas@extundo.com>
85191
85192         * lib/gai_strerror.c: Use GPL in header.
85193
85194 2005-01-26  Bruno Haible  <bruno@clisp.org>
85195
85196         * modules/javaexec: New file.
85197         * MODULES.html.sh (Java): Add javaexec.
85198
85199 2005-01-26  Bruno Haible  <bruno@clisp.org>
85200
85201         * m4/javaexec.m4: New file, from GNU gettext.
85202
85203 2005-01-26  Bruno Haible  <bruno@clisp.org>
85204
85205         * lib/javaexec.sh.in: New file, from GNU gettext.
85206         * lib/javaexec.h: New file, from GNU gettext.
85207         * lib/javaexec.c: New file, from GNU gettext.
85208
85209 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85210
85211         * modules/lchown (Depends-on): Remove lchown.h
85212
85213 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85214
85215         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
85216         must be defined if the header file was not found, in order
85217         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
85218
85219 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85220
85221         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
85222         initializers for struct pentry_state.
85223         (__argp_error): Check return value of __asprintf
85224         (__argp_failure): Translate error message
85225
85226         * lib/argp-parse.c: Removed braces around the expansion of N_()
85227
85228 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
85229
85230         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
85231         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
85232         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
85233         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
85234         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
85235         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
85236         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
85237         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
85238         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
85239         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
85240         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
85241         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
85242         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
85243         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
85244         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
85245         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
85246         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
85247         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
85248         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
85249         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
85250         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
85251         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
85252         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
85253         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
85254         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
85255         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
85256         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
85257         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
85258         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
85259         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
85260         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
85261         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
85262         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
85263         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
85264         xstrtol.m4, xstrtoumax.m4, yesno.m4:
85265         Use an all-permissive copyright notice, recommended by RMS.
85266
85267 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
85268
85269         * modules/chdir-long (Depends-on): Remove mempcpy.
85270
85271 2005-01-21  Jim Meyering  <jim@meyering.net>
85272
85273         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
85274         same value as for Solaris 9.
85275
85276         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
85277         component length.  This included changing the parameter to be
85278         of type `char *' rather than `char const *'.
85279         * lib/chdir-long.h (chdir_long): Update prototype.
85280
85281         * lib/openat.c (fdopendir, fstatat): New functions.
85282         * lib/openat.h: Include headers required for use of DIR and struct
85283         stat.
85284         [AT_SYMLINK_NOFOLLOW]: Define.
85285         (fdopendir, fstatat): Add prototypes.
85286
85287 2005-01-21  Bruno Haible  <bruno@clisp.org>
85288
85289         * modules/classpath: New file.
85290         * MODULES.html.sh (Java): Add classpath.
85291
85292 2005-01-21  Bruno Haible  <bruno@clisp.org>
85293
85294         * lib/classpath.h: New file, from GNU gettext.
85295         * lib/classpath.c: New file, from GNU gettext.
85296
85297 2005-01-20  Simon Josefsson  <jas@extundo.com>
85298
85299         * modules/version-etc-fsf: New file.
85300
85301 2005-01-20  Simon Josefsson  <jas@extundo.com>
85302
85303         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
85304         * lib/version-etc.c: Remove version_etc_copyright.
85305         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
85306         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
85307
85308 2005-01-20  Simon Josefsson  <jas@extundo.com>
85309
85310         * lib/base64.h (isbase64): Add.
85311
85312         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
85313         using a unsigned prototype, don't inline.
85314         (base64_decode): Use it.
85315
85316 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
85317
85318         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
85319         it.
85320
85321 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
85322
85323         * lib/save-cwd.c (save_cwd): Remove code to support the case
85324         where fchdir is missing or flaky.
85325
85326 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
85327
85328         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
85329
85330 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
85331
85332         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
85333         AC_LIBSOURCES now does this.
85334         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
85335         with new ullong_max module.
85336
85337 2005-01-19  Bruno Haible  <bruno@clisp.org>
85338
85339         * modules/sh-quote: New file.
85340         * MODULES.html.sh (Executing programs): Add sh-quote.
85341
85342 2005-01-19  Bruno Haible  <bruno@clisp.org>
85343
85344         * lib/sh-quote.h: New file, from GNU gettext.
85345         * lib/sh-quote.c: New file, from GNU gettext.
85346
85347 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
85348
85349         Merge from coreutils.
85350         * m4/ullong_max.m4: New file.
85351         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
85352         (gl_MACROS): Assume localeconv exists.
85353
85354 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
85355
85356         Merge changes from coreutils, as described below in several
85357         changelogs dated today.
85358
85359         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
85360         (O_DIRECTORY): Remove; not needed here, since "." must be
85361         a directory.  All uses removed.
85362         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
85363         universal on Suns, and we also need to test for IRIX.
85364         Revamp code to use 'if' rather than '#if'.
85365         Avoid unnecessary comparison of cwd->desc to 0.
85366
85367         * lib/utimens.c (futimens): Robustify the previous patch, by checking
85368         for known valid error numbers rather than observed invalid ones.
85369
85370 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
85371
85372         * modules/ullong_max: New file.
85373
85374         * modules/chdir-long, modules/openat: New files.
85375         * modules/save-cwd (Depends-on): Depend on chdir-long.
85376         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
85377
85378 2005-01-18  Jim Meyering  <jim@meyering.net>
85379
85380         Merge from coreutils.
85381         * m4/chdir-long.m4, m4/openat.m4: New files.
85382         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
85383         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
85384         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
85385         is sane and DOES follow symlinks.  Besides, testing 20 different
85386         systems found no broken chown implementations.
85387         Prompted by a change in rsync's copy of this macro.
85388         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
85389
85390         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
85391
85392         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
85393         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
85394         NULL-means-set-to-current-time semantics.
85395         Remove temporary file immediately, rather than waiting
85396         for configure's at-exit trap code to do it.
85397
85398 2005-01-18  Jim Meyering  <jim@meyering.net>
85399
85400         * lib/version-etc.c (version_etc_copyright): Update copyright date.
85401
85402         * lib/utimens.c (futimens): Account for the fact that futimes
85403         can also fail with errno == ENOSYS or errno == ENOENT.
85404         Patch from Dmitry V. Levin.
85405
85406         Change the name of the robust chdir function from chdir to chdir_long.
85407         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
85408         (restore_cwd): Use chdir_long, not chdir.
85409         * lib/chdir-long.c: Renamed from chdir.c.
85410         * lib/chdir-long.h: Renamed from chdir.h.
85411         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
85412         Hurd.
85413
85414 2005-01-18  Bruno Haible  <bruno@clisp.org>
85415
85416         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
85417         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
85418         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
85419         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
85420         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
85421         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
85422         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
85423         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
85424         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
85425         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
85426         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
85427         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
85428         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
85429         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
85430         Use an all-permissive copyright notice, recommended by RMS.
85431
85432 2005-01-18  Bob Proulx  <bob@proulx.com>
85433
85434         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
85435         simplify offsetof() macro construct to avoid compile failure with
85436         native HP-UX 11.0 ANSI C compiler.
85437
85438 2005-01-17  Bruno Haible  <bruno@clisp.org>
85439
85440         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
85441         redundant because stpncpy.m4 takes care of it.
85442
85443 2005-01-17  Bruno Haible  <bruno@clisp.org>
85444
85445         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
85446
85447 2005-01-17  Bruno Haible  <bruno@clisp.org>
85448
85449         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
85450         used.
85451
85452 2005-01-17  Bruno Haible  <bruno@clisp.org>
85453
85454         * lib/fwriteerror.h (fwriteerror): Change specification to include
85455         fclose.
85456         * lib/fwriteerror.c: Include <stdbool.h>.
85457         (fwriteerror): At the end, close the file stream. Record whether
85458         stdout was already closed.
85459
85460 2005-01-17  Bruno Haible  <bruno@clisp.org>
85461
85462         * lib/execute.c (environ): Declare if needed.
85463         * lib/pipe.c (environ): Likewise.
85464         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
85465
85466 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85467
85468         * modules/argp: Depend on vsnprintf
85469
85470 2005-01-10  Jim Meyering  <jim@meyering.net>
85471
85472         * modules/closeout (Depends-on): Add atexit.
85473
85474 2005-01-06  Bruno Haible  <bruno@clisp.org>
85475
85476         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
85477
85478 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
85479
85480         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
85481         definitions to be after all include files, to avoid collisions.
85482         Problem reported by Bob Proulx.
85483
85484 2005-01-04  Jim Meyering  <jim@meyering.net>
85485
85486         Changes imported from coreutils.
85487         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
85488         as the mkstemp template, use a temporary directory and an
85489         8.3-friendly template to avoid trouble on systems like DJGPP.
85490         Reported by Juan M. Guerrero via Stepan Kasal.
85491         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
85492         close. Remove the temporary directory right away, rather than waiting
85493         for configure's at-exit trap code to do it.
85494         Suggestion from Stepan Kasal.
85495
85496 2005-01-01  Simon Josefsson  <jas@extundo.com>
85497
85498         * gnulib-tool: Print #include directives when --import'ing.
85499
85500 2004-12-28  Simon Josefsson  <jas@extundo.com>
85501
85502         * tests/test-base64.c: Include required header files.  Remove
85503         unused variables.
85504
85505 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
85506
85507         * modules/error (Depends-on): Remove gettext.
85508
85509 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
85510
85511         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
85512         not needed.  This removes a dependency on the gettext module.
85513         [defined _LIBC]: Do not include <libintl.h>; not needed.
85514
85515 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
85516
85517         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
85518         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
85519
85520 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
85521
85522         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
85523         HAVE_DECL_STRTOLD.
85524
85525 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
85526
85527         * modules/getdate (Depends-on): Remove alloca-opt.
85528
85529 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
85530
85531         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
85532
85533 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
85534
85535         * lib/argp-parse.c: Include <stddef.h>.
85536         (alignof, alignto): New macros.
85537         (parser_init): Don't assume that void * is aligned sufficiently
85538         for struct option.
85539
85540         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
85541         need to extend the stack.
85542         (YYINITDEPTH): New macro, so that the initial stack isn't overly
85543         large.
85544
85545 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85546
85547         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
85548
85549 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
85550
85551         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
85552         (2004-10-24) change.  Apparently this was a false alarm.
85553
85554         * modules/getdate: Depend on alloca-opt, not alloca.
85555
85556 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
85557
85558         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
85559         Remove now-obsolete comment about AIX.
85560         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
85561         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
85562         (YYMAXDEPTH): New macro.
85563
85564 2004-12-18  Simon Josefsson  <jas@extundo.com>
85565
85566         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
85567
85568 2004-12-18  Bruno Haible  <bruno@clisp.org>
85569
85570         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
85571
85572 2004-12-18  Bruno Haible  <bruno@clisp.org>
85573
85574         * lib/fatal-signal.c (fatal_signals): Make non-const.
85575         (init_fatal_signals): New function.
85576         (uninstall_handlers, install_handlers): Ignore signals that were set to
85577         SIG_IGN.
85578         (at_fatal_signal): Call init_fatal_signals.
85579         (init_fatal_signal_set): Likewise. Ignore signals that were set to
85580         SIG_IGN.
85581         Reported by Paul Eggert.
85582
85583 2004-12-18  Bruno Haible  <bruno@clisp.org>
85584
85585         * doc/alloca.texi: New file.
85586         * doc/alloca-opt.texi: New file.
85587
85588 2004-12-17  Jim Meyering  <jim@meyering.net>
85589
85590         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
85591         Otherwise, install-sh could exit with improper exit status when
85592         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
85593
85594 2004-12-16  Simon Josefsson  <jas@extundo.com>
85595
85596         * tests/test-base64.c: Add license.
85597
85598 2004-12-15  Stepan Kasal  <address@hidden>
85599
85600         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
85601
85602 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
85603
85604         * modules/getcwd (Files): Add m4/d-ino.m4.
85605         Suggested by Mark D. Baushke.
85606
85607 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
85608
85609         * lib/getdate.y (textint): New member "negative".
85610         (time_zone_hhmm): New function.
85611         Expect 14 shift-reduce conflicts, not 13.
85612         (o_colon_minutes): New rule.
85613         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
85614         (yylex): Set the "negative" member of signed numbers.
85615
85616 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
85617
85618         * doc/getdate.texi (Time of day items, Time zone items):
85619         Describe new formats +00:00, UTC+00:00.
85620
85621 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
85622
85623         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
85624         spurious "-l"s.  Problem reported by Stepan Kasal.
85625
85626 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
85627
85628         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
85629         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
85630
85631 2004-12-04  Simon Josefsson  <jas@extundo.com>
85632
85633         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
85634         Vandoorselaere <yoann@prelude-ids.org>.
85635
85636 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
85637
85638         Changes imported from coreutils.
85639         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
85640         exist.
85641         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
85642
85643 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
85644
85645         Changes imported from coreutils.
85646         * lib/hard-locale.c: Assume <locale.h> exists.
85647         Include "strdup.h".
85648         (GLIBC_VERSION): New macro.
85649         (hard_locale): Assume setlocale exists.
85650         Rewrite to avoid #ifdef.
85651         Use strdup rather than malloc + strcpy.
85652         * lib/human.c: Assume <locale.h> exists.
85653         (human_readable): Assume localeconv exists.
85654
85655 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
85656
85657         * modules/hard-locale (Depends-on): Add strdup.
85658
85659 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
85660
85661         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
85662         convert T2, not T.  (Imported from libc.)
85663
85664 2004-11-30  Simon Josefsson  <jas@extundo.com>
85665
85666         * modules/restrict (License): Change to LGPL.
85667
85668 2004-11-30  Simon Josefsson  <jas@extundo.com>
85669
85670         * m4/restrict.m4: Add copyright and copying conditions.
85671
85672 2004-11-30  Simon Josefsson  <jas@extundo.com>
85673
85674         * m4/base64.m4: New file.
85675
85676 2004-11-30  Simon Josefsson  <jas@extundo.com>
85677
85678         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
85679         base64.
85680
85681         * tests/test-base64.c: New file.
85682
85683         * modules/base64: New file.
85684
85685 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
85686
85687         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
85688         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
85689
85690         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
85691
85692 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
85693
85694         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
85695         (__getcwd.c): Don't restore errno; glibc doesn't.
85696         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
85697         first, falling back to our code only if its results look suspicious.
85698         Ensure that the resulting buffer is only as large as necessary.
85699
85700         * lib/readutmp.c: Include readutmp.h first.
85701         Include <errno.h>, since readutmp.h no longer does that.
85702         * lib/readutmp.h: Don't include <errno.h>,
85703         <sys/param.h>, <time.h>; not needed to establish interface.
85704         (errno): Remove decl.
85705         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
85706         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
85707         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
85708
85709 2004-11-28  Simon Josefsson  <jas@extundo.com>
85710
85711         * lib/base64.h, base64.c: New file.
85712
85713 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
85714
85715         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
85716
85717 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
85718
85719         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
85720         (Depends-on): Remove pathmax, same.  Add mempcpy.
85721         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
85722         (Makefile.am): Append getcwd.h to lib_SOURCES.
85723         (Include): Add getcwd.h.
85724         (Maintainer): Change from Jim Meyering to "all, glibc",
85725         since getdate now uses intended-for-glibc code.
85726         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
85727         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
85728
85729 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
85730
85731         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
85732         HP's ANSI C compiler.
85733         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
85734         Declaring int functions causes warnings on some modern systems and
85735         shouldn't be needed to compile on ancient ones.
85736         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
85737         defined.
85738
85739         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
85740         with the following changes.
85741         (__set_errno): Parenthesize properly.
85742         Include <stdbool.h>.
85743         (MIN, MAX, MATCHING_INO): New macros.
85744         (__getcwd): Define with prototype, not K&R form.
85745         Use heuristics to allocate default buffer on stack if possible.
85746         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
85747         behavior, and to avoid the PATH_MAX limit when computing
85748         ../../../../...
85749         Use MATCHING_INO to compare inode number to file.
85750         Check for arithmetic overflow in size calculations.
85751         Fix bug in reallocation of dot array that caused getcwd to fail
85752         on directories nested deeper than 75.
85753         Be more careful about saving errno on error.
85754         Do not use realloc; use only free+malloc, as this is a bit
85755         more flexible and avoids a needless copy operation.
85756         Do not inspect st_dev and st_ino for symbolic links; POSIX
85757         doesn't specify the latter.
85758         Check for closedir errors.
85759         Avoid needless casts.
85760         Use "#ifdef weak_alias" around weak_alias, to be like other
85761         glibc code.
85762         The following changes to getcwd.c have effect only when used in
85763         gnulib; they have no effect inside glibc proper.
85764         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
85765         as alloca isn't used.
85766         (alloca, __alloca): Likewise.
85767         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
85768         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
85769         unconditionally, as gnulib assumes C89 or better.
85770         Do not include <sys/param.h>.
85771         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
85772         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
85773         better.
85774         (NULL) [!defined NULL]: Remove; we assume C89 or better.
85775         Include <dirent.h> in a way that is compatible with modern Autoconf.
85776         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
85777         New macros, if not already defined.
85778         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
85779         Use "_LIBC", not "defined _LIBC", for consistency.
85780         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
85781         a mempcpy module.
85782         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
85783         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
85784         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
85785         credit only to Jim Meyering and adjust the copyright dates.
85786         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
85787         <stdlib.h>, <unistd.h>, "pathmax.h".
85788         Instead, include "xgetcwd.h" (first) and "getcwd.h".
85789         (INITIAL_BUFFER_SIZE): Remove.
85790         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
85791
85792 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
85793
85794         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
85795         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
85796         Use the _ONCE methods, for efficiency.
85797         Check for fcntl.h.  In test program, include <errno.h>
85798         and <fcntl.h> if available.  Remove old K&R cruft from
85799         test program.  Check for common errors in GNU/Linux,
85800         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
85801         don't do AC_LIBOBJ, as that's getcwd.m4's job.
85802         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
85803         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
85804         name accordingly.
85805         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
85806         accommodate new getcwd.c.
85807         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
85808         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
85809         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
85810         that's all we need now.
85811
85812 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85813
85814         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
85815         argp-parse.c depends on getopt internals, that means we should
85816         always use our getopt, to be on the safe side.
85817         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
85818         order not to spoil the result of an eventual previous invocation
85819         of gl_GETOPT_SUBSTITUTE.
85820
85821 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85822
85823         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
85824         redefinition warnings. To avoid them, include the defines
85825         in `#if !defined __need_getopt ... #endif'. The only place
85826         where __getopt_argv_const is used is in definitions
85827         of getopt_long and getopt_long_only below, which are as well
85828         protected by `#ifndef __need_getopt'.
85829         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
85830         __need_getopt after including <stdio.h> and <unistd.h> These
85831         headers might have defined it.
85832
85833 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
85834
85835         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
85836
85837 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
85838
85839         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
85840         (futimens): New function, which uses futimes if available.
85841         (futimens, utimens): Support timespec==NULL, with same semantics
85842         as utime and utimens.
85843         * lib/utimens.h (futimens): New decl.
85844
85845 2004-11-23  Jim Meyering  <jim@meyering.net>
85846
85847         * lib/getopt_.h: Remove trailing blanks.
85848
85849 2004-11-23  Jim Meyering  <jim@meyering.net>
85850
85851         * lib/__fpending.c: Add comment.
85852
85853 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
85854
85855         * modules/canonicalize (Depends-on): Add xreadlink.
85856         Problem reported by James Youngman.
85857
85858 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
85859
85860         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
85861         New macros.
85862         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
85863         optopt): Use them instead of invoking ## directly; otherwise, the
85864         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
85865
85866 2004-11-19  Bruno Haible  <bruno@clisp.org>
85867
85868         * lib/strtok_r.c: Move comments from here...
85869         * lib/strtok_r.h: ... to here.
85870
85871 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
85872
85873         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
85874         implementations that mishandle size_t overflow.
85875
85876 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
85877
85878         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
85879         might fail.  Problem reported by Yoann Vandoorselaere.
85880         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
85881         implementations that mishandle size_t overflow.
85882
85883 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
85884
85885         * modules/canon-host (Depends-on): Add strdup.
85886
85887 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
85888
85889         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
85890
85891 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
85892
85893         * lib/canon-host.c: Include "strdup.h".
85894         (canon_host): Use getaddrinfo if available, so that IPv6 works.
85895         Use strdup instead of malloc/strcpy to duplicate strings.
85896
85897         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
85898         (human_space_before_unit): New constant.
85899         * lib/human.c (human_readable): Support it.
85900
85901         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
85902         (xgetcwd): Set errno correctly when failing.
85903         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
85904         the failure is actually due to a PATH_MAX problem.
85905
85906         Further getopt changes to make it more likely that glibc will
85907         buy the changes back.
85908         * lib/getopt.c (POSIXLY_CORRECT): New constant.
85909         (getopt): Use it, so to preserve glibc semantic
85910         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
85911         when compiling for libc.
85912         * lib/getopt_.h (__getopt_argv_const): Bring it back.
85913         (getopt_long, getopt_long_only): Use it.
85914
85915         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
85916         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
85917         (getopt): Argv is now char * const *, as per standard.
85918         (_getopt_internal_r, _getopt_internal): Argv is now char **,
85919         not char *__getopt_argv_const *.
85920         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
85921         _getopt_long_only_r): Likewise.
85922         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
85923         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
85924         _getopt_long_r, _getopt_long_only_r): Likewise.
85925         * lib/getopt_.h (__getopt_argv_const): Remove.
85926         (getopt): Argv is now char * const *, as per standard.
85927
85928         * lib/getdate.y (tORDINAL): New token.
85929         (day, relunit): Allow it for relative times.
85930         (relative_time_table): Use tORDINAL for ordinals.
85931
85932 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
85933
85934         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
85935         Document that "second" isn't allowed as an ordinal number.
85936
85937 2004-11-16  Jim Meyering  <jim@meyering.net>
85938
85939         * modules/closeout (Depends-on): Add fpending.
85940
85941 2004-11-15  Jim Meyering  <jim@meyering.net>
85942
85943         * lib/closeout.c: Include "__fpending.h" once again.
85944         Include <stdbool.h>.
85945         (close_stdout): Don't fail just because stdout was closed initially,
85946         since some programs don't write to stdout in the normal course of
85947         operation (other than --version and --help), and we don't want this
85948         function to make e.g. `touch file >&-' fail.
85949         But do fail if it was closed and someone has tried to write to it.
85950         E.g., `printf foo >&-' must fail.
85951
85952 2004-11-13  Jim Meyering  <jim@meyering.net>
85953
85954         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
85955
85956 2004-11-12  Simon Josefsson  <jas@extundo.com>
85957
85958         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
85959         small doc fix is still pending.
85960
85961 2004-11-11  Simon Josefsson  <jas@extundo.com>
85962
85963         * modules/strtok_r: New file.
85964
85965         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
85966         strtok_r.
85967
85968 2004-11-11  Simon Josefsson  <jas@extundo.com>
85969
85970         * m4/strtok_r.m4: New file.
85971
85972         * m4/getopt.m4: Replace opterr.
85973
85974 2004-11-11  Simon Josefsson  <jas@extundo.com>
85975
85976         * lib/strtok_r.h, strtok_r.c: New file.
85977
85978 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
85979
85980         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
85981         of replacing opterr, getopt, etc.  This should handle the
85982         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
85983
85984 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
85985
85986         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
85987         we can stop lying to compilers about the constness of argv when we
85988         are compiled outside glibc.
85989         (getopt, getopt_long, getopt_long_only): Use it.
85990         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
85991         _getopt_internal, getopt): Likewise.
85992         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
85993         _getopt_long_only_r): Likewise.
85994         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
85995         _getopt_long_r, _getopt_long_only_r): Likewise.
85996
85997         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
85998         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
85999         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
86000         the other external symbols.
86001         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
86002         declaration, since the above renaming now works around collisions.
86003
86004 2004-11-11  Jim Meyering  <jim@meyering.net>
86005
86006         * lib/linebreak.c: Remove trailing blanks.
86007         * lib/alloca_.h: Likewise.
86008         * lib/acosl.c: Likewise.
86009         * lib/euidaccess.c: Likewise.
86010         * lib/allocsa.h: Likewise.
86011
86012 2004-11-10  Simon Josefsson  <jas@extundo.com>
86013
86014         * m4/getaddrinfo.m4: New file.
86015
86016 2004-11-10  Simon Josefsson  <jas@extundo.com>
86017
86018         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
86019
86020 2004-11-10  Simon Josefsson  <jas@extundo.com>
86021
86022         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
86023         getaddrinfo.
86024
86025         * modules/getaddrinfo: New file.
86026
86027 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
86028
86029         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
86030
86031 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
86032
86033         * lib/mktime.c (SHR): New macro, which is a portable
86034         substitute for >> that should work even on Crays.
86035         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
86036         Problem reported by Mark D. Baushke in
86037         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
86038         * lib/getdate.y (SHR): Likewise.
86039         (tm_diff): Use it.
86040         * lib/strftime.c (SHR): Likewise.
86041         (tm_diff): Use it.
86042         * lib/quotearg.c (struct quoting_options): Use unsigned int for
86043         quote_these_too, so that right shifts are well defined.  All uses
86044         changed.
86045
86046 2004-11-10  Jim Meyering  <jim@meyering.net>
86047
86048         Ensure that no close failure goes unreported.
86049         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
86050         return early when it seems there's nothing to flush.
86051         Don't include __fpending.h.
86052
86053 2004-11-10  Jim Meyering  <jim@meyering.net>
86054
86055         * modules/closeout (Depends-on): Remove fpending.
86056
86057 2004-11-10  Jim Meyering  <jim@meyering.net>
86058
86059         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
86060
86061 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
86062
86063         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
86064         gl_FUNC_STRFTIME.
86065         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
86066         and AC_REQUIRE when possible, to avoid duplicate checks.
86067         Check for <wchar.h>.
86068
86069 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
86070
86071         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
86072
86073 2004-11-09  Bruno Haible  <bruno@clisp.org>
86074
86075         * m4/sockpfaf.m4: New file.
86076
86077 2004-11-05  Bruno Haible  <bruno@clisp.org>
86078
86079         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
86080         Reported by Mark D. Baushke <mdb@cvshome.org>.
86081
86082 2004-11-04  Bruno Haible  <bruno@clisp.org>
86083
86084         2004-09-11  Bruno Haible  <bruno@clisp.org>
86085                 * allocsa.valgrind: New file.
86086         2004-02-06  Bruno Haible  <bruno@clisp.org>
86087                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
86088                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
86089                 Reported by Christopher Seip <chris.seip@hp.com>.
86090
86091 2004-11-04  Bruno Haible  <bruno@clisp.org>
86092
86093         * modules/allocsa (Files): Add lib/allocsa.valgrind.
86094         (Makefile.am): Distribute it.
86095
86096 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
86097
86098         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
86099         with errno == ERANGE if the buffer is too small.
86100         Problem reported by Mark D. Baushke.
86101
86102 2004-11-03  Albert Chin  <china@thewrittenword.com>
86103             Paul Eggert  <eggert@cs.ucla.edu>
86104
86105         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
86106         equivalent, substitute $ac_type for equivalent type rather than
86107         blindly using uint32_t *always* which won't work if uint32_t is not
86108         available.  Define _UINT32_T to work around typedef of uint32_t if
86109         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
86110         2.5.1.
86111
86112 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
86113
86114         * m4/jm-macros.m4: Sync from coreutils.
86115         (gl_MACROS): Check for mbrlen, for pathchk.
86116         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
86117
86118 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
86119
86120         * lib/xreadlink.c (MAXSIZE): New macro.
86121         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
86122         size does not exceed MAXSIZE.  Avoid cast.
86123         As suggested by Mark D. Baushke in
86124         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
86125         if readlink fails with buffer size just under MAXSIZE, try again
86126         with MAXSIZE.
86127
86128 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
86129
86130         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
86131
86132 2004-11-02  Derek R. Price  <derek@ximbiot.com>
86133         and  Paul Eggert  <eggert@cs.ucla.edu>
86134
86135         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
86136         (get_date): Overparenthesize to avoid GCC warning.
86137
86138 2004-11-02  Bruno Haible  <bruno@clisp.org>
86139
86140         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
86141         returns void.
86142
86143 2004-11-02  Bruno Haible  <bruno@clisp.org>
86144
86145         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
86146         function returns void.
86147
86148 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
86149
86150         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
86151         fflush_unlocked, flockfile, funlockfile, funlockfile,
86152         fputs_unlocked, putc_unlocked.
86153
86154 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
86155
86156         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
86157         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
86158         already declared.
86159
86160 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
86161
86162         * modules/getdate (Files): Add doc/getdate.texi.
86163         (Depends-on): Add setenv, xalloc.
86164
86165 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
86166
86167         * lib/getdate.y: Add support for TZ="foo" within a date string.
86168         Fix some bugs near time_t boundaries.  Reject dates with
86169         out-of-range components, e.g., "Sept 31".
86170         Include <stdlib.h>, "setenv.h", "xalloc.h".
86171         (ISDIGIT_LOCALE): Remove; unused.
86172         Note that the TZ and time functions used here are not reentrant.
86173         (mktime_ok, get_tz): New functions.
86174         (TZBUFSIZE): New constant.
86175         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
86176         This requires that we sometimes generate our own TZ="XXX..." setting.
86177
86178 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
86179
86180         * doc/getdate.texi: New file, from coreutils with modifications for
86181         the new TZ parsing.
86182
86183 2004-10-27  Derek R. Price  <derek@ximbiot.com>
86184
86185         * lib/mktime.c (not_equal_tm): Remove redundant check.
86186
86187 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
86188
86189         * modules/regex (lib_SOURCES): Add regex.c.
86190         Reported by James Youngman in
86191         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
86192
86193 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
86194
86195         * lib/getdate.y: Use Bison 1.875 features, and some minor
86196         code cleanups.  This change does not affect semantics.
86197         Don't include <stdlib.h>; no longer needed.
86198         Don't include unlocked-io.h; only the "#if TEST" code uses
86199         stdio, and performance isn't crucial there.
86200         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
86201         Bison 1.875 features as described below.
86202         All uses of "PC." replaced by "pc->".
86203         (YYSTYPE): Add a forward declaration.
86204         (yylex, yyerror): Use full prototypes in forward decls.
86205         Use "%pure-parser" rather than obsolescent "%pure_parser".
86206         Use %parse-param and %lex-param instead of obsolescent
86207         YYPARSE_PARAM and YYLEX_PARAM.
86208         (meridian_table, month_and_day_table, time_units_table,
86209         relative_time_table, time_zone_table, military_table,
86210         lookup_zone, lookup_word, get_date):
86211         Use NULL instead of 0 where appropriate.
86212         (to_hour): Avoid abort (), to avoid a dependency on
86213         stdlib.h.
86214         (yyerror, yylex): Now accepts parser_control * arg.
86215         (main) [TEST]: Use '\0' rather than 0 for char.
86216
86217 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
86218
86219         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
86220
86221 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
86222
86223         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
86224         It's now the caller's responsibility to handle the case where
86225         !HAVE_GETPAGESIZE && !defined getpagesize.
86226
86227         * lib/mktime.c (leapyear): Arg is long int, not int.
86228
86229 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
86230
86231         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
86232
86233 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
86234
86235         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
86236         missing.  Problem reported by James Youngman.
86237
86238 2004-10-16  Simon Josefsson  <jas@extundo.com>
86239
86240         * gnulib-tool: Fix comments.  Fix parse problem.
86241         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
86242
86243 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
86244
86245         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
86246         implementation of getopt_long.  Problem reported by Alexander Taler in:
86247         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
86248
86249 2004-10-15  Bruno Haible  <bruno@clisp.org>
86250
86251         * gnulib-tool: Untabify. Initialize supplied_libname.
86252         (func_usage): More homogenous output.
86253         (func_modules_transitive_closure, func_modules_to_filelist,
86254         func_emit_lib_Makefile_am): New functions.
86255         (func_import): New function, extracted from big case statement. Use
86256         func_get_license, func_modules_transitive_closure,
86257         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
86258         opt_lgpl. Don't use test -a, as it's not portable.
86259         (func_create_testdir): Use func_modules_transitive_closure,
86260         func_modules_to_filelist, func_emit_lib_Makefile_am.
86261
86262 2004-10-15  Bruno Haible  <bruno@clisp.org>
86263
86264         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
86265
86266 2004-10-15  Bruno Haible  <bruno@clisp.org>
86267
86268         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
86269         the portions belonging to each module.
86270         Suggested by Derek Robert Price <derek@ximbiot.com>.
86271
86272 2004-10-12  Simon Josefsson  <jas@extundo.com>
86273
86274         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
86275         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
86276         to real functions.
86277
86278 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86279
86280         * modules/vsnprintf: New file.
86281
86282 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86283
86284         * m4/vsnprintf.m4: New file.
86285
86286 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86287
86288         * lib/vsnprintf.h: New file.
86289         * lib/vsnprintf.c: New file.
86290
86291 2004-10-11  Bruno Haible  <bruno@clisp.org>
86292
86293         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
86294         vsnprintf.
86295
86296 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
86297
86298         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
86299
86300 2004-10-07  Bruno Haible  <bruno@clisp.org>
86301
86302         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
86303         fits into the provided buffer.
86304
86305 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
86306
86307         * lib/diacrit.c, diacrit.h: Add GPL notice.
86308
86309         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
86310         notice.
86311         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
86312         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
86313         This avoids a potential constant-folding bug.
86314
86315 2004-10-05  Bruno Haible  <bruno@clisp.org>
86316
86317         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
86318         for the declaration of strsep.
86319
86320 2004-10-05  Bruno Haible  <bruno@clisp.org>
86321
86322         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
86323
86324 2004-10-04  Simon Josefsson  <jas@extundo.com>
86325
86326         * modules/memmem: New file.
86327         * tests/test-memmem.c: New file.
86328         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
86329
86330 2004-10-04  Simon Josefsson  <jas@extundo.com>
86331
86332         * m4/memmem.m4: New file.
86333
86334 2004-10-04  Simon Josefsson  <jas@extundo.com>
86335
86336         * lib/memmem.h: New file.
86337         * lib/memmem.c: New file, taken from glibc.
86338
86339 2004-10-04  Simon Josefsson  <jas@extundo.com>
86340
86341         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
86342         '#ifdef USE_UNLOCKED_IO'.
86343
86344 2004-10-04  Simon Josefsson  <jas@extundo.com>
86345
86346         * config/srclist.txt: Add memmem from glibc.
86347
86348 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
86349
86350         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
86351
86352         * modules/argmatch, modules/argp, modules/closeout, modules/error,
86353         modules/exclude, modules/getdate, modules/getline,
86354         modules/getndelim2, modules/getpass, modules/getpass-gnu,
86355         modules/getusershell, modules/linebuffer, modules/md5,
86356         modules/mountlist, modules/posixtm, modules/readtokens,
86357         modules/readutmp, modules/regex, modules/sha1,
86358         modules/version-etc, modules/yesno:
86359         Remove dependency on unlocked-io.
86360
86361 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
86362
86363         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
86364
86365         * m4/unlocked-io.m4: Add copyright notice.
86366         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
86367
86368 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
86369
86370         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
86371         * lib/xmalloc.c (xmemdup): Likewise.
86372         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
86373         XFREE): Remove these long-obsolescent macros.
86374         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
86375         * lib/xstrdup.c: Remove.
86376
86377         * lib/regex.c (re_comp): Cast gettext return value to char *,
86378         Problem reported by Martin Neitzel via Mark D. Baushke.
86379
86380 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
86381
86382         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
86383         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
86384         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
86385         regex.c, sha1.c, version-etc.c, yesno.c:
86386         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
86387         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
86388         the includer's responsibility.
86389
86390         Sync from coreutils.
86391
86392         * lib/modechange.c (mode_compile): Don't decrement a pointer that
86393         points to the start of a string, as the C Standard says the
86394         resulting behavior is undefined.
86395
86396         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
86397         simple -> simple_backups, numbered_existing ->
86398         numbered_existing_backups, numbered -> numbered_backups
86399         to avoid shadowing problems.  All uses changed.
86400         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
86401         * lib/backupfile.c (check_extension, numbered_backup):
86402         Rename locals to avoid shadowing 'basename'.
86403         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
86404         once.
86405
86406         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
86407         * lib/.cvsignore: Add getopt.h.
86408
86409 2004-10-04  Bruno Haible  <bruno@clisp.org>
86410
86411         * modules/README: New file.
86412         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
86413         not a module.
86414
86415 2004-10-02  Jim Meyering  <jim@meyering.net>
86416
86417         * lib/dirfd.h, getpagesize.h: Add copyright notice.
86418
86419 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86420
86421         * modules/strsep: New file.
86422
86423 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86424
86425         * m4/strsep.m4: New file.
86426
86427 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86428
86429         * lib/strsep.h: New file.
86430         * lib/strsep.c: New file.
86431
86432 2004-10-01  Simon Josefsson  <jas@extundo.com>
86433
86434         * lib/snprintf.c (snprintf): Handle size==0.
86435
86436 2004-10-01  Simon Josefsson  <jas@extundo.com>
86437             Bruno Haible  <bruno@clisp.org>
86438
86439         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
86440         (snprintf): Declare 'args'.
86441
86442 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
86443
86444         * lib/snprintf.c: Remove comments as to why each header is needed.
86445
86446 2004-10-01  Bruno Haible  <bruno@clisp.org>
86447
86448         * MODULES.html.sh: Add strsep.
86449
86450 2004-09-30  Simon Josefsson  <jas@extundo.com>
86451
86452         * modules/snprintf: New file.
86453
86454 2004-09-30  Simon Josefsson  <jas@extundo.com>
86455
86456         * m4/snprintf.m4: New file.
86457
86458 2004-09-30  Simon Josefsson  <jas@extundo.com>
86459
86460         * lib/snprintf.h, lib/snprintf.c: New files.
86461
86462 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86463
86464         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
86465         (hol_entry_help): Never translate an empty string.
86466         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
86467         * lib/argp.h (OPTION_NO_TRANS): New option.
86468
86469 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
86470
86471         * modules/argp (Maintainer): Replace Simon Josefsson
86472         by Sergey Poznyakoff.
86473
86474 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
86475
86476         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
86477         changes merged back into glibc.
86478
86479 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
86480
86481         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
86482
86483 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
86484
86485         * lib/xvasprintf.c: Include xalloc.h.
86486         (xvasprintf): Use xalloc_die, not xmalloc_die.
86487
86488 2004-09-29  Bruno Haible  <bruno@clisp.org>
86489
86490         * modules/alloca-opt: New file, derived from modules/alloca.
86491         * modules/allocsa: Depend on alloca-opt instead of alloca.
86492         * modules/setenv: Likewise.
86493         * modules/vasnprintf: Likewise.
86494         * MODULES.html.sh: Add alloca-opt.
86495
86496 2004-09-28  Simon Josefsson  <jas@extundo.com>
86497
86498         * gnulib-tool: New parameter --lgpl, to asseert that modules are
86499         LGPL, and to replace license template from GPL to LGPL.
86500
86501 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
86502
86503         * modules/dummy: Change license to LGPL.
86504
86505 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
86506
86507         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
86508
86509 2004-09-24  Simon Josefsson  <jas@extundo.com>
86510
86511         * modules/minmax (License): Change from GPL to LGPL.
86512
86513 2004-09-23  Simon Josefsson  <jas@extundo.com>
86514
86515         * gnulib-tool (--import): Typo.
86516
86517 2004-09-23  Simon Josefsson  <jas@extundo.com>
86518
86519         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
86520
86521 2004-09-22  Bruno Haible  <bruno@clisp.org>
86522
86523         * modules/*: Add 'License' field.
86524         * gnulib-tool: Accept --extract-license option.
86525         (func_get_license): New function.
86526
86527 2004-09-21  Bruno Haible  <bruno@clisp.org>
86528
86529         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
86530         Reported by Simon Josefsson.
86531
86532 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
86533
86534         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
86535         gl_AC_TYPE_LONG_LONG.
86536
86537 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
86538
86539         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
86540
86541 2004-09-18  Simon Josefsson  <jas@extundo.com>
86542         and  Paul Eggert  <eggert@cs.ucla.edu>
86543
86544         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
86545         calls with autoreconf.  Define GL_LIB.
86546
86547 2004-09-14  Karl Berry  <karl@gnu.org>
86548
86549         * config/srclist.txt: unsync setenv.c, sigh.
86550
86551 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
86552
86553         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
86554         Problem reported by Bruno Haible in:
86555         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
86556
86557 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
86558
86559         * config/srclist.txt: Comment out argp-pvh.c.
86560
86561 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
86562
86563         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
86564         in case some system header has #define'd it.  Problem reported by
86565         Soeren D. Schulze in
86566         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
86567
86568 2004-09-09  Karl Berry  <karl@gnu.org>
86569
86570         * regex.[ch]: delete from the root.  These were supposed to be
86571                 synced with emacs cvs, but this has not happened for about
86572                 a year, and anyway nothing else uses emacs regex.[ch].
86573                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
86574                 lib/regex[.ch] is untouched.
86575
86576 2004-09-09  Bruno Haible  <bruno@clisp.org>
86577
86578         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
86579
86580 2004-09-09  Bruno Haible  <bruno@clisp.org>
86581
86582         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
86583         modifications.
86584         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
86585
86586 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
86587
86588         * modules/xvasprintf: New file.
86589         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
86590
86591 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
86592
86593         * lib/xvasprintf.h: New file.
86594         * lib/xvasprintf.c: New file.
86595         * lib/xasprintf.c: New file.
86596
86597 2004-09-08  Bruno Haible  <bruno@clisp.org>
86598
86599         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
86600
86601 2004-09-08  Bruno Haible  <bruno@clisp.org>
86602
86603         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
86604         length is > INT_MAX.
86605         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
86606         more.
86607
86608 2004-09-08  Bruno Haible  <bruno@clisp.org>
86609
86610         * lib/stdint_.h: New file, taken from GNU clisp.
86611
86612 2004-09-08  Bruno Haible  <bruno@clisp.org>
86613             Oskar Liljeblad  <oskar@osk.mine.nu>
86614
86615         * modules/stdint: New file.
86616         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
86617
86618 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
86619
86620         Import from coreutils.
86621         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
86622         strings on unbounded length.  alloca's performance benefits aren't
86623         that important here.
86624         (V_STRDUP): Remove.
86625         (parse_with_separator): New function, with most of the internals
86626         of the old parse_user_spec.  Allow user to omit both user and group,
86627         for compatibility with FreeBSD.
86628         Clone only the user name, not the entire spec.
86629         Do not set *uid, *gid unless entirely successful.
86630         Avoid memory leak in some failing cases.
86631         Fix regression for USER.GROUP reported by Dmitry V. Levin in
86632         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
86633         (parse_user_spec): Rewrite to use parse_with_separator.
86634
86635 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
86636
86637         * modules/userspec: Don't depend on alloca.
86638
86639 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
86640
86641         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
86642
86643 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
86644
86645         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
86646         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
86647         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
86648
86649 2004-08-16  Simon Josefsson  <jas@extundo.com>
86650
86651         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
86652         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
86653         Add --dry-run for --import.
86654         Let user provided command line parameters override configure.ac
86655         settings.
86656
86657 2004-08-12  Simon Josefsson  <jas@extundo.com>
86658
86659         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
86660         as discussed with Paul Eggert in threads rooted at
86661         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
86662         and
86663         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
86664         Before, the test was empty, and relied on ELIDE_CODE in source
86665         code.)
86666         (gl_PREREQ_GETOPT): New macro.
86667         (gl_GETOPT): Use them.
86668
86669 2004-08-12  Simon Josefsson  <jas@extundo.com>
86670
86671         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
86672         * lib/getopt_.h: Renamed from getopt.h.
86673
86674 2004-08-12  Simon Josefsson  <jas@extundo.com>
86675
86676         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
86677         Change default library name from libfoo to libgnu.
86678         Now, if you have a configure.ac that says:
86679                 gl_SOURCE_BASE(gl)
86680                 gl_M4_BASE(gl/m4)
86681                 gl_MODULES(error getopt etcetera)
86682                 gl_INIT
86683         you can import all you need by running:
86684                 ../gnulib/gnulib-tool --import
86685
86686         * modules/getopt (Files): Rename getopt.h to getopt_.h.
86687         (Makefile.am): Rewrite, use logic from argz.
86688         (Include): Use <getopt.h> instead of "getopt.h".
86689
86690 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
86691
86692         * modules/argp (Files): Add m4/unlocked-io.m4.
86693         (Depends-on): Add extensions.
86694
86695 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
86696
86697         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
86698         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
86699         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
86700         Check for program_invocation_name, program_invocation_short_name,
86701         flockfile, funlockfile, features.h, _getopt_long_only_r.
86702
86703 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
86704
86705         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
86706         its complicated substitute.
86707         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
86708         and program_invocation_name.
86709         (__argp_basename) [!_LIBC]: Remove; the only use was
86710         replaced by its body.
86711         (__argp_short_program_name): Change condition from
86712         !defined __argp_short_program_name to
86713         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
86714         to match argp-namefrob.h.
86715         (__argp_failure): Don't assume strerror_r returns char *.
86716         * lib/argp-parse.c (N_): Define unconditionally.
86717         (argp_default_options): Fill out initializers with 0 to avoid
86718         gcc warnings.
86719
86720 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
86721
86722         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
86723         getopt1.c.
86724
86725 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
86726
86727         Merge from coreutils.
86728
86729         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
86730
86731         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
86732         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
86733
86734 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
86735
86736         Merge from coreutils.
86737
86738         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
86739         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
86740         for Reliant Unix 5.43.
86741
86742         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
86743         (union fooround): Use uintmax_t, not long int.
86744         The rest is a merge from libc:
86745         [defined _LIBC]: Include <shlib-compat.h>.
86746         (_obstack) [defined _LIBC]: Remove after 2.3.4.
86747
86748         * lib/settime.c (settime): Recode to avoid warning with
86749         Sun Forte C 6U2.
86750
86751         * lib/strverscmp.c: Convert to UTF-8.
86752
86753 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
86754
86755         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
86756         m4/uintmax_t.m4.
86757
86758 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
86759
86760         * modules/xalloc-die: New file.
86761         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
86762
86763         * modules/md5 (Files): Add m4/uint32_t.m4.
86764         * modules/sha1: Renamed from modules/sha.
86765         (Files):
86766         Rename lib/sha.h to lib/sha1.h.
86767         Rename lib/sha.c to lib/sha1.c.
86768         Rename m4/sha.m4 to m4/sha1.m4.
86769         (lib_SOURCES): Likewise.
86770         (configure.ac): Rename gl_SHA to gl_SHA1.
86771         (Include): sha.h -> sha1.h.
86772
86773 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
86774
86775         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
86776         * m4/sha1.m4: Renamed from sha.m4.
86777         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
86778
86779 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
86780
86781         * lib/obstack.h (obstack_empty_p):
86782         Don't assume that chunk->contents is suitably aligned.
86783         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
86784         Likewise. Problem reported by Benno in
86785         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
86786
86787         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
86788         readable.  This could be improved further but it'd take some work.
86789
86790 2004-08-08  Simon Josefsson  <jas@extundo.com>
86791
86792         * modules/xgethostname (Depends-on): Remove exit and error (not
86793         used).
86794
86795         * modules/getpass-gnu: Add getpass.h.
86796         (Depends-on): Add stdbool.
86797         * modules/getpass: Add getpass.h.
86798
86799 2004-08-08  Simon Josefsson  <jas@extundo.com>
86800
86801         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
86802         Check getpass declaration.
86803
86804 2004-08-08  Simon Josefsson  <jas@extundo.com>
86805
86806         * lib/xgethostname.c: Don't include error.h (not used).
86807
86808         * lib/getpass.h: Add.
86809         * lib/getpass.c: Include getpass.h first.
86810
86811 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
86812
86813         * lib/xalloc-die.c: New file.
86814         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
86815         All uses removed.
86816         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
86817         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
86818         xalloc-die.c.
86819         (_, N_, xalloc_die): Move to xalloc-die.c.
86820         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
86821         so that we needn't mess with xalloc_msg_memory_exhausted.
86822
86823         * lib/sha1.h: Renamed from sha.h.
86824         (SHA1_H): Renamed from _SHA_H.
86825         (sha1_ctx): Renamed from sha_ctx.
86826         (sha1_init_ctx): Renamed from sha_init_ctx.
86827         (sha1_process_block): Renamed from sha_process_block.
86828         (sha1_process_bytes): Renamed from sha_process_bytes.
86829         (sha1_finish_ctx): Renamed from sha_finish_ctx.
86830         (sha1_read_ctx): Renamed from sha_read_ctx.
86831         (sha1_stream): Renamed from sha_stream.
86832         (sha1_buffer): Renamed from sha_buffer.
86833         * lib/sha1.c: Likewise; renamed from sha.c.
86834         Do not include <sys/types.h>.
86835         Include <stddef.h> rather than <stdlib.h>.
86836
86837 2004-08-08  Bruno Haible  <bruno@clisp.org>
86838
86839         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
86840         FILESYSTEM_PREFIX_LEN.
86841         * lib/progreloc.c: Likewise.
86842         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
86843
86844 2004-08-06  Simon Josefsson  <jas@extundo.com>
86845
86846         * modules/progname (Depends-on): Don't depend on stdbool.
86847
86848 2004-08-06  Simon Josefsson  <jas@extundo.com>
86849
86850         * modules/getsubopt: New file.
86851         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
86852         getsubopt.
86853
86854 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
86855
86856         More merge from coreutils.
86857
86858         * m4/utimens.m4, m4/utimecmp.m4: New files.
86859         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
86860         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
86861         prereq.m4, sha.m4: Import changes from coreutils.
86862
86863 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
86864
86865         More merge from coreutils.
86866         * modules/raise, modules/readtokens0, modules/utimens:
86867         * modules/utimecmp, module/xnanosleep: New files.
86868         * modules/strftime: Add lib/strftime.h.
86869         Change include from <time.h> to "strftime.h".
86870         * modules/yesno: Add lib/yesno.h.
86871         * modules/backupfile: Remove lib/addext.c.
86872         * modules/euidaccess: Add stat-macros.h.
86873         * modules/canonicalize, modules/euidaccess,
86874         modules/filemode, modules/lchown, modules/makepath,
86875         modules/rmdir, modules/stat: Likewise.
86876
86877 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
86878
86879         Merge from tar.
86880         * lib/argp-help.c (make_hol, hol_append): Don't assume that
86881         SIZE_MAX is a valid preprocessor constant.
86882         (__argp_basename): Change from "#ifndef _LIBC"
86883         to "#ifndef __argp_short_program_name", so that
86884         we don't compile these functions for tar.
86885
86886         More merges from coreutils.
86887         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
86888         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
86889         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
86890         * lib/addext.c: Remove; no longer needed.
86891         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
86892         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
86893         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
86894         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
86895         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
86896         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
86897         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
86898         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
86899         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
86900         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
86901         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
86902         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
86903         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
86904         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
86905         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
86906         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
86907         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
86908         Import changes from coreutils.
86909
86910 2004-08-05  Simon Josefsson  <jas@extundo.com>
86911
86912         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
86913
86914 2004-08-05  Simon Josefsson  <jas@extundo.com>
86915
86916         * m4/getsubopt.m4: New file.
86917
86918 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
86919
86920         Merge from coreutils.
86921
86922         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
86923         * m4/getcwd-path-max.m4: New files.
86924
86925         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
86926         FILESYSTEM_PREFIX_LEN ->
86927         FILE_SYSTEM_PREFIX_LEN.
86928         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
86929         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
86930         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
86931         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
86932
86933         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
86934         prerequisite modules now handle the DOS stuff.
86935         Don't check for unistd.h.
86936
86937 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
86938
86939         Merge from coreutils.
86940
86941         * lib/.gdb-history: Remove; this doesn't belong here.
86942
86943         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
86944         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
86945         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
86946         * lib/getcwd.c: New files.
86947
86948         * lib/dirname.h: Include <stdbool.h>.
86949         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
86950         for consistency with POSIX terminology.  All uses changed.
86951         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
86952         (strip_trailing_slashes): Use bool for booleans.
86953         * lib/stripslash.c (strip_trailing_slashes): Likewise.
86954
86955         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
86956         sometimes returns a positive errno value even when it succeeds.
86957         (print_errno_message) [!LIBC]: Fall back on strerror if
86958         __strerror_r fails.
86959
86960         * lib/path-concat.c (mempcpy): Don't define if a system header defines
86961         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
86962         (longest_relative_suffix): New function.
86963         (path_concat): Use it.  Assume first argument is not NULL.
86964         Port to DOS.  Omit redundant separators.
86965         Report an error instead of returning NULL.
86966         Use mempcpy instead of memcpy.
86967         (xpath_concat): Remove: not declared or used.
86968
86969         * lib/same.h: Include <stdbool.h>
86970         (same_name): Return bool, not int.
86971         * lib/same.c (same_name): Likewise.
86972         (errno): Don't declare; we assume C89 or better now.
86973
86974         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
86975         if not already defined.
86976
86977         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
86978         * lib/dup-safer.c (errno): Likewise.
86979
86980 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
86981
86982         Merge from coreutils.
86983         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
86984         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
86985         * modules/path-concat: Don't depend on strdup.
86986
86987 2004-08-03  Simon Josefsson  <jas@extundo.com>
86988
86989         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
86990         * lib/progname.h: Don't include stdbool.h.
86991
86992 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
86993
86994         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
86995         * MODULES.html.sh (func_all_modules): Remove fatal.
86996
86997 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
86998
86999         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
87000
87001 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
87002
87003         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
87004         working.
87005
87006 2004-08-02  Simon Josefsson  <jas@extundo.com>
87007
87008         * lib/getsubopt.h: New file, with comments from Bruno Haible.
87009         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
87010         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
87011
87012 2004-08-01  Simon Josefsson  <jas@extundo.com>
87013
87014         * lib/xgetdomainname.c: Include stdlib.h, for free().
87015
87016 2004-07-19  Bruno Haible  <bruno@clisp.org>
87017
87018         * MODULES.html.sh (func_all_modules): Add dummy.
87019
87020 2004-07-16  Simon Josefsson  <jas@extundo.com>
87021
87022         * modules/dummy: New file.
87023
87024 2004-07-16  Simon Josefsson  <jas@extundo.com>
87025
87026         * lib/dummy.c: New file.
87027
87028 2004-07-16  Bruno Haible  <bruno@clisp.org>
87029
87030         * lib/backupfile.h: Add extern "C" for C++.
87031         * lib/closeout.h: Likewise.
87032         * lib/copy-file.h: Likewise.
87033         * lib/findprog.h: Likewise.
87034         * lib/full-write.h: Likewise.
87035         * lib/pathname.h: Likewise.
87036         * lib/progname.h: Likewise.
87037         * lib/stpcpy.h: Likewise.
87038         * lib/stpncpy.h: Likewise.
87039         * lib/strcase.h: Likewise.
87040         * lib/strstr.h: Likewise.
87041         * lib/xalloc.h: Likewise.
87042
87043         * lib/mbswidth.h: Add extern "C" for C++.
87044         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
87045
87046 2004-07-13  Robert Millan  <robertmh@gnu.org>
87047
87048         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
87049
87050 2004-07-09  Simon Josefsson  <jas@extundo.com>
87051
87052         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
87053         failed without this.)
87054
87055 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
87056
87057         * modules/chown (Files): Add lib/fchown-stub.c, since
87058         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
87059
87060 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
87061
87062         * lib/fchown-stub.c: New file.
87063
87064 2004-06-24  Jim Meyering  <jim@meyering.net>
87065
87066         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
87067
87068 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
87069
87070         * modules/argz: Omit "#include".
87071
87072         * MODULES.html.sh (func_all_modules): Add calloc, to match
87073         2004-06-01 addition of calloc module.
87074
87075 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
87076
87077         * m4/argz.m4: New file, which is autoupdated from libtool.
87078
87079 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
87080
87081         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
87082         libtool.
87083
87084 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
87085
87086         * config/srclist-update: Don't insist on "USA." before the
87087         close-comment, as libtool omits the period and puts the */ on a
87088         separate line.
87089         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
87090         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
87091
87092 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
87093
87094         * modules/argz: New file.
87095         * MODULES.html.sh (func_all_modules): Add argz.
87096
87097 2004-06-12  Jim Meyering  <jim@meyering.net>
87098         and  Paul Eggert  <eggert@cs.ucla.edu>
87099
87100         * modules/hash (Files): Add lib/xalloc.h.
87101         * modules/pipe (Depends-on): Add wait-process.
87102         * modules/stat (Depends-on): Add xalloc.
87103         * modules/userspec (Files): Add lib/userspec.h.
87104         * modules/xstrto
87105
87106         Upgrade from gettext-0.13.
87107         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
87108         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
87109         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
87110
87111 2004-06-10  Jim Meyering  <jim@meyering.net>
87112
87113         * lib/calloc.c: New file.
87114
87115 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
87116
87117         * lib/getdate.y (yylex): Allow space between sign and number.
87118         Problem reported by Dan Jacobson.
87119
87120 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
87121
87122         Merge from coreutils CVS.
87123
87124         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
87125         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
87126         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
87127         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
87128         xstrtol.m4: Fix copyright date and/or serial number.
87129
87130         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
87131         See if we need an fchown replacement.
87132         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
87133         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
87134         and use the replacement function if we detect either defect.
87135
87136         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
87137         gl_UTIMECMP.
87138
87139 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
87140         and  Jim Meyering  <jim@meyering.net>
87141
87142         Merge from coreutils CVS.
87143
87144         * lib/stat-macros.h: New file, with contents from file-type.h
87145         and coreutils' system.h.
87146         * lib/file-type.c: Include "stat-macros.h".
87147         * lib/file-type.h (file_type): Move all macro definitions to new file,
87148         stat-macros.h.
87149
87150         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
87151         Wrap old code with this conditional.
87152         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
87153         function that does not dereference symlinks.
87154         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
87155
87156         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
87157         dependency problems.
87158         (xreadlink): Accept new arg SIZE, for efficiency.
87159         All decls and uses changed.
87160         * lib/xreadlink.h: Include <stddef.h>, for size_t.
87161
87162         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
87163         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
87164
87165         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
87166         sysexits.h.
87167
87168 2004-06-01  Jim Meyering  <jim@meyering.net>
87169
87170         * m4/calloc.m4: New file.
87171
87172 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
87173
87174         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
87175         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
87176         Also, fix a typo in a diagnostic.
87177
87178 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
87179
87180         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
87181         or AC_FUNC_REALLOC.
87182
87183 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
87184
87185         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
87186         macros to be defined.
87187         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
87188         the allocator returns NULL because the requested size is zero.
87189
87190 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
87191
87192         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
87193         var.  Add comment explaining why libc still defines it.  This
87194         merges the following patch from glibc:
87195         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
87196
87197 2004-05-20  Andreas Schwab  <schwab@suse.de>
87198
87199         * m4/free.m4: Replace free if it not known to work, not the other
87200         way round.
87201
87202 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
87203
87204         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
87205         present in glibc since revision 1.1 of this file.
87206         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
87207         obstack_alignment_mask, obstack_alloc, obstack_base,
87208         obstack_blank, obstack_blank_fast, obstack_chunk_size,
87209         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
87210         obstack_grow0, obstack_init, obstack_int_grow,
87211         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
87212         obstack_next_free, obstack_object_size, obstack_ptr_grow,
87213         obstack_ptr_grow_fast, obstack_room): Remove declarations of
87214         nonexistent functions.
87215
87216 2004-05-18  Karl Berry  <karl@gnu.org>
87217
87218         * config/srclist.txt: break link for vasnprintf.c.
87219
87220 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
87221
87222         Port obstack to the AS/400, where pointers are 16 bytes wide and
87223         you cannot cast an integer to a valid pointer.  This patch is
87224         currently waiting to be integrated into glibc; see
87225         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
87226
87227         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
87228         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
87229         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
87230         (struct obstack): temp member is now a union of a pointer and
87231         an integer, instead of an integer.  All integer uses changed.
87232         This does not affect the physical layout of struct obstack,
87233         except on hosts (like the AS/400) where the size or alignment of
87234         void * is greater than that of ptrdiff_t.
87235         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
87236         __STDC__)]: Store temporary in pointer member of union, not
87237         integer member.
87238         * lib/obstack.c: Include <stddef.h>, for offsetof.
87239         (struct fooalign): Remove; it doesn't need a name.
87240         (union fooround): Change double to long double, and add void *.
87241         (DEFAULT_ALIGNMENT): Use offsetof to compute.
87242         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
87243         not a macro.  Hence the values are always int; so remove all
87244         casts-to-int in uses.
87245
87246 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
87247
87248         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
87249         we can get this patch merged into glibc.
87250
87251 2004-05-17  Derek R. Price  <derek@ximbiot.com>
87252             Paul Eggert  <eggert@cs.ucla.edu>
87253
87254         * m4/argp: Depend on alloca.
87255
87256 2004-05-17  Derek R. Price  <derek@ximbiot.com>
87257             Paul Eggert  <eggert@cs.ucla.edu>
87258
87259         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
87260         freecoding.
87261
87262 2004-05-17  Bruno Haible  <bruno@clisp.org>
87263
87264         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
87265         precision that consists of a '.' followed by an empty digit string.
87266         Patch by Tor Lillqvist <tml@iki.fi>.
87267
87268 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
87269
87270         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
87271         for backward compatibility with older code.  We need our own
87272         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
87273         it under some other name, and our alloca.h will define it.
87274
87275 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
87276             Derek Price  <derek@ximbiot.com>
87277
87278         * lib/alloca.c: Include <alloca.h>, to get our interface.
87279         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
87280         include <alloca.h> first.  Use C89 prototype for alloca; this
87281         requires including <stddef.h> for size_t.  Use extern "C" if C++.
87282         Use #elif for simplicity, since we can assume C89 now.
87283         Don't try to source the system alloca.h since it will not be found
87284         and to prevent recursively including its replacement.
87285         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
87286         * lib/regex.c: Likewise.
87287
87288 2004-05-16  Derek Price  <derek@ximbiot.com>
87289             Paul Eggert  <eggert@cs.ucla.edu>
87290
87291         getline cleanup.  This changes the getndelim2 API: both order of
87292         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
87293         no delimiter).
87294
87295         * lib/getline.c: Don't include stddef.h or stdio.h, since our
87296         interface does that.
87297         (getline): Always use getdelim, so that we don't have two
87298         copies of this code.
87299         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
87300         if available.
87301         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
87302         (GETNDELIM2_MAXIMUM): New macro.
87303         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
87304         instead of the old practice of delim2==0.  All callers changed.
87305         Return -1 on overflow, instead of returning junk.
87306         Do not set *linesize unless allocation succeeds.
87307         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
87308         that we include sys/types.h.
87309         * lib/getnline.h: Likewise.
87310         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
87311         (getndelim2): Reorder arguments.
87312         * lib/getnline.c (getnline, getndelim):
87313         Don't discard the NMAX argument.
87314         (getnline): Invoke getndelim, to avoid code duplication.
87315         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
87316         of (size_t) -1 by callers of the getnline family.
87317
87318 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
87319
87320         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
87321         Check for gettimeofday.
87322         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
87323         Check for settimeofday, stime.
87324
87325 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
87326
87327         * lib/nanosleep.c (suspended): Change its type from int to
87328         sig_atomic_t volatile.
87329         (first_call): Make it private to rpl_nanosleep, and have it
87330         be zero initially as that's a bit faster.
87331         (my_usleep): Round up fractional times instead of truncating them,
87332         as this is the usual meaning for 'sleep'.
87333
87334         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
87335         doesn't work.
87336         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
87337         (ENOSYS): Define if not defined.
87338         (settime): Fall back on stime if it exists and settimeofday fails.
87339         But don't bother with fallbacks if a method fails with errno == EPERM.
87340
87341 2004-05-11  Jim Meyering  <jim@meyering.net>
87342
87343         Prior to this change, the save_cwd caller required read access to the
87344         current directory on most systems (ones with the fchdir function).
87345
87346         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
87347         fails, try write-only, and finally, resort to using xgetcwd.
87348
87349 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
87350
87351         * lib/obstack.c, obstack.h: Import changes from libc.
87352
87353 2004-04-28  Bruno Haible  <bruno@clisp.org>
87354
87355         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
87356         also implicitly appends .exe to executables.
87357         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
87358         accepts Windows pathnames.
87359         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
87360         Treat Cygwin like Windows, since it now accepts Windows pathnames.
87361         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
87362         Treat Cygwin like Windows, since it now accepts Windows pathnames.
87363         Reported by Derek Robert Price <derek@ximbiot.com>.
87364
87365 2004-04-21  Karl Berry  <karl@gnu.org>
87366
87367         * config/srclist.txt (localcharset.c): break sync.
87368
87369 2004-04-20  Paul Eggert  <eggert@twinsun.com>
87370
87371         * m4/host-os.m4: Add a copyright notice.
87372
87373 2004-04-20  Jim Meyering  <jim@meyering.net>
87374
87375         Change UTILS_ to gl_ in AC_DEFINE'd names.
87376         Change utils_- and jm_-prefixed variables, too.
87377         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
87378         UTILS_FUNC_MKDIR_TRAILING_SLASH.
87379         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
87380
87381         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
87382         Don't emit trailing blanks.
87383         Also rename jm_-prefixed variables to have gl_ prefix.
87384
87385         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
87386         Also rename jm_-prefixed variables to have gl_ prefix.
87387
87388         * m4/jm-macros.m4: Reflect the renamings.
87389         * m4/prereq.m4: Likewise.
87390
87391 2004-04-20  Jim Meyering  <jim@meyering.net>
87392
87393         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
87394         memory.
87395
87396 2004-04-20  Jim Meyering  <jim@meyering.net>
87397             Bruno Haible  <bruno@clisp.org>
87398
87399         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
87400         memory when realloc fails.
87401
87402 2004-04-19  Jim Meyering  <jim@meyering.net>
87403
87404         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
87405         now that readutmp.c may call `free (0)'.
87406
87407 2004-04-19  Bruno Haible  <bruno@clisp.org>
87408
87409         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
87410         * m4/inttypes_h.m4: Likewise.
87411         * m4/stdint_h.m4: Likewise.
87412         * m4/intmax_t.m4: Likewise.
87413         * m4/uintmax_t.m4: Likewise.
87414
87415 2004-04-18  Jim Meyering  <jim@meyering.net>
87416
87417         * m4/prereq.m4: Don't forbid jm_ prefix.
87418
87419         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
87420         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
87421         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
87422         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
87423         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
87424         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
87425         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
87426         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
87427         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
87428         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
87429         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
87430         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
87431         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
87432         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
87433         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
87434         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
87435         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
87436         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
87437         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
87438
87439 2004-04-18  Jim Meyering  <jim@meyering.net>
87440
87441         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
87442         failure, don't leak memory and do call END_UTMP_ENT.
87443
87444 2004-04-16  Jim Meyering  <jim@meyering.net>
87445
87446         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
87447         coreutils' stat program.
87448         (gl_PREREQ): Don't require jm_PREREQ_STAT.
87449
87450 2004-04-11  Paul Eggert  <eggert@twinsun.com>
87451
87452         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
87453         C89.
87454         (CHAR_BIT): Remove, since we assume C89.
87455         Include <stdint.h> if available, as per current Autoconf CVS advice.
87456
87457 2004-03-31  Jim Meyering  <jim@meyering.net>
87458
87459         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
87460         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
87461         * m4/xalloc.m4: Likewise.
87462
87463 2004-03-30  Paul Eggert  <eggert@twinsun.com>
87464
87465         Merge from coreutils.
87466
87467         * m4/inttostr.m4: New file.
87468         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
87469         Require AM_STDBOOL_H and gl_TIMESPEC instead.
87470         Require gl_CLOCK_TIME.
87471         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
87472
87473 2004-03-30  Paul Eggert  <eggert@twinsun.com>
87474
87475         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
87476         not bool, to be more consistent with Unix conventions.
87477         Suggested by Bruno Haible.
87478
87479         Merge from coreutils.
87480
87481         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
87482         * lib/umaxtostr.c: New files.
87483
87484         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
87485         the usual <time.h> dance.
87486         (get_date): Change signature to support fractional time stamps.
87487         All callers changed.
87488         * lib/getdate.y: Include "getdate.h" first, as we can now
87489         assume C89 and don't need to worry about 'const'.
87490         Similarly, include "unlocked-io.h" near start, not in middle.
87491         Include <limits.h>.
87492         (textint.value): Use long int rather than int.
87493         (textint.digits): Use size_t rather than int.
87494         (BILLION, LOG10_BILLION): New constants.
87495         (parser_control): New member rel_ns.  Members day_ordinal,
87496         time_zone, month, day, hour, minutes, rel_year, rel_month,
87497         rel_day, rel_hour, rel_minutes, rel_seconds
87498         are now long int, not int.  Member seconds is now struct timespec,
87499         not int.  New member timespec_seen.  Members dates_seen, days_seen,
87500         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
87501         not int.
87502         (%union.intval): Now long int, not int.
87503         New member timespec.
87504         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
87505         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
87506         (spec): Now is a timespec or an item list.
87507         (timespec, items): New nonterminals.
87508         (time, rel, relunit, number, get_date):
87509         Add support for fractional seconds.
87510         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
87511         (gmtime, localtime, mktime): Remove decls; not needed with C89.
87512         (to_hour): First arg is now long int, not int.
87513         (to_year): Returns long int, not int.
87514         Don't treat year -70 like 70.
87515         (tm_diff): Returns long int, not int.
87516         (lookup_word): Use bool instead of int when appropriate.
87517         (yylex): Use size_t for count, not int.
87518         Detect overflow when parsing large integer constants.
87519         Add support for fractions.
87520         (get_date): Make pointers 'const' if possible.
87521         Use more-portable code to detect integer overflow.
87522         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
87523         Don't use ctime; it's not reliable if the year has >4 digits.
87524
87525         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
87526         This is for compatibility with BSD.
87527
87528         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
87529         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
87530         From coreutils' system.h.
87531
87532         * lib/userspec.c: Don't include "posixver.h".
87533         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
87534         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
87535         compatible extension.  Simplify code by removing a boolean int
87536         that was always nonzero if a string was nonnull.
87537
87538 2004-03-30  Jim Meyering  <jim@meyering.net>
87539
87540         Merge from coreutils.
87541
87542         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
87543         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
87544         on some systems one must include <grp.h> before it.
87545         Reported by Christian Krackowizer.
87546
87547 2004-03-30  Jim Meyering  <jim@meyering.net>
87548
87549         Merge from coreutils.
87550
87551         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
87552
87553         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
87554         an empty input stream.
87555
87556         * lib/readtokens.c: Include <stdbool.h>.
87557         (readtoken): Use `size_t' rather than int/long.
87558         All callers adjusted.
87559         Use `bool' rather than `int' where appropriate.
87560         Use memset rather than an explicit loop.
87561         Use x2nrealloc rather than xrealloc.
87562         Allow the use of `\0' as a delimiter.
87563         (readtokens): Likewise.
87564         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
87565
87566 2004-03-30  Jim Meyering  <jim@meyering.net>
87567
87568         * m4/realloc.m4: Remove file, since now it does no more than
87569         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
87570         the `configure.ac' section of module/realloc.
87571         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
87572
87573 2004-03-30  Bruno Haible  <bruno@clisp.org>
87574
87575         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
87576         nonnull.
87577
87578 2004-03-29  Paul Eggert  <eggert@twinsun.com>
87579
87580         Merge changes to getloadavg.c from coreutils and Emacs.
87581
87582         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
87583         Define to an expression, not to the empty string.
87584         Include cloexec.h and xalloc.h.
87585         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
87586         Use set_cloexec_flag rather than rolling our own.
87587         * lib/cloexec.c, lib/cloexec.h: New files.
87588
87589 2004-03-29  Paul Eggert  <eggert@twinsun.com>
87590
87591         * m4/cloexec.m4: New file.
87592
87593 2004-03-18  Paul Eggert  <eggert@twinsun.com>
87594
87595         * lib/getopt.h: Sync with libc CVS.
87596
87597 2004-03-18  Paul Eggert  <eggert@twinsun.com>
87598             Bruno Haible  <bruno@clisp.org>
87599
87600         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
87601         mbswidth.
87602
87603 2004-03-18  Paul Eggert  <eggert@twinsun.com>
87604             Bruno Haible  <bruno@clisp.org>
87605
87606         * lib/mbswidth.h: Include <wchar.h> only if
87607         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
87608         <wchar.h>.
87609         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
87610
87611 2004-03-09  Paul Eggert  <eggert@twinsun.com>
87612
87613         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
87614         Sync with libc CVS.
87615         * lib/getopt_int.h: New file, also synced from libc.
87616
87617 2004-03-09  Paul Eggert  <eggert@twinsun.com>
87618
87619         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
87620         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
87621         Bring back getopt.c, getopt.h, getopt1.c.
87622
87623 2004-03-07  Paul Eggert  <eggert@twinsun.com>
87624
87625         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
87626         All uses changed.  Check for sa_sigaction member; this fixes
87627         a bug first reported by Jason Andrade in
87628         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
87629
87630 2004-03-07  Paul Eggert  <eggert@twinsun.com>
87631
87632         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
87633         '#if' expressions.  Unlike the code it replaces, it does not
87634         depend on (defined _SC_PAGESIZE).  However, it does depend on
87635         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
87636         first reported by Jason Andrade in
87637         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
87638
87639 2004-02-25  Simon Josefsson  <jas@extundo.com>
87640
87641         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
87642
87643 2004-02-25  Simon Josefsson  <jas@extundo.com>
87644
87645         * lib/strdup.h: New file.
87646         * lib/strdup.c: Include it.
87647         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
87648         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
87649
87650 2004-02-23  Karl Berry  <karl@gnu.org>
87651
87652         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
87653         (from fencepost.gnu.org:/gd/gnuorg).
87654
87655 2004-02-23  Karl Berry  <karl@gnu.org>
87656
87657         * config/srclistvars.sh (GNUORG) [karl]: redefine.
87658         * config/srclist.txt: add maintain/standards documents.
87659
87660 2004-02-18  Bruno Haible  <bruno@clisp.org>
87661
87662         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
87663         Reported by Derek Robert Price <derek@ximbiot.com>.
87664
87665 2004-02-16  Karl Berry  <karl@gnu.org>
87666
87667         * config/mkinstalldirs, install-sh: update from automake.
87668
87669 2004-02-06  Karl Berry  <karl@gnu.org>
87670
87671         * m4/po.m4: update from gettext 0.14.1.
87672
87673 2004-02-06  Karl Berry  <karl@gnu.org>
87674
87675         * lib/config.charset: update from gettext 0.14.1.
87676
87677 2004-02-05  Paul Eggert  <eggert@twinsun.com>
87678
87679         Add comments and code, prompted by suggestions from Bruno Haible
87680         for sh-quote.
87681         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
87682         describing the enum quoting_style values.
87683         * lib/quotearg.c (quotearg_alloc): New function.
87684         (quotearg_buffer_restyled): Treat lone { and } as special.
87685         Treat = as special.  Work around bug with older shells
87686         that "see" a '\' that is really the 2nd byte of a multibyte char.
87687         Quote empty string with shell_quoting_style.
87688
87689 2004-02-03  Bruno Haible  <bruno@clisp.org>
87690
87691         * m4/pipe.m4: New file, from GNU gettext.
87692
87693 2004-02-03  Bruno Haible  <bruno@clisp.org>
87694
87695         * lib/pipe.h: New file, from GNU gettext.
87696         * lib/pipe.c: New file, from GNU gettext.
87697
87698 2004-01-27  Bruno Haible  <bruno@clisp.org>
87699
87700         * m4/execute.m4: New file, from GNU gettext.
87701
87702 2004-01-27  Bruno Haible  <bruno@clisp.org>
87703
87704         * lib/execute.h: New file, from GNU gettext.
87705         * lib/execute.c: New file, from GNU gettext.
87706         * lib/w32spawn.h: New file, from GNU gettext.
87707
87708 2004-01-24  Paul Eggert  <eggert@twinsun.com>
87709
87710         Merge from diffutils.
87711
87712         * lib/file-type.c (file_type): Add typed memory objects.
87713         * lib/file-type.h (S_TYPEISTMO): New macro.
87714
87715         * lib/c-stack.h (c_stack_action): Remove argv argument.
87716         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
87717         (die): Don't calculate message unless segv_action returns.
87718         (get_stack_location, min_address_from_argv, max_address_from_argv,
87719         volatile stack_base, volatile_stack_size): Remove.
87720         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
87721         that every segmentation violation is a stack overflow.  (Ouch!)
87722         See Debian bug 136249 (still outstanding) for more info about why
87723         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
87724
87725 2004-01-24  Paul Eggert  <eggert@twinsun.com>
87726
87727         Exit-status fix from coreutils.
87728
87729         Use exit_failure consistently in place of EXIT_FAILURE,
87730         so that program exit statuses are consistent on failure.
87731
87732         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
87733         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
87734         * lib/argmatch.h: Comment fix to match the above.
87735         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
87736         Now a macro referring to exit_failure, instead of a separate
87737         variable.  Include "exitfail.h" to get it.
87738         * lib/xstrtol.h: Include "exitfail.h".
87739         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
87740
87741         * lib/long-options.c (parse_long_options): Use prototype
87742         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
87743         for clarity.
87744
87745 2004-01-21  Jim Meyering  <jim@meyering.net>
87746
87747         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
87748         so as not to conflict with a different-sized __mktime_internal
87749         function in GNU libc.
87750         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
87751         Problem building statically-linked `ls' reported by Michael Brunnbauer.
87752
87753 2004-01-20  Karl Berry  <karl@gnu.org>
87754
87755         * config/config.guess: update from config.
87756
87757         * config/srclistvars.sh: GNUWWWLICENSES for karl.
87758
87759 2004-01-20  Bruno Haible  <bruno@clisp.org>
87760
87761         Safer stack allocation.
87762         * lib/setenv.c: Include allocsa.h.
87763         (alloca): Remove fallback definition.
87764         (freea): Remove macro.
87765         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
87766         instead of freea.
87767
87768 2004-01-20  Bruno Haible  <bruno@clisp.org>
87769
87770         * m4/eealloc.m4: New file, from GNU gettext.
87771
87772 2004-01-20  Bruno Haible  <bruno@clisp.org>
87773
87774         * m4/allocsa.m4: New file, from GNU gettext.
87775
87776 2004-01-20  Bruno Haible  <bruno@clisp.org>
87777
87778         * lib/xallocsa.h: New file, from GNU gettext.
87779         * lib/xallocsa.c: New file, from GNU gettext.
87780
87781 2004-01-20  Bruno Haible  <bruno@clisp.org>
87782
87783         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
87784
87785 2004-01-20  Bruno Haible  <bruno@clisp.org>
87786
87787         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
87788         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
87789         specially.
87790
87791 2004-01-20  Bruno Haible  <bruno@clisp.org>
87792
87793         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
87794         patch.
87795
87796 2004-01-20  Bruno Haible  <bruno@clisp.org>
87797
87798         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
87799
87800 2004-01-20  Bruno Haible  <bruno@clisp.org>
87801
87802         * lib/eealloc.h: New file.
87803
87804 2004-01-20  Bruno Haible  <bruno@clisp.org>
87805
87806         * lib/binary-io.h: Avoid warnings on Cygwin.
87807
87808 2004-01-20  Bruno Haible  <bruno@clisp.org>
87809
87810         * lib/allocsa.h: New file, from GNU gettext.
87811         * lib/allocsa.c: New file, from GNU gettext.
87812
87813 2004-01-18  Karl Berry  <karl@gnu.org>
87814
87815         * doc/gpl.texi, doc/lgpl.texi: new files.
87816
87817 2004-01-18  Karl Berry  <karl@gnu.org>
87818
87819         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
87820         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
87821
87822 2004-01-15  Paul Eggert  <eggert@twinsun.com>
87823
87824         Merge from coreutils.
87825
87826         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
87827         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
87828         (gl_DEFAULT_POSIX2_VERSION): Move
87829         the documentation from 'configure' into 'config.hin',
87830         so that 'configure --help' isn't burdened by it and
87831         we don't have to worry about its formatting there.
87832         Reword the documentation so that it's more succinct
87833         and can be run together into a single paragraph.
87834         * m4/same.m4 (gl_SAME): Check for pathconf.
87835
87836 2004-01-15  Paul Eggert  <eggert@twinsun.com>
87837
87838         Merge from coreutils.
87839
87840         * lib/posixver.c: Include posixver.h.
87841
87842         * lib/same.c: Include <stdbool.h>, <limits.h>.
87843         (_POSIX_NAME_MAX): Define if not defined.
87844         (MIN): New macro.
87845         (same_name): If file names are silently truncated, report
87846         that the file names are the same if they are the same after
87847         the silent truncation.
87848
87849         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
87850         conversion function.
87851         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
87852         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
87853         longer needed.
87854
87855 2004-01-15  Jim Meyering  <jim@meyering.net>
87856
87857         Merge from coreutils.
87858
87859         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
87860         if no library is required.
87861         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
87862         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
87863         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
87864         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
87865         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
87866         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
87867         value, $ac_cv_search_crypt, if it's "none required".
87868         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
87869         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
87870         not gl_FUNC_GETLOADAVG.
87871         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
87872         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
87873
87874 2004-01-15  Jim Meyering  <jim@meyering.net>
87875
87876         Merge from coreutils.
87877
87878         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
87879         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
87880         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
87881
87882         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
87883         optional configure-time default.
87884
87885         * lib/version-etc.c (version_etc_copyright): Update copyright date.
87886
87887         * lib/xreadlink.c (xreadlink): Correct outdated comment.
87888
87889 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
87890
87891         Merge from coreutils.
87892
87893         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
87894         value, $ac_cv_search_nanosleep, if it's "none required".
87895
87896 2004-01-14  Paul Eggert  <eggert@twinsun.com>
87897
87898         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
87899         with like-named macro in fnmatch.c.
87900         (EXT): Use an internal constant instead.
87901
87902         Merge fnmatch patches from glibc.
87903         * lib/fnmatch.c (mbsinit): Remove define.
87904         Add libc_hidden_ver (__fnmatch, fnmatch).
87905         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
87906         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
87907
87908 2004-01-14  Karl Berry  <karl@gnu.org>
87909
87910         * config/install-sh: update from automake.
87911
87912 2004-01-13  Karl Berry  <karl@gnu.org>
87913
87914         * config/install-sh: update from automake.
87915
87916 2004-01-09  Karl Berry  <karl@gnu.org>
87917
87918         * config/install-sh: update from automake.
87919
87920 2004-01-05  Karl Berry  <karl@gnu.org>
87921
87922         * config/config.{sub,guess}: update from config.
87923
87924 2003-12-31  Karl Berry  <karl@gnu.org>
87925
87926         * config/depcomp: update from automake.
87927
87928 2003-12-14  Karl Berry  <karl@gnu.org>
87929
87930         * lib/config.charset: update from gettext-runtime.
87931
87932 2003-12-03  Paul Eggert  <eggert@twinsun.com>
87933
87934         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
87935         Bug reported by Alfred M. Szmidt.
87936
87937 2003-12-03  Bruno Haible  <bruno@clisp.org>
87938
87939         * m4/gettext.m4: Upgrade from gettext-0.13.
87940         * m4/po.m4: Upgrade from gettext-0.13.
87941         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
87942         * m4/intmax.m4: New file, from gettext-0.13.
87943         * m4/printf-posix.m4: New file, from gettext-0.13.
87944
87945 2003-11-29  Karl Berry  <karl@gnu.org>
87946
87947         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
87948
87949 2003-11-25  Paul Eggert  <eggert@twinsun.com>
87950             Bruno Haible  <bruno@clisp.org>
87951
87952         * lib/printf-parse.h: Don't include sys/types.h.
87953         (ARG_NONE): New macro.
87954         (char_directive): Change type of *arg_index fields to size_t.
87955         * lib/printf-parse.c: Don't include sys/types.h.
87956         (SSIZE_MAX): Remove macro.
87957         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
87958         Remove unnecessary overflow check.
87959         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
87960         fields.
87961
87962 2003-11-25  Bruno Haible  <bruno@clisp.org>
87963
87964         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
87965
87966 2003-11-25  Bruno Haible  <bruno@clisp.org>
87967
87968         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
87969         gt_TYPE_SSIZE_T.
87970
87971 2003-11-24  Paul Eggert  <eggert@twinsun.com>
87972
87973         * modules/alloca: Remove dependency on xalloc.
87974
87975 2003-11-24  Paul Eggert  <eggert@twinsun.com>
87976
87977         * lib/alloca.c: Remove dependency on xalloc module.
87978         (xalloc_die): Remove.
87979         (memory_full) [!defined emacs]: New macro.
87980         [!defined emacs]: Don't include xalloc.h.
87981         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
87982         address arithmetic overflows.  Change datatypes a bit to avoid
87983         unnecessary casts.
87984
87985 2003-11-22  Jim Meyering  <jim@meyering.net>
87986
87987         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
87988         s/size/size_t/.
87989
87990 2003-11-21  Karl Berry  <karl@gnu.org>
87991
87992         * config/config.{sub,guess}: update from config.
87993
87994 2003-11-18  Karl Berry  <karl@gnu.org>
87995
87996         * config/config.{sub,guess}: update from config.
87997
87998         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
87999
88000 2003-11-17  Paul Eggert  <eggert@twinsun.com>
88001
88002         * README: Mention that S+T cannot overflow if S is the size of
88003         an existing object and T is sufficiently small.
88004
88005 2003-11-17  Jim Meyering  <jim@meyering.net>
88006
88007         On systems without utime and without a utimes function capable of
88008         dealing with a NULL struct utimbuf* argument, this utime replacement
88009         could -- in unusual circumstances -- leak a file descriptor.
88010         * lib/utime.c: Include <unistd.h> and <errno.h>.
88011         (utime_null): Be sure to close `fd' and to preserve errno.
88012         Reported by Geoff Collyer via Arnold Robbins.
88013
88014 2003-11-17  Bruno Haible  <bruno@clisp.org>
88015
88016         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
88017         (Depends-on): Add xsize.
88018
88019 2003-11-17  Bruno Haible  <bruno@clisp.org>
88020
88021         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
88022
88023 2003-11-17  Bruno Haible  <bruno@clisp.org>
88024
88025         * lib/vasnprintf.c (alloca): Remove fallback definition.
88026         (freea): Remove definition.
88027         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
88028         Reported by Paul Eggert.
88029
88030 2003-11-16  Paul Eggert  <eggert@twinsun.com>
88031             Bruno Haible  <bruno@clisp.org>
88032
88033         Protect against address arithmetic overflow.
88034         * lib/printf-args.h: Include stddef.h.
88035         (arguments): Change type of field 'count' to size_t.
88036         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
88037         'unsigned int' where appropriate.
88038         * lib/printf-parse.h: Include sys/types.h.
88039         (char_directive): Change type of *arg_index fields to ssize_t.
88040         (char_directives): Change type of fields 'count', max_*_length to
88041         size_t.
88042         * lib/printf-parse.c: Include sys/types.h and xsize.h.
88043         (SSIZE_MAX): Define fallback value.
88044         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
88045         instead of 'int' where appropriate. Check a_allocated, d_allocated
88046         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
88047         * lib/vasnprintf.c: Include xsize.h.
88048         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
88049         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
88050         overflow. Avoid wraparound when converting a width or precision from
88051         decimal to binary.
88052
88053 2003-11-16  Bruno Haible  <bruno@clisp.org>
88054
88055         Update from GNU gettext.
88056         * lib/printf-parse.c: Generalize to it can be compiled for wide
88057         strings.
88058         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
88059         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
88060         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
88061         SNPRINTF): New macros.
88062         Don't include <alloca.h> if the file is used inside libintl.
88063         (local_wcslen): New function, for Solaris 2.5.1.
88064         (VASNPRINTF): Use it instead of wcslen.
88065
88066 2003-11-16  Bruno Haible  <bruno@clisp.org>
88067
88068         * lib/xsize.h (xmax): New function.
88069         (xsum, xsum3, xsum4): Declare as "pure" functions.
88070
88071 2003-11-12  Paul Eggert  <eggert@twinsun.com>
88072
88073         * modules/xalloc (Files): Undo latest change, since xalloc.h
88074         no longer needs SIZE_MAX or PTRDIFF_MAX.
88075
88076 2003-11-12  Paul Eggert  <eggert@twinsun.com>
88077
88078         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
88079         gl_PTRDIFF_MAX.
88080
88081 2003-11-12  Paul Eggert  <eggert@twinsun.com>
88082
88083         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
88084         "return", to pacify some unknown compiler.  Problem reported
88085         by Joerg Schilling.
88086
88087 2003-11-12  Paul Eggert  <eggert@twinsun.com>
88088
88089         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
88090         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
88091         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
88092         heuristic is just as accurate as far as we know, and it removes a
88093         dependency on size_max.m4 and ptrdiff_max.m4.
88094
88095 2003-11-11  Bruno Haible  <bruno@clisp.org>
88096
88097         * modules/xsize (Files): Add m4/size_max.m4.
88098         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
88099
88100 2003-11-11  Bruno Haible  <bruno@clisp.org>
88101
88102         * m4/size_max.m4: New file.
88103         * m4/ptrdiff_max.m4: New file.
88104         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
88105         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
88106         (gl_XALLOC): Invoke it.
88107
88108 2003-11-11  Bruno Haible  <bruno@clisp.org>
88109
88110         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
88111         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
88112         defined.
88113
88114 2003-11-10  Paul Eggert  <eggert@twinsun.com>
88115
88116         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
88117         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
88118         rejected some allocations of exactly SIZE_MAX - 2 bytes.
88119         From Bruno Haible.
88120         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
88121         not (size_t) -1, since it's defined here.
88122
88123 2003-11-09  Karl Berry  <karl@gnu.org>
88124
88125         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
88126
88127 2003-11-06  Paul Eggert  <eggert@twinsun.com>
88128
88129         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
88130         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
88131         Reject sizes of exactly SIZE_MAX bytes.
88132         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
88133         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
88134
88135 2003-11-05  Bruno Haible  <bruno@clisp.org>
88136
88137         * lib/xsize.h: Include limits.h, to avoid a possible collision with
88138         SIZE_MAX defined in <limits.h> on Solaris.
88139
88140 2003-11-04  Jim Meyering  <jim@meyering.net>
88141
88142         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
88143         variable names, rather than @VAR@.
88144         * modules/poll: Likewise.
88145
88146 2003-11-04  Bruno Haible  <bruno@clisp.org>
88147
88148         * modules/xsize: New file.
88149         * modules/linebreak: Depend on xsize.
88150         * MODULES.html.sh (func_all_modules): Add xsize.
88151
88152 2003-11-04  Bruno Haible  <bruno@clisp.org>
88153
88154         * m4/xsize.m4: New file.
88155
88156 2003-11-04  Bruno Haible  <bruno@clisp.org>
88157
88158         * lib/xsize.h: New file.
88159         * lib/linebreak.c: Include xsize.h.
88160         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
88161         argument for overflow.
88162         Suggested by Paul Eggert.
88163
88164 2003-11-03  Karl Berry  <karl@gnu.org>
88165
88166         * config/config.{guess,sub}: update from config.
88167
88168 2003-11-03  Jim Meyering  <jim@meyering.net>
88169
88170         * modules/userspec (lib_SOURCES): Add userspec.h.
88171         (Include): Add "userspec.h".
88172         Improve description.
88173
88174 2003-11-03  Jim Meyering  <jim@meyering.net>
88175
88176         * lib/userspec.c: Include "userspec.h".
88177         * lib/userspec.h: New file.
88178
88179 2003-11-03  Bruno Haible  <bruno@clisp.org>
88180
88181         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
88182
88183 2003-11-03  Bruno Haible  <bruno@clisp.org>
88184
88185         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
88186         available, to avoid (extremely rare) race condition.
88187         Suggested by Paul Eggert.
88188
88189 2003-11-02  Karl Berry  <karl@gnu.org>
88190
88191         * config/srclist.txt (vasprintf.c): sync broken, sigh.
88192
88193 2003-10-31  Paul Eggert  <eggert@twinsun.com>
88194
88195         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
88196         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
88197         (read_filesystem_list): Set and use me_type_malloced.
88198         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
88199         whatever the type happens to be), for brevity and consistency.
88200         Check for size calculation overflow on Alphas running OSF/1.
88201
88202 2003-10-31  Jim Meyering  <jim@meyering.net>
88203
88204         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
88205
88206         * lib/linebuffer.c: Include <string.h> for declaration of memset.
88207
88208 2003-10-30  Paul Eggert  <eggert@twinsun.com>
88209             Bruno Haible  <bruno@clisp.org>
88210
88211         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
88212         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
88213
88214 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
88215
88216         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
88217         netbsd*-gnu*.  Suggested by Robert Millan.
88218
88219 2003-10-29  Paul Eggert  <eggert@twinsun.com>
88220
88221         * modules/group-member: Depend on stdbool.
88222
88223 2003-10-29  Paul Eggert  <eggert@twinsun.com>
88224
88225         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
88226
88227 2003-10-29  Paul Eggert  <eggert@twinsun.com>
88228
88229         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
88230         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
88231         after the 'gnu' in these cases.  This fixes some bugs in the
88232         previous change, and is based on suggestions by Robert Millan.
88233
88234 2003-10-29  Paul Eggert  <eggert@twinsun.com>
88235
88236         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
88237         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
88238         no longer needed.
88239         * lib/quotearg.c (quotearg_n_options): Use it.
88240         * lib/group-member.c: Include <stdbool.h>.
88241         (free_group_info): Arg is now const *; don't free arg.
88242         (get_group_info): Now returns bool and accepts struct group_info *,
88243         rather than returning a malloc'ed struct group_info *.
88244         All uses changed.  Check for overflow in internal size calculation.
88245
88246         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
88247         rather than xmalloc/xrealloc.
88248         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
88249         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
88250         conformance bug: the old code used a pointer after freeing the
88251         storage that it addressed.
88252         * lib/hash.c (hash_initialize): Simplify the code by using
88253         xalloc_oversized rather than doing it by hand.
88254         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
88255         the buffer preserved.  Use free and xmalloc instead.
88256         * lib/quotearg.c (quotearg_n_options): Likewise.
88257         Use a simpler test for size overflow.  Don't use xalloc_oversized
88258         because unsigned int might be wider than size_t (!); this suggests
88259         that we should switch from unsigned int to size_t for slot numbers.
88260
88261 2003-10-28  Paul Eggert  <eggert@twinsun.com>
88262
88263         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
88264         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
88265         NetBSD kernels.  Requested by Richard Stallman.
88266
88267 2003-10-27  Paul Eggert  <eggert@twinsun.com>
88268
88269         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
88270         to allocate the returned structure.  Do not allocate a subarray,
88271         as x2nrealloc will do that.
88272         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
88273         instead of xnrealloc.
88274         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
88275
88276 2003-10-27  Bruno Haible  <bruno@clisp.org>
88277
88278         * lib/stdbool_.h: Better support for BeOS.
88279
88280 2003-10-26  Paul Eggert  <eggert@twinsun.com>
88281
88282         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
88283         now uses inline.
88284
88285 2003-10-26  Paul Eggert  <eggert@twinsun.com>
88286
88287         * lib/xalloc.h (xalloc_oversized): New static inline function, for
88288         callers that want to do their own size-overflow checking.  Include
88289         <stdbool.h>, since xalloc_oversized returns bool.
88290         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
88291         to use xalloc_oversized.
88292
88293         Add two functions x2realloc, x2nrealloc, for programs that grow
88294         arrays dynamically by doubling their sizes.
88295         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
88296         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
88297         New functions.
88298
88299         Port to C99 semantics for 'inline' of external functions.
88300         Bug reported by Bruno Haible.
88301         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
88302         with the old contents of xnmalloc.
88303         (xnmalloc, xmalloc): Use it.
88304         (xnrealloc_inline): New static inline function,
88305         with the old contents of xnrealloc.
88306         (xnrealloc, xrealloc): Use it.
88307
88308         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
88309         that.
88310
88311 2003-10-26  Karl Berry  <karl@gnu.org>
88312
88313         * config/srclist.txt (COPYING.DOC): no longer available from
88314         /gd/gnuorg; don't know where the ultimate source is.
88315
88316 2003-10-25  Paul Eggert  <eggert@twinsun.com>
88317
88318         Fix several address-calculation bugs in the hash modules,
88319         plus some minor code cleanup.
88320
88321         * lib/hash.h: Include <stdbool.h>, for bool.
88322         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
88323         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
88324         hash_get_n_entries, hash_get_max_bucket_length,
88325         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
88326         hash_rehash): Use size_t rather than unsigned.
88327         * lib/hash.c (struct hash_table, hash_get_n_buckets,
88328         hash_get_n_buckets_used, hash_get_n_entries,
88329         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
88330         hash_get_entries, hash_do_for_each, hash_string, is_prime,
88331         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
88332         Likewise.
88333         (SIZE_MAX): Define if not defined.
88334         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
88335         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
88336         hash_print):
88337         Use const * when possible.
88338         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
88339         (check_tuning): Fix bug: if tuning parameters were very close to
88340         0 or 1, rounding errors could have caused subscript violations.
88341         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
88342         (hash_initialize): Add 'fail:' label
88343         to free table and return NULL, and use it to simplify code.
88344         Use calloc rather than clearing the storage ourself.
88345         (hash_initialize, hash_rehash): Check for arithmetic overflow in
88346         buffer size calculations.
88347         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
88348         Include <stddef.h>, for size_t.
88349         * lib/hash-pjw.c (hash_pjw): Likewise.
88350         Switch to method described by Bruno Haible.
88351         Include <limits.h>, for CHAR_BIT.
88352         (SIZE_BITS): New macro.
88353
88354 2003-10-23  Paul Eggert  <eggert@twinsun.com>
88355
88356         * m4/getline.m4 (AM_FUNC_GETLINE):
88357         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
88358         hosts.  Problem reported by Derek Robert Price in
88359         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
88360         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
88361         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
88362
88363 2003-10-21  Paul Eggert  <eggert@twinsun.com>
88364
88365         * lib/getndelim2.c (getndelim2): When size calculation overflows,
88366         ceiling the allocation at NMAX bytes rather than silently
88367         discarding input bytes before NMAX is reached.  This makes
88368         a difference only if NMAX exceeds SIZE_MAX / 2.
88369
88370         * lib/obstack.c: Merge from glibc.
88371         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
88372         Add libc_hidden_def (_obstack_newchunk).
88373         (_obstack_free) [! defined _LIBC]: Remove.
88374         [defined _LIBC]: Make a strong alias from obstack_free, rather than
88375         a clone of the function body.
88376         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
88377         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
88378
88379         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
88380         glibc.
88381         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
88382         arg to memcpy.
88383
88384         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
88385         (obstack_ptr_grow_fast, obstack_int_grow_fast):
88386         Don't use lvalue casts, as GCC plans to remove support for them
88387         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
88388         was also present in the non-GCC version, indicating that this
88389         code had always been buggy and had never been widely used.
88390         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
88391         Use the fast variant of each macro, rather than copying the
88392         definiens of the fast variant; that way, we'll be more likely to
88393         catch future bugs in the fast variants.
88394
88395 2003-10-20  Bruno Haible  <bruno@clisp.org>
88396
88397         * modules/wait-process: New file.
88398         * MODULES.html.sh (func_all_modules): Add wait-process.
88399
88400 2003-10-20  Bruno Haible  <bruno@clisp.org>
88401
88402         * m4/wait-process.m4: New file.
88403
88404 2003-10-20  Bruno Haible  <bruno@clisp.org>
88405
88406         * lib/wait-process.h: New file, from GNU gettext.
88407         * lib/wait-process.c: New file, from GNU gettext.
88408
88409 2003-10-19  Jim Meyering  <jim@meyering.net>
88410
88411         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
88412         HPUX 10.20.
88413
88414 2003-10-18  Karl Berry  <karl@gnu.org>
88415
88416         * config/config.guess: update from config.
88417
88418 2003-10-16  Paul Eggert  <eggert@twinsun.com>
88419
88420         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
88421         (getgroups): First arg is int, not size_t.
88422         Don't let 'free' mangle errno.
88423
88424 2003-10-16  Paul Eggert  <eggert@twinsun.com>
88425
88426         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
88427
88428 2003-10-16  Karl Berry  <karl@gnu.org>
88429
88430         * config/config.{guess,sub}: update from config.
88431
88432 2003-10-16  Jim Meyering  <jim@meyering.net>
88433
88434         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
88435         memcpy.
88436
88437 2003-10-15  Paul Eggert  <eggert@twinsun.com>
88438
88439         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
88440         (SIZE_MAX): Remove.
88441         (new_exclude, add_exclude_file): Initial size no longer needs to
88442         be a power of 2.
88443         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
88444         our own address arithmetic overflow checking.
88445
88446         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
88447         (fnmatch): Do not alloca more than 2000 wide characters;
88448         instead, use malloc for large buffers.
88449         Check for address arithmetic overflow, and return -1
88450         with errno set to ENOMEM in that case.
88451         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
88452         (NEW_PATTERN): Do not alloca more than 8000 bytes;
88453         instead, return -1.  Check for address arithmetic overflow.
88454
88455 2003-10-14  Paul Eggert  <eggert@twinsun.com>
88456
88457         Handle invalid suffixes and overflow independently, so that
88458         callers can treat them independently as needed.  Fix some bugs in
88459         suffix handling, e.g., "100k@" was not diagnosed as an invalid
88460         suffix for a human-readable blocksize.  The major caller-visible
88461         change is the addition of a new
88462         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
88463         that both overflow and suffix chars were found.
88464
88465         * lib/human.c (humblock): Don't check separately for invalid suffix
88466         char; that is xstrtoumax's job (now that its bug is fixed).
88467         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
88468         INTMAX_MAX]: New macros.
88469         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
88470         TYPE_MAXIMUM): New macros.
88471         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
88472         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
88473         if overflow occurs, as it's what __strtol does and it's more useful
88474         in practice.
88475         (__xstrtol): If __strtol reports some error other than ERANGE,
88476         reflect it to the caller as LONGINT_INVALID.  If it reports
88477         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
88478         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
88479         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
88480         value.
88481         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
88482         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
88483         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
88484         [defined UINTMAX_MAX]: New macros.
88485
88486 2003-10-14  Bruno Haible  <bruno@clisp.org>
88487
88488         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
88489
88490 2003-10-14  Bruno Haible  <bruno@clisp.org>
88491
88492         * m4/sig_atomic_t: New file, from GNU gettext.
88493         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
88494
88495 2003-10-14  Bruno Haible  <bruno@clisp.org>
88496
88497         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
88498         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
88499         Also use volatile where needed.
88500
88501 2003-10-12  Paul Eggert  <eggert@twinsun.com>
88502
88503         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
88504         Change maintainer from Bruno Haible to 'all'.
88505
88506 2003-10-12  Paul Eggert  <eggert@twinsun.com>
88507
88508         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
88509
88510 2003-10-12  Paul Eggert  <eggert@twinsun.com>
88511
88512         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
88513         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
88514         and define in terms of the other primitives.
88515         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
88516         (SIZE_MAX): Define if not already defined.
88517         (array_size_overflow): New function.
88518         (xalloc_die): Abort instead of exiting if 'error' returns.
88519         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
88520         (xmalloc, xrealloc): Use them.
88521         (xcalloc): Check for address arithmetic overflow.
88522         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
88523         a bit faster than strcpy.
88524
88525 2003-10-10  Simon Josefsson  <jas@extundo.com>
88526
88527         * modules/argp (Depends-on): Add restrict and strcase.
88528
88529 2003-10-10  Simon Josefsson  <jas@extundo.com>
88530
88531         * m4/argp.m4: Add AC_C_INLINE.
88532
88533 2003-10-08  Paul Eggert  <eggert@twinsun.com>
88534
88535         Merge getpass from libc, plus a few fixes.
88536
88537         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
88538         Include <stdbool.h>.
88539         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
88540         __fsetlocking to empty.
88541         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
88542         do include <bits/libc-lock.h>.
88543         Do not include <fcntl.h>; not needed.
88544         [_LIBC]: Include <wchar.h>.
88545         (NOTCANCEL_MODE): New macro.
88546         (flockfile, funlockfile) [_LIBC]: New macros.
88547         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
88548         [!_LIBC]: New macros.
88549         (call_fclose): New function.
88550         (getpass): Use it.  Save tty stream separately; this simplifies the
88551         code and makes it more reliable if stdin happens to equal stdout.
88552         Invoke __fsetlocking on tty.
88553         Handle thread cancellation if needed.
88554         Namespace cleanup (use __tcgetattr, __getline).
88555         Use bool for Booleans.
88556         [USE_IN_LIBIO]: Handle wide streams.
88557         [!_LIBC]: Unconditionally do the fseek, since we don't know what
88558         stream might go where.
88559
88560         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
88561         doesn't have to include <stdio.h> before us.
88562         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
88563         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
88564         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
88565         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
88566         if not declared, so that we can use getpass.c code from libc without
88567         rewriting it.
88568         (flockfile, ftrylockfile, funlockfile): New macros.
88569
88570 2003-10-08  Paul Eggert  <eggert@twinsun.com>
88571
88572         * modules/getpass: Depend on stdbool.
88573
88574 2003-10-08  Paul Eggert  <eggert@twinsun.com>
88575
88576         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
88577
88578 2003-10-07  Karl Berry  <karl@gnu.org>
88579
88580         * config/config.{guess,sub}: update from config.
88581
88582 2003-10-06  Jim Meyering  <jim@meyering.net>
88583             Bruno Haible  <bruno@clisp.org>
88584
88585         This lets translators provide better translations for the
88586         "Written by ..." part of --version output.
88587         * lib/version-etc.h: Include stdarg.h.
88588         (version_etc_copyright): Declare as readonly.
88589         (version_etc): Make this function variadic with a NULL-terminated list
88590         of author name strings.
88591         (version_etc_va): New declaration.
88592         * lib/version-etc.c: Include stdarg.h, stdlib.h.
88593         (version_etc_copyright): Declare as readonly.
88594         (version_etc_va): New function. Provide a different translatable string
88595         for each possible number of authors < 10. Abbreviate when there are 10
88596         authors or more.
88597         (version_etc): Make this function variadic. Call version_etc_va.
88598         Suggestion from Gary V. Vaughan.
88599
88600         * lib/long-options.h (parse_long_options): Change prototype: the
88601         authors string is moved to the end and becomes variadic.
88602         * lib/long-options.c: Include stdarg.h.
88603         (parse_long_options): Make this function variadic, too.
88604         Call version_etc_va, not version_etc.
88605
88606 2003-10-06  Bruno Haible  <bruno@clisp.org>
88607
88608         * modules/version-etc-2: Remove file.
88609         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
88610
88611 2003-10-06  Bruno Haible  <bruno@clisp.org>
88612
88613         * modules/fatal-signal: New file.
88614         * MODULES.html.sh (func_all_modules): Add fatal-signal.
88615
88616 2003-10-06  Bruno Haible  <bruno@clisp.org>
88617
88618         * m4/fatal-signal.m4: New file.
88619         * m4/signalblocking.m4: New file, from GNU gettext.
88620
88621 2003-10-06  Bruno Haible  <bruno@clisp.org>
88622
88623         * lib/version-etc-2.h: Remove file.
88624         * lib/version-etc-2.c: Remove file.
88625
88626 2003-10-06  Bruno Haible  <bruno@clisp.org>
88627
88628         * lib/fatal-signal.h: New file, from GNU gettext.
88629         * lib/fatal-signal.c: New file, from GNU gettext.
88630
88631 2003-10-05  Paul Eggert  <eggert@twinsun.com>
88632
88633         * README: Rework advice for preventing empty .o files.
88634         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
88635         not <sys/types.h>.
88636
88637 2003-10-04  Karl Berry  <karl@gnu.org>
88638
88639         * lib/argp*: update from libc.
88640
88641 2003-10-04  Karl Berry  <karl@gnu.org>
88642
88643         * config/config.{guess,sub}: update from config.
88644
88645 2003-10-02  Bruno Haible  <bruno@clisp.org>
88646
88647         * modules/lchown (Include): Add lchown.h.
88648         * modules/time_r (Include): Use "..." syntax.
88649         * modules/xgetdomainname (Include): Add xgetdomainname.h.
88650
88651 2003-10-01  Simon Josefsson  <jas@extundo.com>
88652
88653         * MODULES.html.sh (func_all_modules): Move gethostname from section
88654         'based on' to section 'lacking' POSIX:2001.
88655
88656 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
88657
88658         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
88659         to output mode on the same stream.
88660
88661 2003-09-29  Paul Eggert  <eggert@twinsun.com>
88662
88663         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
88664         Fix arg typo in previous patch.
88665
88666 2003-09-28  Jim Meyering  <jim@meyering.net>
88667
88668         * lib/error.c: Correct cpp indentation.
88669
88670 2003-09-27  Paul Eggert  <eggert@twinsun.com>
88671
88672         * modules/free: New file.
88673
88674 2003-09-27  Paul Eggert  <eggert@twinsun.com>
88675
88676         * m4/free.m4: New file.
88677
88678 2003-09-27  Paul Eggert  <eggert@twinsun.com>
88679
88680         * lib/minmax.h (MIN, MAX)
88681         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
88682         Omit the special code that used __typeof__, since we worry that
88683         it could be more trouble than it's worth.  See:
88684         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
88685         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
88686
88687         * lib/free.c: New file.
88688
88689 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
88690
88691         Trivial fixes to Makefile.am parts of module listings.
88692         * modules/strstr: Append strstr.h to lib_SOURCES.
88693         * modules/strcase: Likewise, for strcase.h.
88694
88695 2003-09-27  Karl Berry  <karl@gnu.org>
88696
88697         * config/mkinstalldirs: update from automake.
88698
88699 2003-09-26  Paul Eggert  <eggert@twinsun.com>
88700
88701         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
88702         (error_tail): Do not loop, reallocating temporary buffer, since
88703         the output cannot contain more wide characters than the input
88704         contains bytes, the size must be big enough already.  This avoids
88705         one potential size overflow calculation.  Check for size overflow
88706         when calculating temporary buffer size.  Free temporary buffer
88707         when done, if it was allocated with malloc; this plugs a memory
88708         leak.  Remove casts from void * to pointers, that are no longer
88709         needed now that we're assuming C89 or better.
88710
88711         Merge error changes from glibc.
88712
88713         * lib/error.c, error.h: Update copyright notice header to match glibc.
88714         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
88715         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
88716         Disable cancellation while printing error.
88717         * lib/error.h: Prepend __ to parameter names.
88718
88719 2003-09-26  Jim Meyering  <jim@meyering.net>
88720
88721         * lib/error.c (error_tail): Move some declarations
88722         into inner scope where the local variables are used.
88723
88724 2003-09-26  Bruno Haible  <bruno@clisp.org>
88725
88726         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
88727         stpncpy().
88728         Don't define stpncpy through config.h; it's now done through stpncpy.h.
88729
88730 2003-09-26  Bruno Haible  <bruno@clisp.org>
88731
88732         * lib/stpncpy.h (gnu_stpncpy): New declaration.
88733         (stpncpy): Define as alias for gnu_stpncpy.
88734         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
88735
88736 2003-09-25  Simon Josefsson  <jas@extundo.com>
88737
88738         * lib/xgetdomainname.h: New file.
88739         * lib/xgetdomainname.c: New file.
88740
88741 2003-09-25  Simon Josefsson  <jas@extundo.com>
88742             Bruno Haible  <bruno@clisp.org>
88743
88744         * modules/getdomainname: New file.
88745         * modules/xgetdomainname: New file.
88746         * MODULES.html.sh (func_all_modules): Add getdomainname,
88747         xgetdomainname.
88748
88749 2003-09-25  Simon Josefsson  <jas@extundo.com>
88750             Bruno Haible  <bruno@clisp.org>
88751
88752         * m4/getdomainname.m4: New file.
88753
88754 2003-09-25  Simon Josefsson  <jas@extundo.com>
88755             Bruno Haible  <bruno@clisp.org>
88756
88757         * lib/getdomainname.h: New file.
88758         * lib/getdomainname.c: New file.
88759
88760 2003-09-25  Karl Berry  <karl@gnu.org>
88761
88762         * lib/argp-fmtstream.c, argp-help.c: update from libc.
88763
88764 2003-09-25  Karl Berry  <karl@gnu.org>
88765
88766         * config/install-sh: update from automake.
88767
88768 2003-09-25  Bruno Haible  <bruno@clisp.org>
88769
88770         * modules/version-etc-2: New file, from modules/version-etc with
88771         modifications.
88772         * MODULES.html.sh (func_all_modules): Add version-etc-2.
88773
88774 2003-09-25  Bruno Haible  <bruno@clisp.org>
88775
88776         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
88777         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
88778
88779 2003-09-24  Simon Josefsson  <jas@extundo.com>
88780
88781         * modules/xgethostname: Add xgethostname.h.
88782
88783 2003-09-24  Paul Eggert  <eggert@twinsun.com>
88784
88785         * lib/linebuffer.c (freebuffer): Don't free the argument, just
88786         the buffer associated with the argument.  Bug reported by
88787         Simon Josefsson.
88788
88789 2003-09-24  Paul Eggert  <eggert@twinsun.com>
88790
88791         * README: Document assumptions that 'int' is at least 32 bits
88792         wide, that integer arithmetic is 2's complement without overflow,
88793         that there are no holes in integer values, that adding sizes of
88794         two nonoverlapping objects can't overflow, and that all-bits-zero
88795         yields scalar zero.  Fix spelling and capitalization typos.
88796
88797 2003-09-19  Karl Berry  <karl@gnu.org>
88798
88799         * lib/argp.h: update from libc.
88800
88801 2003-09-17  Paul Eggert  <eggert@twinsun.com>
88802
88803         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
88804         to avoid spurious warnings like "AC_RUN_IFELSE was called before
88805         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
88806
88807 2003-09-17  Paul Eggert  <eggert@twinsun.com>
88808
88809         * gnulib-tool: Use "test -h", not "test -L", for portability
88810         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
88811         (tags_regexp): Remove, since \| doesn't conform to POSIX.
88812         (sed_extract_prog): Issue s commands one-by-one, rather than
88813         using \| in one s command.
88814
88815 2003-09-16  Paul Eggert  <eggert@twinsun.com>
88816
88817         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
88818         input error, instead of returning NULL the next time we are called
88819         (and therefore losing track of errno).
88820
88821 2003-09-16  Bruno Haible  <bruno@clisp.org>
88822
88823         * gnulib-tool (func_create_testdir): Warn about duplicated
88824         dependencies.
88825
88826 2003-09-15  Paul Eggert  <eggert@twinsun.com>
88827
88828         * modules/argmatch, modules/fatal, modules/obstack,
88829         modules/xalloc, modules/xgethostname: Sort dependencies by
88830         importance, not alphabetically.
88831
88832 2003-09-15  Paul Eggert  <eggert@twinsun.com>
88833
88834         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
88835         fails, so that the caller gets the proper errno.
88836
88837         * lib/readutmp.c (read_utmp): Likewise.
88838         Check for fstat error.  Close stream and free storage
88839         when failing.
88840
88841 2003-09-14  Karl Berry  <karl@gnu.org>
88842
88843         * config/srclist.txt (strdup.c): disable for c89 changes.
88844
88845 2003-09-14  Jim Meyering  <jim@meyering.net>
88846
88847         * lib/getloadavg.c: Correct cpp indentation.
88848         * lib/strdup.c: Likewise.
88849         * lib/vasnprintf.c: Likewise.
88850
88851 2003-09-14  Bruno Haible  <bruno@clisp.org>
88852
88853         * modules/fwriteerror: New file.
88854         * MODULES.html.sh (func_all_modules): Add fwriteerror.
88855
88856 2003-09-14  Bruno Haible  <bruno@clisp.org>
88857
88858         * lib/fwriteerror.h: New file.
88859         * lib/fwriteerror.c: New file.
88860
88861 2003-09-12  Paul Eggert  <eggert@twinsun.com>
88862
88863         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
88864         modules/xgethostname, modules/xalloc: Depend on exit.
88865
88866 2003-09-12  Paul Eggert  <eggert@twinsun.com>
88867
88868         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
88869
88870         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
88871         and AC_MINIX, too, so that their extensions are available.
88872
88873         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
88874         This macro has been superseded by gl_BACKUPFILE.
88875
88876         More patches to assume C89 or better.
88877
88878         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
88879
88880         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
88881         unconditionally.
88882         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
88883         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
88884         Include <string.h>, <stdlib.h> unconditionally.
88885         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
88886         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
88887         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
88888         headers or for string.h.
88889         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
88890         or strtoul.
88891
88892         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
88893         headers.
88894         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
88895         * m4/userspec.m4 (gl_USERSPEC): Likewise.
88896         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
88897         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
88898         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
88899         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
88900         memcpy, memset.
88901         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
88902         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
88903         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
88904         strtol.
88905         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
88906         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
88907         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
88908         strtoul.
88909
88910 2003-09-12  Paul Eggert  <eggert@twinsun.com>
88911
88912         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
88913         * lib/obstack.c [!defined _LIBC]: Likewise.
88914         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
88915         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
88916         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
88917
88918         More changes to assume C89 or better.
88919
88920         * lib/error.c (error_tail): Assume vprintf.
88921
88922         * lib/argmatch.c (getenv): Remove decl.
88923         * lib/progreloc.c (get_full_program_name): Define via prototype.
88924         * lib/setenv.c (clearenv): Likewise.
88925         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
88926         needed.
88927         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
88928         (malloc, memcpy): Remove decls.
88929         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
88930         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
88931         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
88932         (memcpy): Remove macro.
88933         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
88934         (__P): Remove.  All uses removed.
88935         (PTR): Remove.  All uses changed to void *.
88936         (CHAR_BIT, NULL): Remove.
88937         (spaces, zeros, memset_space, memset_zero)
88938         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
88939         Remove.
88940         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
88941         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
88942         Define with prototype.
88943         Remove now-unnecessary prototype decl.
88944         (extra_args_spec): Assume ANSI C.  All uses changed.
88945         (extra_args_spec_iso): Remove.
88946         (my_strftime, emacs_strftimeu): Define via prototype.
88947         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
88948         unconditionally.
88949         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
88950         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
88951         (strtoul, strtol): Remove decls.
88952         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
88953         LONG_MAX): Remove.
88954         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
88955         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
88956         (LOCALE_PARAM_PROTO): New macro.
88957         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
88958         (INTERNAL (strtol), strtol): Define with a prototype.
88959         (PARAMS): Remove.  All uses removed.
88960         * lib/tempname.c: Include <string.h> unconditionally.
88961         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
88962         * lib/xgethostname.c (main): Define with a prototype.
88963         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
88964         Include <stdlib.h> unconditionally.
88965         (calloc, malloc, realloc, free): Remove decls.
88966         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
88967         Include <stdlib.h> unconditionally.  Sort include file names.
88968         (strtod): Remove.
88969         (xstrtod): Define with a prototype.
88970         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
88971         (strtol, strtoul): Remove decls.
88972
88973 2003-09-11  Paul Eggert  <eggert@twinsun.com>
88974
88975         More patches to assume C89 or better.
88976         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
88977         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
88978         string.h, memchr, STDC_HEADERS.
88979
88980 2003-09-11  Paul Eggert  <eggert@twinsun.com>
88981
88982         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
88983         Include <stdlib.h>, <string.h> unconditionally.
88984         Remove now-unnecessary cast to char *.
88985         * lib/strnlen.c: Include <string.h> unconditionally.
88986         * lib/yesno.c (yesno): Define with a prototype.
88987
88988 2003-09-11  Bruno Haible  <bruno@clisp.org>
88989
88990         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
88991
88992 2003-09-10  Jim Meyering  <jim@meyering.net>
88993
88994         * lib/error.c: Correct indentation of cpp directives.
88995
88996 2003-09-10  Bruno Haible  <bruno@clisp.org>
88997
88998         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
88999         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
89000         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
89001         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
89002         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
89003         <stdlib.h> and <string.h> checks.
89004         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
89005         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
89006
89007 2003-09-10  Bruno Haible  <bruno@clisp.org>
89008
89009         * lib/strcspn.c: Include <string.h> unconditionally.
89010         * lib/strpbrk.c: Include <string.h> unconditionally.
89011         * lib/strstr.c: Include <string.h> unconditionally.
89012         * lib/unicodeio.c: Include <string.h> unconditionally.
89013         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
89014         * lib/unsetenv.c: Likewise.
89015         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
89016         * lib/yesno.c: Include <stdlib.h> unconditionally.
89017         (rpmatch): Add prototype.
89018
89019 2003-09-09  Paul Eggert  <eggert@twinsun.com>
89020
89021         More patches to assume C89 or better.
89022         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
89023         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
89024         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
89025         or for string.h.
89026         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
89027         stdlib.h.
89028         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
89029         C headers.
89030         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
89031         string.h.
89032         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
89033         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
89034         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
89035         or for string.h.
89036         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
89037         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
89038         C headers.
89039         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
89040         memcpy.
89041         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
89042         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
89043         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
89044         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
89045         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
89046         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
89047         string.h, free.
89048         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
89049         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
89050         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
89051         C headers, or for string.h.
89052         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
89053         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
89054         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
89055         headers, memory.h, stdlib.h, string.h, strings.h.
89056         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
89057         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
89058         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
89059         strchr.
89060         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
89061         headers, memory.h, string.h.
89062         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
89063         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
89064         free.
89065         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
89066         headers.
89067         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
89068         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
89069         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
89070         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
89071         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
89072
89073 2003-09-09  Paul Eggert  <eggert@twinsun.com>
89074
89075         More K&R removal.
89076
89077         * lib/acosl.c (main): Use a prototype.
89078         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
89079         tanl.c: Likewise.
89080
89081         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
89082
89083         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
89084         (getopt, etopt_long, getopt_long_only, _getopt_internal)
89085         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
89086         with a prototype.
89087         * lib/getopt.c (const): Remove macro.
89088         Include <string.h> unconditionally.
89089         (my_index): Remove; all uses changed to strchr.
89090         (strlen): Remove decl.
89091         (exchange): Remove forward decl; no longer needed.
89092         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
89093         Define with prototype.
89094         * lib/getopt1.c (const): Remove macro.
89095         (getopt_long, getopt_long_only, main): Define with prototype.
89096
89097         * lib/getugroups.c: Include <string.h> unconditionally.
89098
89099         * lib/getusershell.c: Include <stdlib.h> unconditionally.
89100         (getusershell, setusershell, endusershell, readname, main):
89101         Define with prototypes.
89102
89103         * lib/group-member.c: Include group-member.h first.
89104         Include <stdlib.h> unconditionally.
89105
89106         * lib/hard-locale.c: Include hard-locale.h first.
89107         Include <stdlib.h>, <string.h> unconditionally.
89108
89109         * lib/hash.c (free, malloc): Remove decls.
89110         Include <stdlib.h> unconditionally.
89111
89112         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
89113         (getenv): Do not declare.
89114
89115         * lib/idcache.c: Include <string.h> unconditionally.
89116
89117         * lib/long-options.c: Include long-options.h first, to test interface.
89118         Include <stdlib.h> unconditionally.
89119
89120         * lib/makepath.c: Include makepath.h first, to test interface.
89121         Include <stdlib.h> and <string.h> unconditionally.
89122
89123         * lib/linebuffer.c: Include <stdlib.h>.
89124         (free): Remove decl.
89125
89126         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
89127         stddef.h. rpl_malloc returns void *, not char *.
89128         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
89129         prototype.
89130
89131         * lib/md5.h: Include <limits.h> unconditionally.
89132         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
89133         (__P): Remove; all uses removed.
89134         * lib/md5.c: Include "md5.h" first.
89135         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
89136         md5_buffer, md5_process_bytes, md5_process_block):
89137         Define with prototypes.
89138         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
89139         * lib/sha.c: Include "sha.h" first.
89140         Include <stdlib.h>, <string.h> unconditionally.
89141
89142         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
89143         * lib/memcmp.c (__ptr_t): Likewise.
89144         * lib/memrchr.c (__ptr_t): Likewise.
89145         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
89146         Include <string.h> unconditionally.
89147         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
89148         * lib/memchr.c: Include <stdlib.h> unconditionally.
89149         * lib/memchr.c (LONG_MAX): Remove.
89150         * lib/memrchr.c (LONG_MAX): Likewise.
89151         * lib/memchr.c (__memchr): Define via a prototype.
89152         * lib/memrchr.c (__memrchr): Likewise.
89153         * lib/memcmp.c (__P): Remove, and remove all uses.
89154         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
89155         Remove forward decls; no longer needed.
89156         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
89157         Use types required by C89 in prototype.
89158
89159         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
89160         * lib/savedir.c: Likewise.
89161         * lib/mkdir.c (free): Remove decl.
89162         * lib/rmdir.c (rmdir): Define with a prototype.
89163         * lib/savedir.c: Include savedir.h first, to test interface.
89164
89165         * lib/mktime.c (STDC_HEADERS): Remove.
89166         Include <stdlib.h>, <string.h> unconditionally.
89167
89168         * lib/modechange.c: Include <stdlib.h> unconditionally.
89169         (malloc): Remove decl.
89170
89171         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
89172         (free): Remove decl.
89173
89174         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
89175         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
89176         (This type really should be intptr_t, but that's a C99ism.)
89177         (_obstack_memcpy): Remove: all uses changed to memcpy.
89178         Include <string.h> unconditionally.
89179         (struct obstack): Assume __STDC__ for types of members
89180         chunkfun, freefun, extra_arg.
89181         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
89182         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
89183         obstack_begin, obstack_specify_allocation,
89184         obstack_specify_allocation_with_arg, obstack_chunkfun,
89185         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
89186         Remove unprototyped decls and the macros that use them.
89187         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
89188         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
89189         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
89190         (defined __STDC__ && __STDC__)]:
89191         Remove nonprototyped code.
89192         Include <stdlib.h> unconditionally.
89193         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
89194         _obstack_allocated_p, _obstack_free, obstack_free,
89195         _obstack_memory_used, print_and_abort):
89196         Define using prototypes.
89197         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
89198         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
89199         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
89200         obstack_next_free, obstack_object_size, obstack_room) [0]:
89201         Remove unused, unprototyped code.
89202
89203         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
89204
89205         * lib/physmem.c (physmem_total, physmem_available, main): Define
89206         with prototypes.
89207
89208         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
89209         (main): Define with a prototype.
89210
89211         * lib/posixver.c (getenv): Remove decl.
89212
89213         * lib/putenv.c (malloc): Returns void *, not char *.
89214         Include <string.h> unconditionally.
89215         (strchr, memcpy, NULL): Do not define.
89216
89217         * lib/readtokens.c: Include readtokens.h first, to test interface.
89218         Include <stdlib.h>, <string.h> unconditionally.
89219         (init_tokenbuffer): Define with a prototype.
89220
89221         * lib/regex.c (PARAMS): Remove.  All uses removed.
89222         All uses of _RE_ARGS removed, too.
89223         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
89224         unconditionally.
89225         (bzero): Assume memset exists.
89226         (memcmp, memcpy, NULL): Remove.
89227         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
89228         char, or assignments to local vars of type signed char.
89229         (init_syntax_once, PREFIX(extract_number_and_incr),
89230         PREFIX(print_partial_compiled_pattern),
89231         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
89232         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
89233         PREFIX(regex_grow_registers), PREFIX(regex_compile),
89234         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
89235         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
89236         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
89237         wcs_compile_range, byte_compile_range, truncate_wchar,
89238         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
89239         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
89240         count_mbs_length, wcs_re_match_2_internal,
89241         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
89242         PREFIX(alt_match_null_string_p),
89243         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
89244         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
89245         regfree, PREFIX(extract_number)): Define with prototype.  Remove
89246         now-unnecessary declaration, if any.
89247         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
89248         regcomp, regexec):
89249         Remove now-unnecessary casts among pointer types.
89250         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
89251
89252         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
89253         (free): Remove decl.
89254
89255         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
89256
89257         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
89258         (free): Remove decl.
89259
89260         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
89261         * lib/xgetcwd.c: Likewise.
89262
89263         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
89264         (free): Remove decl.
89265
89266         * lib/strchrnul.c (strchrnul): Define with a prototype.
89267         Fix bug: c_in was not converted to char before searching.
89268
89269         The following changes are not K&R related:
89270
89271         * lib/group-member.h: Include <sys/types.h>, so that this file is
89272         self-contained.
89273         * lib/makepath.h: Likewise.
89274
89275         * lib/getusershell.c (readname, default_index, line_size, readname):
89276         Use size_t, not int, for sizes.
89277         (readname): If the size overflows, report an error instead of
89278         looping forever.
89279
89280 2003-09-09  Paul Eggert  <eggert@twinsun.com>
89281
89282         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
89283         libc.
89284
89285 2003-09-09  Paul Eggert  <eggert@twinsun.com>
89286
89287         * README: New section: portability guidelines.
89288
89289 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
89290
89291         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
89292         C89 spec.
89293
89294 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
89295
89296         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
89297
89298 2003-09-08  Paul Eggert  <eggert@twinsun.com>
89299
89300         Assume C89 or better; remove K&R cruft.
89301         A few of these changes were first proposed by Derek Robert Price
89302         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
89303
89304         * lib/addext.c: Include <string.h> unconditionally.
89305         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
89306         Don't declare getenv or malloc.
89307
89308         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
89309         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
89310         (NULL): Remove.
89311         (find_stack_direction, alloca): Use prototypes.
89312
89313         * lib/atexit.c (atexit): Define using a prototype.
89314
89315         * lib/basename.c, dirname.c, stripslash.c:
89316         Include <string.h> unconditionally.
89317
89318         * lib/bcopy.c: Include <stddef.h>.
89319         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
89320
89321         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
89322
89323         * lib/error.h (error, error_at_line, error_print_progname)
89324         [! (defined (__STDC__) && __STDC__)]: Remove decls.
89325         * lib/error.c: Include error.h first, to check interface.
89326         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
89327         (VA_START): Remove; all uses changeed to va_start.
89328         (exit, strerror): Remove decls.
89329         (error_print_progname): Prototype uncondionally.
89330         Don't include <errno.h>; no longer needed.
89331         (private_strerror): Remove.
89332         (error_tail): Always define.
89333         (error, error_at_line): Assume C89 or better; always use prototypes.
89334         * lib/fatal.c: Include "fatal.h" first, to test interface.
89335         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
89336         (VA_START): Remove; all uses changed to va_start.
89337         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
89338         this case.
89339         (exit): Remove decl.
89340         (fatal): Prototype unconditionally.  Assume va_start works.
89341         Abort at end, to pacify gcc.
89342
89343         * lib/euidaccess.c (main): Define with a prototype.
89344
89345         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
89346
89347         * lib/exitfail.c: Include <stdlib.h> unconditionally.
89348
89349         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
89350         prototypes.
89351         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
89352         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
89353         (getenv): Remove decl.
89354         (fnmatch): Define using a prototype.
89355         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
89356         (FCT): Define using a prototype.
89357
89358         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
89359
89360         * lib/gethostname.c: Include <stddef.h>.
89361         (gethostname): Define with prototype.  Length is size_t, not int.
89362
89363 2003-09-08  Paul Eggert  <eggert@twinsun.com>
89364
89365         Assume C89 or better; remove K&R cruft.
89366         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
89367         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
89368         string.h, getenv, malloc.
89369         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
89370         headers.
89371         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
89372         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
89373         do not check for strerror.
89374         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
89375         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
89376         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
89377         do not check for doprnt or vprintf.
89378         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
89379         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
89380
89381 2003-09-08  Paul Eggert  <eggert@twinsun.com>
89382
89383         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
89384         getversion.c should have been removed then, but was accidentally
89385         preserved.
89386
89387         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
89388         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
89389
89390 2003-09-08  Karl Berry  <karl@gnu.org>
89391
89392         * config/config.sub, config.guess, srclistvars.sh: update from savannah
89393                 config, forget about prep.
89394
89395         * config/depcomp, missing: update from automake.
89396
89397 2003-09-07  Paul Eggert  <eggert@twinsun.com>
89398
89399         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
89400         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
89401
89402 2003-09-07  Paul Eggert  <eggert@twinsun.com>
89403
89404         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
89405         copy_tm_result.  Bug reported by Simon Josefsson in
89406         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
89407
89408 2003-09-06  Paul Eggert  <eggert@twinsun.com>
89409
89410         * m4/time_r.m4: New file.
89411         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
89412         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
89413         is. Check for timegm declaration.
89414         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
89415         Do not check for gmtime_r.
89416         Replace mktime if __mktime_internal does not exist and if mktime
89417         hasn't been replaced already.
89418
89419 2003-09-06  Paul Eggert  <eggert@twinsun.com>
89420
89421         * lib/time_r.c, lib/time_r.h: New files.
89422
89423         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
89424         __localtime_r.
89425         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
89426         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
89427
89428         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
89429         __gmtime_r.
89430         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
89431         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
89432         Include <time_r.h>.
89433
89434         * lib/timegm.c: Switch to glibc implementation, with the following
89435         changes:
89436         [defined HAVE_CONFIG_H]: Include <config.h>.
89437         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
89438         (__mktime_internal) [!defined _LIBC]: New decl.
89439         (__gmtime_r) [!defined _LIBC]: New macro and function.
89440         (timegm): Use a prototype, since gnulib assumes C89.
89441         Do not bother declaring tmp to be const, as it's not really usefu.
89442         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
89443         (timegm): Declare only if HAVE_DECL_TIMEGM.
89444
89445 2003-09-06  Paul Eggert  <eggert@twinsun.com>
89446
89447         * MODULES.html.sh (func_all_modules): Add time_r.
89448         * modules/time_r: New file.
89449         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
89450         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
89451
89452 2003-09-03  Paul Eggert  <eggert@twinsun.com>
89453
89454         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
89455         Bug reported by Lute Kamstra in
89456         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
89457
89458         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
89459         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
89460         course with correspondingly smaller numbers for tomorrow and
89461         yesterday.  From Tadayoshi Funaba.  Originally installed into
89462         sh-utils on 1999-08-07, but the patch got lost (I guess during the
89463         coreutils merge?).
89464
89465 2003-08-31  Simon Josefsson  <jas@extundo.com>
89466
89467         * modules/timegm: New file.
89468         * MODULES.html.sh (func_all_modules): Add timegm.
89469
89470 2003-08-31  Simon Josefsson  <jas@extundo.com>
89471
89472         * m4/timegm.m4: New file.
89473
89474 2003-08-31  Simon Josefsson  <jas@extundo.com>
89475
89476         * lib/timegm.h: New file.
89477         * lib/timegm.c: New file.  Based on
89478         wget-1.8.2/src/http.c:mktime_from_utc.
89479
89480 2003-08-31  Karl Berry  <karl@gnu.org>
89481
89482         * lib/argp.h: update from libc.
89483
89484 2003-08-28  Bruno Haible  <bruno@clisp.org>
89485
89486         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
89487         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
89488         followed by '#define fnmatch fnmatch_posix' gives an error.
89489
89490 2003-08-28  Bruno Haible  <bruno@clisp.org>
89491
89492         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
89493         warning on QNX, which defines O_BINARY to 000000.
89494
89495 2003-08-27  Jim Meyering  <jim@meyering.net>
89496
89497         * m4/mkstemp.m4: Require that the system mkstemp be able to create
89498         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
89499         would fail after 32.  Reported by Danny Levinson.  Details here:
89500         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
89501
89502 2003-08-24  Bruno Haible  <bruno@clisp.org>
89503
89504         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
89505         MSVC7 <stdio.h> is included later.
89506
89507 2003-08-22  Simon Josefsson  <jas@extundo.com>
89508
89509         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
89510
89511 2003-08-20  Karl Berry  <karl@gnu.org>
89512
89513         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
89514
89515 2003-08-20  Bruno Haible  <bruno@clisp.org>
89516
89517         * modules/progname: New file.
89518         * MODULES.html.sh (func_all_modules): Add progname.
89519
89520 2003-08-20  Bruno Haible  <bruno@clisp.org>
89521
89522         * lib/progname.h: New file, from GNU gettext.
89523         * lib/progname.c: New file, from GNU gettext.
89524         * lib/progreloc.c: New file, from GNU gettext.
89525
89526 2003-08-19  Jim Meyering  <jim@meyering.net>
89527
89528         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
89529         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
89530
89531 2003-08-19  Bruno Haible  <bruno@clisp.org>
89532
89533         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
89534         more.
89535
89536 2003-08-19  Bruno Haible  <bruno@clisp.org>
89537
89538         * lib/xstrdup.c: Assume <string.h> exists.
89539
89540 2003-08-18  Paul Eggert  <eggert@twinsun.com>
89541
89542         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
89543         in makefile rules.
89544
89545 2003-08-18  Jim Meyering  <jim@meyering.net>
89546
89547         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
89548         * m4/lib-ld.m4: Likewise.
89549
89550 2003-08-18  Jim Meyering  <jim@meyering.net>
89551
89552         * lib/setenv.h: Indent nested cpp directive.
89553         * lib/vasnprintf.c: Remove trailing blanks.
89554
89555 2003-08-17  Simon Josefsson  <jas@extundo.com>
89556
89557         * modules/xstrndup: New file.
89558         * MODULES.html.sh (func_all_modules): Add xstrndup.
89559
89560 2003-08-17  Simon Josefsson  <jas@extundo.com>
89561
89562         * modules/argp: Fix autoconf macro name. Add more dependencies.
89563
89564 2003-08-17  Simon Josefsson  <jas@extundo.com>
89565
89566         * m4/xstrndup.m4: New file.
89567
89568 2003-08-17  Simon Josefsson  <jas@extundo.com>
89569
89570         * m4/argp.m4: New file.
89571
89572 2003-08-17  Simon Josefsson  <jas@extundo.com>
89573             Bruno Haible  <bruno@clisp.org>
89574
89575         * lib/xstrndup.h: New file.
89576         * lib/xstrndup.c: New file.
89577
89578 2003-08-17  Bruno Haible  <bruno@clisp.org>
89579
89580         * modules/strndup (Files, Include): Add lib/strndup.h.
89581
89582 2003-08-17  Bruno Haible  <bruno@clisp.org>
89583
89584         * modules/euidaccess (Files): Add lib/euidaccess.h.
89585
89586 2003-08-17  Bruno Haible  <bruno@clisp.org>
89587
89588         * lib/strndup.h: New file.
89589
89590 2003-08-17  Bruno Haible  <bruno@clisp.org>
89591
89592         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
89593         like AC_GNU_SOURCE.
89594         * modules/extensions (configure.ac): Comment out the invocation of
89595         gl_USE_SYSTEM_EXTENSIONS.
89596
89597 2003-08-16  Paul Eggert  <eggert@twinsun.com>
89598
89599         Merges from coreutils, etc.
89600         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
89601         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
89602         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
89603         fixing a typo.
89604         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
89605         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
89606
89607 2003-08-16  Paul Eggert  <eggert@twinsun.com>
89608
89609         Document merge from coreutils.
89610         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
89611         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
89612         * modules/utime: Add m4/utimes-null.m4.
89613
89614 2003-08-16  Paul Eggert  <eggert@twinsun.com>
89615
89616         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
89617         space, undoing this 2003-08-12 change:
89618         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
89619
89620 2003-08-16  Paul Eggert  <eggert@twinsun.com>
89621
89622         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
89623         strtoul.c from libc, undoing this 2003-08-12 change:
89624         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
89625
89626 2003-08-16  Jim Meyering  <jim@meyering.net>
89627
89628         Merges from coreutils.
89629         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
89630         prefix.  Adjust cache variables similarly.  Create 500 rather than
89631         just 300 files, to exercise bug on Darwin6.5, too.
89632         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
89633         $missing_dir.
89634         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
89635         AM_SYS_POSIX_TERMIOS.
89636         Reported by mkc@mathdogs.com.
89637         Also change use of $am_cv_sys_posix_termios
89638         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
89639         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
89640         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
89641         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
89642         in /proc/mounts until it finds one with matching device number.  This
89643         is unnecessary when the FILE argument *is* a mount point.  No stat call
89644         is necessary in that case.  So, disable the statvfs-testing code on
89645         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
89646         as RedHat bug# 84846.
89647         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
89648         to 1MB, so as not to render systems with no stack size limit (e.g.,
89649         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
89650         Include <unistd.h>.  On some systems,
89651         it is required for the definition of _SC_PAGESIZE.
89652
89653 2003-08-16  Jim Meyering  <jim@meyering.net>
89654
89655         Merge from coreutils.
89656         * lib/xstrtoimax.c: #else #if -> #elif.
89657         * lib/xstrtoumax.c: Likewise.
89658
89659 2003-08-16  Jim Meyering  <jim@meyering.net>
89660
89661         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
89662         * m4/utimes.m4: Removed.
89663         * m4/utimes-null.m4: Renamed from utimes.m4.
89664
89665         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
89666         to 1MB, so as not to render systems with no stack size limit (e.g.,
89667         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
89668         Include <unistd.h>.  On some systems,
89669         it is required for the definition of _SC_PAGESIZE.
89670
89671 2003-08-16  Jim Meyering  <jim@meyering.net>
89672         and Paul Eggert  <eggert@cs.ucla.edu>
89673
89674         Merges from coreutils, etc.
89675
89676         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
89677         using the latest version from cvs.  This avoids problems with #line
89678         directives using a vendor (Sun) compiler.
89679         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
89680         Don't set GETGROUPS_LIB here; now it's
89681         done via getgroups.m4's wrapper function.
89682         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
89683         rather than just in sh-util/configure.in, so that the
89684         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
89685         same.
89686         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
89687         AC_FUNC_GETLOADAVG where to find getloadavg.c.
89688         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
89689         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
89690         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
89691         Remove code that is now done by the newly-required macros.
89692         Append $(EXEEXT) to DF_PROG.
89693         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
89694         Do not invoke or require the following here,
89695         since prereq.m4 or some gnulib .m4 now does this for us:
89696         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
89697         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
89698         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
89699         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
89700         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
89701         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
89702         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
89703         AC_FUNC_OBSTACK.
89704         Do not replace the following functions, as this is now the job
89705         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
89706         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
89707         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
89708         atexit getpass, strdup, getpagesize.
89709         Replace 'raise'.
89710         Do not check for the following functions, as this is now the job
89711         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
89712         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
89713         setregid.
89714         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
89715         Check for sys/sysctl.h.
89716         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
89717         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
89718         of checking for ssize_t ourselves.
89719
89720         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
89721         Require every macro that gnulib/modules/* suggests for us.
89722         (jm_PREREQ_ADDEXT): New macro.
89723         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
89724         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
89725
89726         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
89727         (gl_PHYSMEM): Use it.
89728         Also check for `table' function.
89729         Check for new headers and functions.
89730         Add check for sys/sysmp.h.
89731         With suggestions from Kaveh Ghazi.
89732         Ignore headers that are present but cannot be compiled.  This
89733         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
89734         C 5.4.
89735
89736 2003-08-15  Paul Eggert  <eggert@twinsun.com>
89737
89738         Document merge from coreutils.
89739         * modules/userspec: Depend on posixver.
89740         * modules/strftime: Depend on tzset.
89741
89742 2003-08-15  Paul Eggert  <eggert@twinsun.com>
89743
89744         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
89745         rather than tab, after '#' in shell-script copyright notices.
89746         Suggested by Bruno Haible.
89747
89748 2003-08-15  Paul Eggert  <eggert@twinsun.com>
89749
89750         * config/srclist-update: Use three spaces, rather than tab, after '#'
89751         in shell-script copyright notices.  Suggested by Bruno Haible.
89752         Remove unnecessary parenthesization in regular expression.
89753
89754 2003-08-15  Jim Meyering  <jim@meyering.net>
89755
89756         Merge from coreutils.
89757         * lib/xgethostname.c: Include <stdlib.h>.
89758         (xghostname): Don't exit for anything other than memory-related
89759         failure; just return NULL.
89760         * lib/userspec.c: Include "posixver.h".
89761         (parse_user_spec): Accept `.' as a separator only
89762         in pre-POSIX-200112 mode.
89763         * lib/strtoimax.c: Use #elif rather than #else #if.
89764         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
89765         Remove function, now that we can rely on a working tzset function.
89766         [!_LIBC]: Ensure that the required autoconf test has been run.
89767         [!defined _NL_CURRENT && HAVE_STRFTIME]:
89768         Use underlying_strftime for %r.
89769         * lib/sha.c: Merge in some clean-up and optimization changes from
89770         glibc.
89771         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
89772         Ensure that it is a multiple of 64.
89773         Rearrange loop exit tests so as to avoid performing an
89774         additional fread after encountering an error or EOF.
89775         * lib/realloc.c: Update copyright date.
89776
89777 2003-08-15  Jim Meyering  <jim@meyering.net>
89778         and Paul Eggert  <eggert@twinsun.com>
89779
89780         Merge from coreutils.
89781         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
89782         member but strut utmpx does not.  Needed for AIX 4.3.3.
89783         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
89784
89785 2003-08-15  Jim Meyering  <jim@meyering.net>
89786         and Paul Eggert  <eggert@cs.ucla.edu>
89787
89788         Merges from coreutils, etc.
89789         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
89790         Require gl_FUNC_TZSET_CLOBBER.
89791         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
89792         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
89793         members.
89794
89795 2003-08-14  Paul Eggert  <eggert@twinsun.com>
89796
89797         Help the merge from coreutils.
89798         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
89799         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
89800         * m4/tzset.m4: Use it too.
89801
89802 2003-08-14  Paul Eggert  <eggert@twinsun.com>
89803
89804         * modules/tzset: New file.
89805
89806 2003-08-14  Jim Meyering  <jim@meyering.net>
89807
89808         Merges from coreutils.
89809         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
89810         variable names, rather than @FNMATCH_H@.
89811         * modules/alloca: Likewise for $(ALLOCA_H).
89812
89813         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
89814         the three copies of the literal target, `fnmatch.h'.
89815         * modules/alloca (alloca.h): Likewise.
89816
89817 2003-08-14  Jim Meyering  <jim@meyering.net>
89818
89819         Merge from coreutils.
89820         * m4/tzset.m4: New file.
89821         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
89822         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
89823         otherwise, AIX 5.1 systems would end up using the latter.
89824         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
89825         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
89826         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
89827         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
89828
89829 2003-08-14  Jim Meyering  <jim@meyering.net>
89830
89831         Merge from coreutils.
89832         * lib/obstack.h: Whitespace changes.
89833         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
89834         and xcalloc return values.
89835         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
89836         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
89837         hang on OSF/1 5.1 for DIR on both local and remote file systems.
89838         Reported by (and fix confirmed by) Nelson H. F. Beebe.
89839         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
89840         error from mntctl.
89841         Use mntctl's return value to drive the entry-processing loop, since
89842         we can't rely on the value of the vmt_length member in the last
89843         entry.  On some systems doing so could result in exhausting
89844         virtual memory.  Based in part on a patch from Mike Jetzer.
89845
89846 2003-08-14  Jim Meyering  <jim@meyering.net>
89847         and Paul Eggert  <eggert@twinsun.com>
89848
89849         Merges from coreutils, plus other fixes.
89850         * lib/physmem.c: Merge in portability changes from gcc/libiberty
89851         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
89852         for credits and details.  Thanks to Kaveh Ghazi for helping
89853         to keep these files in sync.
89854         (ARRAY_SIZE): Define it.
89855         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
89856         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
89857         (memcasecmp): Don't assume size_t fits in unsigned int.
89858         Remove casts and duplicate code.
89859         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
89860         (memcpy): Remove definition.
89861         Merge in some clean-up and optimization changes from glibc.
89862         [BLOCKSIZE]: Move definition to top of file.
89863         Ensure that it is a multiple of 64.
89864         Rearrange loop exit tests so as to avoid performing an
89865         additional fread after encountering an error or EOF.
89866         * lib/md5.h (md5_uintptr): Define.
89867         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
89868         return to the initial working directory.  Preserve errno
89869         for caller.
89870         * lib/idcache.c: Include "xalloc.h".
89871         (xmalloc, xrealloc): Remove decls.
89872         (getuser): Remove casts no longer required in C89.
89873         * lib/human.c: Include stdio.h, for sprintf.
89874         * lib/group-member.c: Include "xalloc.h".
89875         (xmalloc, xrealloc): Remove decls.
89876         (get_group_info): Remove casts no longer required in C89.
89877         * lib/getusershell.c (readname): Remove casts no longer required in
89878         C89.
89879         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
89880         * lib/getline.c: Whitespace fix, from coreutils.
89881
89882 2003-08-13  Paul Eggert  <eggert@twinsun.com>
89883
89884         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
89885         Check for isascii.
89886
89887         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
89888         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
89889         Undo previous (whitespace-only) change.
89890
89891 2003-08-13  Paul Eggert  <eggert@twinsun.com>
89892
89893         * lib/exclude.c: Include <ctype.h>
89894         (IN_CTYPE_DOMAIN): New macro.
89895         (is_space): New fn.
89896         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
89897         and empty lines.
89898
89899         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
89900         Undo previous (whitespace-only) change.
89901
89902 2003-08-13  Paul Eggert  <eggert@twinsun.com>
89903
89904         * config/srclist-update: Change update back to the old behavior,
89905         leaving whitespace alone.  Use one 'sed' command rather than a
89906         pipeline.
89907         (fixlicense): Now a variable, not a function.
89908         (remove_trailing_blanks): Remove.
89909         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
89910         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
89911         Undo previous (whitespace-only) change.
89912
89913 2003-08-12  Paul Eggert  <eggert@twinsun.com>
89914
89915         Merge from coreutils.
89916         * modules/euidaccess: Add lib_SOURCES, include for new
89917         file euidaccess.h
89918
89919 2003-08-12  Paul Eggert  <eggert@twinsun.com>
89920
89921         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
89922         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
89923         Normalize leading white space and remove trailing white space.
89924
89925         Merge from coreutils
89926         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
89927
89928         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
89929         0.12.1.  These files are now being upgraded automatically by
89930         ../config/srclist-update.
89931
89932 2003-08-12  Paul Eggert  <eggert@twinsun.com>
89933
89934         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
89935         Normalize leading white space and remove trailing white space.
89936         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
89937         notice, as per ../config/srclist-update.
89938
89939         Merge from coreutils.
89940         * lib/euidaccess.h: New file.
89941         * lib/euidaccess.c: Include it.
89942         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
89943         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
89944         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
89945
89946 2003-08-12  Paul Eggert  <eggert@twinsun.com>
89947
89948         * config/srclist-update: Add copyright notice.
89949         (remove_id_lines, remove_trailing_blanks): New constants.
89950         (fixfile): Use them to normalize spacing a bit in copied files.
89951         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
89952         Normalize leading white space and remove trailing white space.
89953
89954         * config/texinfo.tex: Sync with texinfo.
89955
89956         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
89957         strtoul.c from libc, to merge coreutils whitespace changes.
89958
89959         * config/srclist.txt: Get the following m4 files from gettext:
89960         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
89961         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
89962         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
89963         wint_t.m4.
89964
89965 2003-08-12  Karl Berry  <karl@gnu.org>
89966
89967         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
89968         been made.
89969
89970 2003-08-11  Paul Eggert  <eggert@twinsun.com>
89971
89972         * modules/gnu-source, m4/gnu-source.m4:
89973         Remove; we're assuming Autoconf 2.54 or later now.
89974         Suggested by Bruno Haible.
89975         * MODULES.html.sh (func_all_modules): Remove gnu-source.
89976
89977 2003-08-11  Bruno Haible  <bruno@clisp.org>
89978
89979         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
89980
89981 2003-08-11  Bruno Haible  <bruno@clisp.org>
89982
89983         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
89984         (vasnprintf): Use it instead of wcslen.
89985
89986 2003-08-11  Bruno Haible  <bruno@clisp.org>
89987
89988         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
89989         value to ensure that _Bool promotes to int. Use #define for _Bool when
89990         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
89991
89992 2003-08-10  Karl Berry  <karl@gnu.org>
89993
89994         * lib/regex.h: update from libc (whitespace fix).
89995
89996 2003-08-09  Paul Eggert  <eggert@twinsun.com>
89997
89998         Merge some files from coreutils.  These changes were
89999         originally made by Jim Meyering.
90000         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
90001         many older Unixes require this.
90002         * lib/alloca.c (alloca): Remove cast to argument of free;
90003         no longer needed in C89.
90004         * lib/alloca_.h, regex.h: Fix white space to match
90005         what GNU indent does.
90006
90007 2003-08-09  Paul Eggert  <eggert@twinsun.com>
90008
90009         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
90010         apparently Emacs's Unicode mode got confused before my 2003-08-05
90011         checkin.
90012
90013 2003-08-08  Paul Eggert  <eggert@twinsun.com>
90014
90015         * m4/extensions.m4: New file.
90016         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
90017         Require gl_USE_SYSTEM_EXTENSIONS.
90018         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
90019         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
90020
90021 2003-08-08  Paul Eggert  <eggert@twinsun.com>
90022
90023         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
90024         * modules/extensions, modules/gnu-source: New files.
90025         * modules/timespec, modules/unlocked-io: Depend on extensions.
90026
90027 2003-08-07  Paul Eggert  <eggert@twinsun.com>
90028
90029         * modules/restrict: New file.
90030         * MODULES.html.sh (func_all_modules): Add restrict.
90031         * modules/regex: Depend on restrict.
90032
90033 2003-08-07  Paul Eggert  <eggert@twinsun.com>
90034
90035         * m4/restrict.m4: New file.
90036         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
90037
90038 2003-08-07  Bruno Haible  <bruno@clisp.org>
90039
90040         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
90041         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
90042
90043 2003-08-07  Bruno Haible  <bruno@clisp.org>
90044
90045         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
90046         makes the module 'getndelim2' compatible with the module 'getline'.
90047
90048 2003-08-05  Paul Eggert  <eggert@twinsun.com>
90049
90050         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
90051         byte with "\201" to avoid glitches when editing that source file
90052         with multi-gnome-terminal.
90053
90054 2003-08-05  Paul Eggert  <eggert@twinsun.com>
90055
90056         * lib/bumpalloc.h: Remove.
90057
90058 2003-08-05  Paul Eggert  <eggert@twinsun.com>
90059
90060         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
90061         * modules/bumpalloc: Remove.
90062
90063 2003-08-04  Paul Eggert  <eggert@twinsun.com>
90064
90065         * lib/getloadavg.c: Change copyright notice and spacing to conform to
90066         GNU coding style.
90067
90068         Merge from coreutils.
90069         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
90070         1. From glibc.
90071         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
90072         from Karl Berry, implemented by Jim Meyering.
90073         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
90074         from Dmitry V. Levin.
90075         Remove anachronistic cast of xrealloc.
90076         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
90077         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
90078         type. Otherwise, it wouldn't compile with at least /bin/cc on
90079         ymp-cray-unicos9.0.2.X.
90080         Combine two mostly-identical uses of alloca into one.
90081         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
90082
90083 2003-08-04  Dave Love  <d.love@dl.ac.uk>
90084
90085         [From Emacs.]
90086
90087         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
90088         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
90089         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
90090         obsolete NLIST_NAME_UNION.
90091         [__GNU__]: Undef BSD and FSCALE.
90092         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
90093
90094 2003-08-03  Paul Eggert  <eggert@twinsun.com>
90095
90096         * lib/stdbool_.h (_Bool): Make it signed char, instead of
90097         an enum type, so that it's guaranteed to promote to int.  See:
90098         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
90099
90100 2003-08-03  Karl Berry  <karl@gnu.org>
90101
90102         * config/depcomp: update from automake.
90103
90104 2003-07-31  Paul Eggert  <eggert@twinsun.com>
90105
90106         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
90107         (strerror): Don't assume that a printable int fits in 14 bytes.
90108
90109 2003-07-31  Bruno Haible  <bruno@clisp.org>
90110
90111         * modules/getpass-gnu: New file.
90112         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
90113
90114 2003-07-31  Bruno Haible  <bruno@clisp.org>
90115
90116         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
90117
90118 2003-07-24  Karl Berry  <karl@gnu.org>
90119
90120         * config/missing: update from automake.
90121
90122 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
90123             Bruno Haible  <bruno@clisp.org>
90124
90125         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
90126         * lib/getline.c (getline, getdelim): Likewise.
90127         Remove _GNU_SOURCE define; now it's defined in config.h through
90128         m4/getline.m4.
90129
90130 2003-07-23  Karl Berry  <karl@gnu.org>
90131
90132         * config/config.sub: update from prep.
90133
90134 2003-07-22  Paul Eggert  <eggert@twinsun.com>
90135
90136         * modules/xalloc (Depends-on): Add exitfail.
90137         * modules/xmemcoll: Likewise.
90138
90139 2003-07-22  Paul Eggert  <eggert@twinsun.com>
90140
90141         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
90142         over-parenthesization in macros.
90143
90144         Sync with coreutils.
90145
90146         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
90147         required by C99.
90148
90149         Use `exit_failure' for xalloc and xmemcoll instead of their own
90150         private exit-failure variables.
90151         * lib/xalloc.h (xalloc_exit_failure): Remove.
90152         * lib/xmalloc.c: Likewise.  Include exitfail.h.
90153         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
90154         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
90155         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
90156         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
90157
90158 2003-07-20  Jim Meyering  <jim@meyering.net>
90159
90160         * modules/closeout (Depends-on): Add exitfail.
90161         Suggestion from Bruno Haible.
90162
90163 2003-07-19  Karl Berry  <karl@gnu.org>
90164
90165         * config/config.sub: update from prep.
90166
90167 2003-07-18  Paul Eggert  <eggert@twinsun.com>
90168
90169         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
90170         Remove.
90171         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
90172         to test that it can stand by itself.  Include "exitfail.h".
90173         Clients should set exit_failure instead.
90174         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
90175
90176 2003-07-18  Bruno Haible  <bruno@clisp.org>
90177
90178         * modules/getndelim2: New file.
90179         * modules/getline: Share files with module getndelim2.
90180         * modules/getnline: Depend on getndelim2 instead of sharing files with
90181         it. Add getnline.c to lib_SOURCES.
90182         * MODULES.html.sh (func_all_modules): Add getndelim2.
90183
90184 2003-07-18  Bruno Haible  <bruno@clisp.org>
90185
90186         * m4/getndelim2.m4: New file.
90187         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
90188         invoke gl_PREREQ_GETNDELIM2.
90189         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
90190         gl_PREREQ_GETNDELIM2.
90191         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
90192         gl_GETNDELIM2.
90193
90194 2003-07-18  Bruno Haible  <bruno@clisp.org>
90195
90196         * lib/getndelim2.h: New file.
90197         * lib/getndelim2.c: Make into a module of its own. Include config.h,
90198         getndelim2.h.
90199         (getndelim2): Make non-static. Change return type to ssize_t.
90200         * lib/getline.h: Change argument names.
90201         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
90202         * lib/getnline.c: Include getndelim2.h.
90203
90204 2003-07-18  Andreas Schwab  <schwab@suse.de>
90205
90206         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
90207
90208 2003-07-17  Karl Berry  <karl@gnu.org>
90209
90210         * config/config.sub: update from prep.
90211
90212 2003-07-17  Bruno Haible  <bruno@clisp.org>
90213
90214         * modules/getnline: New file.
90215         * modules/getline: Add lib/getndelim2.c to source file list.
90216         * MODULES.html.sh (func_all_modules): Add getnline.
90217
90218 2003-07-17  Bruno Haible  <bruno@clisp.org>
90219
90220         * m4/getnline.m4: New file.
90221
90222 2003-07-17  Bruno Haible  <bruno@clisp.org>
90223
90224         * m4/Makefile.am.in: Remove file.
90225         * m4/Makefile.am: Remove file.
90226         * m4/Makefile.in: Remove file.
90227
90228 2003-07-17  Bruno Haible  <bruno@clisp.org>
90229
90230         * lib/getnline.h: New file.
90231         * lib/getnline.c: New file.
90232         * lib/getndelim2.c: New file, extracted from getline.c.
90233         (getndelim2): Renamed from getdelim2, with added nmax argument.
90234         * lib/getline.c: Include getndelim2.c.
90235         (getdelim2): Moved out to getndelim2.c.
90236         (getline, getdelim): Update.
90237
90238 2003-07-17  Bruno Haible  <bruno@clisp.org>
90239
90240         * lib/Makefile.am: Remove file.
90241         * lib/Makefile.in: Remove file.
90242
90243 2003-07-17  Bruno Haible  <bruno@clisp.org>
90244
90245         * configure.in: Remove file.
90246         * Makefile.in: Remove file.
90247
90248 2003-07-17  Bruno Haible  <bruno@clisp.org>
90249
90250         * MODULES.html.sh: Put the </BODY> right before </HTML>.
90251
90252 2003-07-16  Karl Berry  <karl@gnu.org>
90253
90254         * config/srclist-update: was running fixlicense twice, which caused
90255                 texinfo.tex to be nullified for some reason.  Simplify,
90256                 $gplsrc is no longer needed as far as I can see?
90257
90258 2003-07-16  Jim Meyering  <jim@meyering.net>
90259
90260         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
90261
90262 2003-07-15  Paul Eggert  <eggert@twinsun.com>
90263
90264         * config/srclist.txt: Get the following files from gettext-runtime/intl
90265         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
90266         ref-del.sin.  From Bruno Haible.
90267         * config/srclist-update (fixfile): Change grep pattern again, since the
90268         previous fix didn't work (there was another trailing $).  Use
90269         '[$]' to escape the $s.
90270
90271 2003-07-15  Karl Berry  <karl@gnu.org>
90272
90273         * lib/vasnprintf.c: update from gettext.
90274
90275 2003-07-15  Karl Berry  <karl@gnu.org>
90276
90277         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
90278         gets expanded when surrounded by '$'.
90279
90280 2003-07-15  Jim Meyering  <jim@meyering.net>
90281
90282         * modules/save-cwd: Don't depend on error.  From Derek Price.
90283
90284 2003-07-15  Jim Meyering  <jim@meyering.net>
90285
90286         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
90287
90288 2003-07-14  Simon Josefsson  <jas@extundo.com>
90289
90290         * modules/mempcpy: New file.
90291         * MODULES.html.sh (func_all_modules): Add mempcpy.
90292
90293 2003-07-14  Simon Josefsson  <jas@extundo.com>
90294
90295         * m4/mempcpy.m4: New file.
90296
90297 2003-07-14  Simon Josefsson  <jas@extundo.com>
90298
90299         * lib/mempcpy.h: New file.
90300         * lib/mempcpy.c: New file.
90301
90302 2003-07-14  Paul Eggert  <eggert@twinsun.com>
90303
90304         * modules/getdate, modules/posixtm: Depend on mktime.
90305
90306 2003-07-14  Paul Eggert  <eggert@twinsun.com>
90307
90308         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
90309         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
90310         unicodeio.c, unicodeio.h, unlocked-io.h:
90311         Switch from LGPL to GPL.
90312
90313 2003-07-14  Paul Eggert  <eggert@twinsun.com>
90314
90315         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
90316         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
90317         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
90318         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
90319         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
90320         updated automatically by ../config/srclist-update.  This changes
90321         their license from LPGL to GPL.
90322
90323 2003-07-14  Paul Eggert  <eggert@twinsun.com>
90324
90325         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
90326         assumed to refer to the root of the most recent stable gettext version.
90327         * config/srclistvars.sh: Add defaults for eggert.
90328         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
90329         Match "This program" as well as "The program".  This is needed
90330         for gettext.
90331
90332 2003-07-14  Jim Meyering  <jim@meyering.net>
90333
90334         Don't emit diagnostics.  Let callers do that.
90335         * lib/save-cwd.c: Don't include "error.h".
90336         (save_cwd): Don't call error.  Ensure that errno is valid
90337         when returning nonzero.
90338
90339         * lib/save-cwd.h (restore_cwd): Update prototype.
90340         * lib/save-cwd.c (restore_cwd): Remove two parameters.
90341         Simplify.  Don't call error upon failure.  Let callers do that.
90342         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
90343         when auditing is enabled.  But don't bother updating the #if.
90344
90345 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
90346
90347         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
90348         it breaks C++ compilation.
90349         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
90350
90351 2003-07-10  Simon Josefsson  <jas@extundo.com>
90352
90353         * modules/strchrnul (Makefile.am): Add strchrnul.h.
90354
90355 2003-07-10  Jim Meyering  <jim@meyering.net>
90356
90357         * m4/clock_time.m4: Remove trailing blank.
90358         * m4/intmax_t.m4: Likewise.
90359
90360 2003-07-10  Jim Meyering  <jim@meyering.net>
90361
90362         * lib/vasnprintf.c: Remove trailing blanks.
90363         Make cpp indentation consistent.
90364
90365 2003-07-09  Paul Eggert  <eggert@twinsun.com>
90366
90367         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
90368         posixver.c, strftime.c, strnlen.c, strverscmp.c:
90369         Switch from LGPL to GPL.
90370
90371 2003-07-09  Paul Eggert  <eggert@twinsun.com>
90372
90373         * config/srclist.txt: Sort sublists.  Add
90374         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
90375         that differ from gnulib for one reason or another; we'd like this list
90376         to be smaller but for now let's document what we have.
90377
90378 2003-07-08  Paul Eggert  <eggert@twinsun.com>
90379
90380         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
90381         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
90382         and sweeter "eval x=$x".
90383         * config/srclist.txt: Get lib/argp* from glibc.
90384
90385 2003-07-07  Paul Eggert  <eggert@twinsun.com>
90386
90387         * lib/mktime.c: Fix some boundary cases and remove need for floating
90388         point.
90389
90390         Issue a compile-time diagnostic if time_t is floating point, or if
90391         two's complement arithmetic is not in effect, or if arithmetic
90392         right shift does not propagate the sign.  These assumptions were
90393         all in the original code but they weren't checked.
90394
90395         (TIME_T_MIDPOINT, verify): New macros.
90396         (__isleap): Remove; it has integer overflow problems.
90397         (leapyear): New function, without those problems.
90398         (ydhms_tm_diff): Remove; splitting into two parts.
90399         (ydhms_diff): New function, containing the arithmetic part of
90400         the old ydhms_tm_diff function.  Issue a compile-time
90401         diagnostic if we are not using C99 integer division.
90402         Avoid casts when possible.
90403         (guess_time_tm): New function, containing the checking part of
90404         the old ydhms_tm_diff function.  Return the new value, rather than
90405         the difference between it and the old.  Accept a new argument T
90406         so that *T specifies the old value.  Check for overflow in the result.
90407
90408         (__mktime_internal): Use a time_t offset, not a long int offset.
90409         This undoes the 2003-06-04 change, which is no longer needed now
90410         that we have better overflow checking.
90411         (localtime_offset): Likewise.
90412
90413         (__mktime_internal): Avoid harmful overflow on hosts where time_t
90414         and long are 64-bit but int is only 32-bit.
90415         (ydhms_diff): Use long int to store year1 and yday1.
90416         Issue a compile-time diagnostic if long int is not wide enough.
90417
90418         (__mktime_internal): Use long int to store adjusted year and yday.
90419         Use plain C rather than preprocessor commands, if that doesn't
90420         affect efficiency.
90421         Check for overflow (and try to repair) after each probe
90422         rather than checking only at the very end.  This avoids some bugs
90423         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
90424         does not equal GMT offset at maximum time).
90425         Use integer to check for overflow rather than floating point; this
90426         is more portable to non-IEEE hosts, and is a tad faster.
90427         When we detect that we are oscillating between two values,
90428         don't check whether tm_isdst has the requested value, since
90429         we already know the answer.  When tm_isdst has the wrong value,
90430         use a different heuristic to find the right one, based on the
90431         extreme values actually observed in practice in tz2003a,
90432         rather than the (overly optimistic) "previous 3 calendar quarters".
90433
90434         (not_equal_tm, print_tm, check_result): Use "const T" rather than
90435         "T const" to accommodate glibc style.
90436         (check_result): Use less-confusing report format.  "long" -> "long int.
90437         (main): Likewise.
90438         Don't loop if the iteration overflows time_t.
90439         Allow a negative step in the iteration.
90440
90441 2003-07-06  Karl Berry  <karl@gnu.org>
90442
90443         * config/depcomp: update from automake.
90444         * config/config.sub: update from prep.
90445
90446 2003-07-03  Karl Berry  <karl@gnu.org>
90447
90448         * config/config.guess: update from prep.
90449
90450 2003-07-01  Paul Eggert  <eggert@twinsun.com>
90451
90452         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
90453         xreadlink.c now includes it unconditionally.
90454
90455 2003-07-01  Paul Eggert  <eggert@twinsun.com>
90456
90457         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
90458         having it depend on HAVE_SYS_TYPES_H.
90459
90460 2003-07-01  Bruno Haible  <bruno@clisp.org>
90461
90462         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
90463         <sys/types.h> should be sufficient.
90464         Reported by Paul Eggert.
90465
90466 2003-06-26  Karl Berry  <karl@gnu.org>
90467
90468         * config/depcomp: update from automake.
90469
90470 2003-06-26  Bruno Haible  <bruno@clisp.org>
90471
90472         * modules/human: Depend on module stdbool.
90473
90474 2003-06-25  Bruno Haible  <bruno@clisp.org>
90475
90476         * modules/readlink: New file.
90477         * modules/xreadlink: Depend on it.
90478         * MODULES.html.sh (func_all_modules): Add readlink.
90479
90480 2003-06-25  Bruno Haible  <bruno@clisp.org>
90481
90482         * m4/readlink.m4: New file.
90483
90484 2003-06-25  Bruno Haible  <bruno@clisp.org>
90485
90486         * lib/readlink.c: New file.
90487
90488 2003-06-22  Karl Berry  <karl@gnu.org>
90489
90490         * config/srclist.txt: update mkinstalldirs from automake.
90491         * config/mkinstalldirs: update.
90492
90493 2003-06-22  Bruno Haible  <bruno@clisp.org>
90494
90495         Portability to mingw32.
90496         * m4/ssize_t.m4: New file, from GNU gettext.
90497         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
90498         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
90499
90500 2003-06-22  Bruno Haible  <bruno@clisp.org>
90501
90502         * modules/safe-read: Add m4/ssize_t.m4.
90503         * modules/xreadlink: Add m4/ssize_t.m4.
90504
90505 2003-06-20  Bruno Haible  <bruno@clisp.org>
90506
90507         Assume C89, so PARAMS isn't needed.
90508         * lib/unicodeio.h (PARAMS): Remove.
90509         * lib/unicodeio.c: Don't use PARAMS.
90510
90511 2003-06-18  Karl Berry  <karl@gnu.org>
90512
90513         * config/config.{guess,sub}: update from prep.
90514
90515 2003-06-18  Jim Meyering  <jim@meyering.net>
90516
90517         Merge changes from coreutils.
90518         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
90519         Remove explicit declarations of xmalloc and realloc.
90520         Include xalloc.h.
90521         (read_utmp): Remove anachronistic cast of xmalloc.
90522
90523 2003-06-17  Paul Eggert  <eggert@twinsun.com>
90524
90525         Assume C89, so PARAMS isn't needed.
90526         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
90527         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
90528         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
90529         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
90530         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
90531         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
90532         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
90533         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
90534         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
90535         lib/xstrtod.h, lib/xstrtol.h: Likewise.
90536         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
90537         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
90538         no longer needed. Anyway, config.h should always be included before any
90539         other file.
90540
90541 2003-06-11  Simon Josefsson  <jas@extundo.com>
90542
90543         * modules/sysexits: New file.
90544         * MODULES.html.sh (func_all_modules): Add sysexits.
90545
90546 2003-06-11  Simon Josefsson  <jas@extundo.com>
90547
90548         * lib/sysexit_.h: New file.
90549
90550 2003-06-11  Derek Price  <derek@ximbiot.com>
90551
90552         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
90553         necessary.
90554
90555 2003-06-11  Bruno Haible  <bruno@clisp.org>
90556
90557         * m4/sysexits.m4: New file.
90558
90559 2003-06-10  Simon Josefsson  <jas@extundo.com>
90560
90561         * lib/argp.h: New file, from glibc.
90562         * lib/argp-ba.c: New file, from glibc.
90563         * lib/argp-eexst.c: New file, from glibc.
90564         * lib/argp-fmtstream.c: New file, from glibc.
90565         * lib/argp-fmtstream.h: New file, from glibc.
90566         * lib/argp-fs-xinl.c: New file, from glibc.
90567         * lib/argp-help.c: New file, from glibc.
90568         * lib/argp-namefrob.h: New file, from glibc.
90569         * lib/argp-parse.c: New file, from glibc.
90570         * lib/argp-pv.c: New file, from glibc.
90571         * lib/argp-pvh.c: New file, from glibc.
90572         * lib/argp-xinl.c: New file, from glibc.
90573
90574 2003-06-10  Simon Josefsson  <jas@extundo.com>
90575
90576         * modules/strchrnul: New file.
90577
90578 2003-06-10  Simon Josefsson  <jas@extundo.com>
90579
90580         * modules/argp: New file.
90581
90582 2003-06-10  Simon Josefsson  <jas@extundo.com>
90583
90584         * m4/strchrnul.m4: New file.
90585
90586 2003-06-10  Simon Josefsson  <jas@extundo.com>
90587
90588         * lib/strchrnul.h: New file.
90589         * lib/strchrnul.c: New file.
90590
90591 2003-06-10  Bruno Haible  <bruno@clisp.org>
90592
90593         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
90594
90595 2003-06-07  Karl Berry  <karl@gnu.org>
90596
90597         * config/config.{guess,sub}: update from prep.
90598
90599 2003-06-07  Jim Meyering  <jim@meyering.net>
90600
90601         * modules/strtod: Use $(...) notation, not @...@ for
90602         AC_REPLACE'd variables.
90603         * modules/localcharset: Likewise.
90604
90605 2003-06-07  Jim Meyering  <jim@meyering.net>
90606
90607         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
90608         in place of my name in the copyright comment.
90609         Remove definition and uses of __P.
90610
90611         From coreutils.
90612         * lib/stat.c: Don't declare xmalloc explicitly.
90613         Instead, include "xalloc.h".
90614         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
90615         xrealloc, and xcalloc return values.
90616         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
90617         Improve comment.
90618         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
90619
90620 2003-06-07  Bruno Haible  <bruno@clisp.org>
90621
90622         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
90623         avoid AC_CONFIG_LINKS.
90624         * modules/fnmatch (Makefile.am): Use explicit creation rule for
90625         fnmatch.h, to avoid AC_CONFIG_LINKS.
90626         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
90627
90628 2003-06-07  Bruno Haible  <bruno@clisp.org>
90629
90630         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
90631         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
90632         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
90633         directory.
90634         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
90635         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
90636         directory.
90637
90638 2003-06-06  Jim Meyering  <jim@meyering.net>
90639
90640         Merge from coreutils.
90641         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
90642         Consolidate declarations and initializations of *_base* locals.
90643
90644         Merge from coreutils.
90645         This avoids a core dump on systems without GNU putenv,
90646         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
90647         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
90648         (unsetenv): New static function, from GNU libc.
90649         (rpl_putenv): Use it.
90650
90651         * lib/modechange.c: Remove trailing blanks.
90652
90653         Merge from coreutils.
90654         * lib/fsusage.c: Remove declaration of statfs.
90655         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
90656
90657         * lib/posixtm.c: Include <stdbool.h> unconditionally.
90658
90659 2003-06-06  Jim Meyering  <jim@meyering.net>
90660
90661         * lib/stdbool_.h: Renamed from stdbool.h.in.
90662
90663 2003-06-06  Jim Meyering  <jim@meyering.net>
90664             Bruno Haible  <bruno@clisp.org>
90665
90666         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
90667         Adjust Makefile.am snippet not to redirect directly to target.
90668         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
90669
90670 2003-06-05  Paul Eggert  <eggert@twinsun.com>
90671
90672         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
90673         mismatch, look in future quarters as well as past.  This fixes a
90674         bug when processing fall-backwards gaps immediately after a long
90675         period of daylight-saving time.
90676
90677         * lib/mktime.c: Assume freestanding C89 or better.
90678         (HAVE_LIMITS_H): Remove.  Assume it's 1.
90679         (__P): Remove; not used.
90680         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
90681         (mktime, not_equal_tm, print_tm, check_result,
90682         main): Use prototypes.  Use const * where appropriate.
90683         (main): Fix typo in testing code that uncovered by above changes.
90684         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
90685
90686 2003-06-04  Paul Eggert  <eggert@twinsun.com>
90687
90688         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
90689         locale.h, localeconv.  This merges changes from coreutils.
90690
90691         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
90692         It can be removed after the next Autoconf is released.
90693         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
90694         needed.
90695
90696 2003-06-04  Paul Eggert  <eggert@twinsun.com>
90697
90698         * lib/mktime.c: Fix Debian bug 177940
90699         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
90700         (localtime_offset): Now long int, not time_t, because we want it
90701         to be guaranteed to be signed.  All uses changed.
90702         (__mktime_internal): If overflow would occur when adding offset,
90703         don't add it.
90704
90705         Merge 'human' changes from coreutils.  Rewrite to support
90706         locale-specific notations like thousands separators.
90707         * lib/human.c: Simplify authorship notice.
90708         Include human.h immediately after config.h.
90709         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
90710         <limits.h>: Do not include, since human.h does.
90711         (SIZE_MAX, UINTMAX_MAX): New macros.
90712         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
90713         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
90714         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
90715         (power_letter): Renamed from suffixes.
90716         (generate_suffix_backwards): Remove.
90717         (adjust_value): Now takes int style (because of human.h changes)
90718         and long double value (for greater precision on some platforms).
90719         (group_number): New function.
90720         (human_readable): Use it.  Use integer options, not enum.
90721         Put the options before the sizes in the arg list.
90722         Support all the new options.
90723         The old human_readable function has been removed;
90724         use inttostr.h instead.
90725         (human_readable, default_block_size, humblock):
90726         Use uintmax_t, not int, for block sizes.
90727         (human_readable_inexact, block_size_types): Remove.
90728         (block_size_opts): New constant.
90729         (human_options): Renamed from human_block_size, with new signature
90730         that allows block sizes up to UINTMAX_MAX.  All callers changed.
90731         * lib/human.h: Add copyright and authorship notice.
90732         Include <limits.h> and <stdbool.h> unconditionally.
90733         (PARAMS): Remove.  All uses removed.
90734         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
90735         (enum human_inexact_style): Remove tag; now a nameless enum.
90736         (human_floor, human_ceiling, human_round_to_even): Now have
90737         values 2, 0, 1 rather than -1, 1, 0.
90738         (human_group_digits, human_suppress_point_zero, human_autoscale,
90739         human_base_1024, human_SI, human_B): New constants.
90740         (human_readable_inexact, human_block_size): Remove.
90741         (human_readable): Size args are now uintmax_t, not int.
90742         (human_options): New decl.
90743
90744         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
90745         unnecessary now that we assume C89 or better.  This change
90746         imported from coreutils.
90747
90748         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
90749         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
90750         in the 2003-05-30 sync from glibc.
90751
90752         .h files should stand alone, but we shouldn't include <sys/types.h>
90753         if we can get away with just <stddef.h>.
90754
90755         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
90756         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
90757         rather than <sys/types.h>, as we merely need size_t.
90758         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
90759         to get size_t.
90760         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
90761         Include <stdio.h>, to get FILE.
90762         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
90763         memcasecmp.h has included <stddef.h> and all we need is size_t.
90764         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
90765         our interface, instead of including <sys/types.h>
90766
90767 2003-06-04  Paul Eggert  <eggert@twinsun.com>
90768
90769         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
90770         now, as glibc mktime is buggy on non-glibc systems.
90771
90772 2003-06-03  Karl Berry  <karl@gnu.org>
90773
90774         * config/config.sub: update from prep.
90775
90776 2003-06-02  Paul Eggert  <eggert@twinsun.com>
90777
90778         [from coreutils]
90779         Fix some minor time-related bugs with POSIX time arguments.
90780         Some valid time stamps were being rejected (notably -1, and
90781         time stamps before 1900 on 64-bit hosts).  And some invalid
90782         time stamps were being accepted, e.g. September 31.
90783
90784         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
90785         that we can return (time_t) -1 successfully.
90786         * lib/posixtm.c: Likewise.
90787         [HAVE_STDBOOL_H]: Include <stdbool.h>.
90788         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
90789         (t): Remove static var.
90790         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
90791         of static var.  All uses changed.
90792         (year): Do not reject years before 1900; they can occur with
90793         64-bit time_t.
90794         (posix_time_parse): Do not check for out-of-range components;
90795         that is now the caller's responsibility, since our checks were
90796         only approximations.
90797         (posixtime): Use mktime to check for out-of-range components,
90798         since it knows them exactly.
90799         If mktime returns (time_t) -1, check whether an error actually occurred
90800         by invoking localtime on -1.
90801         (main) [TEST_POSIXTIME]: Check for input data errors, and report
90802         posixtime failures better.
90803         Improve the test data (in comments only).
90804
90805 2003-06-02  Karl Berry  <karl@gnu.org>
90806
90807         * config/mkinstalldirs (version): new variable.
90808         (--version): new option.
90809         (usage): improve message.
90810
90811 2003-05-30  Karl Berry  <karl@gnu.org>
90812
90813         * lib/mktime.c: update from libc.
90814
90815 2003-05-30  Bruno Haible  <bruno@clisp.org>
90816
90817         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
90818         * config/config.rpath: Upgrade to gettext-0.12.1.
90819
90820 2003-05-30  Bruno Haible  <bruno@clisp.org>
90821
90822         * m4/gettext.m4: Upgrade to gettext-0.12.1.
90823         * m4/nls.m4: New file, from gettext-0.12.1.
90824         * m4/po.m4: New file, from gettext-0.12.1.
90825         * m4/progtest.m4: Upgrade to gettext-0.12.1.
90826
90827 2003-05-30  Bruno Haible  <bruno@clisp.org>
90828
90829         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
90830         * lib/localcharset.h: Likewise.
90831         * lib/localcharset.c: Likewise.
90832
90833 2003-05-29  Karl Berry  <karl@gnu.org>
90834
90835         * config/config.rpath: update from gettext.
90836
90837 2003-05-28  Paul Eggert  <eggert@twinsun.com>
90838
90839         Assume the headers required for C89 freestanding compilers.
90840         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
90841         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
90842         * m4/human.m4 (gl_HUMAN): Likewise.
90843         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
90844         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
90845         * m4/userspec.m4 (gl_USERSPEC): Likewise.
90846         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
90847         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
90848         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
90849
90850 2003-05-28  Paul Eggert  <eggert@twinsun.com>
90851
90852         Assume the headers required for C89 freestanding compilers.
90853         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
90854         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
90855         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
90856         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
90857         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
90858         define, since <limits.h> is guaranteed to do that.
90859         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
90860         * lib/exclude.c: Include <stdbool.h> unconditionally.
90861         * lib/tempname.c: Include <stddef.h> unconditionally.
90862         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
90863         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
90864         <stddef.h> does that.
90865         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
90866         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
90867         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
90868         needed.
90869         * lib/xstrtol.c: Likewise.
90870         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
90871         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
90872
90873         * lib/addext.c (addext): Use assignment rather than cast, to avoid
90874         warnings on some platforms.
90875
90876         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
90877         arbitrarily.
90878
90879 2003-05-26  Jim Meyering  <jim@meyering.net>
90880
90881         Merge in a change from coreutils:
90882         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
90883         that is guaranteed to be `no'.  Use `no_such_member' to indicate
90884         that condition, rather than `-1' which is slightly misleading.
90885         Change the name of the cache variable to have the gl_ prefix.
90886         Prompted by a patch from Richard Dawe for DJGPP.
90887
90888 2003-05-24  Karl Berry  <karl@gnu.org>
90889
90890         * config/config.guess: update from prep.
90891
90892 2003-05-22  Karl Berry  <karl@gnu.org>
90893
90894         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
90895
90896 2003-05-20  Karl Berry  <karl@gnu.org>
90897
90898         * config/config.guess: update from prep.
90899
90900 2003-05-18  Karl Berry  <karl@gnu.org>
90901
90902         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
90903         might actually be set by the user.
90904
90905         * config/depcomp, install-sh, mdate-sh: update from automake.
90906
90907 2003-05-17  Bruno Haible  <bruno@clisp.org>
90908
90909         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
90910         invalid expansion for AC_EGREP_CPP.
90911         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
90912         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
90913         Suggested by Akim Demaille <akim@epita.fr> in
90914         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
90915
90916 2003-05-12  Jim Meyering  <jim@meyering.net>
90917
90918         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
90919         the space-padded-by-default conversion specifiers, %e, %k, %l.
90920
90921 2003-05-12  Bruno Haible  <bruno@clisp.org>
90922
90923         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
90924         the string is longer than 4 KB.
90925
90926 2003-05-11  Karl Berry  <karl@gnu.org>
90927
90928         * config/config.{guess,sub}: update from prep.
90929
90930 2003-05-09  Bruno Haible  <bruno@clisp.org>
90931
90932         * modules/error: Add m4/strerror_r.m4 to file list.
90933
90934 2003-05-03  Bruno Haible  <bruno@clisp.org>
90935
90936         Upgrade to Unicode-4.0.
90937         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
90938         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
90939         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
90940         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
90941         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
90942         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
90943         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
90944         Change width of U+E0100..U+E01EF from 1 to 0.
90945
90946 2003-04-25  Jim Meyering  <jim@meyering.net>
90947
90948         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
90949         of type size_t, not int.
90950
90951 2003-04-25  Bruno Haible  <bruno@clisp.org>
90952
90953         * lib/copy-file.c: Include <stddef.h>, for size_t.
90954
90955 2003-04-21  Paul Eggert  <eggert@twinsun.com>
90956
90957         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
90958         code which expansion is under static control.  Patch imported from
90959         Akim Demaille's patch to Bison; see
90960         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
90961
90962 2003-04-14  Bruno Haible  <bruno@clisp.org>
90963
90964         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
90965
90966 2003-04-11  Jim Meyering  <jim@meyering.net>
90967
90968         Merge changes from Coreutils.
90969
90970         2003-03-22  Jim Meyering  <jim@meyering.net>
90971
90972         * lib/strftime.c (widen): Cast alloca return value to proper type.
90973
90974         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
90975
90976         From GNU libc.
90977         * lib/strftime.c (my_strftime): Handle very large width
90978         specifications for numeric values correctly.  Improve checks for
90979         overflow.
90980
90981         2003-01-19  Jim Meyering  <jim@meyering.net>
90982
90983         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
90984         definitions.
90985         (nl_get_alt_digit) [! defined my_strftime]: Define.
90986         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
90987         _nl_get_alt_digit and _nl_get_walt_digit.
90988
90989         * lib/strftime.c (my_strftime): Merge in locale-related changes from
90990         libc. These changes have no effect outside of _LIBC.
90991
90992 2003-04-10  Bruno Haible  <bruno@clisp.org>
90993
90994         * modules/findprog: New file.
90995         * MODULES.html.sh (func_all_modules): Add it.
90996
90997 2003-04-10  Bruno Haible  <bruno@clisp.org>
90998
90999         * m4/findprog.m4: New file.
91000         * m4/eaccess.m4: New file.
91001
91002 2003-04-10  Bruno Haible  <bruno@clisp.org>
91003
91004         * lib/findprog.h: New file, from GNU gettext.
91005         * lib/findprog.c: New file, from GNU gettext.
91006
91007 2003-04-05  Jim Meyering  <jim@meyering.net>
91008
91009         Merge changes from Coreutils.
91010
91011         * lib/exclude.h (PARAMS): Remove definition and uses.
91012         * lib/exclude.c: Remove uses of `PARAMS'.
91013
91014         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
91015         Add test-cases for DOS filenames. Declare program_name.
91016         (main): Set up program_name.  Patch by Rich Dawe.
91017
91018         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
91019         error from mntctl.
91020         Use mntctl's return value to drive the entry-processing loop, since
91021         we can't rely on the value of the vmt_length member in the last
91022         entry.  On some systems doing so could result in exhausting
91023         virtual memory.  Based in part on a patch from Mike Jetzer.
91024
91025 2003-04-04  Bruno Haible  <bruno@clisp.org>
91026
91027         * modules/linebreak: New file.
91028         * MODULES.html.sh (func_all_modules): Add it.
91029
91030 2003-04-04  Bruno Haible  <bruno@clisp.org>
91031
91032         * m4/linebreak.m4: New file.
91033
91034 2003-04-04  Bruno Haible  <bruno@clisp.org>
91035
91036         * lib/linebreak.h: New file, from GNU gettext.
91037         * lib/linebreak.c: New file, from GNU gettext with slight
91038         modifications.
91039         * lib/lbrkprop.h: New file, from GNU gettext.
91040
91041 2003-04-03  Bruno Haible  <bruno@clisp.org>
91042
91043         * modules/utf8-ucs4: New file.
91044         * modules/utf16-ucs4: New file.
91045         * modules/ucs4-utf8: New file.
91046         * modules/ucs4-utf16: New file.
91047         * MODULES.html.sh (func_all_modules): Add them.
91048
91049 2003-04-03  Bruno Haible  <bruno@clisp.org>
91050
91051         * m4/utf-ucs4.m4: New file.
91052         * m4/ucs4-utf.m4: New file.
91053
91054 2003-04-03  Bruno Haible  <bruno@clisp.org>
91055
91056         * lib/utf8-ucs4.h: New file, from GNU gettext.
91057         * lib/utf16-ucs4.h: New file, from GNU gettext.
91058         * lib/ucs4-utf8.h: New file, from GNU gettext.
91059         * lib/ucs4-utf16.h: New file, from GNU gettext.
91060
91061 2003-04-02  Bruno Haible  <bruno@clisp.org>
91062
91063         * modules/binary-io: New file.
91064         * MODULES.html.sh (func_all_modules): Add it.
91065
91066 2003-04-02  Bruno Haible  <bruno@clisp.org>
91067
91068         * lib/binary-io.h: New file, from GNU gettext.
91069
91070 2003-04-01  Bruno Haible  <bruno@clisp.org>
91071
91072         * modules/pathname: New file.
91073         * MODULES.html.sh (func_all_modules): Add it.
91074
91075 2003-04-01  Bruno Haible  <bruno@clisp.org>
91076
91077         * lib/pathname.h: New file, from GNU gettext.
91078         * lib/concatpath.c: New file, from GNU gettext.
91079
91080 2003-03-30  Bruno Haible  <bruno@clisp.org>
91081
91082         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
91083
91084 2003-03-30  Bruno Haible  <bruno@clisp.org>
91085
91086         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
91087         function chown() doesn't exist.
91088
91089 2003-03-28  Bruno Haible  <bruno@clisp.org>
91090
91091         * modules/copy-file: New file.
91092         * MODULES.html.sh (func_all_modules): Add it.
91093
91094 2003-03-28  Bruno Haible  <bruno@clisp.org>
91095
91096         * m4/copy-file.m4: New file.
91097
91098 2003-03-28  Bruno Haible  <bruno@clisp.org>
91099
91100         * lib/copy-file.h: New file, from GNU gettext.
91101         * lib/copy-file.c: New file, from GNU gettext.
91102
91103 2003-03-18  Jim Meyering  <jim@meyering.net>
91104
91105         * lib/quote.c (quote_n): Fix typo in comment.
91106
91107 2003-03-18  Bruno Haible  <bruno@clisp.org>
91108
91109         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
91110         checking.
91111         * m4/onceonly_2_57.m4: Likewise.
91112
91113 2003-03-17  Bruno Haible  <bruno@clisp.org>
91114
91115         * m4/onceonly.m4: Require autoconf 2.54 or newer.
91116         (m4_quote): Remove macro.
91117         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
91118
91119 2003-03-14  Jim Meyering  <jim@meyering.net>
91120
91121         Merge changes from Coreutils.
91122         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
91123         to be const, in order to avoid warnings.
91124         (obstack_room): Likewise.
91125         (obstack_empty_p): Likewise.
91126
91127 2003-03-14  Bruno Haible  <bruno@clisp.org>
91128
91129         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
91130         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
91131
91132 2003-03-13  Paul Eggert  <eggert@twinsun.com>
91133
91134         Merge changes from Bison.
91135         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
91136         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
91137         when compiling Bison 1.875's `bitset bset = obstack_alloc
91138         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
91139         * lib/hash.c: Include <stdbool.h> unconditionally.
91140
91141 2003-03-13  Paul Eggert  <eggert@twinsun.com>
91142
91143         * m4/onceonly.m4 (m4_quote): New macro.
91144         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
91145         Quote AC_FOREACH variable-expansions properly.
91146
91147 2003-03-13  Paul Eggert  <eggert@twinsun.com>
91148
91149         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
91150
91151 2003-03-09  Paul Eggert  <eggert@twinsun.com>
91152
91153         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
91154         Reported by Bruce Becker; see:
91155         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
91156
91157 2003-03-03  Paul Eggert  <eggert@twinsun.com>
91158             Bruno Haible  <bruno@clisp.org>
91159
91160         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
91161         Reported by John Hughes, see
91162         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
91163
91164 2003-02-20  Bruno Haible  <bruno@clisp.org>
91165
91166         * MODULES.html.sh (func_all_modules): Add poll.
91167
91168 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
91169
91170         * modules/poll: New file.
91171
91172 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
91173
91174         * lib/poll_.h: New file.
91175         * lib/poll.c: New file.
91176
91177 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
91178
91179         * m4/poll.m4: New file.
91180
91181 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
91182
91183         * modules/mathl: New file.
91184
91185 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
91186
91187         * lib/mathl.h: New file.
91188         * lib/acosl.c: New file.
91189         * lib/asinl.c: New file.
91190         * lib/atanl.c: New file.
91191         * lib/ceill.c: New file.
91192         * lib/cosl.c: New file.
91193         * lib/expl.c: New file.
91194         * lib/floorl.c: New file.
91195         * lib/frexpl.c: New file.
91196         * lib/ldexpl.c: New file.
91197         * lib/logl.c: New file.
91198         * lib/sincosl.c: New file.
91199         * lib/sinl.c: New file.
91200         * lib/sqrtl.c: New file.
91201         * lib/tanl.c: New file.
91202         * lib/trigl.c: New file.
91203         * lib/trigl.h: New file.
91204
91205 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
91206
91207         * m4/mathl.m4: New file.
91208
91209 2003-02-18  Bruno Haible  <bruno@clisp.org>
91210
91211         * MODULES.html.sh (func_all_modules): Add mathl.
91212
91213 2003-02-17  Bruno Haible  <bruno@clisp.org>
91214
91215         * modules/mkdtemp: New module.
91216         * MODULES.html.sh (func_all_modules): Add it.
91217
91218 2003-02-17  Bruno Haible  <bruno@clisp.org>
91219
91220         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
91221
91222 2003-02-17  Bruno Haible  <bruno@clisp.org>
91223
91224         * lib/mkdtemp.h: New file, from GNU gettext.
91225         * lib/mkdtemp.c: New file, from GNU gettext.
91226
91227 2003-02-02  Jim Meyering  <jim@meyering.net>
91228
91229         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
91230         e.g. glibc-2.2.93.
91231
91232 2003-01-31  Bruno Haible  <bruno@clisp.org>
91233
91234         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
91235         'rpl_rename'.
91236         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
91237         'rpl_strnlen'.
91238         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
91239         'rpl_strtod'.
91240         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
91241         'rpl_utime'.
91242
91243 2003-01-31  Bruno Haible  <bruno@clisp.org>
91244
91245         * lib/rename.c: #undef rename before defining rpl_rename.
91246         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
91247
91248 2003-01-30  Bruno Haible  <bruno@clisp.org>
91249
91250         * modules/vasnprintf, modules/vasprintf: New modules.
91251         * MODULES.html.sh (func_all_modules): Add them.
91252
91253 2003-01-30  Bruno Haible  <bruno@clisp.org>
91254
91255         * m4/signed.m4: New file, from GNU gettext.
91256         * m4/longdouble.m4: New file, from GNU gettext.
91257         * m4/wchar_t.m4: New file, from GNU gettext.
91258         * m4/wint_t.m4: New file, from GNU gettext.
91259         * m4/vasnprintf.m4: New file.
91260         * m4/vasprintf.m4: New file.
91261
91262 2003-01-30  Bruno Haible  <bruno@clisp.org>
91263
91264         * lib/printf-args.h: New file, from GNU gettext.
91265         * lib/printf-args.c: New file, from GNU gettext.
91266         * lib/printf-parse.h: New file, from GNU gettext.
91267         * lib/printf-parse.c: New file, from GNU gettext.
91268         * lib/vasnprintf.h: New file, from GNU gettext.
91269         * lib/vasnprintf.c: New file, from GNU gettext.
91270         * lib/asnprintf.c: New file, from GNU gettext.
91271         * lib/vasprintf.h: New file, from GNU gettext with modifications.
91272         * lib/vasprintf.c: New file, from GNU gettext.
91273         * lib/asprintf.c: New file, from GNU gettext.
91274
91275 2003-01-29  Bruno Haible  <bruno@clisp.org>
91276
91277         * modules/stpncpy: New module.
91278         * MODULES.html.sh (func_all_modules): Add it.
91279
91280 2003-01-29  Bruno Haible  <bruno@clisp.org>
91281
91282         * m4/stpncpy.m4: New file.
91283
91284 2003-01-29  Bruno Haible  <bruno@clisp.org>
91285
91286         * lib/stpncpy.h: New file, from GNU gettext with modifications.
91287         * lib/stpncpy.c: New file, from GNU gettext with modifications.
91288
91289 2003-01-28  Bruno Haible  <bruno@clisp.org>
91290
91291         * modules/c-ctype: New module.
91292         * MODULES.html.sh (func_all_modules): Add it.
91293
91294 2003-01-28  Bruno Haible  <bruno@clisp.org>
91295
91296         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
91297         Paul Eggert.
91298         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
91299         Paul Eggert.
91300
91301 2003-01-27  Bruno Haible  <bruno@clisp.org>
91302
91303         * modules/xsetenv: New module.
91304         * MODULES.html.sh (func_all_modules): Add it.
91305
91306 2003-01-27  Bruno Haible  <bruno@clisp.org>
91307
91308         * lib/xsetenv.h: New file, from GNU gettext.
91309         * lib/xsetenv.c: New file, from GNU gettext.
91310
91311 2003-01-23  Jim Meyering  <jim@meyering.net>
91312
91313         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
91314         from working on systems without dirfd (at least Irix and OSF1/Tru64).
91315
91316 2003-01-23  Bruno Haible  <bruno@clisp.org>
91317
91318         * modules/minmax: New module.
91319         * MODULES.html.sh (func_all_modules): Add it.
91320
91321 2003-01-23  Bruno Haible  <bruno@clisp.org>
91322
91323         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
91324         Eggert.
91325
91326 2003-01-22  Bruno Haible  <bruno@clisp.org>
91327
91328         * modules/exit: New module.
91329         * MODULES.html.sh (func_all_modules): Add it.
91330
91331 2003-01-22  Bruno Haible  <bruno@clisp.org>
91332
91333         * lib/exit.h: New file, from GNU gettext.
91334
91335 2003-01-19  Bruno Haible  <bruno@clisp.org>
91336
91337         * gnulib-tool: Recognize option --extract-maintainer.
91338         (func_get_maintainer): New function.
91339         * modules/*: Add Maintainer entry.
91340
91341 2003-01-16  Jim Meyering  <jim@meyering.net>
91342
91343         * m4/regex.m4: The `regex' struct is both input and output.
91344         Initialize it before each use.  Patch by Tim Waugh.
91345
91346 2003-01-16  Bruno Haible  <bruno@clisp.org>
91347
91348         * MODULES.html.sh: Add a table of contents. Add the module name as
91349         leftmost column. Add hyperlinks.
91350
91351 2003-01-15  Bruno Haible  <bruno@clisp.org>
91352
91353         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
91354
91355 2003-01-15  Bruno Haible  <bruno@clisp.org>
91356
91357         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
91358         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
91359         suffix.
91360
91361 2003-01-15  Bruno Haible  <bruno@clisp.org>
91362
91363         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
91364
91365 2003-01-15  Bruno Haible  <bruno@clisp.org>
91366
91367         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
91368         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
91369
91370 2003-01-14  Jim Meyering  <jim@meyering.net>
91371
91372         * lib/same.c (same_name): Tweak a comment.
91373
91374 2003-01-14  Bruno Haible  <bruno@clisp.org>
91375
91376         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
91377         when a string comparison is sufficient.
91378
91379 2003-01-14  Bruno Haible  <bruno@clisp.org>
91380
91381         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
91382         'unsigned int'.
91383
91384 2003-01-14  Bruno Haible  <bruno@clisp.org>
91385
91386         * lib/hash-pjw.c: Add comment about low quality of this function.
91387
91388 2003-01-13  Bruno Haible  <bruno@clisp.org>
91389
91390         * modules/stpcpy: Distribute lib/stpcpy.h.
91391         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
91392
91393 2003-01-13  Bruno Haible  <bruno@clisp.org>
91394
91395         * modules/*: Add a description.
91396         * modules/strpbrk: Fix Makefile.am snippet.
91397         * modules/strtoimax: Fix dependencies.
91398         * modules/strtoumax: Likewise.
91399
91400 2003-01-13  Bruno Haible  <bruno@clisp.org>
91401
91402         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
91403         * modules/alloca (Makefile.am): All object files depend on alloca.h.
91404         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
91405
91406 2003-01-13  Bruno Haible  <bruno@clisp.org>
91407
91408         * gnulib-tool (func_create_testdir): Store config/* files in the main
91409         directory.
91410         * config.rpath: Move to ...
91411         * config/config.rpath: ... here.
91412         * modules/gettext: Contains config/config.rpath, not config.rpath.
91413         * modules/iconv: Likewise.
91414
91415 2003-01-12  Paul Eggert  <eggert@twinsun.com>
91416
91417         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
91418         to avoid collisions with libcurses and libreadline.
91419
91420         * m4/getstr.m4: Remove.
91421         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
91422
91423 2003-01-12  Paul Eggert  <eggert@twinsun.com>
91424
91425         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
91426         to avoid collisions with libcurses and libreadline.
91427
91428         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
91429         * lib/getstr.h, getstr.c: Remove.
91430         * lib/getline.c: Include "getline.h", to check interface.
91431         Move body of old getstr.c here: this defines MIN_CHUNK and
91432         declares getdelim2, which is renamed from getstr.
91433         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
91434
91435         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
91436         All uses changed.
91437         * lib/linebuffer.h: Likewise.
91438         (readline): Remove backward-compatibility macro.
91439
91440 2003-01-12  Paul Eggert  <eggert@twinsun.com>
91441
91442         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
91443         to avoid collisions with libcurses and libreadline.
91444         * getstr: Remove.
91445         * MODULES.html.sh: Remove getstr.
91446         * modules/getline: Depend on unlocked-io, not getstr.
91447
91448 2003-01-12  Jim Meyering  <jim@meyering.net>
91449
91450         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
91451
91452 2003-01-10  Bruno Haible  <bruno@clisp.org>
91453
91454         * modules/alloca: Change Makefile.am requirements. Simplify Include
91455         requirements. Add lib/alloca_.h to file list.
91456
91457 2003-01-10  Bruno Haible  <bruno@clisp.org>
91458
91459         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
91460
91461 2003-01-10  Bruno Haible  <bruno@clisp.org>
91462
91463         * lib/alloca_.h: New file.
91464         * lib/getdate.y: Unconditionally include alloca.h.
91465         * lib/makepath.c: Likewise.
91466         * lib/setenv.c: Likewise.
91467         * lib/userspec.c: Likewise.
91468
91469 2003-01-09  Karl Berry  <karl@gnu.org>
91470
91471         * MODULES.html.sh: include `dirname $0` in PATH, to find
91472         gnulib-tool.
91473
91474 2003-01-09  Bruno Haible  <bruno@clisp.org>
91475
91476         * modules/stdbool: Change configure.ac, Makefile.am requirements.
91477         Simplify Include requirements. Add lib/stdbool.h.in to file list.
91478
91479 2003-01-09  Bruno Haible  <bruno@clisp.org>
91480
91481         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
91482
91483 2003-01-09  Bruno Haible  <bruno@clisp.org>
91484
91485         * lib/stdbool.h.in: New file.
91486
91487 2003-01-09  Bruno Haible  <bruno@clisp.org>
91488
91489         * gnulib-tool (func_all_modules): Ignore files ending in ~.
91490         * MODULES.html.sh: Likewise.
91491
91492 2003-01-08  Jim Meyering  <jim@meyering.net>
91493
91494         * lib/full-write.c: Undefine and define-away `const' after inclusion
91495         of errno.h, not before.  Suggestion from Bruno Haible.
91496
91497 2003-01-08  Bruno Haible  <bruno@clisp.org>
91498
91499         * modules/full-read: Depend on full-write.
91500
91501 2003-01-08  Bruno Haible  <bruno@clisp.org>
91502
91503         * lib/safe-read.c: Include specification header first, to ensure its
91504         selfcontainedness.
91505         * lib/full-write.c: Likewise.
91506
91507 2003-01-07  Jim Meyering  <jim@meyering.net>
91508
91509         * lib/full-write.c: Rework so that it may serve to define full_read,
91510         too.
91511         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
91512
91513 2003-01-07  Bruno Haible  <bruno@clisp.org>
91514
91515         * lib/strtoimax.c: Include <stdint.h> as an alternative to
91516         <inttypes.h>.
91517         * lib/xstrtol.h: Likewise.
91518         * lib/xstrtoimax.c: Likewise.
91519         * lib/xstrtoumax.c: Likewise.
91520         * lib/human.h: Likewise.
91521
91522         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
91523         on systems that have <inttypes.h> but not <stdint.h>.
91524
91525 2003-01-07  Bruno Haible  <bruno@clisp.org>
91526
91527         * MODULES.html.sh: Add copyright notice.
91528         (missed_files): Omit CVS directory entries.
91529         (func_module): Make it work with sed-3.02.
91530         * MODULES.txt: Remove file.
91531
91532 2003-01-06  Jim Meyering  <jim@meyering.net>
91533
91534         * lib/version-etc.c: Update year in translatable copyright string.
91535
91536 2003-01-03  Karl Berry  <karl@gnu.org>
91537
91538         * config/config.{guess,sub}: update from prep.
91539
91540 2003-01-02  Karl Berry  <karl@gnu.org>
91541
91542         * doc/COPYING.DOC: belatedly updated to 1.2.
91543
91544 2003-01-01  Karl Berry  <karl@gnu.org>
91545
91546         * gnulib-tool (func_verify_module): report module name $module in
91547         error message, not $1.
91548         * gnulib-tool (create-testdir): don't complain if destdir couldn't
91549         be created, only if it doesn't exist.
91550         * gnulib-tool (last_checkin_date): don't expand the $Date here.
91551
91552 2002-12-31  Paul Eggert  <eggert@twinsun.com>
91553
91554         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
91555
91556 2002-12-31  Paul Eggert  <eggert@twinsun.com>
91557
91558         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
91559         memcmp if strcoll doesn't work.
91560
91561 2002-12-31  Bruno Haible  <bruno@clisp.org>
91562
91563         * lib/utime.c (utime_null): No need to call ftruncate if the file was
91564         nonempty.
91565
91566 2002-12-31  Bruno Haible  <bruno@clisp.org>
91567
91568         * lib/memcoll.c (STRCOLL): New macro.
91569         (memcoll): Use it.
91570
91571 2002-12-31  Bruno Haible  <bruno@clisp.org>
91572
91573         * lib/localcharset.h: New file.
91574         * lib/localcharset.c: Include it.
91575         * lib/unicodeio.c: Likewise.
91576
91577 2002-12-31  Bruno Haible  <bruno@clisp.org>
91578
91579         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
91580         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
91581
91582 2002-12-31  Bruno Haible  <bruno@clisp.org>
91583
91584         * lib/getline.h: Include <stddef.h>, for size_t.
91585
91586         * lib/unicodeio.h: Include <stddef.h>, for size_t.
91587         * lib/unicodeio.c: Don't include <stddef.h>.
91588
91589 2002-12-31  Bruno Haible  <bruno@clisp.org>
91590
91591         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
91592         HAVE_TM_ZONE.
91593
91594 2002-12-24  Karl Berry  <karl@gnu.org>
91595
91596         * config/config.guess: update from prep.
91597
91598 2002-12-24  Bruno Haible  <bruno@clisp.org>
91599
91600         General infrasructure.
91601         * m4/README: Rewritten.
91602         * m4/onceonly.m4: New file.
91603         * m4/onceonly_2_57.m4: New file.
91604
91605         Module atexit.
91606         * m4/atexit.m4: New file.
91607
91608         Module strtod.
91609         * m4/strtod.m4: New file.
91610
91611         Module strtol.
91612         * m4/strtol.m4: New file.
91613
91614         Module strtoul.
91615         * m4/strtoul.m4: New file.
91616
91617         Module memchr.
91618         * m4/memchr.m4: New file.
91619
91620         Module memcmp.
91621         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
91622         (jm_FUNC_MEMCMP): Invoke it.
91623
91624         Module memcpy.
91625         * m4/memcpy.m4: New file.
91626
91627         Module memmove.
91628         * m4/memmove.m4: New file.
91629
91630         Module memset.
91631         * m4/memset.m4: New file.
91632
91633         Module strcspn.
91634         * m4/strcspn.m4: New file.
91635
91636         Module strpbrk.
91637         * m4/strpbrk.m4: New file.
91638
91639         Module strstr.
91640         * m4/strstr.m4: New file.
91641
91642         Module strerror.
91643         * m4/strerror.m4: New file.
91644
91645         Module mktime.
91646         * m4/mktime.m4: Renamed from jm-mktime.m4.
91647         (gl_PREREQ_MKTIME): New macro.
91648         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
91649
91650         Module malloc.
91651         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
91652         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
91653         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
91654
91655         Module realloc.
91656         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
91657         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
91658         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
91659
91660         Module strftime.
91661         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
91662         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
91663         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
91664         gl_TM_GMTOFF.
91665         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
91666
91667         Module xalloc.
91668         * m4/xalloc.m4: New file.
91669
91670         Module alloca.
91671         * m4/alloca.m4: New file.
91672
91673         Module putenv.
91674         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
91675         (jm_FUNC_PUTENV): Invoke it.
91676
91677         Module setenv.
91678         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
91679         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
91680         when invoked twice.
91681         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
91682         gt_FUNC_SETENV.
91683
91684         Module memrchr.
91685         * m4/memrchr.m4: New file.
91686
91687         Module stpcpy.
91688         * m4/stpcpy.m4: New file.
91689
91690         Module strcase.
91691         * m4/strcase.m4: New file.
91692
91693         Module strdup.
91694         * m4/strdup.m4: New file.
91695
91696         Module strnlen.
91697         * m4/strnlen.m4: New file.
91698
91699         Module strndup.
91700         * m4/strndup.m4: New file.
91701
91702         Module xstrtod.
91703         * m4/xstrtod.m4: New file.
91704
91705         Module xstrtol.
91706         * m4/xstrtol.m4: New file.
91707
91708         Module getdate.
91709         * m4/getdate.m4: New file.
91710
91711         Module unlocked-io.
91712         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
91713         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
91714         * m4/jm-glibc-io.m4n: Remove file.
91715
91716         Module long-options.
91717         * m4/long-options.m4: New file.
91718
91719         Module md5.
91720         * m4/md5.m4: New file.
91721
91722         Module sha.
91723         * m4/sha.m4: New file.
91724
91725         Module getstr.
91726         * m4/getstr.m4: New file.
91727
91728         Module getline.
91729         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
91730         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
91731         <sys/types.h>, for size_t. Use the function name gnu_getline, not
91732         simply getline. Infoke gl_PREREQ_GETLINE.
91733
91734         Module obstack.
91735         * m4/obstack.m4: New file.
91736
91737         Module hash.
91738         * m4/hash.m4: New file.
91739
91740         Module readtokens.
91741         * m4/readtokens.m4: New file.
91742
91743         Module strverscmp.
91744         * m4/strverscmp.m4: New file.
91745
91746         Module stdbool.
91747         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
91748         OSF/1.
91749
91750         Module strtoll.
91751         * m4/strtoll.m4: New file.
91752
91753         Module strtoull.
91754         * m4/strtoull.m4: New file.
91755
91756         Module strtoimax.
91757         * m4/strtoimax.m4: New file.
91758
91759         Module strtoumax.
91760         * m4/strtoumax.m4: New file.
91761
91762         Module xstrtoimax.
91763         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
91764         jm_AC_PREREQ_XSTRTOIMAX.
91765         Moved the strtol prerequisites to strtol.m4.
91766         Moved the strtoll prerequisites to strtoll.m4.
91767         Moved the strtoimax prerequisites to strtoimax.m4.
91768
91769         Module xstrtoumax.
91770         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
91771         jm_AC_PREREQ_XSTRTOUMAX.
91772         Moved the strtoul prerequisites to strtoul.m4.
91773         Moved the strtoull prerequisites to strtoull.m4.
91774         Moved the strtoumax prerequisites to strtoumax.m4.
91775
91776         Module chown.
91777         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
91778         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
91779
91780         Module dup2.
91781         * m4/dup2.m4: New file.
91782
91783         Module ftruncate.
91784         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
91785         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
91786
91787         Module getgroups.
91788         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
91789         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
91790
91791         Module gettimeofday.
91792         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
91793         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
91794         gl_PREREQ_GETTIMEOFDAY.
91795
91796         Module mkdir.
91797         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
91798         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
91799
91800         Module mkstemp.
91801         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
91802         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
91803         jm_AC_TYPE_UINTMAX_T.
91804         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
91805
91806         Module stat.
91807         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
91808         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
91809
91810         Module lstat.
91811         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
91812         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
91813
91814         Module timespec.
91815         * m4/timespec.m4 (gl_TIMESPEC): New macro.
91816         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
91817         * m4/st_mtim.m4: Indentation.
91818
91819         Module nanosleep.
91820         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
91821         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
91822         gl_PREREQ_NANOSLEEP.
91823
91824         Module regex.
91825         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
91826         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
91827         (gl_REGEX): New macro.
91828
91829         Module rename.
91830         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
91831         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
91832
91833         Module rmdir.
91834         * m4/rmdir.m4: New file.
91835
91836         Module utime.
91837         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
91838         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
91839         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
91840
91841         Module dirname.
91842         * m4/dirname.m4: New file.
91843
91844         Module getopt.
91845         * m4/getopt.m4: New file.
91846
91847         Module unistd-safer.
91848         * m4/unistd-safer.m4: New file.
91849
91850         Module fnmatch.
91851         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
91852         declaration.
91853         (gl_PREREQ_FNMATCH_EXTRA): New macro.
91854         (gl_FUNC_FNMATCH_POSIX): New macro.
91855         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
91856         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
91857         simply fnmatch.
91858
91859         Module exclude.
91860         * m4/exclude.m4: New file.
91861
91862         Module human.
91863         * m4/human.m4: New file.
91864
91865         Module acl.
91866         * m4/acl.m4: Nop.
91867
91868         Module backupfile.
91869         * m4/backupfile.m4: New file.
91870         * m4/d-ino.m4: Indentation.
91871
91872         Module fsusage.
91873         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
91874         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
91875         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
91876
91877         Module dirfd.
91878         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
91879         requirements.
91880
91881         Module euidaccess.
91882         * m4/euidaccess.m4: New file.
91883
91884         Module file-type.
91885         * m4/file-type.m4: New file.
91886
91887         Module fileblocks.
91888         * m4/fileblocks.m4: New file.
91889
91890         Module filemode.
91891         * m4/filemode.m4: New file.
91892
91893         Module isdir.
91894         * m4/isdir.m4: New file.
91895
91896         Module lchown.
91897         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
91898         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
91899
91900         Module makepath.
91901         * m4/makepath.m4: New file.
91902
91903         Module modechange.
91904         * m4/modechange.m4: New file.
91905
91906         Module mountlist.
91907         * m4/mountlist.m4: New file.
91908         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
91909         Indentation.
91910
91911         Module path-concat.
91912         * m4/path-concat.m4: New file.
91913
91914         Module pathmax.
91915         * m4/pathmax.m4: New file.
91916
91917         Module same.
91918         * m4/same.m4: New file.
91919
91920         Module save-cwd.
91921         * m4/save-cwd.m4: New file.
91922
91923         Module savedir.
91924         * m4/savedir.m4: New file.
91925
91926         Module xgetcwd.
91927         * m4/xgetcwd.m4: New file.
91928         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
91929
91930         Module xreadlink.
91931         * m4/xreadlink.m4: New file.
91932
91933         Module safe-read.
91934         * m4/safe-read.m4: New file.
91935
91936         Module safe-write.
91937         * m4/safe-write.m4: New file.
91938
91939         Module closeout.
91940         * m4/closeout.m4: New file.
91941
91942         Module stdio-safer.
91943         * m4/stdio-safer.m4: New file.
91944
91945         Module getpass.
91946         * m4/getpass.m4: New file.
91947
91948         Module getugroups.
91949         * m4/getugroups.m4: New file.
91950
91951         Module group-member.
91952         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
91953         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
91954
91955         Module idcache.
91956         * m4/idcache.m4: New file.
91957
91958         Module userspec.
91959         * m4/userspec.m4: New file.
91960
91961         Module gettime.
91962         * m4/clock_time.m4: New file.
91963         * m4/gettime.m4: New file.
91964
91965         Module settime.
91966         * m4/settime.m4: New file.
91967
91968         Module posixtm.
91969         * m4/posixtm.m4: New file.
91970
91971         Module gethostname.
91972         * m4/gethostname.m4: New file.
91973
91974         Module canon-host.
91975         * m4/canon-host.m4: New file.
91976
91977         Module gettext.
91978         * m4/codeset.m4: New file, from gettext-0.11.5.
91979         * m4/gettext.m4: New file, from gettext-0.11.5.
91980         * m4/glibc21.m4: New file, from gettext-0.11.5.
91981         * m4/iconv.m4: New file, from gettext-0.11.5.
91982         * m4/intdiv0.m4: New file, from gettext-0.11.5.
91983         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
91984         * m4/inttypes.m4: New file, from gettext-0.11.5.
91985         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
91986         * m4/isc-posix.m4: New file, from gettext-0.11.5.
91987         * m4/lcmessage.m4: New file, from gettext-0.11.5.
91988         * m4/lib-ld.m4: New file, from gettext-0.11.5.
91989         * m4/lib-link.m4: New file, from gettext-0.11.5.
91990         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
91991         * m4/progtest.m4: New file, from gettext-0.11.5.
91992         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
91993         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
91994         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
91995
91996         Module localcharset.
91997         * m4/localcharset.m4: New file.
91998
91999         Module hard-locale.
92000         * m4/hard-locale.m4: New file.
92001
92002         Module mbswidth.
92003         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
92004         onceonly macros.
92005         * m4/mbrtowc.m4: Add comment.
92006
92007         Module memcasecmp.
92008         * m4/memcasecmp.m4: New file.
92009
92010         Module memcoll.
92011         * m4/memcoll.m4: New file.
92012
92013         Module unicodeio.
92014         * m4/unicodeio.m4: New file.
92015
92016         Module rpmatch.
92017         * m4/rpmatch.m4: New file.
92018
92019         Module yesno.
92020         * m4/yesno.m4: New file.
92021
92022         Module exitfail.
92023         * m4/exitfail.m4: New file.
92024
92025         Module c-stack.
92026         * m4/c-stack.m4 (gl_C_STACK): New macro.
92027         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
92028
92029         Module error.
92030         * m4/error.m4 (gl_ERROR): New macro.
92031         (jm_PREREQ_ERROR): Use onceonly macros.
92032
92033         Module fatal.
92034         * m4/fatal.m4: New file.
92035
92036         Module getloadavg.
92037         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
92038         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
92039
92040         Module getpagesize.
92041         * m4/getpagesize.m4: New file.
92042
92043         Module getusershell.
92044         * m4/getusershell.m4: New file.
92045
92046         Module physmem.
92047         * m4/physmem.m4: New file.
92048
92049         Module posixver.
92050         * m4/posixver.m4: New file.
92051
92052         Module quotearg.
92053         * m4/quotearg.m4: New file.
92054
92055         Module quote.
92056         * m4/quote.m4: New file.
92057
92058         Module readutmp.
92059         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
92060
92061         Module sig2str.
92062         * m4/sig2str.m4: New file.
92063
92064         Other.
92065         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
92066         ulonglong.m4.
92067         * m4/intmax_t.m4: New file.
92068         * m4/d-type.m4: Indentation.
92069         * m4/jm-macros.m4: Update.
92070         * m4/prereq.m4 (jm_PREREQ): Update.
92071         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
92072         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
92073         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
92074         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
92075         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
92076         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
92077         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
92078         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
92079         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
92080         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
92081         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
92082         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
92083         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
92084         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
92085         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
92086         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
92087         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
92088         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
92089         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
92090
92091 2002-12-24  Bruno Haible  <bruno@clisp.org>
92092
92093         * MODULES.txt: Update according to m4/ changes.
92094
92095         Module gettext.
92096         * config.rpath: New file, from gettext-0.11.5.
92097
92098         * modules/*: New module descriptions.
92099         * gnulib-tool: New file.
92100         * MODULES.html.sh: New file.
92101
92102 2002-12-21  Karl Berry  <karl@gnu.org>
92103
92104         * doc/fdl.texi: update to version 1.2.
92105
92106 2002-12-19  Karl Berry  <karl@gnu.org>
92107
92108         * config/config.guess: update from prep.
92109
92110 2002-12-18  Bruno Haible  <bruno@clisp.org>
92111
92112         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
92113         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
92114
92115 2002-12-17  Bruno Haible  <bruno@clisp.org>
92116
92117         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
92118         stdlib.h, string.h.
92119
92120 2002-12-17  Bruno Haible  <bruno@clisp.org>
92121
92122         * lib/canon-host.c (strdup): Remove unused declaration.
92123
92124         * lib/fsusage.c: Include full_read.h.
92125         (get_fs_usage): Use full_read instead of safe_read.
92126
92127         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
92128
92129 2002-12-12  Karl Berry  <karl@gnu.org>
92130
92131         * config/config.guess: update from prep.
92132
92133 2002-12-11  Bruno Haible  <bruno@clisp.org>
92134
92135         * m4/setenv.m4: New file, from gettext-0.11.5.
92136
92137 2002-12-11  Bruno Haible  <bruno@clisp.org>
92138
92139         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
92140         not unsetenv().
92141         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
92142         modifications:
92143
92144         2002-12-11  Bruno Haible  <bruno@clisp.org>
92145
92146                 * setenv.c (alloca): Fall back to malloc.
92147                 (freea): New macro.
92148                 (setenv): Use freea() to free memory allocated with alloca().
92149
92150         2002-11-13  Bruno Haible  <bruno@clisp.org>
92151
92152                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
92153                 function declarations.
92154                 * unsetenv.c (unsetenv): Likewise.
92155
92156         2002-03-04  Bruno Haible  <bruno@clisp.org>
92157
92158                 Portability to AIX 4.3.3.
92159                 * unsetenv.c: New file, extracted from setenv.c.
92160                 * setenv.c: Move the unsetenv() function to unsetenv.c.
92161
92162         2001-12-20  Bruno Haible  <bruno@clisp.org>
92163
92164                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
92165                 use malloc instead. For SunOS 4.
92166
92167         2001-12-11  Bruno Haible  <bruno@clisp.org>
92168
92169                 * setenv.c: Declare alloca.
92170                 (compar_fn_t): New typedef.
92171                 (KNOWN_VALUE, STORE_VALUE): Use it.
92172
92173         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
92174         setenv.h.
92175
92176 2002-12-10  Paul Eggert  <eggert@twinsun.com>
92177
92178         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
92179         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
92180         Choose values that are less likely to collide with system fnmatch
92181         options.
92182         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
92183         defined (e.g., a pure POSIX system).
92184         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
92185         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
92186
92187 2002-12-06  Paul Eggert  <eggert@twinsun.com>
92188
92189         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
92190         a pain in practice to deal with generated m4 files.  This change
92191         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
92192
92193         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
92194         and jm-glibc-io.m4, as they are no longer a special case.
92195         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
92196         kludge and the auto-generation stuff.  Check only whether the
92197         functions are declared, not whether they exist, since older hosts
92198         that don't declare the functions can't use the optimization anyway.
92199
92200 2002-12-06  Jim Meyering  <jim@meyering.net>
92201
92202         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
92203
92204         Merge in changes from libc's misc/error.c, in preparation
92205         for the merge of gnulib's changes back into libc.
92206
92207         * lib/error.c (_): Define only if not already defined.
92208         Move definition to follow all #include directives.
92209         Include unlocked-io.h only if !_LIBC.
92210         [_LIBC]: Include <libio/libioP.h>.
92211         [USE_IN_LIBIO]: Include <libio/iolibio.h>
92212         (fflush): Tweak definition to use INTUSE.
92213         (putc): Define.
92214
92215 2002-12-05  Paul Eggert  <eggert@twinsun.com>
92216
92217         * lib/alloca.c [defined emacs]: Include "lisp.h".
92218         (xalloc_die) [defined emacs]: New macro.
92219         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
92220         [! defined emacs]: Include <xalloc.h>.
92221         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
92222         (pointer): Typedef to POINTER_TYPE *.
92223         (malloc): Remove decl; we now always use xmalloc.
92224         (alloca): Use old-style definition, since Emacs needs this.
92225         Check for arithmetic overflow when computing combined size.
92226
92227 2002-12-04  Paul Eggert  <eggert@twinsun.com>
92228
92229         Do not generate unlocked-io.h automatically, since it's easier to
92230         maintain it by hand.
92231
92232         * lib/unlocked-io.h: New file, from GNU diffutils,
92233         but with proper copyright notice and attribution.
92234         * lib/gen-uio: Remove.
92235         * lib/Makefile.am: Add copyright notice.
92236         (libfetish_a_SOURCES): Add unlocked-io.h.
92237         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
92238         (DISTCLEANFILES, io_functions): Remove macros.
92239         (EXTRA_DIST): Remove gen_uio.
92240         (unlocked-io.h): Remove rule.
92241
92242 2002-12-04  Jim Meyering  <jim@meyering.net>
92243
92244         Reflect the fact that stat.c and lstat.c are no longer generated.
92245         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
92246         (DISTCLEANFILES): Likewise.
92247         (EXTRA_DIST): Likewise.
92248         (all_local): Don't depend on stat.c or lstat.c.
92249         (stat.c, lstat.c): Remove rules.
92250         (EXTRA_DIST): Remove xstat.in.
92251
92252         * lib/xstat.in: Remove file.  Contents moved into stat.c.
92253         * lib/stat.c: New file.  Contents mostly from xstat.in.
92254         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
92255         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
92256
92257         * lib/safe-read.c: Rework so that it may serve to define safe_write,
92258         too.
92259         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
92260
92261 2002-12-03  Jim Meyering  <jim@meyering.net>
92262
92263         * lib/safe-read.c, safe-write.c: Change variable names and comments,
92264         but not semantics, to minimize the differences between these two files.
92265         (safe_read): Change comment to mention SAFE_READ_ERROR.
92266
92267         * lib/safe-read.c (IS_EINTR): Define.
92268         (safe_read): Use IS_EINTR in place of in-function cpp directives.
92269
92270 2002-12-02  Jim Meyering  <jim@meyering.net>
92271
92272         * lib/safe-read.c (EINTR): Define.
92273         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
92274         (INT_MAX): Provide fallback.
92275         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
92276
92277         * lib/safe-read.h (SAFE_READ_ERROR): Define.
92278
92279 2002-12-02  Bruno Haible  <bruno@clisp.org>
92280
92281         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
92282         Define, taken from safe-read.c.
92283         (INT_MAX): Provide fallback.
92284         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
92285         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
92286
92287         * lib/safe-read.c (EINTR): Remove definition.
92288         (safe_read): Don't use EINTR if it is absent.
92289
92290 2002-12-01  Jim Meyering  <jim@meyering.net>
92291
92292         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
92293         zero.
92294         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
92295
92296 2002-11-27  Paul Eggert  <eggert@twinsun.com>
92297
92298         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
92299         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
92300         with `if (! (value < limit)) abort ();', for readability.
92301
92302 2002-11-26  Karl Berry  <karl@gnu.org>
92303
92304         * lib/strdup.c: copy from libc again, with jim's ok.
92305         * lib/.cppi-disable: re-add strdup.c
92306
92307 2002-11-25  Karl Berry  <karl@gnu.org>
92308
92309         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
92310         instead of "strtol.c".
92311
92312 2002-11-25  Karl Berry  <karl@gnu.org>
92313
92314         * config/install-sh: update from automake for variable quoting, $0 in
92315         error msgs, etc.
92316
92317         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
92318         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
92319         entry.
92320
92321 2002-11-25  Jim Meyering  <jim@meyering.net>
92322
92323         * lib/mktime.c: Sync from libc, now that it has the latest fix.
92324
92325 2002-11-24  Karl Berry  <karl@gnu.org>
92326
92327         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
92328         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
92329
92330 2002-11-24  Jim Meyering  <jim@meyering.net>
92331
92332         Update from coreutils:
92333
92334         * lib/mktime.c: Merge in changes from libc.
92335
92336         Avoid a link-time failure on some Linux systems.
92337         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
92338         (otherwise).
92339         (__mon_yday): Declare with the STATIC attribute.
92340         (__mktime_internal): Likewise.
92341         Based on a report from Greg Schafer.
92342
92343 2002-11-23  Jim Meyering  <jim@meyering.net>
92344
92345         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
92346         Use `unsigned', not `int', as type of index.
92347
92348         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
92349
92350         * lib/fsusage.c: Remove unneeded parentheses around operands of
92351         `defined'.
92352
92353 2002-11-22  Paul Eggert  <eggert@twinsun.com>
92354
92355         * lib/quotearg.h: Allow multiple inclusion by surrounding with
92356         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
92357         so that we can be included first.
92358         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
92359         * lib/quotearg.c: Include quotearg.h immediately after config.h.
92360         No need to include stddef.h or sys/types.h any more.
92361         Surround local include files with "", not "<>".
92362         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
92363         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
92364         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
92365         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
92366         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
92367         (ISPRINT): Remove; no longer needed now that we assume C89.
92368
92369         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
92370         Preserve errno.
92371
92372         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
92373         quotearg_char): Use SIZE_MAX rather than
92374         (size_t) -1 when we are talking about "infinity".
92375
92376         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
92377
92378 2002-11-22  Paul Eggert  <eggert@twinsun.com>
92379
92380         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
92381         hint that one should use `if (! x) abort ();' rather than `assert
92382         (x);', and anyway it's one less thing to worry about configuring.
92383         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
92384         hash_rehash, hash_insert): Use abort rather than assert.
92385
92386 2002-11-22  Bruno Haible  <bruno@clisp.org>
92387
92388         * lib/safe-read.h: Assume C89. Add comments.
92389         (safe_read): Change return type to size_t.
92390         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
92391         byte counts > SSIZE_MAX correctly.
92392         * lib/safe-write.h: New file.
92393         * lib/safe-write.c: New file.
92394         * lib/full-read.h: New file.
92395         * lib/full-read.c: New file.
92396         * lib/full-write.h: Assume C89. Add comments.
92397         * lib/full-write.c: Include safe-write.h.
92398         (full_write): Rewritten to use safe_write.
92399         Suggested by Jim Meyering and Paul Eggert.
92400
92401 2002-11-21  Jim Meyering  <jim@meyering.net>
92402
92403         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
92404
92405         Merge in changes from the coreutils.
92406
92407         2002-09-25  Paul Eggert  <eggert@twinsun.com>
92408         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
92409         <stdint.h>.
92410         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
92411         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
92412         int.  Work more efficiently if X is the same width as uintmax_t.
92413         Do not compare X to -1, to avoid bogus compiler warning.
92414         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
92415         Don't assume that f_frsize and f_bsize are the same type.
92416
92417         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
92418         warning on FreeBSD.
92419
92420         * lib/makepath.c (make_path): Restore umask *before* creating the final
92421         component.
92422         (make_path): Minor reformatting.
92423
92424         * lib/xmalloc.c: Adjust to work with new autoconf macros,
92425         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
92426         HAVE_MALLOC/HAVE_REALLOC.
92427
92428         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
92429         dummy ones.  At least on GNU/Linux systems, `auto' means something
92430         else.
92431         From Michael Stone.
92432
92433 2002-11-21  Bruno Haible  <bruno@clisp.org>
92434
92435         Remove case insensitive option matching.
92436         * lib/argmatch.h (argcasematch): Remove declaration.
92437         (ARGCASEMATCH): Remove macro.
92438         (__xargmatch_internal): Remove case_sensitive argument.
92439         (XARGMATCH): Update.
92440         (XARGCASEMATCH): Remove macro.
92441         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
92442         case_sensitive argument.
92443         (argcasematch): Remove function.
92444         (__xargmatch_internal): Remove case_sensitive argument.
92445         (main): Use XARGMATCH instead of XARGCASEMATCH.
92446
92447         * lib/xmalloc.c: Change compile-time error message. Add comment about
92448         required autoconf version.
92449
92450 2002-11-20  Paul Eggert  <eggert@twinsun.com>
92451
92452         Merge argmatch cleanups from Bison.  Assume C89.
92453
92454         * lib/argmatch.c: Include config.h here, not in argmatch.h.
92455         Include stdlib.h, for EXIT_FAILURE.
92456         Always include <string.h>, since we assume C89.
92457         (EXIT_FAILURE): Remove pre-C89 bug workaround.
92458         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
92459         Include <stddef.h> instead, since it's all we need for size_t.
92460         (PARAMS): Remove.  All uses removed.
92461         (ARRAY_CARDINALITY): Do not bother to #undef.
92462         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
92463         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
92464         Remove unnecessary parentheses.
92465         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
92466         Insert necessary parentheses.
92467         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
92468         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
92469
92470 2002-11-19  Bruno Haible  <bruno@clisp.org>
92471
92472         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
92473         * lib/mbswidth.h: Include <stddef.h>, for size_t.
92474
92475         * lib/mbswidth.h (PARAMS): Remove macro.
92476         (mbswidth, mbsnwidth): Use ANSI C function declarations.
92477         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
92478
92479         * lib/gcd.h (PARAMS): Remove macro.
92480         (gcd): Use ANSI C function declarations.
92481         * lib/gcd.c (gcd): Likewise.
92482
92483 2002-11-15  Bruno Haible  <bruno@clisp.org>
92484
92485         * lib/strcspn.c: Include <stddef.h>.
92486         (strcspn): Use ANSI C function declaration. Change return type to
92487         size_t. Use NULL.
92488         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
92489         (strpbrk): Use NULL.
92490         * lib/strpbrk.h (PARAMS): Remove macro.
92491         (strpbrk): Use ANSI C function declaration.
92492         * lib/strstr.c: Don't include <sys/types.h>.
92493         * lib/strstr.h (PARAMS): Remove macro.
92494         (strstr): Use ANSI C function declarations.
92495
92496 2002-11-14  Karl Berry  <karl@gnu.org>
92497
92498         * config/mkinstalldirs: `do' on separate line, instead of
92499         `for var; do'.
92500
92501 2002-11-06  Bruno Haible  <bruno@clisp.org>
92502
92503         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
92504         * lib/gcd.c (gcd): Likewise.
92505
92506 2002-11-05  Bruno Haible  <bruno@clisp.org>
92507
92508         * lib/gcd.h: New file, from gettext-0.11.5.
92509         * lib/gcd.c: New file, from gettext-0.11.5.
92510
92511 2002-11-05  Bruno Haible  <bruno@clisp.org>
92512
92513         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
92514         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
92515         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
92516         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
92517
92518         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
92519         <libintl.h>.
92520         * lib/makepath.c: Include gettext.h instead of <locale.h> and
92521         <libintl.h>.
92522
92523         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
92524         * lib/human.c: Include gettext.h instead of <libintl.h>.
92525         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
92526         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
92527         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
92528         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
92529         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
92530         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
92531         (textdomain): Remove definition.
92532         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
92533
92534         * lib/long-options.c: Remove include of <libintl.h> and definition of
92535         _.
92536         * lib/same.c: Remove include of <libintl.h> and definition of _.
92537
92538 2002-11-04  Owen Taylor  <otaylor@redhat.com>
92539
92540         * lib/config.charset: A few additions for Solaris.
92541
92542 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
92543
92544         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
92545         * lib/localcharset.c (locale_charset): Declare as extern "C".
92546
92547 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
92548
92549         * lib/config.charset: msdos in uk_UA uses CP1125.
92550
92551 2002-11-04  Bruno Haible  <bruno@clisp.org>
92552
92553         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
92554         * lib/strcase.h: New file, from GNU gettext-0.11.5.
92555         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
92556         * lib/strstr.h: New file, from GNU gettext-0.11.5.
92557         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
92558
92559 2002-11-04  Bruno Haible  <bruno@clisp.org>
92560
92561         * lib/localcharset.c (locale_charset): Don't return an empty string.
92562
92563 2002-11-04  Bruno Haible  <bruno@clisp.org>
92564
92565         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
92566         aliases.
92567
92568 2002-11-04  Bruno Haible  <bruno@clisp.org>
92569
92570         * lib/config.charset: Update for newest glibc. Add canonical names
92571         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
92572
92573 2002-11-04  Bruno Haible  <bruno@clisp.org>
92574
92575         * lib/config.charset: Add support for NetBSD.
92576
92577 2002-11-04  Bruno Haible  <bruno@clisp.org>
92578
92579         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
92580
92581 2002-11-01  Bruno Haible  <bruno@clisp.org>
92582
92583         * configure.in: Add AC_CONFIG_AUX_DIR call.
92584         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
92585         test/Makefile.
92586         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
92587
92588 2002-09-28  Karl Berry  <karl@gnu.org>
92589
92590         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
92591         installed automake until the next release, since changes have been
92592         made.
92593
92594 2002-09-25  Karl Berry  <karl@gnu.org>
92595
92596         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
92597         * lib/getopt*: copy from libc/posix.
92598         * lib/gettext.h: copy from gettext.
92599         * lib/.cppi-disable: add strdup.c, gettext.h.
92600
92601 2002-09-25  Karl Berry  <karl@gnu.org>
92602
92603         * config/srclist.txt: enable gettext.h check.
92604         * config/config.{guess,sub}: update from prep.
92605         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
92606                 from automake 1.6.3.
92607         See srclist*.
92608
92609 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
92610
92611         * regex.c (PATFETCH): Remove the translating fetch.
92612         (PATFETCH_RAW): Rename to PATFETCH.
92613         (set_image_of_range): New fun.
92614         (SET_RANGE_TABLE_WORK_AREA): Use it.
92615         (regex_compile): Don't translate the pattern chars so eagerly.
92616         Only do it when inserting an `exactn' bytecode or when handling
92617         a char-range.
92618         (mutually_exclusive_p): Avoid empty statement.
92619
92620 2002-07-06  Jim Meyering  <meyering@lucent.com>
92621
92622         * m4/README: Don't mention Makefile.am.in.
92623         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
92624
92625 2002-07-01  Jim Meyering  <meyering@lucent.com>
92626
92627         * lib/c-stack.c: Include sys/time.h.
92628         From Volker Borchert.
92629
92630 2002-06-26  Paul Eggert  <eggert@twinsun.com>
92631
92632         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
92633
92634 2002-06-26  Paul Eggert  <eggert@twinsun.com>
92635
92636         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
92637         New macro.  Use it uniformly instead of
92638         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
92639         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
92640         reported by Vin Shelton.
92641
92642 2002-06-22  Paul Eggert  <eggert@twinsun.com>
92643
92644         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
92645         Do not assume SA_SIGINFO behavior.
92646         Bug reported by Jim Meyering on NetBSD 1.5.2.
92647
92648 2002-06-22  Jim Meyering  <meyering@lucent.com>
92649
92650         * m4/c-stack.m4: New file, from diffutils-2.8.2.
92651         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
92652
92653         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
92654         now that configure.ac uses AC_GNU_SOURCE.
92655         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
92656         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
92657
92658         Update to latest tools.  Suggestions from Paul Eggert.
92659         * m4/stdbool.m4: New file, from diffutils-2.8.2.
92660         * m4/gnu-source.m4: Update from diffutils-2.8.2.
92661         * m4/fnmatch.m4: Likewise.
92662         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
92663         to AC_HEADER_STDBOOL
92664
92665 2002-06-22  Jim Meyering  <meyering@lucent.com>
92666
92667         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
92668         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
92669
92670 2002-06-22  Jim Meyering  <meyering@lucent.com>
92671
92672         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
92673
92674         * lib/exitfail.c, exitfail.h: Likewise.
92675         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
92676
92677         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
92678         of fnmatch.h.
92679         (EXTRA_DIST): Add fnmatch_loop.c.
92680         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
92681
92682         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
92683         * lib/fnmatch.c: Update from diffutils-2.8.2.
92684         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
92685         * lib/fnmatch.h: Remove file.
92686
92687 2002-06-21  Jim Meyering  <meyering@lucent.com>
92688
92689         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
92690         * m4/mbrtowc.m4: Likewise.
92691
92692         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
92693         * m4/mbswidth.m4: Reflect name change:
92694         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
92695         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
92696
92697         * m4/lib-link.m4: Update from gettext-0.11.2.
92698         * m4/gettext.m4: Likewise.
92699
92700         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
92701         From Alfred M. Szmidt.
92702
92703 2002-06-18  Paul Eggert  <eggert@twinsun.com>
92704
92705         * lib/file-type.h: Report an error if neither S_ISREG nor
92706         S_IFREG is defined, instead of using a test specific to glibc
92707         2.2.  This should be safe, since POSIX requires S_ISREG and
92708         Unix Version 7 had S_IFREG.  We don't need to check for
92709         <sys/types.h> since we don't use any symbols that it defines.
92710
92711 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
92712
92713         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
92714         $@-t, so that each temporary file name is unique and valid in the first
92715         8 characters, for operation under DOS.
92716
92717 2002-06-15  Paul Eggert  <eggert@twinsun.com>
92718
92719         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
92720
92721 2002-06-15  Jim Meyering  <meyering@lucent.com>
92722
92723         Work even with DJGPP 2.03, which lacks support for symlinks.
92724         From Richard Dawe.
92725         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
92726         is defined.
92727         * lib/lchown.c (S_ISLNK): Likewise.
92728
92729 2002-06-15  Jim Meyering  <meyering@lucent.com>
92730
92731         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
92732         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
92733         have been included before this file.
92734
92735 2002-06-14  Jim Meyering  <meyering@lucent.com>
92736
92737         * lib/file-type.h: Use the version from diffutils-2.8.2.
92738         * lib/file-type.c: Likewise.
92739
92740 2002-06-07  Jim Meyering  <meyering@lucent.com>
92741
92742         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
92743         They're needed at least for NetBSD 1.5.2.
92744         ($statxfs_includes): Include those same headers.
92745         ($statxfs_includes): Include sys/vfs.h if available.
92746         ($statxfs_includes): Likewise for sys/statvfs.h.
92747         Check for the following members in both structs statfs and statvfs:
92748         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
92749
92750 2002-06-01  Jim Meyering  <meyering@lucent.com>
92751
92752         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
92753         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
92754
92755 2002-05-28  Jim Meyering  <meyering@lucent.com>
92756
92757         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
92758         Reported by Volker Borchert.
92759
92760 2002-05-27  Jim Meyering  <meyering@lucent.com>
92761
92762         Fix a problem seen only on nonconforming systems whereby ls.c's
92763         use of localtime, and then of gettimeofday would cause trouble:
92764         the localtime call used to initialize rpl_gettimeofday's save
92765         mechanism would clobber ls's current local time information so
92766         that in any long listing the first file would always be listed
92767         with date 1970-01-01.  Analysis by Volker Borchert.
92768
92769         * lib/gettimeofday.c (localtime): Undefine.
92770         (rpl_localtime): New function.
92771
92772 2002-05-27  Jim Meyering  <meyering@lucent.com>
92773
92774         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
92775         localtime.
92776
92777         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
92778         use the replacement function; it wouldn't resolve at link time.
92779         Reported by Volker Borchert.
92780
92781 2002-05-22  Jim Meyering  <meyering@lucent.com>
92782
92783         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
92784         file-type.h.
92785         * lib/file-type.h: New file.
92786         * lib/file-type.c (file_type): New file/function.  Extracted from
92787         diffutils.
92788
92789 2002-04-30  Jim Meyering  <meyering@lucent.com>
92790
92791         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
92792
92793 2002-04-29  Paul Eggert  <eggert@twinsun.com>
92794
92795         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
92796
92797 2002-04-29  Paul Eggert  <eggert@twinsun.com>
92798
92799         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
92800         Do not check for alloca.h (no longer used) or stdbool.h (was never
92801         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
92802
92803 2002-04-29  Paul Eggert  <eggert@twinsun.com>
92804
92805         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
92806
92807 2002-04-29  Jim Meyering  <meyering@lucent.com>
92808
92809         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
92810         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
92811         Use AC_FUNC_STRNLEN here instead.
92812
92813         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
92814         With autoconf-2.53a, it's part of AC_PROG_CC.
92815
92816 2002-04-28  Paul Eggert  <eggert@twinsun.com>
92817
92818         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
92819         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
92820
92821 2002-04-28  Paul Eggert  <eggert@twinsun.com>
92822
92823         * lib/sig2str.h, lib/sig2str.c: New files.
92824         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
92825
92826 2002-04-28  Paul Eggert  <eggert@twinsun.com>
92827
92828         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
92829         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
92830         of 127, since 64 is the largest conceivable number for ancient
92831         nonstandard hosts.
92832         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
92833
92834 2002-04-28  Jim Meyering  <meyering@lucent.com>
92835
92836         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
92837
92838 2002-04-24  Jim Meyering  <meyering@lucent.com>
92839
92840         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
92841         (jm_PREREQ): Use it.
92842
92843         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
92844         mach/mach.h fcntl.h.
92845         Check for this function: setlocale.
92846
92847 2002-04-24  Jim Meyering  <meyering@lucent.com>
92848
92849         * lib/gettext.h: New file, from Gettext.
92850         * lib/Makefile.am (INCLUDES): Remove -I../intl.
92851         (libfetish_a_SOURCES): Add gettext.h.
92852
92853 2002-04-16  Jim Meyering  <meyering@lucent.com>
92854
92855         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
92856         ut_pid, ut_id, ut_exit.
92857
92858 2002-04-16  Jim Meyering  <meyering@lucent.com>
92859
92860         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
92861         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
92862         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
92863
92864 2002-04-12  Jim Meyering  <meyering@lucent.com>
92865
92866         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
92867         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
92868         existence of the getmntinfo function.  Needed for Darwin 5.3.
92869
92870         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
92871         This is necessary at least on Darwin 5.3.
92872
92873         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
92874         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
92875         strnlen.o in the library, and that makes some versions of ranlib
92876         object.
92877
92878 2002-04-12  Jim Meyering  <meyering@lucent.com>
92879
92880         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
92881
92882 2002-04-09  Jim Meyering  <meyering@lucent.com>
92883
92884         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
92885         to be more precise.  Rather than saying we're checking whether the
92886         function `works', say what we're testing.
92887         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
92888         Reported by Bruno Haible.
92889
92890 2002-03-10  Jim Meyering  <meyering@lucent.com>
92891
92892         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
92893         Suggestion from Santiago Vila.
92894
92895 2002-03-08  Jim Meyering  <meyering@lucent.com>
92896
92897         * lib/rename.c: Mention that this wrapper is needed also on
92898         mips-dec-ultrix4.4 systems.
92899
92900 2002-03-02  Jim Meyering  <meyering@lucent.com>
92901
92902         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
92903         not HAVE_CLOCK_SETTIME.
92904
92905 2002-02-27  Paul Eggert  <eggert@twinsun.com>
92906
92907         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
92908         Check for clock_settime.
92909
92910 2002-02-27  Paul Eggert  <eggert@twinsun.com>
92911
92912         * lib/nanosleep.h: Rename to....
92913         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
92914
92915         * lib/gettime.c: New file.
92916         * lib/settime.c: New file.
92917         * lib/stime.c: Remove.
92918
92919         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
92920         timespec.h.  Remove nanosleep.h.
92921
92922 2002-02-25  Paul Eggert  <eggert@twinsun.com>
92923
92924         * m4/acl.m4: New file.
92925         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
92926         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
92927
92928 2002-02-25  Paul Eggert  <eggert@twinsun.com>
92929
92930         * lib/acl.c, lib/acl.h: New files.
92931         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
92932
92933 2002-02-24  Jim Meyering  <meyering@lucent.com>
92934
92935         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
92936         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
92937         cause trouble.  Reported by Nelson Beebe.
92938
92939 2002-02-23  Paul Eggert  <eggert@twinsun.com>
92940
92941         * lib/path-concat.c (xpath_concat): Reorder code to pacify
92942         compilers that don't know that xalloc_die never returns.
92943
92944 2002-02-20  Jim Meyering  <meyering@lucent.com>
92945
92946         * lib/getdate.c: Regenerate using bison-1.33.
92947
92948 2002-02-17  Jim Meyering  <meyering@lucent.com>
92949
92950         * config/config.guess (main): Don't use `head -1'; it's no longer
92951         portable. Use `sed 1q' instead.
92952
92953 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
92954
92955         * m4/codeset.m4: Upgrade to gettext-0.11.
92956         * m4/gettext.m4: Upgrade to gettext-0.11.
92957         * m4/glibc21.m4: Upgrade to gettext-0.11.
92958         * m4/iconv.m4: Upgrade to gettext-0.11.
92959         * m4/isc-posix.m4: Upgrade to gettext-0.11.
92960         * m4/lcmessage.m4: Upgrade to gettext-0.11.
92961         * m4/lib-ld.m4: New file, from gettext-0.11.
92962         * m4/lib-link.m4: New file, from gettext-0.11.
92963         * m4/lib-prefix.m4: New file, from gettext-0.11.
92964         * m4/progtest.m4: Upgrade to gettext-0.11.
92965
92966 2002-02-15  Paul Eggert  <eggert@twinsun.com>
92967
92968         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
92969         (jm_PREREQ): Use it.
92970
92971 2002-02-15  Paul Eggert  <eggert@twinsun.com>
92972
92973         * lib/posixver.c, lib/posixver.h: New files.
92974         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
92975
92976 2002-02-02  Paul Eggert  <eggert@twinsun.com>
92977             Bruno Haible  <bruno@clisp.org>
92978
92979         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
92980         (fwrite_success_callback): New declaration.
92981         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
92982         print_unicode_char. Call failure callback instead of error.
92983         (fwrite_success_callback): New function.
92984         (exit_failure_callback): New function.
92985         (fallback_failure_callback): New function.
92986         (print_unicode_char): Call unicode_to_mb.
92987
92988 2002-01-26  Jim Meyering  <meyering@lucent.com>
92989
92990         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
92991         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
92992
92993 2002-01-26  Jim Meyering  <meyering@lucent.com>
92994
92995         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
92996
92997 2002-01-22  Paul Eggert  <eggert@twinsun.com>
92998
92999         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
93000
93001 2002-01-22  Jim Meyering  <meyering@lucent.com>
93002
93003         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
93004         Otherwise, some versions of automake would omit the rule that makes
93005         Makefile from Makefile.in.
93006
93007 2002-01-21  Paul Eggert  <eggert@twinsun.com>
93008
93009         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
93010         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
93011         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
93012         (memcoll): Set errno to zero if there is no error.
93013
93014         * lib/quotearg.c (quotearg_buffer_restyled):
93015         Fix bug with quoting buffers containing NUL when backslashing escapes.
93016         This bug was exposed by the other changes in this patch.
93017         (quotearg_n_options): New arg ARGSIZE.
93018         All callers changed.
93019         (quoting_options_from_style): New function.
93020         (quotearg_n_style): Use it.
93021         (quotearg_n_style_mem): New function.
93022
93023         * lib/quotearg.h (quotearg_n_style_mem): New function.
93024
93025 2002-01-19  Jim Meyering  <meyering@lucent.com>
93026
93027         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
93028         Remove useless quotes: DF_PROG="df".
93029         * m4/strnlen.m4: New file.
93030
93031 2002-01-16  Paul Eggert  <eggert@twinsun.com>
93032
93033         * lib/backupfile.c (ISDIGIT): Comment fix.
93034         * lib/getdate.y (ISDIGIT): Likewise.
93035         * lib/posixtm.c (ISDIGIT, year): Likewise.
93036         * lib/strverscmp.c (ISDIGIT): Likewise.
93037         * lib/userspec.c (ISDIGIT): Likewise.
93038
93039 2002-01-16  Jim Meyering  <meyering@lucent.com>
93040
93041         * lib/getdate.y: Add three semicolons, each just before a closing
93042         brace. Bison (as of version 1.31) no longer papers over that mistake.
93043
93044 2002-01-05  Jim Meyering  <meyering@lucent.com>
93045
93046         * lib/version-etc.c (version_etc_copyright): Update copyright year.
93047
93048 2001-12-19  Paul Eggert  <eggert@twinsun.com>
93049
93050         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
93051         not silently exit merely because the output buffer happens to
93052         have nothing pending.
93053
93054 2001-12-18  Paul Eggert  <eggert@twinsun.com>
93055
93056         See the big note in ../ChangeLog.
93057         * lib/human.c (suffixes): Prefer K to k for 1024.
93058         (generate_suffix_backwards): New function.
93059         (human_readable_inexact): Use it.
93060         * lib/xstrtol.c (__xstrtol): If there is no number but there
93061         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
93062         Accept 'K' as well as 'k'.
93063
93064 2001-12-15  Jim Meyering  <meyering@lucent.com>
93065
93066         * lib/regex.h (__restrict_arr): Update from libc.
93067
93068         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
93069         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
93070         (STREQ): Define.
93071
93072 2001-12-14  Jim Meyering  <meyering@lucent.com>
93073
93074         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
93075         Suggestion from Bruno Haible.
93076
93077 2001-12-10  Jim Meyering  <meyering@lucent.com>
93078
93079         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
93080         xrealloc, Instead, include "xalloc.h".
93081         (initbuffer): Don't cast xmalloc return value to char*.
93082         (readline): Reword comment.
93083         Don't cast xrealloc return value to char*
93084         Return NULL, not 0.
93085
93086 2001-12-09  Jim Meyering  <meyering@lucent.com>
93087
93088         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
93089         about `signed and unsigned type in conditional expression'.
93090         * lib/posixtm.c (posix_time_parse): Likewise.
93091
93092         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
93093
93094         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
93095         to avoid a pedantic warning.
93096
93097         * lib/getstr.c: Don't include assert.h.
93098         (getstr): Remove warning-evoking assertions.
93099         Return -1 if offset parameter is out of bounds.
93100         Change the type of a local from int to size_t.
93101
93102         * lib/strftime.c (my_strftime_localtime_r): Include this function
93103         definition in the `#if ! HAVE_TM_GMTOFF' block.
93104
93105         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
93106         Include xalloc.h instead.
93107
93108 2001-12-02  Jim Meyering  <meyering@lucent.com>
93109
93110         * lib/tempname.c: Don't declare getenv, thus reverting the change of
93111         2001-11-18.  It's no longer necessary, now that stdlib.h is always
93112         included.
93113
93114         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
93115         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
93116
93117 2001-11-30  Akim Demaille  <akim@epita.fr>
93118
93119         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
93120         before being defined.
93121
93122 2001-11-27  Paul Eggert  <eggert@twinsun.com>
93123
93124         * lib/quotearg.h (quotearg_n, quotearg_n_style):
93125         First arg is int, not unsigned.
93126         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
93127         (SIZE_MAX, UINT_MAX): New macros.
93128         (quotearg_n_options): Abort if N is negative.
93129         Avoid overflow check on hosts where size_t is 64 bits and int
93130         is 32 bits, as overflow is impossible there.
93131         Fix off-by-one typo that caused unnecessary reallocation.
93132
93133 2001-11-27  Jim Meyering  <meyering@lucent.com>
93134
93135         * lib/tempname.c: Merge with version from libc.
93136         * lib/regex.c: Likewise.
93137
93138         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
93139         systems for which STDC_HEADERS is 0, it was not included, resulting in
93140         a warning about an integer-to-pointer conversion problem with getenv.
93141         Reported by Volker Borchert.
93142
93143 2001-11-26  Jim Meyering  <meyering@lucent.com>
93144
93145         * lib/gtod.h: Remove file.
93146         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
93147         * lib/gettimeofday.c: Don't include gtod.h.
93148         (GTOD_init): Remove function.
93149         (rpl_gettimeofday): Do its job here instead, rather than aborting.
93150         Suggestion from Volker Borchert.
93151
93152 2001-11-23  Jim Meyering  <meyering@lucent.com>
93153
93154         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
93155         it.
93156         * lib/hash.c (struct hash_table): Define it here instead.
93157
93158 2001-11-22  Jim Meyering  <meyering@lucent.com>
93159
93160         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
93161
93162 2001-11-20  Jim Meyering  <meyering@lucent.com>
93163
93164         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
93165         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
93166
93167 2001-11-19  Jim Meyering  <meyering@lucent.com>
93168
93169         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
93170         directory.  Use "conftestXXXXXX" as the template.
93171         Suggestion from Paul Eggert.
93172
93173         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
93174         immediately, so the test doesn't mistakenly hit the max-open-files
93175         limit.
93176
93177 2001-11-18  Paul Eggert  <eggert@twinsun.com>
93178
93179         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
93180         (TEMPORARIES): New macro.
93181         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
93182         removes an artificial limitation (e.g. HP-UX 10.20, where
93183         TMP_MAX is 17576).
93184
93185 2001-11-18  Jim Meyering  <meyering@lucent.com>
93186
93187         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
93188
93189 2001-11-18  Jim Meyering  <meyering@lucent.com>
93190
93191         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
93192         on SunOS 4.
93193
93194         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
93195         files will be created before anything else.
93196
93197 2001-11-17  Paul Eggert  <eggert@twinsun.com>
93198
93199         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
93200         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
93201
93202 2001-11-17  Jim Meyering  <meyering@lucent.com>
93203
93204         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
93205         Prompted by a report from Bob Proulx.
93206
93207         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
93208         Instead, require UTILS_FUNC_MKSTEMP.
93209
93210 2001-11-17  Jim Meyering  <meyering@lucent.com>
93211
93212         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
93213         Now, that's done as part of AC_FUNC_STRTOD.
93214
93215 2001-11-17  Jim Meyering  <meyering@lucent.com>
93216
93217         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
93218         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
93219         rather than group writable.  Patch by Juan F. Codagnone.
93220
93221         * lib/readtokens.c: Remove explicit declarations of xmalloc and
93222         xrealloc, Instead, include "xalloc.h".
93223
93224         * lib/mountlist.c: Include unlocked-io.h after all system headers.
93225         Remove explicit declarations of xmalloc, xrealloc,
93226         and xstrdup.  Instead, include "xalloc.h".
93227
93228         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
93229         unlocked-io.h.
93230         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
93231         Likewise.
93232         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
93233
93234         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
93235         Reported by Padraig Brady.
93236
93237         * lib/mkstemp.c: #undef mkstemp.
93238         Include config.h.
93239         (rpl_mkstemp): Rename from mkstemp.
93240         Protoize.
93241
93242 2001-11-16  Jim Meyering  <meyering@lucent.com>
93243
93244         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
93245         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
93246         determine the amount of total physical memory, use pstat_getstatic.
93247         HPUX-11 doesn't define _SC_PHYS_PAGES.
93248         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
93249         If sysconf couldn't be used to determine the amount of available
93250         physical memory, use both pstat_getstatic and pstat_getdynamic.
93251         Based on a patch from Bob Proulx.
93252
93253 2001-11-10  Jim Meyering  <meyering@lucent.com>
93254
93255         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
93256         (jm_PREREQ): Use it.
93257
93258 2001-11-09  Jim Meyering  <meyering@lucent.com>
93259
93260         * m4/jm-macros.m4: Require autoconf-2.52f.
93261         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
93262         Use these AC_-prefixed names, not the AM_-prefixed ones.
93263
93264         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
93265
93266 2001-11-05  Jim Meyering  <meyering@lucent.com>
93267
93268         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
93269
93270 2001-11-04  Jim Meyering  <meyering@lucent.com>
93271
93272         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
93273         $DEFS.
93274
93275 2001-11-03  Jim Meyering  <meyering@lucent.com>
93276
93277         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
93278         of AC_DEFUN.
93279
93280         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
93281         know the name of the variable in the macro definition.
93282
93283 2001-11-03  Jim Meyering  <meyering@lucent.com>
93284
93285         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
93286         in argmatch_to_argument call.
93287
93288         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
93289         argument.
93290
93291         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
93292         e.g., a fault due to an attempt to free a NULL pointer.
93293
93294 2001-11-01  Jim Meyering  <meyering@lucent.com>
93295
93296         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
93297         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
93298
93299 2001-11-01  Jim Meyering  <meyering@lucent.com>
93300
93301         * lib/dirfd.c, lib/dirfd.h: New files.
93302         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
93303
93304         * lib/hash.c (hash_print) [TESTING]: Clean up.
93305
93306 2001-10-22  Paul Eggert  <eggert@twinsun.com>
93307
93308         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
93309         to avoid a warning if -Wall.
93310
93311 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
93312
93313         * README: New file
93314         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
93315         (per RMS's instructions, this is now the canonical source)
93316         * lgpl/, gpl/: New directories.
93317
93318 2001-10-21  Paul Eggert  <eggert@twinsun.com>
93319
93320         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
93321
93322 2001-10-21  Jim Meyering  <meyering@lucent.com>
93323
93324         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
93325         this code would end up calling gettext even in packages built
93326         with --disable-nls.
93327         * lib/getopt.c (_): Likewise.
93328         * lib/regex.c (_): Likewise.
93329
93330 2001-10-20  Paul Eggert  <eggert@twinsun.com>
93331
93332         * m4/error.m4 (jm_PREREQ_ERROR):
93333         Do not invoke AC_CHECK_FUNCS with strerror_r, as
93334         AC_FUNC_STRERROR_R does that.
93335         Check for strerror declaration.
93336
93337         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
93338         are supposed to have them these days.
93339         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
93340         Merge changes from latest Autoconf CVS.
93341         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
93342         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
93343         POSIX decided to standardize on the int flavor of strerror_r.
93344
93345 2001-10-20  Paul Eggert  <eggert@twinsun.com>
93346
93347         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
93348         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
93349         Use strerror_r that is only a macro, even if it is not a function.
93350         (strerror): Check for HAVE_DECL_STRERROR before declaring.
93351         (private_strerror): Use prototypes, not old-style function definition.
93352         (print_errno_message): New function.
93353         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
93354         char*-flavored one.
93355         (error_tail, error, error_at_line): Use it.
93356
93357 2001-10-11  Jim Meyering  <meyering@lucent.com>
93358
93359         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
93360         and quote_n (1, ... to avoid clobbering a buffer.
93361
93362 2001-10-05  Jim Meyering  <meyering@lucent.com>
93363
93364         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
93365         hash-pjw.h.
93366         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
93367         * lib/hash-pjw.h: New file.
93368
93369 2001-09-30  Jim Meyering  <meyering@lucent.com>
93370
93371         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
93372         `struct fsstat' has the `f_fstypename' member.
93373         Use that to define FS_TYPE, which is now used to make
93374         the getfsstat link test tighter.
93375
93376 2001-09-30  Jim Meyering  <meyering@lucent.com>
93377
93378         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
93379         Include <sys/ucred.h>, for Apple Darwin.
93380         Include sys/mount.h and sys/fs_types.h only if available.
93381         (FS_TYPE): Define.
93382         (read_filesystem_list): Use FS_TYPE.
93383
93384 2001-09-29  Paul Eggert  <eggert@twinsun.com>
93385
93386         * lib/exclude.c (excluded_filename): 0 -> false, since it's
93387         a boolean context.
93388
93389 2001-09-29  Jim Meyering  <meyering@lucent.com>
93390
93391         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
93392         [one-argument getmntent function]): Include stdio.h before mntent.h.
93393         SunOS 4.1.x needs it for the declaration of `FILE'.
93394         Patch by Volker Borchert.
93395
93396         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
93397         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
93398         sys/fs_types.h, and make the link-test for getfsstat guard #include
93399         directives with appropriate #if HAVE_*_H tests so that we can
93400         detect getfsstat on Apple Darwin1.3.7 systems.
93401         Reported by Nelson Beebe.
93402         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
93403
93404 2001-09-28  Paul Eggert  <eggert@twinsun.com>
93405
93406         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
93407         #defines strtoimax.  Also treat the other strto* functions
93408         like strtoimax.
93409
93410         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
93411         Check for strtoul and strtoumax,
93412         as those declarations are made even in the signed case.
93413         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
93414         Likewise, for strtol and strtoimax.
93415
93416 2001-09-28  Paul Eggert  <eggert@twinsun.com>
93417
93418         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
93419         #defines strtoimax.  Also treat the other strto* functions
93420         like strtoimax.
93421
93422         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
93423         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
93424         (strtoimax, strtoumax): Do not declare if already defined as a macro.
93425
93426 2001-09-26  Jim Meyering  <meyering@lucent.com>
93427
93428         Most macros in unlocked-io.h had the wrong number of arguments.
93429         * lib/gen-uio: New script.
93430         (USE_UNLOCKED_IO): Define to 1 if not already defined.
93431         * lib/unlocked-io.hin: Remove file.
93432         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
93433         rather than trying to embed it here.
93434         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
93435         Reported by Padraig Brady.
93436
93437 2001-09-25  Volker Borchert  <bt@teknon.de>
93438
93439         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
93440         `result'.
93441
93442 2001-09-24  Jim Meyering  <meyering@lucent.com>
93443
93444         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
93445
93446 2001-09-23  Jim Meyering  <meyering@lucent.com>
93447
93448         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
93449         instead of the mere test for existence of mntent.h.  The latter
93450         would get a false-positive on AIX 3.4 systems.
93451         In the outer getmntent if-block, don't die if neither of the getmntent
93452         tests succeeds.  Instead, just fall through and continue with the
93453         remaining tests.
93454
93455 2001-09-23  Jim Meyering  <meyering@lucent.com>
93456
93457         * lib/mountlist.c: Remove useless parentheses in #if directives.
93458         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
93459         the deprecated MOUNTED symbol is no longer defined in mntent.h.
93460
93461 2001-09-22  Jim Meyering  <meyering@lucent.com>
93462
93463         * m4/gettext.m4: New file.  From gettext.
93464         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
93465         * m4/progtest.m4: Likewise
93466         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
93467         * m4/glibc21.m4: Likewise.
93468
93469         * m4/libintl.m4: Remove.  No longer used.
93470
93471 2001-09-22  Jim Meyering  <meyering@lucent.com>
93472
93473         * lib/localcharset.c: Update from latest gettext.
93474         * lib/config.charset: Likewise.
93475
93476 2001-09-20  Jim Meyering  <meyering@lucent.com>
93477
93478         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
93479         strtoimax.
93480         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
93481         strtoumax.
93482
93483 2001-09-20  Jim Meyering  <meyering@lucent.com>
93484
93485         * lib/xstrtol.c (strtoimax): Guard declaration with
93486         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
93487         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
93488         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
93489         (strtoumax): Likewise, for completeness (it wasn't necessary).
93490
93491 2001-09-17  Paul Eggert  <eggert@twinsun.com>
93492
93493         * lib/strtoimax.c (HAVE_LONG_LONG):
93494         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
93495         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
93496         to work around bug in IBM C compiler.
93497
93498 2001-09-17  Jim Meyering  <meyering@lucent.com>
93499
93500         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
93501         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
93502         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
93503         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
93504         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
93505         whenever the right hand side need not be expanded by the shell.
93506
93507 2001-09-16  Paul Eggert  <eggert@twinsun.com>
93508
93509         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
93510         library.  It's not correct, as some older glibcs are buggy.
93511         fnmatch wasn't fixed until glibc 2.2.
93512
93513         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
93514         special shell magic here.
93515
93516 2001-09-16  Jim Meyering  <meyering@lucent.com>
93517
93518         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
93519         * m4/jm-macros.m4: Require it.
93520
93521 2001-09-16  Jim Meyering  <meyering@lucent.com>
93522
93523         * lib/mkdir.c: New file.
93524
93525 2001-09-15  Jim Meyering  <meyering@lucent.com>
93526
93527         * m4/jm-macros.m4: Check for help2man.
93528
93529 2001-09-11  Jim Meyering  <meyering@lucent.com>
93530
93531         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
93532         The body, by Paul Eggert, was moved here from configure.in.
93533         * m4/jm-macros.m4: Require UTILS_HOST_OS.
93534
93535 2001-09-04  Paul Eggert  <eggert@twinsun.com>
93536
93537         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
93538         (jm_PREREQ): Use it.
93539
93540 2001-09-04  Paul Eggert  <eggert@twinsun.com>
93541
93542         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
93543         Use ssize_t, not int, to store result of readlink.
93544         Check for ssize_t overflow as well as size_t overflow,
93545         as POSIX says the result of readlink is implementation-defined
93546         when ssize_t overflows.
93547         Remove unnecessary cast to char*.
93548         Use free+malloc instead of realloc, as the storage doesn't need
93549         to be preserved and it's clearer and can be more efficient that way.
93550         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
93551         * lib/xreadlink.h (xreadlink): Update prototype.
93552
93553 2001-09-04  Paul Eggert  <eggert@twinsun.com>
93554
93555         * lib/xgetcwd.c: Revert some of the previous change; intead,
93556         fix the HAVE_GETCWD_NULL code to behave more like the
93557         !HAVE_GETCWD_NULL code used to.
93558
93559         Include "xalloc.h".
93560         (xgetcwd): Do not return NULL when memory is exhausted; instead,
93561         invoke xalloc_die.
93562
93563 2001-09-03  Paul Eggert  <eggert@twinsun.com>
93564
93565         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
93566         sys/param.h, as pathmax.h includes them.
93567
93568 2001-09-03  Paul Eggert  <eggert@twinsun.com>
93569
93570         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
93571         (jm_PREREQ_XGETCWD): New macro.
93572
93573         * m4/getcwd.m4: New file.
93574
93575 2001-09-03  Paul Eggert  <eggert@twinsun.com>
93576
93577         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
93578         like the HAVE_GETCWD_NULL code.
93579         Include pathmax.h if not HAVE_GETCWD.
93580         Do not include xalloc.h.
93581         (INITIAL_BUFFER_SIZE): New symbol.
93582         Do not use xmalloc / xrealloc, since the caller is responsible for
93583         handling errors.  Preserve errno around `free' during failure.
93584         Do not overrun buffer when using getwd.
93585
93586 2001-09-03  Paul Eggert  <eggert@twinsun.com>
93587
93588         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
93589         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
93590         getcwd (NULL, 0).
93591
93592 2001-09-03  Paul Eggert  <eggert@twinsun.com>
93593
93594         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
93595         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
93596         spotted by Jim Meyering.
93597
93598 2001-09-03  Jim Meyering  <meyering@lucent.com>
93599
93600         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
93601         failure.
93602
93603 2001-09-02  Jim Meyering  <meyering@lucent.com>
93604
93605         * lib/error.c: Update from GNU libc.
93606
93607 2001-09-01  Jim Meyering  <meyering@lucent.com>
93608
93609         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
93610         Used by df.
93611
93612 2001-09-01  Jim Meyering  <meyering@lucent.com>
93613
93614         * lib/xreadlink.c: New file.
93615         * lib/xreadlink.h: New file.
93616         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
93617         xreadlink.h.
93618
93619         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
93620         doesn't conflict with sparc Solaris 7's definition in
93621         /usr/include/sys/int_types.h.
93622
93623         * lib/exclude.c: Use `""', not `<>' to #include non-system header
93624         files.
93625         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
93626         and strncasecmp as r-values.  Unixware didn't have declarations.
93627
93628 2001-08-31  Paul Eggert  <eggert@twinsun.com>
93629
93630         * lib/xstrtol.h: Add copyright notice.
93631         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
93632         LONGINT_INVALID_SUFFIX_CHAR.
93633
93634 2001-08-31  Paul Eggert  <eggert@twinsun.com>
93635
93636         * lib/xstrtol.c (strtoimax): New decl.
93637
93638 2001-08-31  Paul Eggert  <eggert@twinsun.com>
93639
93640         * lib/xgetcwd.c: Don't include pathmax.h.
93641         Include stdlib.h and unistd.h if available.
93642         Include xalloc.h.
93643         (xmalloc, xstrdup, free): Remove decls.
93644         (xgetcwd): Don't assume sizes fit in unsigned.
93645         Check for overflow when computing sizes.
93646         Simplify reallocation code.
93647
93648 2001-08-31  Paul Eggert  <eggert@twinsun.com>
93649
93650         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
93651         a directory's st_size can have an arbitrary value, so the old
93652         usage could waste an arbitrary amount of memory.  All uses
93653         changed.
93654         * lib/savedir.h: Update prototype.
93655
93656 2001-08-31  Paul Eggert  <eggert@twinsun.com>
93657
93658         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
93659
93660         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
93661         old strtoimax.c.
93662
93663         Also, make the following further changes to make this file's
93664         configuration more similar to that of strtol.c:
93665         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
93666         (strtoumax, uintmax_t, strtoull, strtol): Remove.
93667         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
93668         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
93669         changed to signed values.
93670
93671         And make the following changes as well:
93672         Fix copyright notice, as 1999 was missing.
93673         (verify): New macro.
93674         (strtoimax): Check sizes at compile-time, not run-time.
93675         Prefer strtol to strtoll if both work.
93676         (main): Remove; it was not that useful and was a pain to maintain.
93677
93678         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
93679
93680 2001-08-31  Jim Meyering  <meyering@lucent.com>
93681
93682         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
93683         Use an initial, malloc'd, buffer of length 128 rather than
93684         a statically allocated one of length 1024.
93685
93686 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93687
93688         Simplify code, partly by assuming autoconf 2.52 semantics.
93689
93690         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
93691
93692         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
93693         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
93694         All uses removed.
93695         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
93696         Move AC_REQUIRE to next-to-top level, to avoid confusion.
93697         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
93698         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
93699         jm_AC_HEADER_INTTYPES_H.
93700         * m4/jm-macros.m4 (jm_MACROS): Likewise.
93701
93702         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
93703
93704         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
93705         Quote first arg of AC_DEFUN.
93706         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
93707         since they are needed to parse the include file even if we need
93708         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
93709         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
93710         but with opposite signedness.
93711
93712 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93713
93714         Merge 'exclude' changes from tar 1.13.22.
93715         This fixes one or two unlikely storage allocation overflow bugs,
93716         but doesn't change user-visible behavior otherwise.
93717
93718 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93719
93720         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
93721         (jm_PREREQ_EXCLUDE): New macro.
93722
93723 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93724
93725         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
93726         tm to be declared.
93727
93728 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93729
93730         * lib/hash.c: Remove '2001' from copyright notice.
93731
93732 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93733
93734         * lib/full-write.h: New file.
93735         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
93736         * lib/full-write.c: Correct credits, as cccp.c no longer
93737         exists and anyway it was so heavily changed from the old cccp
93738         code as to be unrecognizable.  Include full-write.h.
93739         (full_write): Return size_t, with short writes meaning failure.
93740         All callers changed.  This fixes a bug with large buffers
93741         on 64-bit hosts.
93742         * lib/utime.c: Include full-write.h.
93743
93744 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93745
93746         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
93747         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
93748         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
93749         Include if available.
93750         (<xalloc.h>): Include
93751         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
93752         (verify): New macro.  Use it to verify that EXCLUDE macros do not
93753         collide with FNM macros.
93754         (struct patopts): New struct.
93755         (struct exclude): Use it, as exclude patterns now come with options.
93756         (new_exclude): Support above changes.
93757         (new_exclude, add_exclude_file):
93758         Initial size must now be a power of two to simplify overflow checking.
93759         (free_exclude, fnmatch_no_wildcards): New function.
93760         (excluded_filename): No longer requires options arg, as the options
93761         are determined by add_exclude.  Now returns bool, not int.
93762         (excluded_filename, add_exclude):
93763         Add support for the fancy new exclusion options.
93764         (add_exclude, add_exclude_file): Now takes int options arg.
93765         Check for arithmetic overflow when computing sizes.
93766         (add_exclude_file): xrealloc might modify errno, so don't
93767         realloc until after errno might be used.
93768
93769         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
93770         New macros.
93771         (free_exclude): New decl.
93772         (add_exclude, add_exclude_file): Now takes int options arg.
93773         (excluded_filename): No longer requires options arg, as the options
93774         are determined by add_exclude.  Now returns bool, not int.
93775
93776 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93777
93778         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
93779
93780 2001-08-27  Jim Meyering  <meyering@lucent.com>
93781
93782         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
93783
93784         * lib/version-etc.c (N_): Remove definition.
93785         Revert most of last change.
93786         Instead, simply don't mark the `Copyright...' string for translation.
93787         Based on advice from Paul Eggert.
93788
93789         * lib/strtoxmax.c: Tweak comment.
93790
93791 2001-08-26  Jim Meyering  <meyering@lucent.com>
93792
93793         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
93794
93795         * m4/xstrtoimax.m4: New file.
93796         * m4/xstrtoumax.m4: Add comments explaining why we
93797         AC_REPLACE_FUNCS(strtol).
93798
93799 2001-08-26  Jim Meyering  <meyering@lucent.com>
93800
93801         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
93802         of copyright with `%s' so translators don't get an untranslated
93803         message in 2002.
93804         (COPYRIGHT_YEAR): Define.
93805         (version_etc): Use fprintf rather than fputs.
93806         Suggestion from Ulrich Drepper.
93807
93808         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
93809
93810         * lib/strtoll.c: New file, from GNU libc.
93811         * lib/xstrtoimax.c: New file.
93812
93813         * lib/xstrtol.h: Add xstrtoimax.
93814         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
93815         * lib/strtoimax.c: New file.  Likewise, but first define
93816         STRTOUXMAX_SIGNED.
93817
93818         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
93819         ...
93820         * lib/strtoxmax.c: ... then renamed to this.
93821
93822 2001-08-18  Paul Eggert  <eggert@twinsun.com>
93823
93824         * m4/inttypes.m4: Add AC_PREREQ(2.13).
93825         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
93826         (jm_AC_TYPE_INTMAX_T): New macro.
93827         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
93828
93829         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
93830
93831         * m4/longlong.m4: Renamed from ulonglong.m4.
93832         * m4/inttypes.m4: Renamed from inttypes_h.m4.
93833         * m4/uintmax_t.m4: Removed.
93834
93835 2001-08-13  Paul Eggert  <eggert@twinsun.com>
93836
93837         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
93838         Port to Solaris 8, where 'sed' requires a space after the 'r'
93839         command, and where sh dislikes "$/".  Clean up the spacing a bit.
93840         Redirect output to $tmp just once.
93841
93842 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
93843
93844         * lib/addext.c (<errno.h>): Include.
93845         (errno): Declare if not defined.
93846         (addext): Work correctly when pathconf returns -1 and leaves
93847         errno alone because there is no limit.  Also, work even if
93848         pathconf returns a value greater than SIZE_MAX.
93849
93850 2001-08-12  Jim Meyering  <meyering@lucent.com>
93851
93852         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
93853         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
93854         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
93855         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
93856         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
93857         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
93858         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
93859         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
93860         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
93861         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
93862         utime.m4, utimes.m4, xstrtoumax.m4:
93863         Quote the first argument in each use of AC_DEFUN.
93864
93865 2001-08-12  Jim Meyering  <meyering@lucent.com>
93866
93867         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
93868         Simply `return getcwd (NULL, 0);'.
93869         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
93870         Use 1300 as initial value for length, not PATH_MAX.
93871
93872         * lib/pathmax.h: Clean up cpp syntax.
93873
93874 2001-08-12  Jim Meyering  <meyering@lucent.com>
93875
93876         * lib/gettimeofday.c: New file.
93877         * lib/gtod.h: New file.
93878         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
93879
93880 2001-08-05  Jim Meyering  <meyering@lucent.com>
93881
93882         * m4/jm-macros.m4: Require autoconf-2.52.
93883
93884 2001-08-04  Jim Meyering  <meyering@lucent.com>
93885
93886         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
93887         stmt, to get in sync with glibc.
93888
93889 2001-08-03  Paul Eggert  <eggert@twinsun.com>
93890
93891         The following changes are from gettext 0.10.39 as maintained by
93892         Bruno Haible.
93893
93894         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
93895         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
93896         with inverted sense.  All uses changed.
93897
93898         * lib/mbswidth.c: Don't include <limits.h>.
93899         Include <stdlib.h> and <string.h> unconditionally.
93900         (iswcntrl, mbsinit, ISCNTRL): New macros.
93901         (mbsnwidth): Use K&R style function declarations.
93902         Don't bother checking for MB_LEN_MAX == 1, since the compiler
93903         can optimize it when MB_CUR_MAX == 1.
93904         The width of control characters is zero, not 1.
93905
93906 2001-08-03  Paul Eggert  <eggert@twinsun.com>
93907
93908         The following changes are from gettext 0.10.39 as maintained by
93909         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
93910
93911         * m4/codeset.m4: Upgrade to serial AM1.
93912         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
93913         all uses changed.  Quote first arg of AC_DEFUN.
93914         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
93915
93916         * m4/iconv.m4: Upgrade to serial AM2.
93917         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
93918         Add --with-libconv-prefix.
93919         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
93920         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
93921         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
93922         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
93923         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
93924
93925         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
93926         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
93927         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
93928         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
93929         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
93930         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
93931         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
93932         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
93933         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
93934
93935         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
93936         string.h any more.
93937
93938         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
93939         not the default value.
93940
93941         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
93942         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
93943         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
93944         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
93945         Also check for iswcntrl, used for wcwidth fallback.
93946         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
93947         to Autoconf 2.13.
93948
93949 2001-08-03  Jim Meyering  <meyering@lucent.com>
93950
93951         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
93952         as it was in the original.  Reported by Paul Eggert.
93953
93954 2001-07-16  Jim Meyering  <meyering@lucent.com>
93955
93956         * m4/gettimeofday.m4: New file.
93957         Prompted by a report from Bernhard Baehr.
93958
93959 2001-07-15  Jim Meyering  <meyering@lucent.com>
93960
93961         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
93962         stuff. Now it's in ../Makefile.cfg.
93963
93964 2001-07-15  Jim Meyering  <meyering@lucent.com>
93965
93966         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
93967         (BUILT_SOURCES): Add unlocked-io.h.
93968         (io_functions): Define.
93969         (unlocked-io.h): New rule.
93970         (DISTCLEANFILES): Add unlocked-io.h.
93971         (all-local): Depend on unlocked-io.h, to ensure it is created.
93972
93973         * lib/unlocked-io.hin: New file
93974
93975         * lib/regex.c: Update from glibc.
93976
93977 2001-07-05  Jim Meyering  <meyering@lucent.com>
93978
93979         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
93980         recommendation.
93981         (libfetish_a_SOURCES): Put all .h files here instead.
93982         Remove a thus-exposed (better checks in automake) duplicate and
93983         two unnecessary .h files.
93984
93985 2001-07-04  Jim Meyering  <meyering@lucent.com>
93986
93987         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
93988         that generates jm-glibc-io.m4 so that it doesn't trigger any make
93989         distcheck failure.
93990
93991 2001-07-02  Jim Meyering  <meyering@lucent.com>
93992
93993         The following changes were prompted by suggestions from Bruno Haible.
93994
93995         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
93996         is now generated.
93997         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
93998         definition of EXTRA_DIST.
93999         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
94000         ensure that the generated file is created/updated whenever the list
94001         of $(unlocked_functions) is changed.
94002         (jm-glibc-io.m4): New rule.
94003         (unlocked-io.h): New rule -- currently unused.
94004
94005 2001-06-24  Jim Meyering  <meyering@lucent.com>
94006
94007         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
94008         unmatched right bracket, rather than kludging it with an extra,
94009         falsely-matching quote in a comment.  Patch by Akim Demaille.
94010
94011 2001-06-11  Jim Meyering  <meyering@lucent.com>
94012
94013         * lib/regex.c: Update from GNU libc.
94014
94015 2001-05-27  Jim Meyering  <meyering@lucent.com>
94016
94017         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
94018         Check for ut_type in struct utmp.
94019
94020 2001-05-27  Jim Meyering  <meyering@lucent.com>
94021
94022         * lib/readutmp.h (UT_TYPE): Define.
94023
94024 2001-05-24  Jim Meyering  <meyering@lucent.com>
94025
94026         * lib/argmatch.c: Include "quote.h".
94027         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
94028         quote function.  Reported by Göran Uddeborg.
94029
94030 2001-05-22  Jim Meyering  <meyering@lucent.com>
94031
94032         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
94033         now that we use the package-supplied version unconditionally.
94034         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
94035
94036 2001-05-21  Jim Meyering  <meyering@lucent.com>
94037
94038         * m4/regex.m4: Change a couple backticks to single quotes to avoid
94039         shell syntax errors.
94040
94041 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
94042
94043         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
94044
94045 2001-05-20  Paul Eggert  <eggert@twinsun.com>
94046
94047         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
94048         Don't bother to check library strftime, since
94049         we'll be using our own my_strftime function anyway.
94050         Define my_strftime instead of strftime.
94051
94052 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
94053
94054         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
94055         which is not yet declared.
94056
94057 2001-05-15  Jim Meyering  <meyering@lucent.com>
94058
94059         * m4/regex.m4: Use proper quoting so brackets appear in the test
94060         program.
94061         Reported by, and with help from, Bruno Haible.
94062
94063 2001-05-13  Jim Meyering  <meyering@lucent.com>
94064
94065         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
94066         undefined.
94067
94068 2001-05-11  Paul Eggert  <eggert@twinsun.com>
94069
94070         dirname code cleanup.  base_name now behaves more compatibly
94071         with POSIX basename when given file names that have trailing
94072         slashes, and similarly for dir_name.  Add new primitives
94073         base_len and dir_len.  Put the directory-name-related decls
94074         into dirname.h.
94075
94076         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
94077         * lib/backupfile.c (base_name): Likewise.
94078         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
94079         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
94080         * lib/makepath.c (strip_trailing_slashes): Likewise.
94081         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
94082         ISSLASH): Likewise.
94083         * lib/rename.c (strip_trailing_slashes): Likewise.
94084         * lib/same.c (base_name): Likewise.
94085         * lib/stripslash.c (ISSLASH): Likewise.
94086
94087         * lib/addext.c: Include <dirname.h> after size_t is defined.
94088         * lib/backupfile.c: Likewise.
94089
94090         * lib/addext.c (addext): Use base_len to trim redundant
94091         trailing slashes instead of doing it ourselves.
94092         But do not trim the last slash if it is not redundant.
94093
94094         * lib/backupfile.c (find_backup_file_name,
94095         max_backup_version): Use base_len instead of rolling it ourselves.
94096         Handle the case of "" and (on DOS) "C:" correctly.
94097
94098         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
94099         needed. Include <string.h>, <dirname.h>.
94100         (base_name): Allow file names ending in slashes, other than names
94101         that are all slashes.  In this case, return the basename followed
94102         by the slashes.  This is more general, and can be used in places
94103         where the original base_name purposely had an assertion failure.
94104         (base_len): New function.
94105
94106         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
94107         Do not include <assert.h>; no longer needed.
94108         Include xalloc.h.
94109         (memrchr): Remove decl.
94110         (dir_name_r): Remove.
94111         (dir_len): Renamed from dirlen.  All callers changed.
94112         Rewrite in terms of base_name, for simplicity and consistency.
94113         (dir_name): Never return NULL.  All callers changed.
94114         Do not include <stdlib.h> in test program; no longer needed.
94115         return 0; is fine for test program.
94116
94117         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
94118         New macros.
94119         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
94120
94121         * lib/path-concat.c (path_concat): Use base_len to compute
94122         base length, not strlen; this means we cannot rely on memcpy
94123         to null-terminate.
94124
94125         * lib/same.c (STREQ): Remove.
94126         (same_name): Handle the case where the basename ends in trailing '/'.
94127
94128         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
94129         a slash was stripped.  Do not strip the last slash after a
94130         file system prefix.
94131
94132 2001-05-11  Paul Eggert  <eggert@twinsun.com>
94133
94134         * lib/Makefile.am (libfetish_a_SOURCES):
94135         Add strftime.c, since we now compile it on all hosts.
94136
94137         * lib/strftime.c (my_strftime):
94138         Define to nstrftime if emacs, but only if my_strftime is not defined.
94139         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
94140         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
94141         Add one more extra argument: a nanoseconds value.
94142         All uses changed.
94143         (ns): New macro.
94144         (my_strftime function): Add %N format.
94145         (emacs_strftimeu): Renamed from emacs_strftime,
94146         with extra ut argument.
94147
94148 2001-05-09  Paul Eggert  <eggert@twinsun.com>
94149
94150         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
94151
94152 2001-04-21  Jim Meyering  <meyering@lucent.com>
94153
94154         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
94155         doesn't interfere.
94156
94157 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
94158
94159         * m4/ftruncate.m4: Check for chsize.
94160         Link with ftruncate.o unconditionally if ftruncate is missing.
94161         This was required when cross-compiling to i586-mingw32msvc.
94162
94163 2001-04-08  Jim Meyering  <meyering@lucent.com>
94164
94165         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
94166         recomputed; that's necessary when the offset spans a DST transition.
94167         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
94168
94169 2001-04-02  Jim Meyering  <meyering@lucent.com>
94170
94171         * lib/regex.h, regex.c: Update from GNU libc.
94172
94173 2001-03-24  Jim Meyering  <meyering@lucent.com>
94174
94175         * m4/jm-macros.m4: Require autoconf-2.49d.
94176
94177 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
94178
94179         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
94180
94181 2001-03-19  Paul Eggert  <eggert@twinsun.com>
94182
94183         * lib/version-etc.c (version_etc_copyright): Update to 2001.
94184
94185 2001-03-17  Jim Meyering  <meyering@lucent.com>
94186
94187         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
94188         now that the version in autoconf is equivalent.
94189         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
94190
94191         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
94192         Suggestion from Akim Demaille.
94193
94194         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
94195         (jm_PREREQ_TEMPNAME): New function.
94196
94197 2001-03-16  Paul Eggert  <eggert@twinsun.com>
94198
94199         * lib/tempname.c (uint64_t): Define to uintmax_t if
94200         not defined, and if UINT64_MAX is not defined.
94201         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
94202         Reported by John David Anglin.
94203
94204 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
94205
94206         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
94207         resolve alias if codeset is empty.
94208         * lib/config.charset (BeOS): Use wildcard syntax.
94209
94210 2001-03-13  Jim Meyering  <meyering@lucent.com>
94211
94212         * lib/path-concat.c (path_concat)
94213         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
94214         concatenating e.g., `C:' and `foo'.
94215         From Bruno Haible.
94216
94217 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
94218
94219         * lib/localcharset.c (locale_charset): Don't use
94220         setlocale(LC_CTYPE,NULL). Don't return NULL.
94221         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
94222
94223 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
94224
94225         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
94226         support for DOS/DJGPP.
94227
94228 2001-03-01  Paul Eggert  <eggert@twinsun.com>
94229
94230         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
94231         lacks mkstemp.  Compile our own tempname.c if we compile our own
94232         mkstemp.c, as mkstemp relies on tempname.
94233
94234 2001-03-01  Jim Meyering  <meyering@lucent.com>
94235
94236         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
94237         AH_VERBATIM really does output its argument verbatim.
94238
94239 2001-02-28  Paul Eggert  <eggert@twinsun.com>
94240
94241         * lib/Makefile.am (libfetish_a_SOURCES):
94242         Add dup-safer.c, fopen-safer.c.
94243         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
94244
94245         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
94246         * lib/unistd-safer.h: New files.
94247
94248 2001-02-25  Paul Eggert  <eggert@twinsun.com>
94249
94250         The mkstemp replacement is taken from glibc 2.2.2, with some
94251         portability fixes for use outside glibc, as follows:
94252
94253         * lib/tempname.c (struct_stat64): New macro.
94254         (direxists, __gen_tempname): Use it.
94255         This avoids a portability problem with Solaris 8.
94256
94257         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
94258         (<stddef.h>, <stdint.h>, <string.h>):
94259         Include only if STDC_HEADERS || _LIBC.
94260         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
94261         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
94262         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
94263         (__set_errno): Define this macro if <errno.h> doesn't.
94264         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
94265         Define these macros if <stdio.h> doesn't.
94266         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
94267         Define these macros if <sys/stat.h>
94268         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
94269         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
94270         __xstat64): Define if not _LIBC.
94271         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
94272         (__gen_tempname): Invoke gettimeofday only if
94273         HAVE_GETTIMEOFDAY || _LIBC;
94274         otherwise, fall back on plain "time".
94275         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
94276
94277         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
94278
94279         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
94280
94281 2001-02-18  Paul Eggert  <eggert@twinsun.com>
94282
94283         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
94284
94285 2001-02-17  Paul Eggert  <eggert@twinsun.com>
94286
94287         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
94288         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
94289         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
94290         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
94291
94292 2001-02-17  Paul Eggert  <eggert@twinsun.com>
94293
94294         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
94295         Remove workaround macros for hosts that have mbrtowc but not
94296         mbstate_t, as we now insist on proper declarations for both
94297         before using mbrtowc.
94298
94299 2001-02-17  Jim Meyering  <meyering@lucent.com>
94300
94301         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
94302         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
94303         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
94304         UnixWare 7.1.1.
94305
94306         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
94307         rather than AC_CACHE_VAL.
94308
94309 2001-02-17  Jim Meyering  <meyering@lucent.com>
94310
94311         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
94312         around included file name.
94313
94314         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
94315
94316         * lib/strftime.c: Update from GNU libc (the only changes were to
94317         comments).
94318
94319 2001-02-17  Jim Meyering  <meyering@lucent.com>
94320
94321         * lib/regex.c: Update from libc.
94322
94323 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
94324
94325         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
94326         clash.
94327
94328 2001-02-16  Paul Eggert  <eggert@twinsun.com>
94329
94330         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
94331         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
94332         Reported by Mark Hounschell via Paul Eggert.
94333
94334 2001-02-07  Jim Meyering  <meyering@lucent.com>
94335
94336         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
94337
94338 2001-02-05  Jim Meyering  <meyering@lucent.com>
94339
94340         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
94341         it includes the patch required for `large file' support with at least
94342         HP-UX's 10.20 /bin/cc.
94343
94344 2001-02-03  Jim Meyering  <meyering@lucent.com>
94345
94346         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
94347         AS_IF, now that it works once again (mysteriously).
94348         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
94349
94350 2001-01-30  Jim Meyering  <meyering@lucent.com>
94351
94352         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
94353         * m4/chown.m4: Rename conftestchown to conftest.chown.
94354         * m4/rename.m4: s/conftestdir/conftest.d1/ and
94355         s/conftestdir2/conftest.d2/.
94356         * m4/utimes.m4: s/conftestdata/conftest.data/
94357         Inspired by Pavel Roskin's change in autoconf.
94358
94359 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
94360
94361         * lib/config.charset: Update for FreeBSD 4.2.
94362
94363 2001-01-27  Jim Meyering  <meyering@lucent.com>
94364
94365         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
94366         a use of AS_IF.
94367         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
94368
94369 2001-01-26  Jim Meyering  <meyering@lucent.com>
94370
94371         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
94372         quotearg.c includes it.
94373
94374 2001-01-26  Jim Meyering  <meyering@lucent.com>
94375
94376         * lib/quotearg.c: Include stddef.h.
94377         * lib/quote.c: Include stddef.h.
94378         Reported by Axel Kittenberger.
94379
94380         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
94381         line in double quotes so that it evokes a better diagnostic.
94382         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
94383         Reported by Axel Kittenberger.
94384
94385 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
94386
94387         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
94388         as if it was a `charset'.
94389
94390 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
94391
94392         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
94393         has const.
94394
94395 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
94396
94397         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
94398         to avoid a warning.  Add back 'const' to inptr.
94399
94400 2001-01-20  Jim Meyering  <meyering@lucent.com>
94401
94402         Be sure that headers are checked before used in code compiled
94403         for the type checks.
94404         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
94405         In place of that, invoke jm_CHECK_ALL_TYPES.
94406         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
94407         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
94408         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
94409         The check for ssize_t was mistakenly run before the test for unistd.h.
94410
94411         The configure-time check for stdbool.h was missing.
94412         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
94413         (jm_PREREQ_HASH): New function.
94414
94415 2001-01-17  Jim Meyering  <meyering@lucent.com>
94416
94417         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
94418         for autoconf-2.49c.
94419         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
94420
94421 2001-01-16  Jim Meyering  <meyering@lucent.com>
94422
94423         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
94424         From Bruno Haible.
94425
94426 2001-01-14  Jim Meyering  <meyering@lucent.com>
94427
94428         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
94429         foo and bar.  Create conftestdir/ in the script, not in the C code.
94430         Remove directories in the script, not in the C code.
94431         Remove conftestdir{,2} before trying to create the directory.
94432         Make the entire configure script fail if the mkdir fails.
94433
94434 2001-01-14  Jim Meyering  <meyering@lucent.com>
94435
94436         * lib/rename.c: New file.  From Volker Borchert.
94437         Include stdlib.h, string.h or strings.h, and xalloc.h.
94438         Use strip_trailing_slashes rather than open-coding it.
94439
94440 2001-01-03  Paul Eggert  <eggert@twinsun.com>
94441
94442         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
94443
94444 2001-01-03  Jim Meyering  <meyering@lucent.com>
94445
94446         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
94447         of local `inptr' to avoid warning with some system declarations of
94448         iconv.
94449
94450 2001-01-02  Volker Borchert  <bt@teknon.de>
94451
94452         * m4/rename.m4: New file.
94453         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
94454
94455 2001-01-01  Jim Meyering  <meyering@lucent.com>
94456
94457         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
94458         even on systems with utmpx.h.  It's necessary for the declaration of
94459         utmp's ut_user member.  Reported by Andreas Jaeger.
94460
94461         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
94462         available. They are required for the declarations of getgrgid and
94463         getpwuid resp.
94464         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
94465         Reported by Andreas Jaeger.
94466
94467 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
94468
94469         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
94470         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
94471         so `make install' also works in VPATH builds.
94472
94473 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
94474
94475         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
94476         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
94477         can be used in subdirectories.
94478
94479 2000-12-29  Paul Eggert  <eggert@twinsun.com>
94480
94481         * lib/modechange.c: Do not assume that mode_t uses the
94482         traditional octal encoding.  E.g. "chmod 1 FOO" should set
94483         the other-execute bit of FOO even if S_IXOTH != 1.
94484
94485         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
94486         WOTH, XOTH, ALLM): New macros.
94487         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
94488          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
94489         Use them.
94490         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
94491         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
94492         (mode_compile):
94493         No need to use uintmax_t; unsigned long is long enough.
94494         Don't bother to get suffix since we don't use it.
94495
94496 2000-12-26  Jim Meyering  <meyering@lucent.com>
94497
94498         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
94499         better with autoheader.
94500
94501 2000-12-24  Jim Meyering  <meyering@lucent.com>
94502
94503         * lib/hash.c (is_prime): Return explicit boolean values.
94504         (hash_get_first): Return NULL to appease Irix5.6's 89.
94505         Reported by Nelson Beebe.
94506
94507 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
94508
94509         * lib/localcharset.c (locale_charset): Add support for Win32.
94510
94511 2000-12-18  Paul Eggert  <eggert@twinsun.com>
94512
94513         * lib/physmem.h, lib/physmem.c: New files.
94514
94515         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
94516         (noinst_HEADERS): Add physmem.h.
94517
94518         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
94519         't' for compatibility with Solaris 8 sort.
94520
94521 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
94522
94523         * lib/config.charset: Add support for BeOS.
94524
94525 2000-12-17  Jim Meyering  <meyering@lucent.com>
94526
94527         * m4/dos.m4 (jm_AC_DOS): New file and macro.
94528         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
94529
94530 2000-12-16  Jim Meyering  <meyering@lucent.com>
94531
94532         This bug had a serious impact on chown: `chown N:M FILE' (for integer
94533         N and M) would have treated it like `chown N:N FILE'.
94534
94535         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
94536
94537 2000-12-16  Jim Meyering  <meyering@lucent.com>
94538
94539         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
94540         SHELLS_FILE to a file name that's useful on djgpp systems.
94541         Include stdlib.h.
94542         (ADDITIONAL_DEFAULT_SHELLS): Define.
94543         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
94544         Based mostly on a patch from Prashant TR.
94545
94546 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
94547
94548         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
94549         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
94550         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
94551
94552 2000-12-08  Andreas Schwab  <schwab@suse.de>
94553
94554         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
94555         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
94556
94557 2000-12-07  Jim Meyering  <meyering@lucent.com>
94558
94559         * lib/stripslash.c (ISSLASH): Define.
94560         (strip_trailing_slashes): Use ISSLASH rather than comparing against
94561         `/'.
94562         From Prashant TR.
94563
94564         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
94565         (dir_name_r): Declare this function as static.
94566         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
94567         manifest itself on a name containing a mix of slashes and
94568         backslashes.
94569         Make this function work with names starting with a DOS-style
94570         drive letter and colon prefix.
94571         (dir_name): Append `.' if necessary.
94572         Based mostly on patches from Prashant TR and Eli Zaretskii.
94573
94574         * lib/dirname.h (dir_name_r): Remove prototype.
94575
94576 2000-12-06  Paul Eggert  <eggert@twinsun.com>
94577
94578         * m4/off_t-format.m4: Remove this file.
94579         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
94580
94581 2000-12-06  Jim Meyering  <meyering@lucent.com>
94582
94583         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
94584         replacement strtoull, we may well need the replacement strtoul, too.
94585         Check for declarations of strtoul and strtoull.
94586         Check for strtol.  Mainly as a cue to cause automake to include
94587         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
94588         Check for limits.h -- strtol.c needs it.
94589
94590 2000-12-05  Jim Meyering  <meyering@lucent.com>
94591
94592         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
94593
94594 2000-12-04  Jim Meyering  <meyering@lucent.com>
94595
94596         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
94597         Also include memory.h, stdlib.h, unistd.h if appropriate.
94598         Reported by Andreas Jaeger (conflicting declaration of malloc).
94599
94600 2000-12-02  Jim Meyering  <meyering@lucent.com>
94601
94602         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
94603         * m4/jm-macros.m4 (jm_MACROS): require it.
94604
94605 2000-12-02  Jim Meyering  <meyering@lucent.com>
94606
94607         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
94608
94609 2000-12-01  Paul Eggert  <eggert@twinsun.com>
94610
94611         * lib/memrchr.c: Include <config.h> before any system include file.
94612
94613 2000-11-30  Jim Meyering  <meyering@lucent.com>
94614
94615         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
94616
94617 2000-11-30  Jim Meyering  <meyering@lucent.com>
94618
94619         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
94620
94621 2000-11-29  Paul Eggert  <eggert@twinsun.com>
94622
94623         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
94624
94625 2000-11-26  Jim Meyering  <meyering@lucent.com>
94626
94627         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
94628
94629 2000-11-22  Paul Eggert  <eggert@twinsun.com>
94630
94631         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
94632         size of (size_t) -1; it's not portable.
94633
94634 2000-11-17  Jim Meyering  <meyering@lucent.com>
94635
94636         * lib/strstr.c: Update from GNU libc.
94637
94638 2000-11-17  Akim Demaille  <akim@epita.fr>
94639
94640         * lib/obstack.h: Formatting changes.
94641         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
94642         prevent type checking.
94643         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
94644         cast the value to (void *): assigning a `foo *' to a `void *'
94645         variable is valid.
94646         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
94647
94648 2000-11-16  Jim Meyering  <meyering@lucent.com>
94649
94650         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
94651
94652 2000-11-11  Jim Meyering  <meyering@lucent.com>
94653
94654         * lib/error.c: Add a couple #includes, merging from GNU libc version.
94655
94656 2000-11-10  Jim Meyering  <meyering@lucent.com>
94657
94658         * lib/obstack.h: Update from GNU libc.
94659         * lib/obstack.c: Likewise.
94660
94661 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
94662
94663         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
94664
94665 2000-11-06  Paul Eggert  <eggert@twinsun.com>
94666
94667         * lib/getusershell.c (setusershell): Use rewind rather than
94668         fseek/fseeko, to avoid configuration hassles with fseeko.
94669         Don't bother opening SHELLS_FILE if shellstream is NULL;
94670         it's not necessary.
94671
94672 2000-11-05  Jim Meyering  <meyering@lucent.com>
94673
94674         * lib/makepath.h (make_dir): Declare.
94675         * lib/makepath.c (make_dir): Remove `static' attribute.
94676         Tweak a comment.
94677
94678 2000-11-04  Jim Meyering  <meyering@lucent.com>
94679
94680         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
94681
94682 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
94683
94684         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
94685         last one in a bucket, advance to the next bucket.
94686
94687 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
94688
94689         * lib/fnmatch.c: Do not comment out all the code if we are using
94690         the GNU C library, because in some cases we are replacing buggy
94691         code in the GNU C library itself.
94692
94693 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
94694
94695         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
94696         (regex_compile): Catch bogus \(\1\).
94697
94698 2000-10-30  Paul Eggert  <eggert@twinsun.com>
94699
94700         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
94701         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
94702         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
94703
94704 2000-10-30  Paul Eggert  <eggert@twinsun.com>
94705
94706         * lib/error.h, getline.h, modechange.h:
94707         Remove "2000" from Copyright line, as the file hasn't been
94708         changed this year other than in the copyright notice.
94709
94710         * lib/xalloc.h: Add "2000" to Copyright line, as this file
94711         was changed this year.
94712
94713 2000-10-29  Jim Meyering  <meyering@lucent.com>
94714
94715         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
94716         renaming.
94717         * m4/ls-mntd-fs.m4: Likewise
94718
94719 2000-10-29  Jim Meyering  <meyering@lucent.com>
94720
94721         * lib/xstat.in: Fix grammar in comment.
94722
94723 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
94724
94725         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
94726         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
94727         doesn't define __restrict_arr.
94728
94729 2000-10-28  Jim Meyering  <meyering@lucent.com>
94730
94731         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
94732         (jm_PREREQ_MEMCHR): New function.
94733
94734 2000-10-28  Jim Meyering  <meyering@lucent.com>
94735
94736         * lib/memchr.c: Update from libc.
94737         Adjust for portability:
94738         [HAVE_STDLIB_H]: Include stdlib.h.
94739         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
94740         Undef __memchr, too.
94741         [!weak_alias]: Define __memchr to memchr.
94742
94743         * lib/regex.c: Update from libc.
94744         * lib/regex.h: Likewise.
94745         * lib/getopt1.c: Likewise.
94746         * lib/memcmp.c: Likewise.
94747
94748         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
94749         Avoid using fseek, when possible -- it's broken by design.
94750         Patch by Ulrich Drepper.
94751
94752 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
94753
94754         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
94755         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
94756         Giving in to popular pressure to shut up the compiler with casts.
94757
94758 2000-10-26  Jim Meyering  <meyering@lucent.com>
94759
94760         * lib/strftime.c: Update from libc.
94761
94762 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
94763
94764         * regex.c: More `unsigned char' -> `re_char' changes.
94765         Also change several `int' into `re_wchar_t'.
94766         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
94767         (PUSH_FAILURE_POINTER): Don't cast any more.
94768         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
94769         We want GCC to complain, since this piece of code makes
94770         re_match non-reentrant, which *should* be fixed.
94771         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
94772         (EXTEND_BUFFER): Use RETALLOC.
94773         (SET_LIST_BIT): Don't cast.
94774         (re_wchar_t): New type.
94775         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
94776         that those two functions will always properly return.
94777         (IMMEDIATE_QUIT_CHECK): Cast to void.
94778         (analyse_first): Use recursion rather than an explicit stack.
94779         (re_compile_fastmap): Can't fail anymore.
94780         (re_search_2): Don't check re_compile_fastmap for failure.
94781         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
94782         Now also sets the new value (passed in a new argument).
94783         (re_match_2_internal): Use it.
94784         Also, use a new var `reg' of type size_t when looping through regs
94785         rather than reuse the inappropriate `mcnt'.
94786
94787 2000-10-25  Jim Meyering  <meyering@lucent.com>
94788
94789         * lib/obstack.c: Update from libc.
94790
94791 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
94792
94793         * regex.c (regex_compile): Change the way of handling a range from
94794         a char less than 256 to a char not less than 256.
94795
94796 2000-10-24  Andrew Innes  <andrewi@gnu.org>
94797
94798         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
94799         NT-Emacs only.
94800         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
94801         so that re_search functions only quit when callers expect them to.
94802
94803 2000-10-23  Jim Meyering  <meyering@lucent.com>
94804
94805         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
94806         wrong.  That set_locale call must not have any side effects.
94807         From Paul Eggert.
94808
94809 2000-10-22  Jim Meyering  <meyering@lucent.com>
94810
94811         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
94812         [CYCLIC]: Remove now-unused definition.
94813
94814         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
94815         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
94816         Suggestion from Ulrich Drepper.
94817
94818 2000-10-21  Jim Meyering  <meyering@lucent.com>
94819
94820         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
94821         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
94822         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
94823
94824 2000-10-21  Jim Meyering  <meyering@lucent.com>
94825
94826         * lib/dirname.c (memrchr): Declare if necessary.
94827         (dir_name): Remove the restriction that there be no
94828         trailing slashes.  Now, this code skips past them, effectively
94829         ignoring them.
94830         [TEST_DIRNAME] (main): New unit tests.
94831
94832         * lib/memrchr.c: New file from GNU libc.
94833         Undef __memrchr, too.
94834         [!weak_alias]: Define __memrchr to memrchr.
94835         Guard weak_alias use with `#ifdef weak_alias'.
94836
94837 2000-10-21  Jim Meyering  <meyering@lucent.com>
94838
94839         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
94840         (dir_name): Use dir_name_r.
94841         * lib/dirname.h (dir_name_r): Declare it.
94842
94843 2000-10-17  Jim Meyering  <meyering@lucent.com>
94844
94845         * lib/quote.h (PARAMS): Define and use.
94846         Reported by Akim Demaille.
94847
94848         * lib/getopt.c: Update from libc.
94849
94850 2000-10-16  Jim Meyering  <meyering@lucent.com>
94851
94852         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
94853         setlocale.
94854         From Jan Fedak.
94855
94856 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
94857
94858         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
94859
94860 2000-09-25  Jim Meyering  <meyering@lucent.com>
94861
94862         * lib/md5.h (rol): Define (from GnuPG).
94863
94864         * lib/sha.c: Give credit (GnuPG) where due.
94865         (M): Use rol rather than open-coding it.
94866         Add a FIXME comment.
94867
94868 2000-09-21  Jim Meyering  <meyering@lucent.com>
94869
94870         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
94871         Reported by Michael Stone.
94872
94873 2000-09-20  Jim Meyering  <meyering@lucent.com>
94874
94875         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
94876         (noinst_HEADERS): Add sha.h.
94877         Based on code from Scott G. Miller and from GnuPG.
94878
94879 2000-09-18  Jim Meyering  <meyering@lucent.com>
94880
94881         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
94882         LIBS. Otherwise, everyone ends up linking with -lelf for some
94883         configurations.
94884         Reported by Mike Stone.
94885
94886 2000-09-15  Jim Meyering  <meyering@lucent.com>
94887
94888         * lib/regex.c: Update from libc.
94889
94890 2000-09-10  Jim Meyering  <meyering@lucent.com>
94891
94892         * lib/getopt.c (_getopt_internal): Update from glibc.
94893
94894 2000-09-09  Jim Meyering  <meyering@lucent.com>
94895
94896         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
94897         think it should be used as a general replacement for isascii.
94898         * lib/fnmatch.c: Likewise.
94899         * lib/mbswidth.c: Likewise
94900         * lib/regex.c: Likewise.
94901
94902         Don't use atoi.
94903         * lib/userspec.c: Include sys/param.h and limits.h.
94904         Include xstrtol.h.
94905         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
94906         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
94907         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
94908         UID, GID.  Check range.
94909
94910 2000-09-06  Jim Meyering  <meyering@lucent.com>
94911
94912         * lib/getopt.c (_getopt_internal): Update from glibc.
94913
94914 2000-08-30  Jim Meyering  <meyering@lucent.com>
94915
94916         * lib/strftime.c: Merge in changes from GNU libc.
94917
94918 2000-08-26  Jim Meyering  <meyering@lucent.com>
94919
94920         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
94921         * m4/fpending.m4: New file.
94922
94923 2000-08-26  Jim Meyering  <meyering@lucent.com>
94924
94925         * lib/closeout.c: Include "__fpending.h".
94926         (close_stdout_status): Return right away if there's nothing to flush.
94927
94928         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
94929         * lib/__fpending.c: New file.
94930         * lib/__fpending.h: New file.
94931
94932 2000-08-20  Jim Meyering  <meyering@lucent.com>
94933
94934         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
94935         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
94936         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
94937
94938 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
94939
94940         Improve fileutils installation on systems where running
94941         programs (like install) can't be unlinked.
94942         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
94943         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
94944
94945 2000-08-07  Paul Eggert  <eggert@twinsun.com>
94946
94947         Standardize on "memory exhausted" instead of "Memory exhausted"
94948         or "virtual memory exhausted".
94949         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
94950         "virtual memory exhausted".
94951         * lib/same.c (same_name): Invoke xalloc_die instead of printing
94952         our own message.
94953         * lib/userspec.c (parse_user_spec): Likewise.
94954         * lib/bumpalloc.h: comment fix
94955         * lib/same.c, userspec.c: Include xalloc.h.
94956
94957         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
94958         not char *const and pointing to a constant array.
94959         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
94960         (xrealloc): Comment fix.
94961
94962         * lib/userspec.c (parse_user_spec):
94963         Don't translate a message until just before returning,
94964         to avoid unnecessary translation.
94965
94966 2000-08-07  Jim Meyering  <meyering@lucent.com>
94967
94968         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
94969         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
94970         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
94971         getgroups.c, gethostname.c, getopt.h, group-member.c,
94972         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
94973         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
94974         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
94975         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
94976         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
94977         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
94978         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
94979         yesno.c: Back out Copyright date changes for each file with no change
94980         this year.  This eases coordination with other programs using the same
94981         source code modules.  From Paul Eggert.
94982
94983 2000-08-06  Paul Eggert  <eggert@twinsun.com>
94984
94985         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
94986         not char, for compatibility with glibc 2.1.3 strftime.c.
94987
94988 2000-08-03  Greg McGary  <greg@mcgary.org>
94989
94990         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
94991         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
94992         (EXTEND_BUFFER): Use them.
94993
94994 2000-08-01  Jim Meyering  <meyering@lucent.com>
94995
94996         * lib/dirname.c (ISSLASH): Define.
94997         (BACKSLASH_IS_PATH_SEPARATOR): Define.
94998         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
94999         both `\' and `/' may be use as path separators.
95000         Based on a patch from Prashant TR.
95001
95002 2000-07-31  Paul Eggert  <eggert@twinsun.com>
95003
95004         * lib/quotearg.c (quotearg_n_options): Don't make the initial
95005         slot vector a constant, since it might get modified.
95006
95007 2000-07-31  Jim Meyering  <meyering@lucent.com>
95008
95009         * lib/xmalloc.c: Use `virtual memory exhausted', not
95010         `Memory exhausted'.
95011         * lib/obstack.c (print_and_abort): Likewise.
95012
95013 2000-07-30  Paul Eggert  <eggert@twinsun.com>
95014
95015         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
95016         buffer, so that the caller can always quote one small
95017         component of a "memory exhausted" message in slot 0.
95018         From a suggestion by Jim Meyering.
95019
95020 2000-07-30  Jim Meyering  <meyering@lucent.com>
95021
95022         * lib/makepath.c (make_path): Quote the other instance, too.
95023
95024         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
95025         (STATIC_BUF_SIZE): Define.
95026         (quotearg_n_options): Use only statically allocated storage when
95027         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
95028         than STATIC_BUF_SIZE.
95029
95030 2000-07-29  Jim Meyering  <meyering@lucent.com>
95031
95032         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
95033         * lib/dirname.c (dir_name): Likewise.
95034
95035         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
95036         `/'.
95037
95038         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
95039         (dir_name): Assert that there are no trailing slashes.
95040
95041 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
95042
95043         * lib/mbswidth.h (mbswidth): Add a flags argument.
95044         (mbswidth): New declaration.
95045         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
95046         * lib/mbswidth.c (mbswidth): Add a flags argument.
95047         (mbsnwidth): New function.
95048
95049 2000-07-24  Jim Meyering  <meyering@lucent.com>
95050
95051         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
95052
95053 2000-07-23  Paul Eggert  <eggert@twinsun.com>
95054
95055         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
95056
95057 2000-07-23  Paul Eggert  <eggert@twinsun.com>
95058
95059         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
95060         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
95061         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
95062         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
95063         invoke multibyte primitives.
95064
95065 2000-07-23  Paul Eggert  <eggert@twinsun.com>
95066
95067         * lib/quotearg.c:
95068         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
95069         so that mbstate_t is always defined.
95070
95071         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
95072         be 1 in at least one GCC installation, and this configuration
95073         error is likely to be common.  Ignoring MB_LEN_MAX hurts
95074         performance on hosts that have mbrtowc but have only unibyte
95075         locales, but I assume these hosts are rare.
95076
95077 2000-07-23  Paul Eggert  <eggert@twinsun.com>
95078
95079         * lib/mbswidth.c (_XOPEN_SOURCE):
95080         Don't define; this causes problems on Solaris 7.
95081         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
95082
95083 2000-07-23  Jim Meyering  <meyering@lucent.com>
95084
95085         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
95086         too: getgrgid, getpwuid, getuid.
95087
95088 2000-07-23  Jim Meyering  <meyering@lucent.com>
95089
95090         * lib/basename.c (base_name): Add an assertion.
95091
95092 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
95093
95094         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
95095         shadow its mbsinit function.
95096
95097 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
95098
95099         * lib/mbswidth.h: New file.
95100         * lib/mbswidth.c: New file.
95101         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
95102         (noinst_HEADERS): Add mbswidth.h.
95103
95104 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
95105
95106         * lib/config.charset: Add support for FreeBSD. Improve support for
95107         HP-UX and IRIX 6.
95108
95109 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
95110
95111         * m4/mbswidth.m4: New file.
95112         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
95113
95114 2000-07-15  Jim Meyering  <meyering@lucent.com>
95115
95116         * lib/makepath.c: Include quote.h.
95117         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
95118         corresponding argument in a `quote (...)' call.
95119         Give better diagnostics.
95120
95121         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
95122         (noinst_HEADERS): Add quote.h.
95123
95124         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
95125         from tar's src/misc.c.
95126         * lib/quote.h: New file.  Prototypes for same.
95127
95128 2000-07-14  Paul Eggert  <eggert@twinsun.com>
95129
95130         From a suggestion by Bruno Haible.
95131         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
95132         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
95133         to decide whether to define the BeOS workaround macro;
95134         this adjusts to the change to AC_MBSTATE_T.
95135
95136 2000-07-14  Jim Meyering  <meyering@lucent.com>
95137
95138         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
95139         jm_AC_TYPE_UINTMAX_T.
95140
95141 2000-07-13  Paul Eggert  <eggert@twinsun.com>
95142
95143         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
95144
95145         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
95146         quotearg_buffer_restyled): Add support for
95147         clocale_quoting_style.  Undo previous change to
95148         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
95149         and "{RIGHT QUOTATION MARK}" msgids.
95150
95151 2000-07-10  Paul Eggert  <eggert@twinsun.com>
95152
95153         From a suggestion by Bruno Haible.
95154         * m4/mbstate_t.m4 (AC_MBSTATE_T):
95155         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
95156         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
95157         and mbstate_t, to a single-part test that simply defines mbstate_t.
95158         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
95159         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
95160
95161 2000-07-10  Jim Meyering  <meyering@lucent.com>
95162
95163         * m4/strerror_r.m4: Mirror the correction made in autoconf.
95164
95165         * m4/gnu-source.m4: Output to confdefs.h directly.
95166         Suggestion from Akim Demaille.
95167
95168 2000-07-09  Paul Eggert  <eggert@twinsun.com>
95169
95170         The old behavior of quoting `like this' doesn't look good with
95171         newer, ISO-style fonts.  See:
95172         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
95173
95174         Instead, quote "like this" by default.  Let the translator
95175         tailor the locale-specific quoting behavior by providing
95176         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
95177
95178         * lib/quotearg.c (N_): New macro.
95179         (gettext_default): New function.
95180         (quotearg_buffer_restyled): Use
95181         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
95182         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
95183
95184 2000-07-09  Jim Meyering  <meyering@lucent.com>
95185
95186         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
95187         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
95188
95189         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
95190         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
95191
95192 2000-07-09  Jim Meyering  <meyering@lucent.com>
95193
95194         * lib/Most files: Update copyright dates to include 2000.
95195
95196 2000-07-08  Jim Meyering  <meyering@lucent.com>
95197
95198         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
95199         if not defined.
95200         (xgethostname): Remove now-unnecessary #ifdef.
95201         Move declaration of `err' into loop where it's used.
95202
95203 2000-07-05  Paul Eggert  <eggert@twinsun.com>
95204         and Bruno Haible  <haible@clisp.cons.org>
95205
95206         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
95207         only if the test for an object-type mbstate_t fails.  This
95208         prevents us from mistakenly reporting that mbstate_t is a
95209         system object type after we "#define mbstate_t int" to work
95210         around its lack.
95211
95212 2000-07-05  Paul Eggert  <eggert@twinsun.com>
95213         and Bruno Haible  <haible@clisp.cons.org>
95214
95215         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
95216
95217 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
95218
95219         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
95220         to strerror_r.
95221         Include <ctype.h> for use of isalpha.
95222
95223 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
95224
95225         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
95226         by allocating a larger buffer. Test the gethostname return value for
95227         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
95228         returns an error and ENAMETOOLONG isn't defined.
95229
95230 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
95231
95232         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
95233         dimension.
95234
95235 2000-07-04  Jim Meyering  <meyering@lucent.com>
95236
95237         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
95238         of the deprecated AC_CHECKING.
95239
95240 2000-07-04  Jim Meyering  <meyering@lucent.com>
95241
95242         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
95243         Reported by Bruno Haible.
95244
95245 2000-07-04  Jim Meyering  <meyering@lucent.com>
95246
95247         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
95248         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
95249         lacks mbrtowc.
95250
95251 2000-07-03  Paul Eggert  <eggert@twinsun.com>
95252
95253         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
95254         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
95255
95256 2000-07-03  Paul Eggert  <eggert@twinsun.com>
95257         and Bruno Haible  <haible@clisp.cons.org>
95258
95259         * lib/quotearg.c (mbrtowc):
95260         Assign to *pwc, and return 1 only if result is nonzero.
95261         (iswprint): Use ISPRINT when substituting our own mbrtowc.
95262
95263 2000-07-03  Jim Meyering  <meyering@lucent.com>
95264
95265         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
95266
95267 2000-07-03  Jim Meyering  <meyering@lucent.com>
95268
95269         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
95270         This is necessary to get a definition of e.g., UTMP_FILE on
95271         HP-UX 10.20.
95272         From Bob Proulx.
95273
95274 2000-07-02  Jim Meyering  <meyering@lucent.com>
95275
95276         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
95277
95278         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
95279         AC_LIBOBJ(function_name).
95280         * m4/chown.m4: Likewise.
95281         * m4/fnmatch.m4: Likewise.
95282         * m4/ftruncate.m4: Likewise.
95283         * m4/getgroups.m4: Likewise.
95284         * m4/getline.m4: Likewise.
95285         * m4/group-member.m4: Likewise.
95286         * m4/jm-macros.m4: Likewise.
95287         * m4/lstat.m4: Likewise.
95288         * m4/malloc.m4: Likewise.
95289         * m4/memcmp.m4: Likewise.
95290         * m4/nanosleep.m4: Likewise.
95291         * m4/putenv.m4: Likewise.
95292         * m4/realloc.m4: Likewise.
95293         * m4/regex.m4: Likewise.
95294         * m4/stat.m4: Likewise.
95295         * m4/strftime.m4: Likewise.
95296
95297 2000-07-02  Jim Meyering  <meyering@lucent.com>
95298
95299         * lib/quotearg.c (mbstate_t): Don't define here.
95300
95301 2000-07-02  Jim Meyering  <meyering@lucent.com>
95302
95303         * lib/nanosleep.c (SIGCONT): Define if not already defined.
95304
95305 2000-07-01  Jim Meyering  <meyering@lucent.com>
95306
95307         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
95308
95309 2000-07-01  Jim Meyering  <meyering@lucent.com>
95310
95311         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
95312         problem.
95313
95314 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
95315
95316         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
95317         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
95318
95319 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
95320
95321         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
95322         per change in ../m4/ls-mntd-fs.m4.
95323         (read_filesystem_list): Ignore symbolic links.
95324
95325 2000-06-29  Jim Meyering  <meyering@lucent.com>
95326
95327         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
95328         for declaration of strcmp.
95329
95330         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
95331
95332         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
95333         Avoid warning by casting result to `char *' to remove `const'.
95334
95335 2000-06-28  Jim Meyering  <meyering@lucent.com>
95336
95337         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
95338         included by quotearg.c, for which we perform this test.  From
95339         Bruno Haible.
95340
95341 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
95342
95343         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
95344         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
95345         <utmpx.h> exists, put readutmp.o into LIBOBJS.
95346
95347 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
95348
95349         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
95350
95351 2000-06-26  Paul Eggert  <eggert@twinsun.com>
95352
95353         savedir now sets errno on failure and invokes xmalloc to get memory.
95354         Fix a couple of other minor bugs while we're at it.
95355
95356         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
95357         (NAMLEN): Remove macro.
95358         (malloc, realloc): Remove decls.
95359         (stpcpy): Likewise.
95360         ("xalloc.h"): Include.
95361         (NAME_SIZE_DEFAULT): New macro.
95362         (savedir): Use xmalloc / xrealloc to allocate memory.
95363         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
95364         Skip "" directory entries.
95365         Use strlen to calculate directory entry length, since the old method
95366         is rarely used these days and isn't worth supporting.
95367         Don't use a pointer after freeing it.
95368         Check for integer overflow when calculating allocation size.
95369         Use memcpy to copy entries, instead of stpcpy.
95370         Set errno properly when returning NULL.
95371         Check for readdir error.
95372
95373 2000-06-26  Jim Meyering  <meyering@lucent.com>
95374
95375         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
95376
95377 2000-06-25  Jim Meyering  <meyering@lucent.com>
95378
95379         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
95380         Linux header bug when _XOPEN_SOURCE is defined to 500.
95381
95382 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
95383
95384         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
95385         deficiency.
95386
95387 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
95388
95389         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
95390         Include xalloc.h.
95391         Don't include <stdlib.h>.  Don't declare malloc, realloc.
95392
95393 2000-06-24  Jim Meyering  <meyering@lucent.com>
95394
95395         * m4/strerror_r.m4: Revive this file -- to try out an experimental
95396         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
95397         for which strerror does return char*, but which lacks a conveniently
95398         accessible declaration of the function.  If the compile-test says
95399         strerror_r doesn't work, then resort to a `run'-test that works on
95400         BeOS and segfaults on DEC Unix.
95401
95402 2000-06-24  Jim Meyering  <meyering@lucent.com>
95403
95404         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
95405
95406 2000-06-23  Paul Eggert  <eggert@twinsun.com>
95407
95408         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
95409         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
95410
95411 2000-06-23  Paul Eggert  <eggert@twinsun.com>
95412
95413         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
95414         (mbrtowc, mbstate_t): Define substitutes if
95415         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
95416         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
95417         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
95418
95419 2000-06-23  Jim Meyering  <meyering@lucent.com>
95420
95421         * m4/afs.m4: Add missing AC_MSG_RESULT.
95422         Reported by Bruno Haible.
95423
95424         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
95425         Suggestion from Bruno Haible.
95426
95427 2000-06-23  Jim Meyering  <meyering@lucent.com>
95428
95429         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
95430
95431 2000-06-21  Jim Meyering  <meyering@lucent.com>
95432
95433         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
95434
95435 2000-06-21  Jim Meyering  <meyering@lucent.com>
95436
95437         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
95438         (noinst_HEADERS): Add getstr.h.
95439
95440         * lib/getline.c (getstr): Move into a separate file.
95441         * lib/getstr.c (getstr): New file, extracted from getline.c, with
95442         the following changes: new parameter, delim2; both delim[12]
95443         parameters have type `int', not `char'.  The latter would lose
95444         with 8-bit delimiters.
95445         * lib/getstr.h: New file.
95446
95447 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
95448
95449         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
95450         than 1024, return a memory chunk of least possible size, instead
95451         of size PATH_MAX + 2. In the loop, increment the size proportionally.
95452         Use free/xmalloc instead of xrealloc to avoid copying for very long
95453         paths.
95454
95455 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
95456
95457         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
95458         the empty string.
95459
95460 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
95461
95462         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
95463         address, not strdup.  Include <stdlib.h> and don't declare free().
95464
95465 2000-06-19  Jim Meyering  <meyering@lucent.com>
95466
95467         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
95468
95469 2000-06-18  Jim Meyering  <meyering@lucent.com>
95470
95471         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
95472
95473         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
95474         `checking whether...' message to be consistent with that of the
95475         lstat test.
95476
95477 2000-06-18  Jim Meyering  <meyering@lucent.com>
95478
95479         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
95480         Besides, these days every porting target provides a mkdir function.
95481
95482         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
95483         needed. (this snippet comes from src/system.h).
95484
95485 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
95486
95487         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
95488
95489 2000-06-15  Paul Eggert  <eggert@twinsun.com>
95490
95491         * lib/human.c (adjust_value): New function.
95492         (human_readable_inexact): Apply rounding style even when
95493         printing approximate values.
95494
95495 2000-06-14  Paul Eggert  <eggert@twinsun.com>
95496
95497         * lib/human.c (human_readable_inexact): Allow an input block
95498         size that is not a multiple of the output block size, and vice versa.
95499         Reported by Piergiorgio Sartor.
95500
95501 2000-06-14  Paul Eggert  <eggert@twinsun.com>
95502
95503         * lib/getdate.y (get_date): Apply relative times after time
95504         zone indicator, not before.  Reported by Todd A. Jacobs.
95505
95506 2000-06-13  Jim Meyering  <meyering@lucent.com>
95507
95508         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
95509
95510         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
95511
95512 2000-06-12  Paul Eggert  <eggert@twinsun.com>
95513
95514         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
95515
95516 2000-06-12  Jim Meyering  <meyering@lucent.com>
95517
95518         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
95519         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
95520         optional argument.
95521         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
95522         the optional argument, `lib'.
95523
95524 2000-06-08  Jim Meyering  <meyering@lucent.com>
95525
95526         * m4/largefile.m4: Remove file (now that it's part of autoconf).
95527
95528 2000-06-04  Paul Eggert  <eggert@twinsun.com>
95529
95530         Rewrite largefile configuration so that we don't need to run
95531         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
95532         AC_CANONICAL_HOST in configure.in -- jmm]
95533
95534         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
95535         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
95536         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
95537         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
95538         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
95539         All uses changed.
95540         Instead of inspecting the output of getconf, try to compile the
95541         test program without and with the macro definition.
95542         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
95543         for getconf.  Instead, check for the needed flags by compiling
95544         test programs.
95545
95546 2000-06-04  Paul Eggert  <eggert@twinsun.com>
95547
95548         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
95549
95550 2000-06-04  Jim Meyering  <meyering@lucent.com>
95551
95552         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
95553         SunOS 4.1.4 for which gid_t is an unsigned type.
95554
95555 2000-06-03  Jim Meyering  <meyering@lucent.com>
95556
95557         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
95558         now that autoconf requires that.
95559
95560         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
95561         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
95562         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
95563
95564 2000-06-03  Jim Meyering  <meyering@lucent.com>
95565
95566         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
95567
95568 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
95569
95570         * m4/glibc21.m4: New file.
95571         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
95572
95573 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
95574
95575         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
95576         newer, don't install charset.alias.
95577         * lib/config.charset: Change the Linux/glibc rules so they become empty
95578         on glibc-2.1 or newer.
95579
95580 2000-06-02  Jim Meyering  <meyering@lucent.com>
95581
95582         * lib/mountlist.c: Back out last change.  Instead, do this...
95583         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
95584         me_dummy member using the same `ignore'-testing code.
95585         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
95586         fs_type strings.
95587         From Mark D. Roth.
95588
95589 2000-05-29  Jim Meyering  <meyering@lucent.com>
95590
95591         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
95592         mounts with the `ignore' attribute.  Based on a patch from
95593         Mark D. Roth.
95594
95595 2000-05-28  Jim Meyering  <meyering@lucent.com>
95596
95597         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
95598         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
95599         * m4/stat.m4: Likewise.
95600         * m4/lstat.m4: Likewise.
95601         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
95602
95603         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
95604         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
95605
95606 2000-05-26  Jim Meyering  <meyering@lucent.com>
95607
95608         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
95609
95610 2000-05-24  Jim Meyering  <meyering@lucent.com>
95611
95612         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
95613         autoconf requires that.
95614         * m4/lib-check.m4: Likewise.
95615         * m4/jm-macros.m4: Likewise.
95616         * m4/strftime.m4: Likewise.
95617
95618         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
95619         AC_CHECK_DECLS, now that autoconf requires that.
95620
95621 2000-05-22  Jim Meyering  <meyering@lucent.com>
95622
95623         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
95624         * m4/lstat.m4: Likewise.
95625
95626 2000-05-22  Jim Meyering  <meyering@lucent.com>
95627
95628         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
95629
95630 2000-05-20  Jim Meyering  <meyering@lucent.com>
95631
95632         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
95633         (jm_PREREQ): Use it.
95634
95635 2000-05-18  Jim Meyering  <meyering@lucent.com>
95636
95637         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
95638         back, too, since it may have been modified by allocate_entry.
95639         (hash_delete): Rewrite to use neither the assignment operator
95640         nor the comma operator in an if-expression.
95641
95642 2000-05-15  Paul Eggert  <eggert@twinsun.com>
95643
95644         * lib/closeout.c:
95645         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
95646         Remove; no longer needed.
95647         "quotearg.h": Add include.
95648         (file_name): Do not bother to explicitly initialize to NULL; it's less
95649         efficient on some hosts.
95650         (close_stdout_status): Remove test as to whether stdout was already
95651         closed; it breaks for the case "echo x | sort >&-".
95652         Quote file name colons.
95653         Do not assume that _("write error") lacks format strings.
95654
95655 2000-05-15  Jim Meyering  <meyering@lucent.com>
95656
95657         * lib/version-etc.c (version_etc_copyright): Update the copyright
95658         string used in all --version output.
95659
95660 2000-05-14  Jim Meyering  <meyering@lucent.com>
95661
95662         * lib/closeout.c (close_stdout_set_file_name): New function.
95663         (close_stdout_status): Use new file-scoped global.
95664         Return right away if fstat says the stdout file descriptor is invalid.
95665         * lib/closeout.h (close_stdout_set_file_name): Declare.
95666
95667 2000-05-10  Jim Meyering  <meyering@lucent.com>
95668
95669         * lib/closeout.c [default_exit_status]: New file-scoped variable.
95670         (close_stdout_set_status): New function.
95671         * lib/closeout.h (close_stdout_set_status): Declare.
95672
95673 2000-05-09  Jim Meyering  <meyering@lucent.com>
95674
95675         * m4/gettext.m4: Rename this...
95676         * m4/libintl.m4: ...to this.
95677
95678 2000-05-08  Jim Meyering  <meyering@lucent.com>
95679
95680         * lib/long-options.c: Don't include closeout.h.
95681         (parse_long_options): Don't call close_stdout for --version.
95682
95683 2000-05-06  Paul Eggert  <eggert@twinsun.com>
95684
95685         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
95686         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
95687         2.1.3 bug.  This avoids a clash when files like regex.c define
95688         _GNU_SOURCE.
95689
95690 2000-05-06  Jim Meyering  <meyering@lucent.com>
95691
95692         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
95693         (AC_REPLACE_FUNCS): Add strnlen.
95694
95695         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
95696         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
95697
95698         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
95699         AC_SEARCH_LIBS call for nanosleep.
95700         (LIB_NANOSLEEP): Set and AC_SUBST.
95701
95702 2000-05-06  Jim Meyering  <meyering@lucent.com>
95703
95704         * lib/strnlen.c: Undefine __strnlen and strnlen.
95705         [!weak_alias]: Define __strnlen to strnlen.
95706
95707         * lib/atexit.c: New file, from libiberty.
95708
95709 2000-05-06  Jim Meyering  <meyering@lucent.com>
95710
95711         * lib/closeout.c (close_stdout_status): Also check for errors on the
95712         stderr stream.
95713
95714 2000-05-05  Jim Meyering  <meyering@lucent.com>
95715
95716         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
95717         AC_SEARCH_LIBS call for clock_gettime.
95718         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
95719
95720         * m4/search-libs.m4: Update from autoconf.
95721
95722         su doesn't work on Solaris 2.6.
95723         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
95724         <shadow.h>.  Reported by Dragos Harabor.
95725
95726 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
95727
95728         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
95729         memcpy instead of xmalloc, xrealloc, path_concat.
95730         (locale_charset): Treat empty environment variables as absent.
95731         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
95732
95733 2000-05-04  Jim Meyering  <meyering@lucent.com>
95734
95735         * lib/getopt.c: Update from glibc.
95736         * lib/obstack.c: Likewise.
95737         * lib/obstack.h: Likewise.
95738         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
95739         file
95740
95741         * lib/regex.h: Likewise.
95742         * lib/strndup.c: Likewise.
95743         * lib/strnlen.c: New file, from glibc.
95744
95745 2000-05-03  Jim Meyering  <meyering@lucent.com>
95746
95747         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
95748
95749 2000-05-02  Paul Eggert  <eggert@twinsun.com>
95750
95751         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
95752         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
95753         compile-time test, rather than inspecting host and OS, to
95754         decide whether to define _LARGEFILE_SOURCE.
95755
95756 2000-05-01  Jim Meyering  <meyering@lucent.com>
95757
95758         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
95759
95760         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
95761         Based on a patch from Bruno Haible.
95762
95763 2000-05-01  Jim Meyering  <meyering@lucent.com>
95764
95765         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
95766
95767 2000-04-29  Jim Meyering  <meyering@lucent.com>
95768
95769         * lib/path-concat.c: Declare strdup only if it's not defined.
95770         * lib/canon-host.c: Likewise.
95771
95772 2000-04-28  Jim Meyering  <meyering@lucent.com>
95773
95774         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
95775         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
95776         is included first, then limits.h is included by locale.h by libintl.h.
95777         From John David Anglin.
95778
95779 2000-04-25  Jim Meyering  <meyering@lucent.com>
95780
95781         * lib/makepath.c (S_IRWXUGO): Define.
95782         (make_path): Always perform explicit chmod if MODE specifies any
95783         of the `special' permission bits.  Prompted by a bug report against
95784         install from Mate Wierdl and Joost van Baal.
95785
95786 2000-04-18  Jim Meyering  <meyering@lucent.com>
95787
95788         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
95789         (jm_PREREQ): Use it.
95790
95791 2000-04-18  Jim Meyering  <meyering@lucent.com>
95792
95793         * lib/README: New file.
95794
95795         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
95796         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
95797
95798 2000-04-17  Jim Meyering  <meyering@lucent.com>
95799
95800         Get it right :-)
95801         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
95802         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
95803         Suggestion from Akim Demaille.
95804
95805 2000-04-17  Jim Meyering  <meyering@lucent.com>
95806
95807         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
95808         the definition of it to rpl_strftime also defined-away the system's
95809         declaration.
95810
95811 2000-04-15  Jim Meyering  <meyering@lucent.com>
95812
95813         Use `C' to denote so-called `contiguous' files, the same way
95814         that tar does.
95815         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
95816         (ftypelet): Use S_ISCTG.
95817         From Michael Deutschmann.
95818
95819 2000-04-14  Jim Meyering  <meyering@lucent.com>
95820
95821         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
95822         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
95823         clobbered.
95824
95825 2000-04-14  Jim Meyering  <meyering@lucent.com>
95826
95827         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
95828
95829 2000-04-13  Jim Meyering  <meyering@lucent.com>
95830
95831         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
95832         AH_VERBATIM to insert required #ifndef into config.h.in.
95833         Suggestion from Akim Demaille.
95834
95835 2000-04-12  Jim Meyering  <meyering@lucent.com>
95836
95837         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
95838         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
95839         Christian Krackowizer.
95840
95841         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
95842         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
95843         (AC_SYS_LARGEFILE): Require.
95844         (AM_C_PROTOTYPES): Require.
95845
95846 2000-04-08  Jim Meyering  <meyering@lucent.com>
95847
95848         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
95849         names don't conflict.  Reported by Eli Zaretskii.
95850
95851 2000-04-07  Jim Meyering  <meyering@lucent.com>
95852
95853         * lib/putenv.c: Move inclusion of errno.h so it follows that of
95854         sys/types.h, to work around system header problems on AIX 3.2.5.
95855         From Bruno Haible.
95856
95857 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
95858
95859         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
95860         bug.  Deal with the different error behavior of Irix iconv.
95861
95862 2000-04-05  Paul Eggert  <eggert@twinsun.com>
95863
95864         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
95865         IRIX if the installer said otherwise.
95866
95867 2000-04-05  Jim Meyering  <meyering@lucent.com>
95868
95869         Portability tweaks required for ultrix4.3.
95870         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
95871         (jm_CHECK_DECLS): Add getutent to the list of functions.
95872         (_jm_DECL_HEADERS): Add utmpx.h.
95873         From John David Anglin.
95874
95875         * m4/strftime.m4: Back out the 2000-04-02 change.
95876         Instead of that change, simply undefine putenv in the test program.
95877
95878 2000-04-05  Jim Meyering  <meyering@lucent.com>
95879
95880         Portability tweaks required for ultrix4.3.
95881         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
95882         getutent.
95883         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
95884         * lib/canon-host.c: Declare strdup.
95885         * lib/path-concat.c: Likewise.
95886         From John David Anglin.
95887
95888 2000-04-04  Jim Meyering  <meyering@lucent.com>
95889
95890         Be more DOS 8.3-friendly.
95891         * lib/ref-add.sin: Renamed from ref-add.sed.in.
95892         * lib/ref-del.sin: Renamed from ref-del.sed.in.
95893         * lib/Makefile.am: Reflect renaming.
95894         Reported by Eli Zaretskii.
95895
95896         Use a temporary file name that won't clash with `charset.alias'
95897         in the DOS 8.3 name space.
95898         * lib/Makefile.am (charset_tmp): Define.
95899         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
95900         (uninstall-local): Likewise.
95901         Reported by Eli Zaretskii.
95902
95903 2000-04-03  Jim Meyering  <meyering@lucent.com>
95904
95905         * m4/gettext.m4: Fix typo in comment.
95906
95907         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
95908         textutils/configure.in).  Suggestion from Paul Eggert.
95909         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
95910
95911 2000-04-02  Paul Eggert  <eggert@twinsun.com>
95912
95913         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
95914         variable in the shell rather than using putenv, which isn't
95915         portable.  This avoids the configure-time inter-test dependency
95916         on the potentially-renamed putenv function.
95917
95918 2000-03-30  Paul Eggert  <eggert@twinsun.com>
95919
95920         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
95921         before checking struct stat.st_blksize, so that
95922         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
95923
95924 2000-03-29  Paul Eggert  <eggert@twinsun.com>
95925
95926         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
95927         since strftime.c uses HAVE_STRFTIME to decide whether to use
95928         the underlying strftime.
95929
95930 2000-03-29  Paul Eggert  <eggert@twinsun.com>
95931
95932         * lib/time/strftime.c (my_strftime): Make sure we call the system
95933         strftime, not ourselves, when invoking the underlying strftime.
95934
95935 2000-03-24  Jim Meyering  <meyering@lucent.com>
95936
95937         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
95938         (charset_alias): Define.
95939         (install-exec-local): Factor out common code.
95940         (uninstall-local): Split lines longer than 80.
95941         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
95942         (SUFFIXES): Define.
95943         (.sed.in.sed): New rule.  Don't redirect directly to $@.
95944         (CLEANFILES): Add ref-add.sed and ref-del.sed.
95945
95946 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
95947
95948         * lib/config.charset: Output a line containing "Packages using this
95949         file".
95950         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
95951         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
95952         ref-del.sed): New rules.
95953
95954 2000-03-17  Jim Meyering  <meyering@lucent.com>
95955
95956         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
95957         Otherwise, include <strings.h>
95958
95959 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
95960
95961         * lib/unicodeio.c (utf8_wctomb): New function.
95962         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
95963         format instead of in UCS-4 with platform dependent endianness.
95964
95965 2000-03-10  Jim Meyering  <meyering@lucent.com>
95966
95967         * m4/lib-check.m4: Look for getspnam in -lgen, too.
95968         From Marco Franzen.
95969
95970 2000-03-07  Paul Eggert  <eggert@twinsun.com>
95971
95972         * lib/savedir.c (savedir): Work even if directory size is
95973         negative; this can happen with some screwy NFS configurations.
95974
95975 2000-03-06  Jim Meyering  <meyering@lucent.com>
95976
95977         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
95978         if it's NULL (because we ran out of memory).  From Bruno Haible.
95979
95980 2000-03-05  Jim Meyering  <meyering@lucent.com>
95981
95982         * lib/localcharset.c ("path-concat.h"): Include.
95983         (get_charset_aliases): Use path_concat instead of ANSI string
95984         concatenation.
95985
95986         * lib/unicodeio.h (PARAMS): Define.
95987         Use it to guard prototype.
95988
95989 2000-03-04  Jim Meyering  <meyering@lucent.com>
95990
95991         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
95992         for lib/localcharset.c.
95993
95994 2000-03-04  Jim Meyering  <meyering@lucent.com>
95995
95996         * lib/Makefile.am (install-exec-local): Create $(libdir) before
95997         installing into it.
95998         (uninstall-local): Uncomment this rule so `make distcheck' works
95999         once again.
96000
96001         * lib/unicodeio.c (<errno.h>): Include it.
96002         (errno): Declare if not defined.
96003
96004         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
96005
96006         * lib/config.charset: New version, incorporating remarks from a linux
96007         i18n mailing list.  From Bruno Haible.
96008
96009 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
96010
96011         * m4/codeset.m4: New file.
96012         * m4/iconv.m4: New file.
96013         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
96014
96015 2000-03-03  Jim Meyering  <meyering@lucent.com>
96016
96017         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
96018
96019 2000-03-02  Jim Meyering  <meyering@lucent.com>
96020
96021         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
96022         the messages come out on separate lines.
96023
96024         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
96025         rather than jm_CHECK_DECLARATIONS.
96026         * m4/decl.m4: Remove now-unused file.
96027
96028         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
96029         geteuid.
96030
96031 2000-03-02  Jim Meyering  <meyering@lucent.com>
96032
96033         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
96034
96035 2000-03-01  Jim Meyering  <meyering@lucent.com>
96036
96037         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
96038         * lib/unicodeio.c: Likewise.
96039
96040 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
96041
96042         * lib/config.charset: New file.
96043         * lib/localcharset.c: New file.
96044         * lib/unicodeio.h, lib/unicodeio.c: New files.
96045         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
96046         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
96047         (noinst_HEADERS): Add unicodeio.h.
96048         (all-local, install-exec-local, charset.alias): New targets.
96049
96050 2000-02-28  Paul Eggert  <eggert@twinsun.com>
96051
96052         * lib/quotearg.c (ALERT_CHAR): New macro.
96053         (quotearg_buffer_restyled): Use it.
96054
96055 2000-02-27  Jim Meyering  <meyering@lucent.com>
96056
96057         * m4/check-decl.m4: Add getenv to the list.
96058
96059 2000-02-27  Jim Meyering  <meyering@lucent.com>
96060
96061         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
96062         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
96063
96064         * lib/backupfile.c: Guard inclusion of stdlib.h with
96065         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
96066         Declare malloc if needed.
96067
96068         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
96069         `#ifndef HAVE_DECL..'
96070         now that autoconf always defines the HAVE_DECL_ symbols.
96071         * lib/human.c: Likewise.
96072         * lib/same.c: Likewise.
96073         * lib/strtoumax.c: Likewise.
96074
96075         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
96076         declaration check was not run.
96077         * lib/hash.c: Likewise.
96078         * lib/human.c: Likewise.
96079         * lib/same.c: Likewise.
96080         * lib/strtoumax.c: Likewise.
96081
96082         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
96083         `.', then first look up the entire `.'-containing string as a login
96084         name.
96085
96086 2000-02-23  Jim Meyering  <meyering@lucent.com>
96087
96088         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
96089         in place of my hack.
96090
96091 2000-02-18  Paul Eggert  <eggert@twinsun.com>
96092
96093         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
96094         (textint): New typedef.
96095         (parser_control): Member year changed from int to textint.
96096         All uses changed.
96097         (YYSTYPE): Removed; replaced by %union with int and textint members.
96098         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
96099         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
96100         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
96101         (tSNUMBER, tUNUMBER): Now of type <textintval>.
96102         (date, number, to_year): Use width of number in digits, not its value,
96103         to determine whether it's a 2-digit year, or a 2-digit time.
96104         (yylex): Store number of digits of numeric tokens.
96105         Reported by John Kendall.
96106
96107         (parser_control): Changed from struct parser_control to typedef (for
96108         consistency).  All uses changed.
96109
96110         (tID): Removed; not used.
96111         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
96112
96113 2000-02-14  Paul Eggert  <eggert@twinsun.com>
96114
96115         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
96116         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
96117
96118 2000-02-12  Jim Meyering  <meyering@lucent.com>
96119
96120         * lib/userspec.c (ISDIGIT): Define it.
96121         (isdigit): Remove definition.
96122         (is_number): Use ISDIGIT, not isdigit.
96123         <libintl.h>: Include.
96124         (_ and N_): Define.
96125         (parse_user_spec): Mark translatable strings.
96126
96127 2000-02-10  Jim Meyering  <meyering@lucent.com>
96128
96129         With these changes, nanosleep.[ch] are finally enough like the other
96130         lib/* replacement files to compile on a few more losing systems.
96131
96132         * lib/nanosleep.h: Don't include config.h.
96133         Remove prototype from declaration of nanosleep.
96134         (PARAMS): Remove now-unneeded definition.
96135         * lib/nanosleep.c: #undef nanosleep.
96136         (rpl_nanosleep): Rename from nanosleep.
96137
96138 2000-02-10  Jim Meyering  <meyering@lucent.com>
96139
96140         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
96141         gnu_nanosleep to rpl_nanosleep.
96142
96143 2000-02-09  Jim Meyering  <meyering@lucent.com>
96144
96145         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
96146         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
96147
96148 2000-02-08  Akim Demaille  <akim@epita.fr>
96149
96150         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
96151         `[' and `]' and remove uses of `changequote'.
96152         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
96153         (AC_SYS_LARGEFILE): Likewise.
96154         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
96155         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
96156         of changequote.
96157         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
96158         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
96159         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
96160         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
96161
96162 2000-02-05  Jim Meyering  <meyering@lucent.com>
96163
96164         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
96165         Remove explicit use of AC_HEADER_TIME.  It is required by
96166         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
96167         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
96168         in autoconf whereby the expansion of the latter ended up preceding
96169         the expansion of its prerequisite, AC_HEADER_TIME.
96170         Reported by Volker Borchert.
96171
96172 2000-02-03  Jim Meyering  <meyering@lucent.com>
96173
96174         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
96175
96176 2000-02-03  Jim Meyering  <meyering@lucent.com>
96177
96178         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
96179         rather than with `#if HAVE_UTMPNAME'.
96180
96181 2000-02-02  Jim Meyering  <meyering@lucent.com>
96182
96183         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
96184         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
96185         Reported by Eli Zaretskii.
96186
96187 2000-02-01  Jim Meyering  <meyering@lucent.com>
96188
96189         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
96190
96191 2000-01-31  Jim Meyering  <meyering@lucent.com>
96192
96193         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
96194         functions.  Add the time.h and sys/time.h headers along with the
96195         AC_REQUIRE'ment of AC_HEADER_TIME.
96196
96197 2000-01-31  Jim Meyering  <meyering@lucent.com>
96198
96199         * lib/nanosleep.h (nanosleep): Guard declaration with
96200         `#if ! HAVE_DECL_NANOSLEEP'.
96201         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
96202         the declaration in that vendor's sys/timers.h.
96203         Reported by Christian Krackowizer.
96204
96205         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
96206         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
96207         (ISPRINT): Likewise.
96208         Reported by Tom Tromey.
96209
96210 2000-01-30  Jim Meyering  <meyering@lucent.com>
96211
96212         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
96213
96214         * m4/prereq.m4 (utmp_includes): Define.
96215         Check for ut_user and ut_name members in both struct utmpx
96216         and struct utmp.
96217
96218 2000-01-30  Jim Meyering  <meyering@lucent.com>
96219
96220         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
96221         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
96222         header files where only utmpx.ut_user is declared.
96223
96224         * lib/readutmp.h (UT_USER): Define.
96225
96226 2000-01-29  Jim Meyering  <meyering@lucent.com>
96227
96228         * m4/lib-check.m4: New file containing library-related checks from
96229         fileutils and sh-utils (textutils had none).
96230
96231 2000-01-28  Jim Meyering  <meyering@lucent.com>
96232
96233         * m4/perl.m4: Change format of warning message to look more like that
96234         from the missing script.  Suggestion from François Pinard.
96235
96236 2000-01-25  Jim Meyering  <meyering@lucent.com>
96237
96238         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
96239         well as time.h in the compile check.
96240         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
96241         Fix typo in cross-compiling case: s/yes/no/.
96242
96243 2000-01-23  Jim Meyering  <meyering@lucent.com>
96244
96245         * m4/jm-macros.m4: Move df-related tests here from
96246         fileutils/configure.in
96247
96248         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
96249         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
96250
96251         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
96252         s/space/ac_fsusage_space/.
96253         (jm_FILE_SYSTEM_USAGE): Take two parameters.
96254
96255         * m4/ftruncate.m4: New file (derived from part of
96256         fileutils/configure.in).
96257         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
96258         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
96259
96260         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
96261         AC_SUBST these here, rather than just in sh-util/configure.in, so
96262         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
96263         all the same.
96264         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
96265         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
96266         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
96267         (AC_SUBST(POW_LIBM)): Likewise.
96268         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
96269
96270 2000-01-23  Jim Meyering  <meyering@lucent.com>
96271
96272         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
96273         obstack.c.
96274
96275 2000-01-22  Jim Meyering  <meyering@lucent.com>
96276
96277         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
96278
96279         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
96280
96281         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
96282         configure.in
96283         (AC_CHECK_HEADERS): Likewise for sh-utils.
96284         (AC_CHECK_HEADERS): Likewise for textutils.
96285         Merge the three lists of headers.
96286
96287         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
96288         from fileutils' configure.in.
96289
96290         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
96291         code. Moved tests into their own function (_jm_DECL_HEADERS) in
96292         check-decl.m4.
96293
96294         * m4/check-decl.m4: Use #if rather than #ifdef.
96295         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
96296         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
96297         (_jm_DECL_HEADERS): Define new function.
96298         (jm_CHECK_DECLARATIONS): Require it.
96299
96300 2000-01-22  Jim Meyering  <meyering@lucent.com>
96301
96302         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
96303         [! HAVE_DECL_STRTOULL]: Declare strtoull.
96304         Required for some AIX systems.  Reported by Christian Krackowizer.
96305         [TESTING] (main): New function.
96306
96307         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
96308         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
96309         letters.
96310
96311         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
96312         iswprint.
96313
96314         * lib/strverscmp.c (ISDIGIT): Define.
96315         (strverscmp): Use ISDIGIT, not isdigit.
96316
96317 2000-01-19  Jim Meyering  <meyering@lucent.com>
96318
96319         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
96320         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
96321         defines `struct timespec' in <sys/time.h>
96322
96323         * m4/c-bs-a.m4: Remove uses of changequote altogether.
96324         Thanks to Akim for explaining.
96325
96326 2000-01-17  Paul Eggert  <eggert@twinsun.com>
96327
96328         * lib/nanosleep.c (nanosleep):
96329         Don't use SA_INTERRUPT to decide whether to call sigaction, as
96330         POSIX.1 doesn't require SA_INTERRUPT and some systems
96331         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
96332         it's been part of POSIX.1 since day 1 (in 1988).
96333
96334 2000-01-17  Jim Meyering  <meyering@lucent.com>
96335
96336         * lib/interlock: Remove unused file.  Reported by François Pinard.
96337
96338 2000-01-16  Paul Eggert  <eggert@twinsun.com>
96339
96340         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
96341         alert, backslash, formfeed, and vertical tab unnecessarily in
96342         shell quoting style.
96343
96344 2000-01-16  Jim Meyering  <meyering@lucent.com>
96345
96346         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
96347         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
96348         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
96349         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
96350
96351 2000-01-16  Jim Meyering  <meyering@lucent.com>
96352
96353         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
96354         because the latter didn't work.
96355
96356 2000-01-15  Jim Meyering  <meyering@lucent.com>
96357
96358         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
96359         (AC_REPLACE_FUNCS): Add memcpy and memset.
96360         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
96361         Add strpbrk.
96362         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
96363
96364 2000-01-12  Jim Meyering  <meyering@lucent.com>
96365
96366         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
96367         (jm_PREREQ): Use it.
96368         (jm_PREREQ_READUTMP): New macro.
96369         (jm_PREREQ): Use it.
96370
96371 2000-01-11  Paul Eggert  <eggert@twinsun.com>
96372
96373         Quote multibyte characters correctly.
96374         * m4/c-bs-a.m4: New file.
96375         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
96376         (jm_PREREQ): Use it.
96377
96378 2000-01-11  Paul Eggert  <eggert@twinsun.com>
96379
96380         * m4/uintmax_t.m4: Port to autoconf 2.13.
96381
96382 2000-01-08  Jim Meyering  <meyering@ascend.com>
96383
96384         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
96385         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
96386
96387 2000-01-04  Jim Meyering  <meyering@ascend.com>
96388
96389         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
96390         jm_STRUCT_DIRENT_D_TYPE.
96391         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
96392         jm_STRUCT_DIRENT_D_INO.
96393         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
96394         jm_STRUCT_UTIMBUF.
96395         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
96396         renamings.
96397         * m4/utime.m4: Likewise.
96398
96399         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
96400         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
96401
96402 2000-01-03  Paul Eggert  <eggert@twinsun.com>
96403
96404         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
96405         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
96406
96407 2000-01-02  Jim Meyering  <meyering@ascend.com>
96408
96409         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
96410         remember if this is necessary.
96411
96412 1999-12-26  Jim Meyering  <meyering@ascend.com>
96413
96414         * m4/jm-macros.m4: Use it here.
96415         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
96416
96417 1999-12-23  Jim Meyering  <meyering@ascend.com>
96418
96419         * m4/jm-macros.m4: Check for clock_gettime (moved from
96420         fileutils/configure.in)
96421         Check for gettimeofday.
96422
96423 1999-12-20  Jim Meyering  <meyering@ascend.com>
96424
96425         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
96426         autoconf-2.14a-1999-12-20.
96427
96428 1999-12-19  Jim Meyering  <meyering@ascend.com>
96429
96430         * m4/lstat-slash.m4: New file.
96431         * m4/jm-macros.m4: Use the new macro:
96432         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
96433
96434 1999-12-07  Jim Meyering  <meyering@ascend.com>
96435
96436         * m4/perl.m4: Require that File::Compare be available, too.
96437         Too many systems seem to lack it.
96438
96439         * m4/strftime.m4: Add checks for most of the cpp macros tested in
96440         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
96441
96442 1999-11-18  Paul Eggert  <eggert@twinsun.com>
96443
96444         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
96445         problem with the QNX 4.25 shell, which doesn't propagate exit
96446         status of failed commands inside shell assignments.
96447
96448 1999-11-17  Jim Meyering  <meyering@ascend.com>
96449
96450         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
96451
96452 1999-11-07  Jim Meyering  <meyering@ascend.com>
96453
96454         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
96455
96456 1999-11-06  Jim Meyering  <meyering@ascend.com>
96457
96458         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
96459         * m4/jm-macros.m4 (jm_MACROS): Use it here.
96460
96461 1999-11-05  Jim Meyering  <meyering@ascend.com>
96462
96463         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
96464         configure.in of textutils, fileutils, and sh-utils into this one
96465         (shared between those packages) file.
96466         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
96467         AC_STRUCT_ST_BLKSIZE.
96468
96469 1999-11-03  Jim Meyering  <meyering@ascend.com>
96470
96471         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
96472         of AC_CHECK_TYPE checks includes unistd.h.
96473         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
96474         Suggestion from Akim Demaille.
96475
96476 1999-10-30  Jim Meyering  <meyering@ascend.com>
96477
96478         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
96479         m4-quoted string.
96480         * m4/ls-mntd-fs.m4: Likewise.
96481         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
96482         * m4/jm-winsz1.m4: Likewise.
96483
96484         * m4/const.m4: Remove file, since the fix made it into the experimental
96485         version of autoconf.
96486         * m4/mktime.m4: Likewise.
96487
96488         * m4/check-type.m4: Remove file, now that the latest version of
96489         AC_CHECK_TYPE takes a third arg to specify additional #includes.
96490
96491         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
96492         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
96493         AC_CHECK_TYPE.
96494
96495 1999-10-04  Jim Meyering  <meyering@ascend.com>
96496
96497         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
96498
96499 1999-09-22  Paul Eggert  <eggert@twinsun.com>
96500
96501         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
96502         2.95.1 bug with HP-UX 10.20.
96503
96504 1999-09-17  Jim Meyering  <meyering@ascend.com>
96505
96506         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
96507         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
96508         due to missing strdup (against sh-utils-2.0).
96509
96510 1999-08-29  Jim Meyering  <meyering@ascend.com>
96511
96512         * m4/jm-macros.m4: Require jm_BISON.
96513         * m4/bison.m4: New file.
96514
96515 1999-08-17  Paul Eggert  <eggert@twinsun.com>
96516
96517         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
96518         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
96519
96520 1999-08-05  Jim Meyering  <meyering@ascend.com>
96521
96522         * m4/getline.m4: Rename test file from conftestdata to conftest.data
96523         to avoid conflicts with `conftest' on 8+3 filesystems.
96524         Suggestion from Eli Zaretskii.
96525
96526 1999-08-04  Jim Meyering  <meyering@ascend.com>
96527
96528         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
96529         fileutils and sh-utils (textutils's getline test was inadequate).
96530         (AM_FUNC_GETLINE): Run this test.
96531         (AC_CHECK_FUNCS): Check for getdelim.
96532         Reported by Bob Proulx.
96533
96534 1999-08-02  Jim Meyering  <meyering@ascend.com>
96535
96536         * m4/jm-macros.m4: Add a comment.
96537
96538 1999-08-01  Paul Eggert  <eggert@twinsun.com>
96539
96540         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
96541         <inttypes.h> defines strtoumax as a macro (and not as a
96542         function).
96543
96544 1999-08-01  Paul Eggert  <eggert@twinsun.com>
96545
96546         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
96547         that we can shift, multiply and divide unsigned long long
96548         values; Ultrix cc can't do it.
96549
96550 1999-08-01  Paul Eggert  <eggert@twinsun.com>
96551
96552         * m4/mktime.m4: New file, which is a preview of what should appear
96553         in the next public autoconf release.
96554
96555 1999-08-01  Paul Eggert  <eggert@twinsun.com>
96556
96557         * m4/lfs.m4: Remove this file.
96558         * m4/largefile.m4: New file.  It contains the old contents of
96559         lfs.m4, except that all names with prefix AC_LFS have been
96560         changed to use the prefix AC_SYS_LARGEFILE instead, to be
96561         compatible with future autoconf versions.  Also, some minor m4
96562         quoting problems have been fixed.
96563
96564 1999-08-01  Paul Eggert  <eggert@twinsun.com>
96565
96566         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
96567         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
96568         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
96569         and simplify the shell code.
96570
96571 1999-08-01  Jim Meyering  <meyering@ascend.com>
96572
96573         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
96574         m4.
96575
96576 1999-07-20  Jim Meyering  <meyering@ascend.com>
96577
96578         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
96579
96580 1999-07-15  Jim Meyering  <meyering@ascend.com>
96581
96582         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
96583
96584 1999-05-22  Jim Meyering  <meyering@ascend.com>
96585
96586         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
96587
96588 1999-05-20  Jim Meyering  <meyering@ascend.com>
96589
96590         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
96591         Add a colon after each `then' in case $4 is empty.
96592
96593 1999-05-16  Jim Meyering  <meyering@ascend.com>
96594
96595         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
96596
96597 1999-05-10  Jim Meyering  <meyering@ascend.com>
96598
96599         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
96600
96601         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
96602         AC_FUNC_MKTIME.
96603
96604 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
96605
96606         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
96607
96608 1999-05-04  Paul Eggert  <eggert@twinsun.com>
96609
96610         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
96611         not CPPFLAGS, so that linking works correctly in IRIX.
96612
96613 1999-04-30  Paul Eggert  <eggert@twinsun.com>
96614
96615         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
96616
96617 1999-04-20  Paul Eggert  <eggert@twinsun.com>
96618
96619         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
96620         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
96621         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
96622         jm_AC_TYPE_UNSIGNED_LONG_LONG.
96623         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
96624
96625         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
96626
96627 1999-04-20  Jim Meyering  <meyering@ascend.com>
96628
96629         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
96630         AC_REPLACE xstroull if necessary.  From Paul Eggert.
96631         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
96632
96633 1999-04-18  Jim Meyering  <meyering@ascend.com>
96634
96635         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
96636         * m4/jm-macros.m4: Use it.
96637
96638 1999-04-06  Jim Meyering  <meyering@ascend.com>
96639
96640         * m4/strftime.m4: Remove test for %f.
96641
96642 1999-03-29  Jim Meyering  <meyering@ascend.com>
96643
96644         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
96645         superset of the AC_TYPE_* checks in the textutils, fileutils,
96646         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
96647         AC_TYPE_PID_T.
96648
96649 1999-03-28  Jim Meyering  <meyering@ascend.com>
96650
96651         * m4/jm-macros.m4: Define GNU_PACKAGE here.
96652         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
96653         replaced e.g., in the *.sh files of the sh-utils.
96654
96655 1999-03-20  Jim Meyering  <meyering@ascend.com>
96656
96657         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
96658         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
96659         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
96660
96661 1999-03-19  Jim Meyering  <meyering@ascend.com>
96662
96663         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
96664
96665 1999-03-12  Jim Meyering  <meyering@ascend.com>
96666
96667         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
96668
96669 1999-03-07  Jim Meyering  <meyering@ascend.com>
96670
96671         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
96672         declared.
96673
96674 1999-02-17  Jim Meyering  <meyering@ascend.com>
96675
96676         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
96677         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
96678
96679 1999-02-07  Jim Meyering  <meyering@ascend.com>
96680
96681         * m4/group-member.m4: New file -- extracted from sh-utils'
96682         configure.in.
96683
96684         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
96685         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
96686
96687 1999-02-06  Jim Meyering  <meyering@ascend.com>
96688
96689         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
96690         * m4/fnmatch.m4: Likewise.
96691         * m4/getgroups.m4: Likewise.
96692         * m4/lstat.m4: Likewise.
96693         * m4/malloc.m4: Likewise.
96694         * m4/putenv.m4: Likewise.
96695         * m4/realloc.m4: Likewise.
96696         * m4/regex.m4: Likewise.
96697         * m4/stat.m4: Likewise.
96698         * m4/strftime.m4: Likewise.
96699         Suggestion from Alain Magloire.
96700
96701         * m4/chown.m4: Use `.$ac_objext', not `.o'.
96702         * m4/fnmatch.m4: Likewise.
96703         * m4/getgroups.m4: Likewise.
96704         * m4/getline.m4: Likewise.
96705         * m4/lstat.m4: Likewise.
96706         * m4/malloc.m4: Likewise.
96707         * m4/memcmp.m4: Likewise.
96708         * m4/putenv.m4: Likewise.
96709         * m4/realloc.m4: Likewise.
96710         * m4/regex.m4: Likewise.
96711         * m4/stat.m4: Likewise.
96712         * m4/strftime.m4: Likewise.
96713         Suggestion from Alain Magloire.
96714
96715         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
96716         an argument.
96717
96718         * m4/regex.m4: Add a run-time Test for proper operation of
96719         re_compile_pattern.
96720
96721 1999-01-31  Jim Meyering  <meyering@ascend.com>
96722
96723         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
96724
96725 1999-01-30  Jim Meyering  <meyering@ascend.com>
96726
96727         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
96728
96729         * m4/jm-mktime.m4: Make this a wrapper around the official
96730         AM_FUNC_MKTIME rather than my private copy, now that the official one
96731         is up to date.
96732         * m4/mktime.m4: Remove file.
96733
96734         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
96735         * m4/uptime.m4: Likewise.
96736         * m4/uintmax_t.m4: Likewise.
96737
96738 1999-01-28  Jim Meyering  <meyering@ascend.com>
96739
96740         * m4/jm-macros.m4: Use jm_AFS.
96741         * m4/afs.m4: New file (from fileutils' configure.in).
96742
96743         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
96744         * m4/chown.m4: Likewise.
96745         * m4/d-ino.m4: Likewise.
96746         * m4/d-type.m4: Likewise.
96747         * m4/fnmatch.m4: Likewise.
96748         * m4/getgroups.m4: Likewise.
96749         * m4/gettext.m4: Likewise.
96750         * m4/jm-mktime.m4: Likewise.
96751         * m4/jm-winsz2.m4: Likewise.
96752         * m4/lcmessage.m4: Likewise.
96753         * m4/ls-mntd-fs.m4: Likewise.
96754         * m4/malloc.m4: Likewise.
96755         * m4/memcmp.m4: Likewise.
96756         * m4/putenv.m4: Likewise.
96757         * m4/realloc.m4: Likewise.
96758         * m4/st_mtim.m4: Likewise.
96759         * m4/strftime.m4: Likewise.
96760
96761 1999-01-16  Jim Meyering  <meyering@ascend.com>
96762
96763         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
96764         (ARGMATCH_DIE_DECL): Define.
96765
96766 1999-01-12  Jim Meyering  <meyering@ascend.com>
96767
96768         * m4/Makefile.am.in: Rewrite to avoid using fmt.
96769         Reported by Lars Hecking.
96770
96771 1999-01-10  Jim Meyering  <meyering@ascend.com>
96772
96773         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
96774         gross kludge.
96775         * m4/inttypes_h.m4: Likewise.
96776         * m4/lstat.m4: Likewise.
96777         * m4/malloc.m4: Likewise.
96778         * m4/readdir.m4: Likewise.
96779         * m4/realloc.m4: Likewise.
96780         * m4/st_dm_mode.m4: Likewise.
96781         * m4/stat.m4: Likewise.
96782         * m4/utimbuf.m4: Likewise.
96783         * m4/utimes.m4: Likewise.
96784
96785         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
96786         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
96787         comments in config.h.in are meaningful.
96788
96789         * m4/jm-macros.m4: Require autoconf-2.13 here.
96790
96791         * m4/regex.m4: By default, don't use the included regex.c on systems
96792         with glibc 2.  Suggestion from Uli Drepper.
96793
96794 1999-01-02  Jim Meyering  <meyering@ascend.com>
96795
96796         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
96797
96798 1998-12-18  Jim Meyering  <meyering@ascend.com>
96799
96800         * m4/Makefile.am.in (Makefile.am): Simplify rule.
96801         Based on a suggestion from Lars Hecking.
96802
96803 1998-11-16  Paul Eggert  <eggert@twinsun.com>
96804
96805         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
96806
96807 1998-11-16  Jim Meyering  <meyering@ascend.com>
96808
96809         * m4/lfs.m4: Double-quote the `uname...` expression.
96810
96811 1998-11-14  Jim Meyering  <meyering@ascend.com>
96812
96813         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
96814         * m4/stat.m4: Likewise.
96815
96816 1998-11-03  Jim Meyering  <meyering@ascend.com>
96817
96818         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
96819         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
96820
96821 1998-10-18  Jim Meyering  <meyering@ascend.com>
96822
96823         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
96824
96825 1998-10-17  Jim Meyering  <meyering@ascend.com>
96826
96827         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
96828         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
96829         calls for those previously hard-coded headers.  Instead, take a new
96830         parameter.
96831         (jm_CHECK_DECLARATIONS): Reflect interface change.
96832         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
96833         (jm_CHECK_DECL_LOCALTIME_R): New macro.
96834
96835         * m4/mktime.m4: Test for spring-forward gap before long-running test.
96836
96837 1998-10-14  Jim Meyering  <meyering@ascend.com>
96838
96839         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
96840         instead of "TZ=America/Vancouver".  From Paul Eggert.
96841
96842 1998-10-11  Jim Meyering  <meyering@ascend.com>
96843
96844         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
96845         This adds a test for a recently added compatibility fix for mktime.c.
96846         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
96847
96848 1998-09-27  Jim Meyering  <meyering@ascend.com>
96849
96850         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
96851
96852         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
96853         ../configure.in, including a change from Gordon Matzigkeit to allow
96854         cross-compiling for the Hurd.
96855
96856         * m4/glibc.m4: New file/macro to test for the GNU C Library
96857         versions 1 and 2.  From Gordon Matzigkeit.
96858         Indent.
96859
96860 1998-09-21  Jim Meyering  <meyering@ascend.com>
96861
96862         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
96863
96864 1998-08-18  Paul Eggert  <eggert@twinsun.com>
96865
96866         Port nanosecond-resolution times to UnixWare 2.1.2 and
96867         pedantic Solaris 2.6.
96868
96869         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
96870         AC_STRUCT_ST_MTIM.
96871         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
96872         Generate name of ns member, instead of just 1 or undef.
96873         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
96874
96875 1998-08-15  Jim Meyering  <meyering@ascend.com>
96876
96877         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
96878         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
96879         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
96880         instead of jm_TYPE_SSIZE_T.
96881
96882 1998-08-12  Jim Meyering  <meyering@ascend.com>
96883
96884         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
96885
96886 1998-08-02  Jim Meyering  <meyering@ascend.com>
96887
96888         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
96889         in acconfig.h manually.
96890
96891 1998-07-31  Paul Eggert  <eggert@twinsun.com>
96892
96893         * m4/st_mtim.m4: New file.
96894
96895 1998-07-28  Jim Meyering  <meyering@ascend.com>
96896
96897         * m4/utimes.m4: Undef stat.
96898
96899 1998-07-25  Jim Meyering  <meyering@ascend.com>
96900
96901         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
96902         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
96903
96904 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
96905
96906         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
96907         uid and gid actually remain unchanged.
96908
96909 1998-07-07  Jim Meyering  <meyering@ascend.com>
96910
96911         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
96912
96913 1998-07-04  Jim Meyering  <meyering@ascend.com>
96914
96915         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
96916         to prove that this macro can be used in packages without regex.c.
96917
96918 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
96919
96920         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
96921         is to be used.
96922
96923 1998-07-03  Jim Meyering  <meyering@ascend.com>
96924
96925         * m4/gettext.m4: Add -lintl if it's found to be necessary.
96926
96927         * m4/gettext.m4: New file -- from gettext-0.10.35.
96928         * m4/lcmessage.m4: Likewise.
96929         * m4/progtest.m4: Likewise.
96930
96931         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
96932         * m4/jm-macros.m4: Require the new macro.
96933
96934 1998-06-29  Jim Meyering  <meyering@ascend.com>
96935
96936         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
96937         for the definition of NGROUPS (used in a system header included
96938         by sys/mount.h).
96939
96940 1998-06-28  Jim Meyering  <meyering@ascend.com>
96941
96942         * m4/ls-mntd-fs.m4: New file.
96943         * m4/fstypename.m4: New file.
96944
96945         * m4/jm-macros.m4: Require the new macro.
96946         * m4/jm-glibc-io.m4: New file.
96947
96948 1998-05-19  Jim Meyering  <meyering@ascend.com>
96949
96950         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
96951         * m4/lchown.m4: New file.
96952
96953         * m4/Makefile.am.in: New file.
96954         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
96955
96956 1998-05-14  Jim Meyering  <meyering@ascend.com>
96957
96958         * m4/Makefile.am (EXTRA_DIST): Add them.
96959         * m4/jm-macros.m4: New file.
96960         * m4/utimbuf.m4: New file.
96961
96962 1998-05-12  Jim Meyering  <meyering@ascend.com>
96963
96964         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
96965
96966 1998-05-11  Jim Meyering  <meyering@ascend.com>
96967
96968         * m4/isc-posix.m4: New file.
96969
96970 1998-05-10  Jim Meyering  <meyering@ascend.com>
96971
96972         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
96973
96974 1998-05-09  Jim Meyering  <meyering@ascend.com>
96975
96976         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
96977         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
96978         with automake.
96979
96980         * m4/ssize_t.m4: New file.
96981         * m4/mktime.m4: Remove file -- the new automake has this now.
96982
96983 1998-04-26  Jim Meyering  <meyering@ascend.com>
96984
96985         * m4/assert.m4: New file.
96986         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
96987
96988 1998-04-05  Jim Meyering  <meyering@ascend.com>
96989
96990         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
96991         (jm_PREREQ): Use it here.
96992
96993 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
96994
96995         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
96996         in acconfig.h.
96997
96998 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
96999
97000         * m4/prereq.m4: New file.
97001         * m4/error.m4: New file.
97002         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
97003
97004 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
97005
97006         * m4/getline.m4: Don't set am_cv_func_working_getline before the
97007         cache-check for the same variable -- that defeated the purpose of
97008         the test; the test program was never run.  This was a problem only
97009         on systems with losing getline functions -- HP-UX 10.20 is one.
97010         Reported by Bjorn Helgaas.
97011
97012 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
97013
97014         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
97015
97016 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
97017
97018         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
97019
97020         * m4/const.m4: New file.  Use an initializer in this declaration
97021         typedef int charset[2]; const charset x;
97022         Reported by Bob Glickstein.
97023
97024 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
97025
97026         * m4/chown.m4: Fix reversed types on -1 args to chown.
97027         From Kaveh Ghazi.
97028
97029 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
97030
97031         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
97032         Add lseek and memchr.
97033
97034         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
97035         T.E.Dickey <dickey@clark.net> said that some older preprocessors
97036         have a 20-character limit on names.
97037
97038 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
97039
97040         * m4/inttypes_h.m4: New file.
97041         * m4/uintmax_t.m4: New file.
97042         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
97043
97044
97045         -----
97046
97047         Local Variables:
97048         coding: utf-8
97049         End:
97050
97051         Copyright (C) 1997-2012 Free Software Foundation, Inc.
97052
97053         Copying and distribution of this file, with or without
97054         modification, are permitted provided the copyright notice
97055         and this notice are preserved.